diff options
author | Mathew Inwood <mathewi@google.com> | 2018-03-16 14:18:33 +0000 |
---|---|---|
committer | Mathew Inwood <mathewi@google.com> | 2018-03-28 11:53:22 +0100 |
commit | 3383aa5cc3bac56576cf48086183f59ac4de279e (patch) | |
tree | e196c531cf374143e6ed7d50ab084f831f3b8af2 /test/ProfileTestMultiDex | |
parent | a89c832fc02e57f678731860cd6059aac0535d85 (diff) |
Support for API exemptions from API blacklisting.
Add support to VMRuntime for setting a list of exemptions from the hidden
API enforcement. The list is used as a prefix match against the signature
of a field/method. Any signatures that match are treated as being on the
light grey list, rather than the dark grey list or blacklist.
Refactor some code in hidden_api.h that deals with field/method signatures,
to encapsulate the signature in a new class MemberSignature. This allows us
to avoid building the entire signature in member, instead just using its
constituent parts.
Test: $ make test-art-host-gtest-hidden_api_test
Test: $ adb shell settings put global hidden_api_blacklist_exemptions \
Test: Landroid/view/RemoteAnimationDefinition\\\;:Landroid/app/ActivityManager\\\$TaskDescription\\\;
Test: Manually verify logcat output from app which uses named APIs
Bug: 73337509
(cherry picked from commit 7d74ef585063ca2adc0ba9c18008b7c1671ff699)
Merged-In: Id608743d1b5a7a37059875d8991d0d4d65f5fc36
Change-Id: Ic868557e12c3896888184501a59481a56edebd03
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions