Restrict the availability of the bionic libs
The bionic libs are now restricted to be in the runtime APEX and the
platform (for bootstrapping). It can still be referenced from other
APEXes but can't be included there.
Bug: 139870423
Test: m
Change-Id: I7f99eef27ccf75844ca5c9a7ea866496841b738f
diff --git a/libc/Android.bp b/libc/Android.bp
index 5f82b13..3653f45 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -1713,6 +1713,11 @@
versions: ["10000"],
},
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.runtime",
+ ],
+
// Sorting bss symbols by size usually results in less dirty pages at run
// time, because small symbols are grouped together.
sort_bss_symbols_by_size: true,