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: I6bf4e55923f3dfa1b69bdb41270e19749096dfbf
diff --git a/Android.bp b/Android.bp
index 64302ac..c4bddf7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,4 +12,8 @@
enabled: false,
},
},
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
index f00ea81..207e6be 100644
--- a/patches/Android.bp.patch
+++ b/patches/Android.bp.patch
@@ -1,6 +1,6 @@
--- Android.bp.orig 2020-10-30 16:31:00.469140136 -0700
+++ Android.bp 2020-10-30 16:31:43.436969421 -0700
-@@ -6,4 +6,10 @@
+@@ -6,4 +6,14 @@
crate_name: "android_log_sys",
srcs: ["src/lib.rs"],
edition: "2015",
@@ -10,4 +10,8 @@
+ enabled: false,
+ },
+ },
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
}