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

Commit 2c1dfa29 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fix deadlock in removing a user" into jb-mr1-dev

parents 3451dc90 0cd867c8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -530,6 +530,10 @@ public class UserManagerService extends IUserManager.Stub {
        synchronized (mUsers) {
            result = removeUserLocked(userHandle);
        }

        // Cleanup package manager settings
        mPm.cleanUpUser(userHandle);

        // Let other services shutdown any activity
        Intent addedIntent = new Intent(Intent.ACTION_USER_REMOVED);
        addedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userHandle);
@@ -562,8 +566,6 @@ public class UserManagerService extends IUserManager.Stub {
            return false;
        }

        mPm.cleanUpUser(userHandle);

        // Remove this user from the list
        mUsers.remove(userHandle);
        // Remove user file