For questions about Android's BiometricPrompt API feature used for biometric authentication.
Questions tagged [android-biometric-prompt]
211 questions
2
votes
1 answer
Determine what type of biometric hardware is available Android
I'm setting up a biometric login using kotlin. I have it working but I would like to switch out which icon is displayed based on the available hardware, ie. show a retinal scanner icon for retinal scanning, fingerprint for fingerprint scanning…

Sean Calkins
- 312
- 2
- 11
2
votes
0 answers
Problem opening BiometricPrompt android studio
I have a code where I call biometrics for password validation, and it ends up working normally, I always have the expected results when I request, but it ends up generating an error on my console that I would like you to solve, but I don't find it…
2
votes
1 answer
check if the user changed biometric/fingerprint in Android
I am looking for a way to get notify if the user changed his/her fingerprint.
I saw this answer here but it wasn't clear how to use "setAllowedAuthenticators" in this scenario.
I would appreciate it if someone could help.
[update] the updated…

Atheer Abdullatif
- 182
- 1
- 15
2
votes
0 answers
Authentication with Pin or Pattern if no Fingerprint found Android
I am using biometric Authentication method to unlock my app. But if user have disabled fingerprint or if user is using the device which does not support fingerprint, How can I use pin or pattern authentication for them.
I was using keyguardmanager…

Zeeshan Shakil
- 157
- 2
- 13
2
votes
2 answers
Save sensitive data on Android with EncryptedSharedPreferences and Biometric
I want to store sensitive information like a login PIN. Today with EncryptedSharedPreferences (ESP) one can argue that's enough. But let's say I want to offer the possibility to use Biometrics. This google sample show us how to use…

GuilhE
- 11,591
- 16
- 75
- 116
2
votes
1 answer
BiometricPromptCompat: Failed to check device credential. Parent handler not found
I have implemented finger-print Biometric auth in my project. I have set a fallback auth in case user wants to use pattern/pin/passcode by clicking on "Use Password" button. I have done this by using setDeviceCredentialAllowed(true) which works for…

Amey Bhandarkar
- 511
- 2
- 5
- 14
2
votes
1 answer
BiometricPrompt: BiometricFragment and Activity memory leak
Hello I found 2 memory leaks that I'd like to resolve.
After receiving the callback onAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result), I want to setResult() and call finish() on ActivityB to go back to ActivityA.
Although this…

Moises Martinez
- 31
- 6
2
votes
1 answer
BiometricManager to determine Face recognition result vs Fingerprint
I have started migrating to BiometricManager part of Android 29.
We have a requirement to display a different icon for face or Fingerprint depending upon device support. Even the following code returns true on Pixel 4 though Face recognition is…

Bulu
- 1,351
- 3
- 16
- 37
2
votes
1 answer
How to handle the biometric prompt after lockout error?
i'm using the biometric prompt in order to authenticate clients on my app. The problem i'm getting is this: after i use a wrong fingerprint for 5 times, i get the ERR_LOCKOUT that locks the API for 30 seconds. After that, i get the lockout error for…

AndyShoes
- 33
- 2
- 10
2
votes
4 answers
BiometricPrompt Executor and/or callback was null
I'm using BiometricPrompt from androidx.biometric:biometric:1.0.0-beta02 for the authenticate process.
But i face very strange problem.
First time i call biometricsPromt.authenticate() everything works fine, the library shows me the screen depending…

Kostadin Georgiev
- 866
- 1
- 9
- 23
2
votes
0 answers
KeyGenSpec.Builder.setUserAuthenticationRequired but not enforced
I am trying to encrypt something with a key generated in the TEE environment.
The key has the following properties:
I set the mUserAuthenticationRequired to true.
However, when I do:
cipher.init(Cipher.ENCRYPT_MODE, secretKey)
…

Lena Bru
- 13,521
- 11
- 61
- 126
2
votes
1 answer
How to check biometric hardware is available using BiometricManager or BiometricPrompt?
I am implementing Biometric authentication using BiometricPrompt class.
how to check is hardware is available or not before calling BiometricPrompt#authenticate method?
how to check has enrolled biometric?
How to call…

AvisSiva
- 707
- 1
- 9
- 17
2
votes
4 answers
Use facial recognition for android to authenticate multiple users
I am looking to create app to authenticate users using facial recognition.
I checked Android provides Biometric prompt to authenticate the user but I am not sure if This API can be used for my use case. Also, if I can use this API, how many facial…

Kanika
- 61
- 5
2
votes
0 answers
Throws user is not authenticated to access the Keys in KeyStore in Samsung S10
I am using Biometric API to access my Keystore.
To access the keystore, I have enabled setUserAuthenticationRequired to true.
When accessing the Keystore, I will call the biometric api and authenticate the user. But in samsung s10, Face ID…

Happy
- 1,031
- 10
- 26
1
vote
1 answer
Expo Local Authentication on Android skipping Face Authentication
I am trying to implement biometric authentication in a react native app using expo local authentication.
Everything seems to works on iPhone and Android EXCEPT that expo's authenticateAsync function skips Face Authentication on Android.
Among my…

szk
- 11
- 1