Questions tagged [android-fingerprint-api]

Questions regarding the use of the Fingerprint Authentication API, introduced in Android 6.0 Marshmallow (API level 23).

323 questions
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…
5
votes
0 answers

One Plus devices biometric prompt is dismissed after first failed

I am using BiometricPrompt on my app. When I am trying to use on OnePlus devices and validate the fingerprint with another finger that is not enrolled on the OS, it will trigger the onAuthenticationFailed() callback and the biometricPrompt will be…
5
votes
1 answer

Biometric prompt not displayed on Android 6

I am trying to use BiometricPrompt to use fingerprint sensor for authentication. My minimum supported sdk is 23 (Android M). It works on all android version I tested except for marshmallow. In marshmallow when I try to use authenticate method on…
5
votes
3 answers

How to use Biometric Prompt API in versions lower than Android 9.0

I am trying to implement Biometric prompt API to authenticate user using fingerprint verification. I am successfully able to integrate Biometric prompt and it is working on andorid 9.0. But as the documentation suggests Biometric api is also…
karan
  • 8,637
  • 3
  • 41
  • 78
5
votes
0 answers

KeyPermanentlyInvalidatedException is not working

I used KeyPermanentlyInvalidatedException to detect a new fingerprint is added. But it doesn't throw KeyPermanentlyInvalidatedException. I tried these step: List item Create key pair Init Signature from private key Add new fingerprint from phone's…
hoc nguyen
  • 73
  • 7
5
votes
1 answer

Fingerprint Unique ID

I'm developing an app, that requests user to login (email/password) before being able to proceed to the rest of the app. I implemented fingerprint scanning and the code correctly validates that the finger print is one of the ones enrolled on the…
Pmsc
  • 318
  • 1
  • 4
  • 12
5
votes
0 answers

On Huawei Android devices with a fingerprint scanner createConfirmDeviceCredentialIntent() does not allow fingerprint unlock

When using KeyguardManager.createConfirmDeviceCredentialIntent() on Huawei device which have a fingerprint scanner (eg. P9), the screen only works with PIN/Password but does not allow unlock with the fingerprint scanner. On most other brands that…
5
votes
1 answer

Android fingerprint sensor cancel error if grabbed by another app

I'm using FingerprintManager in my app and usually all works fine. The main issue I have is that customers sometimes complain that the fingerprint operation is sometimes cancelled, what I can see in the logs as error 5 (Fingerprint operation…
5
votes
0 answers

Using Android Fingerprint API to check if a new fingerprint has been added

I am doing some testing of an application that uses android fingerprint authentication. This app only allows fingerprint authentication, but it is possible to add a new fingerprint using the lock screen pattern, and authenticate with the app using…
5
votes
4 answers

FingerprintManager.isHardwareDetected() throwing java.lang.SecurityException?

I have an App that offers the usage of fingerprints for authentication. Before asking if the user wants to enable it, I verify if it is available at all and it is done via: FingerprintManager fingerprintManager =…
4
votes
0 answers

Check if fingerprint scanner is on screen

Is there a way to check the place of the fingerprint scanner? Actually I just want to know if the fingerprint scanner is on the screen. I've tried to check the methods on the existing android fingerprint API but it seems that there's no method for…
Tenten Ponce
  • 2,436
  • 1
  • 13
  • 40
4
votes
1 answer

Failed to capture fingerprint of input files for task ':app:javaPreCompileProductionDebug'

I updated android-studio to 3.3 and gradle to 4.10.1. But before run my old application I got this error: org.gradle.api.UncheckedIOException: Failed to capture fingerprint of input files for task ':app:javaPreCompileProductionDebug' property…
4
votes
0 answers

Why "KeyStoreException: Unknown error" happenes on some devices

In my Android application, I first encrypt some text using a generated key and then try to decrypt it. It works correctly in most cases, but I get an error on one device (according to Crashlytics) and I can't reproduce this error. This is the code…
4
votes
3 answers

React Native fingerprint authentication for android and ios both

I have built an android app using fingerprint authentication in Android Studio. I need to build the same thing but using React Native for android and iOS. How to go for it?
Sid009
  • 421
  • 5
  • 16
4
votes
1 answer

Neither user nor current process has android.permission.USE_FINGERPRINT

I have an app that allows users to login using fingerprint authentication. The feature has been in production for a couple of months, but in the last day I started seeing many of these exceptions: java.lang.SecurityException: Must have…