summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorEvan Laird <evanlaird@google.com>2018-05-29 17:28:58 -0400
committerEvan Laird <evanlaird@google.com>2018-06-12 15:14:25 -0400
commit172708b5399343615a2d456ee14fc02542c17f7a (patch)
treefc9b9cf6fb7d7aec8db7a67ecde6d757d1d7d8d7 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent16eef1aad8619ce4f146b6051cb4297082bead25 (diff)
Use disableForUser in StatusBarManager
If a secondary user is added to the device and in the middle of SUW, the SUW process can be killed via ADB. This will cause the process to get restarted and call StatusBarManager#disable()/disable2(), which uses the StatusBarManagerService methods that use the current uid. The fix is to use Binder.getCallingUserHandle() in StatusBarManager so that the SUW from another user can't affect the current user unless it is current. Test: start SUW from new user, cancel set up and go back to primary user. Kill the SUW process. Nav bars remain un-hidden Change-Id: Ie6f648827d8d384ae87f74e2d746b7566a7b9011 Fixes: 78360699
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions