Questions regarding the use of the Fingerprint Authentication API, introduced in Android 6.0 Marshmallow (API level 23).
Questions tagged [android-fingerprint-api]
323 questions
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,…

Florian Walther
- 6,237
- 5
- 46
- 104
3
votes
1 answer
Unable to use fingerprint auth for overlay window attached in service
I have functionality in my application in which I am showing the overlay screen and I want to add fingerprint in that view,
I tried adding but getting below error,
/system_process W/FingerprintService: Rejecting com.package.myapp ; not in…

Amin Pinjari
- 2,129
- 3
- 25
- 53
3
votes
0 answers
How to test fingerprint on emulator in ui tests
In ui test I run:
InstrumentationRegistry
.getInstrumentation()
.uiAutomation
.executeShellCommand("-e emu finger touch 45146572")//or"adb -e emu finger touch 45146572"
and then I have got…

Adam Miśtal
- 715
- 4
- 15
3
votes
1 answer
Fingerprint BiometricPrompt on android P from a View
I am using FingerprintManager to authenticate my app with fingerprint.
I have and android View with the fingerprint ui and when the FingerprintManager.authenticate callbacks are called I handle the callbacks in the view, e.g change fingerprint icon,…

BennyP
- 1,737
- 1
- 18
- 24
3
votes
2 answers
Memory Leak, but how can I pass a different context than the one of the activity to solve the Leak?
I have the following leak detected by LeakCanary
where it appears that:
GC ROOT android.hardware.fingerprint.FingerprintManager$1.this$0 (anonymous subclass of android.hardware.fingerprint.IFingerprintServiceReceiver$Stub)
references…

Drocchio
- 383
- 4
- 21
3
votes
1 answer
How to know which finger is scanned for bio-metric?
My requirement is to scan the finger and based on the finger I've to navigate user to the particular page in android
Explanation
While registering user will give different fingerprints for different functionalities
Ex:
For navigating to login page…

Bahu
- 1,516
- 2
- 28
- 49
3
votes
1 answer
React Native Fingerprint capture
I am working on a React-Native web-based application and I want to create a new style of authentication.
here what I hope to do: -
I want to scan the user Fingerprint and save it to my database, then instead of giving me username and password.…

Ahmed Shaltout
- 143
- 1
- 8
3
votes
2 answers
BiometricPrompt faceunlock not works
I have tried by setup faceunlock on Pixel 2 device,but BiometricPrompt doesnot shows faceunlock dialog,but always shows same fingerprint dialog.
Also BiometricPrompt authenticate method explains,it is only for fingerprint. Still BiometricPrompt not…

Ramprasad
- 7,981
- 20
- 74
- 135
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…

toxa_xa
- 619
- 6
- 8
3
votes
3 answers
Continuously listen for fingerprints on android device in background
I am developing a fingerprint gesture application which should work in the background and continuously listen for fingerprint input from user to perform desired actions. So far, I have tried to use IntentService to make fingerprint scanner work in…

apk009
- 31
- 2
3
votes
1 answer
Fingerprint reader espresso test
I am trying to make espresso test for fingerprint reading. It is possible for emulator test with such
Runtime.getRuntime().exec("adb -e emu finger touch 1");
However this same code is not working on real devices.
What is the way to do fingerprint…

bkm
- 225
- 2
- 4
- 14
3
votes
0 answers
java.lang.VerifyError on finger print dialog API 19, Android 4.4
I am facing with issue when my flow supposed to open the fingerprint dialog.
However I am aware that API 19 doesn't support Fingerprint authentication tho my FingerPrintDialog class checks the current version and it supposed to handle it there.
I…

bkm
- 225
- 2
- 4
- 14
3
votes
0 answers
How to use fingerprint API in web pages(HTML)?
Everyone now knows, there is a Fingerprint API in Android API 23 onwards.
Which can do authentication through fingerprints, when we touch the sensor, it gives fingerprint data to the requiring app, and we can easily authenticate by matching the…

Ravi
- 372
- 1
- 7
- 24
3
votes
0 answers
Using Android Fingerprint API to log in user
I have an app where the user enters their username and password to log in, this is then passed to our server, verified and then we receive a validation response, straight forward and simple.
I am now looking at implementing the fingerprint API to…

DJ-DOO
- 4,545
- 15
- 58
- 98
3
votes
1 answer
Android fingerprint api - FingerprintManager.AuthenticationCallback not called after SCREEN_ON intent
I'm writing an app that authenticates the user using the native Android Fingerprint API (on Android 6.0 and up).
In one scenario - the device receives a Gcm notification and if the screen is off but the phone is not locked - the app "wakes" the…

FunkSoulBrother
- 2,057
- 18
- 27