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

Commit 4d20410b authored by Tianjie Xu's avatar Tianjie Xu Committed by Gerrit Code Review
Browse files

Merge "Do not remove the k_k until all users are unlocked"

parents 2a24bb67 4ec033ca
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -224,6 +224,10 @@ class RebootEscrowManager {
        for (UserInfo user : rebootEscrowUsers) {
            allUsersUnlocked &= restoreRebootEscrowForUser(user.id, escrowKey, kk);
        }

        // Clear the old key in keystore. A new key will be generated by new RoR requests.
        mKeyStoreManager.clearKeyStoreEncryptionKey();

        onEscrowRestoreComplete(allUsersUnlocked);
    }

@@ -273,9 +277,6 @@ class RebootEscrowManager {
        } catch (IOException e) {
            Slog.w(TAG, "Could not load reboot escrow data for user " + userId, e);
            return false;
        } finally {
            // Clear the old key in keystore. A new key will be generated by new RoR requests.
            mKeyStoreManager.clearKeyStoreEncryptionKey();
        }
    }