Set apex_available property
The marked library(ies) were available to the APEXes via the
hand-written whitelist in build/soong/apex/apex.go. Trying to remove the
whitelist by adding apex_available property to the Android.bp of the
libraries.
Bug: 150999716
Test: m
Merged-In: I3cb9f457c132f2553b002004837b55a3068c93a9
Change-Id: I4d09a5cb47fd2942d4d4409736099e8c495bfc5f
(cherry picked from commit fc1259ac1ab0b6bdf575210e7b460432727afcda)
diff --git a/Android.bp b/Android.bp
index c137eed..02468a3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -31,6 +31,9 @@
},
ndk: {
gen_log: true,
+ apex_available: [
+ "com.android.resolv",
+ ],
},
},
versions: [
@@ -163,6 +166,7 @@
sanitize: {
cfi: true,
},
+ apex_available: ["com.android.resolv"],
}
cc_library_static {
@@ -175,6 +179,7 @@
srcs: [
"stats.proto",
],
+ apex_available: ["com.android.resolv"],
}
genrule {
@@ -206,6 +211,7 @@
"libgtest_prod", // Used by libstatspush_compat
"libstatspush_compat",
],
+ apex_available: ["com.android.resolv"],
}
filegroup {