Merge "Mark profile password key as critical." into oc-dr1-dev

This commit is contained in:
TreeHugger Robot
2017-08-09 10:17:09 +00:00
committed by Android (Google) Code Review

View File

@@ -1235,6 +1235,7 @@ public class LockSettingsService extends ILockSettings.Stub {
.setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE) .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)
.setUserAuthenticationRequired(true) .setUserAuthenticationRequired(true)
.setUserAuthenticationValidityDurationSeconds(30) .setUserAuthenticationValidityDurationSeconds(30)
.setCriticalToDeviceEncryption(true)
.build()); .build());
// Key imported, obtain a reference to it. // Key imported, obtain a reference to it.
SecretKey keyStoreEncryptionKey = (SecretKey) keyStore.getKey( SecretKey keyStoreEncryptionKey = (SecretKey) keyStore.getKey(