Add virtmanager to the virt APEX
We want to have virtmanager (and its dependencies) inside the APEX so
that they can be updated. This library is a dependency of the binary,
therefore it should also be marked as being available to the APEX.
Bug: 180297657
Test: com.android.virt
Change-Id: I4e28d4ae8061ae827310c2c3ff8c2a3c7f54b579
diff --git a/Android.bp b/Android.bp
index bbb0114..e47c45a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -10,4 +10,8 @@
"--cfg integer128",
"--cfg maybe_uninit",
],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..343b704
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,13 @@
+diff --git a/Android.bp b/Android.bp
+index bbb0114..e47c45a 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -10,4 +10,8 @@ rust_library {
+ "--cfg integer128",
+ "--cfg maybe_uninit",
+ ],
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }