aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp6
-rw-r--r--patches/Android.bp.patch13
2 files changed, 18 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 16c63a4..dd9dd4b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --dependencies --device.
+// This file is generated by cargo2android.py --run --dependencies --device --patch=patches/Android.bp.patch.
rust_library {
name: "libbytes",
@@ -10,4 +10,8 @@ rust_library {
"default",
"std",
],
+ 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..2290fe4
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,13 @@
+diff --git a/Android.bp b/Android.bp
+index 16c63a4..75d6b62 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -10,4 +10,8 @@ rust_library {
+ "default",
+ "std",
+ ],
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }