172708b539
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