Questions tagged [android-biometric-prompt]

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

Reference:

211 questions
1
vote
0 answers

Can a device have both Face and Finger authentication?

Trying to implement login option using bio metric authentication. Want to know, can a device have both FEATURE_FACE and FEATURE_FINGERPRINT. I could find only one device with FEATURE_FACE, Pixel 4. But it seems Finger print authentication is not…
Shahal
  • 1,008
  • 1
  • 11
  • 29
1
vote
0 answers

What is secretKeyName used by CryptographyManager?

I integrated Biometrics authentication follow this guideline (https://developer.android.com/codelabs/biometric-login#2). I have a question about the secretKeyName. private fun showBiometricPromptForEncryption() { val canAuthenticate =…
1
vote
0 answers

AEADBadTagException on cipher.doFinal

I integrated Biometrics authentication follow this guideline (https://developer.android.com/codelabs/biometric-login#2). The issue is I got this error java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at…
Pandarian Ld
  • 727
  • 3
  • 13
  • 25
1
vote
0 answers

Disable back button in full screen androidx.BiometricPrompt

I am using BiometricPrompt (androidx.biometric:biometric:1.2.0-alpha01) as an additional security measure in my app if the user configures to do so. But once this is enabled, I would like this to be non-cancellable (disable back button). For now, if…
Sunny Agarwal
  • 1,451
  • 4
  • 18
  • 36
1
vote
1 answer

Android Biometric API Issue

What I want to achieve: Provide options to login with different biometrics like FingerPrint, FaceId and Iris. I want to give option of using PIN, Password or Pattern incase any biometric sensor doesn't work. Problem: While user clicks on "Use…
1
vote
0 answers

Does AndroidX BiometricPrompt APIs identify new faces registered in device?

I am using AndroidX BiometricPrompt APIs to authenticate user to use my app using their registered fingerprint or face id. As fingerprint authentication can be used with crypto object and secret key is stored for this fingerprint in keystore. And…
1
vote
0 answers

Registering iris after encrypting with fingerprint throws android.security.KeyStoreException: Key user not authenticated

Using the AndroidX Biometric Prompt on a Samsung S9 (Android 10) works fine in when only fingerprints are registered on the device and we trigger biometrics to encrypt/decrypt a password. However android.security.KeyStoreException: Key user not…
1
vote
1 answer

Biometric not detected in Samsung galaxy M01 device with Android Q?

Following is my code to detect biometric functionality class MainActivity : AppCompatActivity() { private var executor: Executor? = null private var biometricPrompt: BiometricPrompt? = null private var promptInfo:…
1
vote
1 answer

List the enrolled biometrics (and types) in Android

Is there a method to determine, which types of biometrics the user has enrolled on the device? Use scenario: The button for biometric login should be shown with either face or fingerprint icon with the appropriate text. In this case it is sadly not…
stefita
  • 1,785
  • 2
  • 20
  • 35
1
vote
1 answer

Androidx.biometric with only device credentials installed does not call callback on devices with Android 9 and bellow

we implemented authentication (and signing) using the androidx support library. It works perfect on Device with Android 10 (also the DeviceCredentialUnlock) and with Biometrics (the code is little different, as we want to know if it was signed with…
Langohr
  • 217
  • 2
  • 10
1
vote
4 answers

BiometricPromptCompat: Disable Iris/Face recognition (only allow fingerprints)

I've got an app that uses BiometricPrompt to implement biometric based authentication. I've noted that some devices offer Iris/Face recognition as an option alongside fingerprint scan. I want my app to only allow fingerprint scanning. It it possible…
Jay Sidri
  • 6,271
  • 3
  • 43
  • 62
1
vote
0 answers

How to identify if user has entered invalid pin in device credentials page

I would like to show custom lock screen specific to app if the user has entered the wrong device credentials(PIN/Pattern/Password) 3 times. I have tried with AuthenticationFailed() using BiometricPrompt and onActivityResult using…
1
vote
0 answers

Android Biometrics API not working properly

I have an application where in order to open the app user needs to enter his fingerprint or use the PIN code option (which he had set up before in his phone) as provided in the Biometrics API. So when the user authenticates himself with his…
1
vote
0 answers

How to wait for biometricPrompt.authentication(promptInfo, cryptoObject) to complete authentication task in a function?

I am writing an Android sign function which takes in a byte[] plaintext & return byte[] signature. It uses the private of the Secure Element from Android phone to sign which requires Biometric authentication (biometricPrompt.authentication). I have…
1
vote
1 answer

BiometricPrompt Android: UnrecoverableKeyException on Samsung after software or security updates

Posting here for the first time, wish me luck :) We have developed a support of biometric authentication in our mobile app using BiometricPrompt API. We decided to go with CryptoObjects as it allows us to comply with regulations. After…