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

am: 56385a796e

Change-Id: Ifc9e96958b43f29dd60aea801c3d8c586c651735
This commit is contained in:
Pavel Grafov
2017-08-09 10:29:03 +00:00
committed by android-build-merger

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(