Skip to content
Snippets Groups Projects
Commit ed4b0178 authored by Eric Biggers's avatar Eric Biggers
Browse files

Use isCeStorageUnlocked() in AppDataRollbackHelper

isUserKeyUnlocked() is being renamed to isCeStorageUnlocked() to make it
clear what it does (considering that there are many types of user keys).
Temporarily, the method exists under both names.  Change
AppDataRollbackHelper to use the new name.  No change in behavior.

Bug: 306204742
Flag: exempt, mechanical refactoring
Test: presubmit
Change-Id: Iab2ca2fdd968bd10dc6e67424d61b21ab66922ea
parent 04e59b17
No related branches found
No related tags found
No related merge requests found
......@@ -266,10 +266,10 @@ public class AppDataRollbackHelper {
}
/**
* @return {@code true} iff. {@code userId} is locked on an FBE device.
* @return {@code true} iff the credential-encrypted storage for {@code userId} is locked.
*/
@VisibleForTesting
public boolean isUserCredentialLocked(int userId) {
return StorageManager.isFileEncrypted() && !StorageManager.isUserKeyUnlocked(userId);
return StorageManager.isFileEncrypted() && !StorageManager.isCeStorageUnlocked(userId);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment