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

This commit is contained in:
Wen ZHANG
2015-04-17 16:41:25 +00:00
committed by Android (Google) Code Review

View File

@@ -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);