Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions android/src/main/java/com/comapeo/core/RootKeyStore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ class RootKeyStore(private val context: Context) {
// attacked by another app on the same device".
.setUserAuthenticationRequired(false)

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
builder.setUnlockedDeviceRequired(true)
}
// Not using setUnlockedDeviceRequired(true): generation fails
// on no-lock devices and disabling the lock later permanently
// invalidates the key — both are identity loss. See PR #57.

val generator = KeyGenerator.getInstance(
KeyProperties.KEY_ALGORITHM_AES,
Expand Down
Loading