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

Commit 50a47e61 authored by Nikita Ioffe's avatar Nikita Ioffe Committed by android-build-merger
Browse files

Merge "Always ask vold to unlock user" am: 62cec108

am: e30f164d

Change-Id: Ib881525f294fcb853f08d019291c03642588e075
parents 5e4beca1 e30f164d
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2803,12 +2803,6 @@ class StorageManagerService extends IStorageManager.Stub
        enforcePermission(android.Manifest.permission.STORAGE_INTERNAL);

        if (StorageManager.isFileEncryptedNativeOrEmulated()) {
            // When a user has secure lock screen, require secret to actually unlock.
            // This check is mostly in place for emulation mode.
            if (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));