add crosvm to com.android.virt
To do so, crosvm and its dependencies have the apex_available property
set to "//apex_available:platform", "com.android.virt" to explicitly
acknowledge the joining.
Bug: 174639241
Test: m com.android.virt
Change-Id: I30f3bef5cf3484ece9978293dfbd1f94f9525da0
diff --git a/Android.bp b/Android.bp
index 966610c..eb9a51f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,7 @@
apex_available: [
"//apex_available:platform",
"com.android.resolv",
+ "com.android.virt",
],
min_sdk_version: "29",
}
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
index c87eabf..9a416e4 100644
--- a/patches/Android.bp.patch
+++ b/patches/Android.bp.patch
@@ -1,12 +1,17 @@
---- Android.bp 2020-12-14 23:11:31.826922229 +0900
-+++ Android.bp.new 2020-12-14 23:10:57.251425048 +0900
-@@ -11,4 +11,9 @@ rust_library {
+diff --git a/Android.bp b/Android.bp
+index f122044..eb9a51f 100644
+--- a/Android.bp
++++ b/Android.bp
+ rust_library {
+ name: "libonce_cell",
+@@ -11,4 +11,10 @@ rust_library {
"default",
"std",
],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.resolv",
++ "com.android.virt",
+ ],
+ min_sdk_version: "29",
}