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

Commit e1b02f17 authored by Eric Biggers's avatar Eric Biggers Committed by Gerrit Code Review
Browse files

Merge "Use isCeStorageUnlocked() in AppDataRollbackHelper" into main

parents 28226eec ed4b0178
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }
}