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

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

Merge "Move key eviction past system services user cleanup." into oc-mr1-dev

parents 76136dcf 0502a4ce
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -671,12 +671,6 @@ final class UserController {
        }

        if (stopped) {
            // Evict the user's credential encryption key
            try {
                getStorageManager().lockUserKey(userId);
            } catch (RemoteException re) {
                throw re.rethrowAsRuntimeException();
            }
            mInjector.systemServiceManagerCleanupUser(userId);
            synchronized (mLock) {
                mInjector.getActivityStackSupervisor().removeUserLocked(userId);
@@ -685,6 +679,12 @@ final class UserController {
            if (getUserInfo(userId).isEphemeral()) {
                mInjector.getUserManager().removeUser(userId);
            }
            // Evict the user's credential encryption key.
            try {
                getStorageManager().lockUserKey(userId);
            } catch (RemoteException re) {
                throw re.rethrowAsRuntimeException();
            }
        }
    }