summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp3
-rw-r--r--patches/Android.bp.patch5
2 files changed, 5 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index 1256ee50..399a8c0b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -114,7 +114,8 @@ rust_bindgen {
"--blocklist-type=gpr_mu",
"--blocklist-type=gpr_cv",
"--blocklist-type=gpr_once",
- ]
+ ],
+ min_sdk_version: "29",
}
rust_test {
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
index 202a5742..d97431fd 100644
--- a/patches/Android.bp.patch
+++ b/patches/Android.bp.patch
@@ -14,7 +14,7 @@ index 45707bc..d0369e6 100644
edition: "2018",
features: [
"bindgen",
-@@ -55,52 +55,74 @@
+@@ -55,52 +55,75 @@
"liblibc",
"liblibz_sys",
],
@@ -119,7 +119,8 @@ index 45707bc..d0369e6 100644
+ "--blocklist-type=gpr_mu",
+ "--blocklist-type=gpr_cv",
+ "--blocklist-type=gpr_once",
-+ ]
++ ],
++ min_sdk_version: "29",
+}
+
+rust_test {