Questions tagged [android-biometric]

128 questions
3
votes
1 answer

BiometricManager on Android 9

Android 9/Android P (API 28) is said to support facial recognition via BiometricPrompt. All of the tutorials that I've read use BiometricManager for detecting Facial recognition support - but this class wasn't added until API 29 (Android 10/Android…
3
votes
1 answer

Failed to generate key pair on Samsung S20, S20+ and S20 Ultra for biometric auth

We have an issue with Samsung S20, S20+ and S20 Ultra devices when trying to generate a keypair upon enrolling in fingerprint auth in my app. We are only seeing this issue on the new Samsung S20 family with the Exynos chipset (International model)…
3
votes
3 answers

Android biometric authentication invalid variables in AuthenticationCallback when using device credential

I am using androidx.biometric:biometric:1.0.1 everything works fine but when I have a device without a biometric sensor (or when the user didn't set his fingerprint or etc) and I try to use DeviceCredentials after doing authentication my function…
3
votes
1 answer

BiometricPrompt: Why should we check KeyguardManager.isDeviceSecure() before enabling setDeviceCredentialAllowed?

The documentation of BiometricPrompt.PromptInfo's setDeviceCredentialAllowed method states: [...] Developers should first check KeyguardManager.isDeviceSecure() before enabling this. If the device is not secure,…
3
votes
5 answers

How to check what biometrics are supported on API level 28+?

I want to check what biometrics are supported on Android devices with API level 28+ to be able to to show relevant text to the users. E.g. "Log in with Fingerprint", "Login with Face", "Login with Iris", "Enable Fingerprint login", "Enable Face…
Mario Kutlev
  • 4,897
  • 7
  • 44
  • 62
3
votes
0 answers

Attempt to invoke virtual method 'java.lang.String com.android.server.fingerprint.ClientMonitor.getOwnerString()' on a null object reference

Getting this exception in Crashlytics reports last few weeks. Android P only. Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'java.lang.String com.android.server.fingerprint.ClientMonitor.getOwnerString()' on a null…
2
votes
0 answers

React Native Keychain - Cannot read property 'getSupportedBiometryType' of null

I have followed the installation steps, but when I start the application on android I get an error saying: "Cannot read property 'getSupportedBiometryType' of null, please check the last image. Run yarn add react-native-keychain - Only for React…
2
votes
0 answers

How to pass through biometric in espresso ui test?

I have a test scenario that I have to pass through from biometric fingerprint to continue the scenario. How can I do this and passthrough from biometric?
2
votes
0 answers

Encrypt and Decrypt Operation with one Authentication with Biometric

I have implemented methods to encrypt and decrypt values using the Biometric API of android. But I need to read a value and later write another, and I don't want to make the user to introduce the fingerprint more than one time. I don't know how to…
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
2
votes
0 answers

Ask for only either Face ID or Fingerprint Id in Android app

I want an implementation such that if both Face ID and fingerprint ID is enabled in user's device - my app will ask for authentication with Face ID, if only Face ID is enabled in user's device - my app will ask for authentication with Face ID, and…
2
votes
0 answers

Face unlock option not showing

Okay so my application is to be used on a device that does not have a fingerprint sensor but has a face unlock option. I tested the following code with my phone (Xiaomi Redmi note 8 pro) which has both fingerprint and face unlock options. the…
2
votes
0 answers

Android - How to show device unlock screen?

How to show lock screen with device lock options. Here I have enrolled Pattern and Finger for unlocking device. So that Google pay showing above screen on launch. How Do I show same device lock screen?
2
votes
0 answers

BiometricPrompt returns false error code 11 (ERROR_NO_BIOMETRICS) in some Samsung devices

BiometricPrompt.authenticate() function returns error code 11 (ERROR_NO_BIOMETRICS) in some Samsung devices like A20s (android 9) meanwhile user has enrolled fingerprint and also canAuthenticate(Authenticators.BIOMETRIC_WEAK) returns 0…
2
votes
1 answer

BiometricPrompt FACE ID authentication is not working in some device

I have implemented biometrics authentication but it is working fine in my Samsung(Android 10) device but not working in one plush and MI device. In Mi(Android 10) and one plush(Android 10) device, it shows only fingerprint prompt but not showing the…
2
votes
0 answers

How to Implement Custom Fingerprint UI Using BiometricPrompt

We can provide custom UI in FingerprintManager Api but that is deprecated in API level 28. Now android has provided BiometricPrompt API and it's is providing default fingerprint dialog. I have gone through many articles, blogs and tutorial but…
1 2
3
8 9