You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all - Thanks for your excellent code regarding Biometric on Android, I did not find any examples
that are so extensive and are running "out of the box".
My point is not really an issue, but maybe you like to correct it.
When running your code on SDK 30 and choosing the option "Device credential" only
(so no checked "Strong biometric" and "Weak biometric" option) and using "Authenticate + Encrypt"
I get the error message "Authentication type must be strong to authenticate with crypto on API levels >= 30" that is caused
by line 76 of BiometricAuthenticatorApi30.kt:
private fun canAuthenticateWithCrypto(): Boolean {
if (getSecretKeyType() and KeyProperties.AUTH_BIOMETRIC_STRONG == 0) {
listener.onNewMessage(
"Authentication type must be strong to authenticate with crypto" +
" on API levels >= 30"
)
return false
}
return true
}
This assertion seems to be not correct, the docs say nothing about this:
When deactivating the function (or, for testing purposes, change "return false" to "return true" as well)
the program is running and gives an encrypted output.
Warm greetings
Michael
The text was updated successfully, but these errors were encountered:
First of all - Thanks for your excellent code regarding Biometric on Android, I did not find any examples
that are so extensive and are running "out of the box".
My point is not really an issue, but maybe you like to correct it.
When running your code on SDK 30 and choosing the option "Device credential" only
(so no checked "Strong biometric" and "Weak biometric" option) and using "Authenticate + Encrypt"
I get the error message "Authentication type must be strong to authenticate with crypto on API levels >= 30" that is caused
by line 76 of BiometricAuthenticatorApi30.kt:
android-playground/BiometricSample/app/src/main/java/com/husaynhakeem/biometricsample/biometric/BiometricAuthenticatorApi30.kt
Line 76 in 6f24287
This assertion seems to be not correct, the docs say nothing about this:
https://developer.android.com/training/sign-in/biometric-auth#java
When deactivating the function (or, for testing purposes, change "return false" to "return true" as well)
the program is running and gives an encrypted output.
Warm greetings
Michael
The text was updated successfully, but these errors were encountered: