Merge "Do not remove the k_k until all users are unlocked"
This commit is contained in:
@@ -224,6 +224,10 @@ class RebootEscrowManager {
|
|||||||
for (UserInfo user : rebootEscrowUsers) {
|
for (UserInfo user : rebootEscrowUsers) {
|
||||||
allUsersUnlocked &= restoreRebootEscrowForUser(user.id, escrowKey, kk);
|
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);
|
onEscrowRestoreComplete(allUsersUnlocked);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -273,9 +277,6 @@ class RebootEscrowManager {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Slog.w(TAG, "Could not load reboot escrow data for user " + userId, e);
|
Slog.w(TAG, "Could not load reboot escrow data for user " + userId, e);
|
||||||
return false;
|
return false;
|
||||||
} finally {
|
|
||||||
// Clear the old key in keystore. A new key will be generated by new RoR requests.
|
|
||||||
mKeyStoreManager.clearKeyStoreEncryptionKey();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user