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.
Exempt-From-Owner-Approval: cherry-pick AOSP
Bug: 150999716
Test: m
Merged-In: Id5691b02c107ed7b844a186f0a5effa3cb0fe52a
(cherry picked from commit 922a5c7d75ccda09777c04b1eb063e50df707ecb)
Change-Id: Id5691b02c107ed7b844a186f0a5effa3cb0fe52a
diff --git a/libc/Android.bp b/libc/Android.bp
index 2b1c7ca..9afba35 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -1780,6 +1780,12 @@
ramdisk_available: true,
recovery_available: true,
native_bridge_supported: true,
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.runtime",
+ "com.android.art.debug",
+ "com.android.art.release",
+ ],
no_libcrt: true,
stl: "none",
@@ -1911,6 +1917,10 @@
ramdisk_available: true,
recovery_available: true,
native_bridge_supported: true,
+ apex_available: [
+ "//apex_available:platform",
+ "//apex_available:anyapex",
+ ],
cflags: [
"-Wno-gcc-compat",