we are currently trying to sign data with biometrics, which we use the androidx.biometric library for.
The Problem is, if no Fingerprint ist installed but a face registered we cannot generate any keys.
With Fingerprint only or with the combination of fingerprint and face everything works perfect.
With only the face registered we get the following exception during key generation:
Caused by: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one biometric must be enrolled to create keys requiring user authentication for every use
Before we start the key generation we test the presence of biometric as following:
boolean isAvailable = biometricManager.canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS;
The Test-Device as a Samsung Galaxy S10 with Android 10.
Thank you for help and best regards
canAuthenticate
doesn't consider this when reporting its result I don't know. – Janettejaneva