Fixed
Status Update
Comments
ro...@miquido.com <ro...@miquido.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
cu...@google.com <cu...@google.com>
ap...@google.com <ap...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
Description
// key generation
val keyGenerator = KeyGenerator.getInstance("AES", "AndroidKeyStore")
keyGenerator.init(
KeyGenParameterSpec.Builder(alias, PURPOSE_ENCRYPT or PURPOSE_DECRYPT)
.setBlockModes(BLOCK_MODE_GCM)
.setEncryptionPaddings(ENCRYPTION_PADDING_NONE)
.setUserAuthenticationRequired(true)
.setUserAuthenticationValidityDurationSeconds(-1)
.build()
)
val secretKey = keyGenerator.generateKey()
// cipher initialization
val encryptCipher = Cipher.getInstance(CIPHER_TRANSFORMATION)
encryptCipher.init(Cipher.ENCRYPT_MODE, secretKey)
// biometry prompt invocation
val prompt = BiometricPrompt(activity, executor, listener)
prompt.authenticate(info, CryptoObject(encryptCipher))
BUILD INFO
- Device type: Samsung S10e (SM-G970F)
- OS version: Android 9
- Biometric library version: 1.0.1
- Device security configuration: only one fingerprint added
STEPS TO REPRODUCE
[Be as specific as possible please]
1. Try to authenticate with biometry prompt on Samsung S10e (SM-G970F)
EXPECTED RESULTS
Biometry prompt is shown
OBSERVED RESULTS
Biometry prompt not shown
NUMBER OF TIMES YOU WERE ABLE TO REPRODUCE: 10/10