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
(cherry picked from commit db49bea153)
This commit is contained in:
Soonil Nagarkar
2019-07-12 09:56:26 -07:00
parent f61fdd8249
commit 0744e2fa2e

View File

@@ -466,7 +466,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();