summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorjovanak <jovanak@google.com>2020-03-12 10:13:51 -0700
committerJovana Knezevic <jovanak@google.com>2020-03-12 22:27:40 +0000
commita92de35229f44d619108cc78d215f0d8f25952af (patch)
treead9911dba3fe44129a16ad53f401b4adb18ffb92 /tools/aapt2/java/JavaClassGenerator.cpp
parented434b4aef4640bdb9eac22e1e12915476c6866e (diff)
Allow querying isPreCreated to anyone with INTERACT_ACROSS_USERS permission.
This: 1. Makes this call more consistent with most of the other accessors. 2. Allows shell to access it, which is needed for commands like "am stop-user -w". Shell does not have MANAGE_USERS, but it has INTERACT_ACROSS_USERS. Another way to fix 2 would be to clear binder identity in UC.stopSingleUserLU, but that seemed like a more risky change. Fixes: 150929990 Test: "am stop-user -w" does not throw security exception Change-Id: I6caa43cd8cd7083f0b9dbc515c53dee181030761
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions