Allow shared_child crate in com.android.virt apex.

Bug: 171277638
Test: mm
Change-Id: I1147bd92e67df02f55ac1fc1ad63120a37acff6f
diff --git a/Android.bp b/Android.bp
index 7714976..ad4db29 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies --tests.
+// This file is generated by cargo2android.py --run --device --dependencies --tests --patch=patches/Android.bp.patch.
 // Do not modify this file as changes will be overridden on upgrade.
 
 package {
@@ -27,6 +27,10 @@
     rustlibs: [
         "liblibc",
     ],
+    apex_available: [
+        "//apex_available:platform",
+        "com.android.virt",
+    ],
 }
 
 rust_defaults {
@@ -55,4 +59,4 @@
 }
 
 // dependent_library ["feature_list"]
-//   libc-0.2.88 "default,std"
+//   libc-0.2.92 "default,std"
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..cd87fe5
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,15 @@
+diff --git a/Android.bp b/Android.bp
+index 79874d6..65f30d3 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -10,6 +10,10 @@ rust_library {
+     rustlibs: [
+         "liblibc",
+     ],
++    apex_available: [
++        "//apex_available:platform",
++        "com.android.virt",
++    ],
+ }
+ 
+ rust_defaults {