Add apex to lock_api rust crate am: a8edef88b0 am: c4bda063cc am: 016ae2eb4e

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/lock_api/+/1854091

Change-Id: I42cf1c259c6cdee37faa9c340dbdc4065b58c0ba
diff --git a/Android.bp b/Android.bp
index 8f93604..8b145a9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --tests.
+// This file is generated by cargo2android.py --config cargo2android.json.
 // Do not modify this file as changes will be overridden on upgrade.
 
 package {
@@ -48,6 +48,10 @@
     rustlibs: [
         "libscopeguard",
     ],
+    apex_available: [
+        "//apex_available:platform",
+        "com.android.virt",
+    ],
 }
 
 rust_defaults {
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..d28888a
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,9 @@
+{
+    "apex-available": [
+      "//apex_available:platform",
+      "com.android.virt"
+    ],
+    "device": true,
+    "run": true,
+    "tests": true
+}
\ No newline at end of file