diff options
author | Jooyung Han <jooyung@google.com> | 2023-12-01 14:29:51 +0900 |
---|---|---|
committer | Jooyung Han <jooyung@google.com> | 2023-12-01 14:29:51 +0900 |
commit | 781d67c01a4c6b4755e6d210fa377587067f667f (patch) | |
tree | 86df3666fcdf01083029675e4f6b40d50e8919fe | |
parent | 9760bae4db96d6fad9a6ec397bb804f15d3cb73d (diff) | |
download | zlib-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.bp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 { |