Fixed
Status Update
Comments
ro...@miquido.com <ro...@miquido.com> #2
For Samsung devices having iris sensor like S8, if the user sets iris as his preferred biometric, it works well with current biometricPrompt.
But, the error code delivered from onAuthenticationError callback is very weird.
E.g., if the sensor is hard to detect user's iris since the face is so close, then the ERROR_HW_NOT_PRESENT is returned.
So, this issue needs to be resolved also. Since I'm thinking that Samsung iris meets the CDD requirements, at least, the application can use iris properly.
But, the error code delivered from onAuthenticationError callback is very weird.
E.g., if the sensor is hard to detect user's iris since the face is so close, then the ERROR_HW_NOT_PRESENT is returned.
So, this issue needs to be resolved also. Since I'm thinking that Samsung iris meets the CDD requirements, at least, the application can use iris properly.
cu...@google.com <cu...@google.com>
ap...@google.com <ap...@google.com> #3
shinkieun@ could you file a new bug for that? A bugreport (adb bugreport foo.zip) and repro steps will be needed
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