Loading services/core/java/com/android/server/am/UserController.java +0 −2 Original line number Diff line number Diff line Loading @@ -712,8 +712,6 @@ class UserController implements Handler.Callback { Slog.i(TAG, "Stopping pre-created user " + userInfo.toFullString()); // Pre-created user was started right after creation so services could properly // intialize it; it should be stopped right away as it's not really a "real" user. // TODO(b/143092698): in the long-term, it might be better to add a onCreateUser() // callback on SystemService instead. stopUser(userInfo.id, /* force= */ true, /* allowDelayedLocking= */ false, /* stopUserCallback= */ null, /* keyEvictedCallback= */ null); return; Loading services/core/java/com/android/server/pm/UserManagerService.java +5 −2 Original line number Diff line number Diff line Loading @@ -1729,6 +1729,7 @@ public class UserManagerService extends IUserManager.Stub { } public void makeInitialized(@UserIdInt int userId) { if (DBG) Slog.d(LOG_TAG, "makeInitialized(" + userId + ")"); checkManageUsersPermission("makeInitialized"); boolean scheduleWriteUser = false; UserData userData; Loading Loading @@ -3553,8 +3554,7 @@ public class UserManagerService extends IUserManager.Stub { // Must start user (which will be stopped right away, through // UserController.finishUserUnlockedCompleted) so services can properly // intialize it. // TODO(b/143092698): in the long-term, it might be better to add a onCreateUser() // callback on SystemService instead. // NOTE: user will be stopped on UserController.finishUserUnlockedCompleted(). Slog.i(LOG_TAG, "starting pre-created user " + userInfo.toFullString()); final IActivityManager am = ActivityManager.getService(); try { Loading Loading @@ -4965,6 +4965,9 @@ public class UserManagerService extends IUserManager.Stub { UserData userData = getUserDataNoChecks(userId); if (userData != null) { writeUserLP(userData); } else { Slog.i(LOG_TAG, "handle(WRITE_USER_MSG): no data for user " + userId + ", it was probably removed before handler could handle it"); } } } Loading Loading
services/core/java/com/android/server/am/UserController.java +0 −2 Original line number Diff line number Diff line Loading @@ -712,8 +712,6 @@ class UserController implements Handler.Callback { Slog.i(TAG, "Stopping pre-created user " + userInfo.toFullString()); // Pre-created user was started right after creation so services could properly // intialize it; it should be stopped right away as it's not really a "real" user. // TODO(b/143092698): in the long-term, it might be better to add a onCreateUser() // callback on SystemService instead. stopUser(userInfo.id, /* force= */ true, /* allowDelayedLocking= */ false, /* stopUserCallback= */ null, /* keyEvictedCallback= */ null); return; Loading
services/core/java/com/android/server/pm/UserManagerService.java +5 −2 Original line number Diff line number Diff line Loading @@ -1729,6 +1729,7 @@ public class UserManagerService extends IUserManager.Stub { } public void makeInitialized(@UserIdInt int userId) { if (DBG) Slog.d(LOG_TAG, "makeInitialized(" + userId + ")"); checkManageUsersPermission("makeInitialized"); boolean scheduleWriteUser = false; UserData userData; Loading Loading @@ -3553,8 +3554,7 @@ public class UserManagerService extends IUserManager.Stub { // Must start user (which will be stopped right away, through // UserController.finishUserUnlockedCompleted) so services can properly // intialize it. // TODO(b/143092698): in the long-term, it might be better to add a onCreateUser() // callback on SystemService instead. // NOTE: user will be stopped on UserController.finishUserUnlockedCompleted(). Slog.i(LOG_TAG, "starting pre-created user " + userInfo.toFullString()); final IActivityManager am = ActivityManager.getService(); try { Loading Loading @@ -4965,6 +4965,9 @@ public class UserManagerService extends IUserManager.Stub { UserData userData = getUserDataNoChecks(userId); if (userData != null) { writeUserLP(userData); } else { Slog.i(LOG_TAG, "handle(WRITE_USER_MSG): no data for user " + userId + ", it was probably removed before handler could handle it"); } } } Loading