diff options
author | Patrick Baumann <patb@google.com> | 2020-12-09 14:11:05 -0800 |
---|---|---|
committer | Patrick Baumann <patb@google.com> | 2021-02-04 22:25:58 +0000 |
commit | ad9bbd8cee4abfeef687c471e0af5c401c91728e (patch) | |
tree | 9239451ecbb2af89b3bf1e54d07c2e8e9314709b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | a397f0281c117c5b658272d461c5cc571ba01bd7 (diff) |
Adds caller check to getAllPackages()
This change enforces that only system, root or shell may call
getAllPackages(), a hidden API that shares all package names regardless
of user, instant app or package visibility rules.
Bug: 174661955
Test: 'adb shell pm compile -a -m speed' doesn't fail with
SecurityException
Change-Id: I86a03c46896f21cdbeeda2af150675fe77d61955
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions