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

Commit e45e45e3 authored by Geoffrey Borggaard's avatar Geoffrey Borggaard Committed by Android (Google) Code Review
Browse files

Hacks to fix lockdown

Change-Id: Icf715e84ac7f8bd12eabd01f35860c36a60a8caf
parent b47e6c77
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -547,6 +547,11 @@ public class UserManagerService extends IUserManager.Stub {
                UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY | UserInfo.FLAG_INITIALIZED);
        mUsers.put(0, primary);
        mNextSerialNumber = MIN_USER_ID;
        
        Bundle restrictions = new Bundle();
        initRestrictionsToDefaults(restrictions);
        mUserRestrictions.append(0, restrictions);
        
        updateUserIdsLocked();

        writeUserListLocked();
@@ -805,6 +810,9 @@ public class UserManagerService extends IUserManager.Stub {
                    userInfo.partial = false;
                    writeUserLocked(userInfo);
                    updateUserIdsLocked();
                    Bundle restrictions = new Bundle();
                    initRestrictionsToDefaults(restrictions);
                    mUserRestrictions.append(userId, restrictions);
                }
            }
            if (userInfo != null) {