Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26e995aa authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixes UMS.getPreCreatedUserLU() to ignore partial pre-created users." into tm-dev

parents 0cb62fa9 f173defe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4291,7 +4291,7 @@ public class UserManagerService extends IUserManager.Stub {
        for (int i = 0; i < userSize; i++) {
            final UserData user = mUsers.valueAt(i);
            if (DBG) Slog.d(LOG_TAG, i + ":" + user.info.toFullString());
            if (user.info.preCreated && user.info.userType.equals(userType)) {
            if (user.info.preCreated && !user.info.partial && user.info.userType.equals(userType)) {
                if (!user.info.isInitialized()) {
                    Slog.w(LOG_TAG, "found pre-created user of type " + userType
                            + ", but it's not initialized yet: " + user.info.toFullString());