Questions tagged [android-biometric-prompt]

For questions about Android's BiometricPrompt API feature used for biometric authentication.

Reference:

211 questions
8
votes
4 answers

BiometricPrompt hints are not localized

Issue We are changing the locale inside the app, everything works except the hints in the fingerprint dialog. Whatever language we set, we always have english hints: Touch the fingerprint sensor Not recognized etc... Environment Component used:…
8
votes
1 answer

BiometricPrompt: how to encrypt few strings?

I need to encrypt few strings using biometric authentication in my application. I am using this code: val promptInfo = BiometricPrompt.PromptInfo.Builder() .setTitle("Title") .setSubtitle("subtitle") …
BArtWell
  • 4,176
  • 10
  • 63
  • 106
8
votes
4 answers

How to check user's Bio-Metric Preference through Biometric api?

As we all know, from android 9.0, android introduced BiometricPrompt Api to provide standard authentication experience across growing range of biometric sensors (E.g Fingerprint,Face ID etc). Now with this new BiometricPrompt Api user can get…
7
votes
1 answer

setDeviceCredentialAllowed and ERROR_USER_CANCELED

I'm implementing biometrics and I would like to be able to fall back to using PIN if user doesn't want/have biometrics. The issue is that when the user selects "Use PIN", enters their pin, and authenticates two different callbacks get triggered: The…
alisonthemonster
  • 1,095
  • 1
  • 11
  • 28
7
votes
3 answers

How to display authentication error for in-display Bio-metric Prompt fingerprint. #Android

I'm implementing Bio metric Prompt API for authorising user using Fingerprint. I found that Bio-metric Prompt API display different UI based on device sensor type. Bio-metric API SDK call work independently to display respective UI based on sensor…
CoDe
  • 11,056
  • 14
  • 90
  • 197
7
votes
0 answers

How to write Espresso test for BiometricPrompt

I am new in espresso test and I wanted to write the Espresso test for BiometricPrompt which is Google provided API to authenticate the fingerprint.
6
votes
0 answers

Invalidate key by biometric enrollment with new androidx.BiometricPrompt

I am using the new androidx.BiometricPromt library to implement authentication with a fingerprint. I want to invalidate key if the user added new fingerprint or deleted one. I am creating key like this: fun getSecretKey(shouldCreate: Boolean): Key…
Axbor Axrorov
  • 2,720
  • 2
  • 17
  • 35
6
votes
1 answer

BiometricPrompt with DayNight Theme

DayNight Theme has four cases: Device - DARK mode, application - DARK mode Device - LIGHT mode, application - LIGHT mode Device - DARK mode, application - LIGHT mode Device - LIGHT mode, application - DARK mode First and second cases are normal.…
Akbar
  • 430
  • 4
  • 18
6
votes
1 answer

Add Custom layout to Biometric Prompt

Is there any way to add our own custom layout to biometric prompt as I have seen various similar threads but there seems to be no solution provided for it yet and fingerprintmanager is deprecated so i don't want to use that.
6
votes
1 answer

Android BiometricManager return BIOMETRIC_ERROR_NONE_ENROLLED for facial recognition

I am currently developing a Biometrics library for a project and can't seem to make facial recognition work. The BiometricManager works correctly for fingerprints in all devices i've tried, however it doesn't detect any enrolled face biometrics for…
Horkur
  • 91
  • 1
  • 3
6
votes
2 answers

The CryptoObject in BiometricPrompt.AuthenticationResult is always null

I am using biometric authentication dialog but my cryptoObject is always null. I have a fragment but I also tried directly from the activity. Here is my code, private Handler biometricPromptHandler = new Handler(); private Executor executor =…
6
votes
4 answers

How to distinguish between fingerprint and face id on Android?

I don't see anything related to being able to distinguish between different biometric authentications within the android.hardware.biometrics package. I have found the FingerprintManagerCompat that has the hasEnrolledFingerprints() methods but I…
grandouassou
  • 2,500
  • 3
  • 25
  • 60
6
votes
4 answers

How to set a fallback method if fingerprint does not work

I recently moved my project to AndroidX and while implementing fingerprint for the app I am using the Biometric for AndroidX. implementation 'androidx.biometric:biometric:1.0.0-alpha03' When a dialog is displayed to use fingerprint for…
5
votes
5 answers

BiometricPrompt with Jetpack Compose

BiometricPrompt requires either Fragment or FragmentActivity in its constructor. I cannot find out how to use BiometricPrompt from a Composable screen, not in the documentation, not in any tutorial. Has anyone in here dealt with the same problem? Or…
5
votes
1 answer

Detect device is secured with pin lock or fingerprint lock of face lock?

My application contains user authentication for login(includes pin/pattern, fingerprint unlock) which depends on device security. I am using Biometric manager to detect whether device has fingerprint support using BiometricManager and also checking…
1
2
3
14 15