Loading core/java/com/android/internal/widget/LockPatternUtils.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -1097,9 +1097,12 @@ public class LockPatternUtils { Log.w(TAG, "Only device owner may call setCredentialRequiredForDecrypt()"); Log.w(TAG, "Only device owner may call setCredentialRequiredForDecrypt()"); return; return; } } if (isDeviceEncryptionEnabled()){ Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT, required ? 1 : 0); Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT, required ? 1 : 0); } } } private boolean isDoNotAskCredentialsOnBootSet() { private boolean isDoNotAskCredentialsOnBootSet() { return mDevicePolicyManager.getDoNotAskCredentialsOnBoot(); return mDevicePolicyManager.getDoNotAskCredentialsOnBoot(); Loading Loading
core/java/com/android/internal/widget/LockPatternUtils.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -1097,9 +1097,12 @@ public class LockPatternUtils { Log.w(TAG, "Only device owner may call setCredentialRequiredForDecrypt()"); Log.w(TAG, "Only device owner may call setCredentialRequiredForDecrypt()"); return; return; } } if (isDeviceEncryptionEnabled()){ Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT, required ? 1 : 0); Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT, required ? 1 : 0); } } } private boolean isDoNotAskCredentialsOnBootSet() { private boolean isDoNotAskCredentialsOnBootSet() { return mDevicePolicyManager.getDoNotAskCredentialsOnBoot(); return mDevicePolicyManager.getDoNotAskCredentialsOnBoot(); Loading