summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-03-11 14:00:33 +0900
committerJiyong Park <jiyong@google.com>2020-03-13 05:16:28 +0000
commit8ce4a3067c1f0bdb10262b93f0283b84c5ebe816 (patch)
tree3d2b0cd6e7bb9038f4835f062ecbf570261442c9 /trusty/coverage/coverage.cpp
parent01aa81cec546e625f13375f6d6929cbc77d64965 (diff)
Make libselinux a stub library
libselinux is currently being copied to APEXes. This is risky because the library is not designed to be portable; part of it is tied to the specific version of the Android that it was developed for. This change fixes the problem by declaring that the library supports a stub with the list of C APIs that are included in the stub. Then there is only one copy of libselinux in /system/lib and other APEXes use the copy by dynamically linking to it. Also, adbd no longer statically links to it, because doing so brings libselinux in it. Bug: 151053366 Test: m com.android.adbd. It doesn't include libselinux in it. Test: m com.android.adbd-deps-info. then inspect out/soong/com.android.adbd-deps-info.txt. The dependency to libselinux is shown as '(external)'. Exempt-From-Owner-Approval: cherry-pick from AOSP Merged-In: If418cbe3abdeacb759d59052e6dca4c2067678dd (cherry picked from commit 3ffdad0cb5bbc3855af7705fee62e2be09583a17) Change-Id: If418cbe3abdeacb759d59052e6dca4c2067678dd
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions