summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLogan Chien2018-05-08 04:37:29 -0500
committerLogan Chien2018-05-08 04:41:21 -0500
commit25b742c62764db8918976d6b01801c164461bbc2 (patch)
tree4d2d135ab23656429c8423ba284e64d1e2964cea /libcutils/Android.bp
parent751f2fa535f96442ad55e130b78a312c183a1317 (diff)
downloadplatform-system-core-25b742c62764db8918976d6b01801c164461bbc2.tar.gz
platform-system-core-25b742c62764db8918976d6b01801c164461bbc2.tar.xz
platform-system-core-25b742c62764db8918976d6b01801c164461bbc2.zip
libctuils: Exclude qtaguid.cpp from VNDK-SP variant
This commit excludes `qtaguid.cpp` from the VNDK-SP variant of `libcutils.so` because the interface of `libnetd_client.so` may vary between AOSP releases. Besides, these functions don't work in vendor processes either because VNDK-SP libraries are loaded in an isolated `vndk` linker namespace, which cannot access `/system/lib[64]/libnetd_client.so` directly. This change makes it easier to spot the issue at build time and saves several bytes. Test: Build aosp_walleye-userdebug and /system/lib[64]/vndk-sp-$VER/libctuils.so no longer exports qtaguid_* functions. Bug: 79329469 Change-Id: Idf6b60f6e58371ea320193641669d1e4412d62b8
Diffstat (limited to 'libcutils/Android.bp')
-rw-r--r--libcutils/Android.bp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcutils/Android.bp b/libcutils/Android.bp
index dd46750fc..e82325768 100644
--- a/libcutils/Android.bp
+++ b/libcutils/Android.bp
@@ -160,6 +160,15 @@ cc_library {
160 misc_undefined: ["integer"], 160 misc_undefined: ["integer"],
161 }, 161 },
162 }, 162 },
163
164 vendor: {
165 exclude_srcs: [
166 // qtaguid.cpp loads libnetd_client.so with dlopen(). Since
167 // the interface of libnetd_client.so may vary between AOSP
168 // releases, exclude qtaguid.cpp from the VNDK-SP variant.
169 "qtaguid.cpp",
170 ],
171 }
163 }, 172 },
164 173
165 shared_libs: ["liblog"], 174 shared_libs: ["liblog"],