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

Commit f4102446 authored by Paul Crowley's avatar Paul Crowley Committed by Android (Google) Code Review
Browse files

Merge "Continue to remove users when destroyUserKey fails." into nyc-dev

parents 09d83b03 91293794
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2196,7 +2196,13 @@ public class UserManagerService extends IUserManager.Stub {
    }

    private void removeUserState(final int userHandle) {
        try {
            mContext.getSystemService(StorageManager.class).destroyUserKey(userHandle);
        } catch (IllegalStateException e) {
            // This may be simply because the user was partially created.
            Slog.i(LOG_TAG,
                "Destroying key for user " + userHandle + " failed, continuing anyway", e);
        }
        // Cleanup package manager settings
        mPm.cleanUpUser(this, userHandle);