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

Commit fedd6316 authored by Wen ZHANG's avatar Wen ZHANG Committed by Android (Google) Code Review
Browse files

Merge "Set REQUIRE_PASSWORD_TO_DECRYPT to false when insecure screen lock is enabled"

parents fd25459a 95bbbdd0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -472,6 +472,8 @@ public class LockPatternUtils {
            updateEncryptionPassword(StorageManager.CRYPT_TYPE_DEFAULT, null);
        }

        setCredentialRequiredToDecrypt(false);

        getDevicePolicyManager().setActivePasswordState(
                DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, 0, 0, 0, 0, 0, 0, 0, userHandle);