diff options
author | Jackal Guo <jackalguo@google.com> | 2021-01-20 15:33:26 +0800 |
---|---|---|
committer | Jackal Guo <jackalguo@google.com> | 2021-02-01 15:18:56 +0800 |
commit | 75e03a9596eaa036421cc405f9f475ba3381ba64 (patch) | |
tree | 0c6a8b1b3f67ece065672cf5800b750bf1dd56a7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 551929ac9aa57997924f0491dc5db3acaba4ed66 (diff) |
Apply package visibility to cached ServiceRecord
Once the service resolve in retrieveServiceLocked is done, ActiveService
would store the ServiceRecord in a ServiceMap to save additional query
next time. However, the package visibility check isn't applied when the
ServiceRecord is retrieved from the ServiceMap. Hence, apps may bypass
the package visibility check and bind the target service successfully.
Bug: 177790677
Test: atest AppsFilterTest
Test: atest AppEnumerationTests
Change-Id: If362627fc6b02120a30ed10080d0d61b3ddbb98b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions