OSDN Git Service

Add support for disabling the greylist.
authorElliott Hughes <enh@google.com>
Fri, 24 Mar 2017 00:42:49 +0000 (17:42 -0700)
committerElliott Hughes <enh@google.com>
Wed, 5 Apr 2017 22:35:04 +0000 (15:35 -0700)
commit7933bec2872aa1c3430149c7649726333c0ac9d8
tree963e439969fa86a279b1736ad33fb2d9d9ce4b39
parent61e05392a9b755f01cc9da68b3ea71012aa920e7
Add support for disabling the greylist.

Useful for testing whether apps have actually stopped using greylisted
libraries even if they still have references to them in their apk to support
old Android releases but also haven't bumped their targetSdkVersion yet.

Since we already have two expensive __system_property_get calls and this
would add a third, optimize two (but leave the third since it's not
obviously amenable to optimization). None of this matters for user builds,
but I don't want userdebug/eng to have distractingly different performance.

Bug: http://b/36106661
Test: ran "can you escape 5" with and without this property
Change-Id: Id9a804695c1dca9b4be2ebd0e72f01817bb13cba
android-changes-for-ndk-developers.md
libc/private/CachedProperty.h [new file with mode: 0644]
linker/linker.cpp
linker/linker_logger.cpp
linker/linker_logger.h