commit | ad9bbd8cee4abfeef687c471e0af5c401c91728e | [log] [tgz] |
---|---|---|
author | Patrick Baumann <patb@google.com> | Wed Dec 09 14:11:05 2020 -0800 |
committer | Patrick Baumann <patb@google.com> | Thu Feb 04 22:25:58 2021 +0000 |
tree | 9239451ecbb2af89b3bf1e54d07c2e8e9314709b | |
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