summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJooyung Han <jooyung@google.com>2023-12-01 14:29:51 +0900
committerJooyung Han <jooyung@google.com>2023-12-01 14:29:51 +0900
commit781d67c01a4c6b4755e6d210fa377587067f667f (patch)
tree86df3666fcdf01083029675e4f6b40d50e8919fe
parent9760bae4db96d6fad9a6ec397bb804f15d3cb73d (diff)
downloadzlib-781d67c01a4c6b4755e6d210fa377587067f667f.tar.gz
Prevent libz from providing stubs for vendor/product modules
libz is not an LLNDK. So even if it has "stubs" set, it should not provide stubs to vendor/product modules. This is important especially to venodr/product APEXes. When used by a Vendor apex, libz should be bundled together with the apex, not used from /system/lib or /vendor/lib. Bug: 313806237 Test: m Change-Id: I49961320e43ebce8093a0ca7641d53bf184242e8
-rw-r--r--Android.bp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 78b0d56..2eb3d13 100644
--- a/Android.bp
+++ b/Android.bp
@@ -185,6 +185,18 @@ cc_library {
],
symbol_file: "libz.map.txt",
},
+
+ // When used by Vendor/Product APEX,
+ // libz should be treated like non-stable module.
+ // (Hence, should be bundled in APEX).
+ target: {
+ product: {
+ no_stubs: true,
+ },
+ vendor: {
+ no_stubs: true,
+ },
+ }
}
cc_library {