Merge "DOn't save encryption settings when not encrypted" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
21c8a49306
@@ -1097,8 +1097,11 @@ public class LockPatternUtils {
|
||||
Log.w(TAG, "Only device owner may call setCredentialRequiredForDecrypt()");
|
||||
return;
|
||||
}
|
||||
Settings.Global.putInt(mContext.getContentResolver(),
|
||||
Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT, required ? 1 : 0);
|
||||
|
||||
if (isDeviceEncryptionEnabled()){
|
||||
Settings.Global.putInt(mContext.getContentResolver(),
|
||||
Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT, required ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isDoNotAskCredentialsOnBootSet() {
|
||||
|
||||
Reference in New Issue
Block a user