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: I3fa879c630e42ef481d37f5f213103688251a23d
diff --git a/Android.bp b/Android.bp
index 11e3e28..173735d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -18,6 +18,10 @@
"libryu",
"libserde",
],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
// dependent_library ["feature_list"]
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..01eddb2
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,15 @@
+diff --git a/Android.bp b/Android.bp
+index 11e3e28..173735d 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -18,6 +18,10 @@ rust_library {
+ "libryu",
+ "libserde",
+ ],
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }
+
+ // dependent_library ["feature_list"]