Questions tagged [android-biometric]
128 questions
2
votes
1 answer
How to on/off authentication fingerprint or face recognition when used Biometric
I used Biometric to authentication finger print or face recognition. It working! But I want only use fingerprint or only use face recognition if my device is set to both.
Can I do it or not? and how I can do it if it can?
Here is my…

Hoa.Tran
- 935
- 10
- 26
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
1 answer
EncryptedSharedPreferences isUserAuthenticationRequired not working properly
I am using EncryptedSharedPreferences to store encrypted data.
val biometricManager = BiometricManager.from(this)
val hasFingerprint = biometricManager.canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS
val advanceSpec =…

Ismail Shaikh
- 482
- 4
- 13
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
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
Android Biometrics not navigating when using Device Credentials
I'm using Biometrics library to lock the app. Everything works fine and when I'm unlocking with fingerprint onAuthenticationSucceeded() get's called and device navigates from the lock screen. However if unlock with pattern the…

MakinTosH
- 623
- 7
- 12
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
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
3 answers
Is it possible to use Mobile's fingerprint scanner as biometric device for authentication at server?
These days, almost all the mobile being launched have fingerprint scanners inbuilt. We can definitely authenticate the user at phone level (apps like Google Pay use it ), but is it possible to use the Mobile's fingerprint scanner as a biometric…

Rohith Ravi Teja Kilaparthi
- 67
- 1
- 7
1
vote
0 answers
Disable biometry authentication on demand
I am trying to implement user-defined app locking mechanism with the help of BiometricManager. The app's config has a toggle which allows users to either enable or disable app lock. Once enabled, I want to use new biometric API. This part looks…

nKognito
- 6,297
- 17
- 77
- 138
1
vote
1 answer
Android BiometricPrompt: Face authentication is ignored when device credential is allowed
I integrate Biometric authentication using Fingerprint, Face, and device credentials (PIN/PASSCODE/PATTERN). But I got the issue with face authentication when using device credentials. it happens on some devices.
When I integrate Fingerprint, Face,…

Tuan
- 11
- 3
1
vote
1 answer
How do I use local auth and bar code scanner in the same flutter project?
I building a flutter app that scans bar codes and also uses biometric auth in it. The problem is for package local_auth
MainActivity.kt should be like
import io.flutter.embedding.android.FlutterFragmentActivity;
public class MainActivity extends…

MOBILES RECOVERY
- 25
- 1
- 6
1
vote
0 answers
BiometricManager.canAuthenticate(BIOMETRIC_WEAK) returns BIOMETRIC_ERROR_NONE_ENROLLED on release build on Samsung and OnePlus devices
We are dealing with an issue in biometric where Biometric is working fine on all devices with apk build. We have uploaded same build (app bundle) on play store for closed testing and noticed that Biometric is not working on some device manufactures.…

Mayur Gade
- 11
- 1
1
vote
0 answers
android.security.KeyStoreException: Key user not authenticated while using setUserAuthenticationRequired
Using KeyGenParameterSpec.Builder to generate key but it throws exception when setUserAuthenticationRequired(true) is set.
private Key getKey(String KEY_ALIAS) throws GeneralSecurityException, IOException {
KeyStore.SecretKeyEntry secretKeyEntry =…

Maihan Nijat
- 9,054
- 11
- 62
- 110
1
vote
1 answer
Deprecated method createConfirmDeviceCredentialIntent (CharSequence, CharSequence)
There is a method for creating intent for asking user to authenticate. It was prompting to authenticate with biometrics (if exists) or with PIN/Pattern/Password if no biometrics enrolled.
Now it is deprecated and suggests to build biometric prompt…

Evgeniy Mishustin
- 3,343
- 3
- 42
- 81