diff options
author | David Brazdil <dbrazdil@google.com> | 2019-01-09 10:04:45 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2019-01-09 10:04:45 +0000 |
commit | c5a96e4a8ea9f78135c5cd3df7e1fc965104182e (patch) | |
tree | 662506a68d056c382f6882b65bb28dd3f09366d7 /test/ProfileTestMultiDex/main.jpp | |
parent | 5d938ef154f504ada9c8fc9c9361fe69aabbe8b9 (diff) |
Do not enter hidden API slow path when policy==Disabled
After a recent refactor the hidden API access check logic would enter
slow path when the enforcement policy is set to kDisabled. This did
not affect correctness but could have a performance impact. Moreover,
a debuggable process would see logcat warnings printed for every such
access despite it being granted. This caused occasional logcat buffer
overflows in killswitch CTS tests and their resulting flakiness.
The patch exits from ShouldDenyAccessToMember early if policy is
kDisabled and adds a DCHECK in ShouldDenyAccessToMemberImpl to assert
slow path is not entered under the policy.
Test: m test-art-host-gtest-hidden_api_test
Change-Id: I217d9914d2645af11ce84c03a0ed778a82bc760f
Diffstat (limited to 'test/ProfileTestMultiDex/main.jpp')
0 files changed, 0 insertions, 0 deletions