Don't assume SYSTEM is current user on boot
Auto and chrome can apparently use different users at boot. Bug: 137204067 Test: manual Change-Id: I61371bcc167a39e6344fe457dca56f0003910ce8
This commit is contained in:
@@ -467,7 +467,7 @@ public class LocationManagerService extends ILocationManager.Stub {
|
||||
// the user being changed will cause a reload of all user specific settings, which causes
|
||||
// provider initialization, and propagates changes until a steady state is reached
|
||||
mCurrentUserId = UserHandle.USER_NULL;
|
||||
onUserChangedLocked(UserHandle.USER_SYSTEM);
|
||||
onUserChangedLocked(ActivityManager.getCurrentUser());
|
||||
|
||||
// initialize in-memory settings values
|
||||
onBackgroundThrottleWhitelistChangedLocked();
|
||||
|
||||
Reference in New Issue
Block a user