Loading services/core/java/com/android/server/StorageManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -3297,6 +3297,12 @@ class StorageManagerService extends IStorageManager.Stub enforcePermission(android.Manifest.permission.STORAGE_INTERNAL); if (isFsEncrypted) { // When a user has secure lock screen, require secret to actually unlock. // This check is mostly in place for emulation mode. if (StorageManager.isFileEncryptedEmulatedOnly() && mLockPatternUtils.isSecure(userId) && ArrayUtils.isEmpty(secret)) { throw new IllegalStateException("Secret required to unlock secure user " + userId); } try { mVold.unlockUserKey(userId, serialNumber, encodeBytes(token), encodeBytes(secret)); Loading Loading
services/core/java/com/android/server/StorageManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -3297,6 +3297,12 @@ class StorageManagerService extends IStorageManager.Stub enforcePermission(android.Manifest.permission.STORAGE_INTERNAL); if (isFsEncrypted) { // When a user has secure lock screen, require secret to actually unlock. // This check is mostly in place for emulation mode. if (StorageManager.isFileEncryptedEmulatedOnly() && mLockPatternUtils.isSecure(userId) && ArrayUtils.isEmpty(secret)) { throw new IllegalStateException("Secret required to unlock secure user " + userId); } try { mVold.unlockUserKey(userId, serialNumber, encodeBytes(token), encodeBytes(secret)); Loading