Don't use setUnlockedDeviceRequired() on the backup key
as importing it with Android 12 GSI fails. This key is only used to restore old backups anyway and the new one doesn't use this restriction.
This commit is contained in:
parent
579919d5e7
commit
75d4c7d05c
1 changed files with 3 additions and 1 deletions
|
@ -100,7 +100,9 @@ internal class KeyManagerImpl(
|
|||
.setEncryptionPaddings(ENCRYPTION_PADDING_NONE)
|
||||
.setRandomizedEncryptionRequired(true)
|
||||
// unlocking is required only for decryption, so when restoring from backup
|
||||
builder.setUnlockedDeviceRequired(true)
|
||||
// FIXME disabled for Android 12 GSI as it crashes when importing the key
|
||||
// KeyStoreException: Failed to import secret key.
|
||||
// builder.setUnlockedDeviceRequired(true)
|
||||
return builder.build()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue