Skip to content

Commit ab39f6f

Browse files
committed
Loosen Biometrics invalidation
1 parent 48ae1ee commit ab39f6f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

common/src/androidMain/kotlin/com/blockstream/common/utils/AndroidKeystore.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ import com.blockstream.common.crypto.GreenKeystore
1212
import com.blockstream.common.crypto.KeystoreInvalidatedException
1313
import com.blockstream.common.crypto.PlatformCipher
1414
import com.blockstream.common.data.EncryptedData
15-
import java.security.*
16-
import javax.crypto.*
15+
import java.security.KeyStore
16+
import java.security.KeyStoreException
17+
import javax.crypto.BadPaddingException
18+
import javax.crypto.Cipher
19+
import javax.crypto.KeyGenerator
20+
import javax.crypto.SecretKey
1721
import javax.crypto.spec.IvParameterSpec
1822

1923
class AndroidKeystore(val context: Context) : GreenKeystore {
@@ -104,8 +108,8 @@ class AndroidKeystore(val context: Context) : GreenKeystore {
104108
@Suppress("DEPRECATION")
105109
builder.setUserAuthenticationValidityDurationSeconds(-1)
106110
}
107-
108-
builder.setInvalidatedByBiometricEnrollment(true)
111+
112+
builder.setInvalidatedByBiometricEnrollment(false)
109113
}
110114

111115
keyGenerator.init(builder.build())

0 commit comments

Comments
 (0)