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
7
votes
1 answer
Android - how to get Unique key from Finger-Print Authentication?
I'm want to encrypt and decrypt files from SD-card using AES. In order to do it we always need a seed (usually a string which is inserted by user as a password):
public static byte[] generateKey(String password) throws Exception{
byte[] keyStart…

Jalal Aghazadeh
- 164
- 4
- 18
7
votes
1 answer
"FINGERPRINT_ERROR_CANCELED" error in custom view android
i am trying to implement finger print to unlock or remove the locked view by finger print authentication using existing enrolled finger prints by sensor to show contents further but fingerprint authentication working fine in normal activity but not…

Muhammad Natiq
- 213
- 5
- 14
7
votes
4 answers
get android release Certificate Fingerprints
I am using Android Studio on Mac El Capitan. How do I get the release Certificate Fingerprints? I need it for Firebase. I am not sure exactly how to get it.

Katedral Pillon
- 14,534
- 25
- 99
- 199
7
votes
2 answers
Android Fingerprint - Crypto primitive not backed by AndroidKeyStore provider
I'm trying to implement android Fingerprint into a sample application.
The used cipher is not recogniced as valid - but I dont know why, since based on the android docs, it should be supported.
The cipher is built on:
return…

Christof Buechi
- 163
- 1
- 12
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.

Cosmic Dev
- 522
- 6
- 20
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…

user2234
- 1,282
- 1
- 21
- 44
6
votes
3 answers
How to check if device has fingerprint feature and then use it in Android
I am using this permission
to check if device has fingerprint or not. Thats how I check it in kotlin
val fingerSensorManager =…

Zohab Ali
- 8,426
- 4
- 55
- 63
6
votes
1 answer
Fingerprint Operation Cancelled while using in app authentication
I'm using FingerprintManager in my app to authenticate the user everytime he returns to the app after screen was unlocked. The first time it works fine, the next time it shows fingerprint operation cancelled.
Here's my code:
public class…

Varun Joshi
- 97
- 1
- 6
6
votes
1 answer
Key permanently invalidated Exception after adding/removing fingerprint
When user adds new fingerprint or removes any existing fingerprint and then tries to launch the application it throws KeyPermanentlyInvalidatedException
Here's my fingerprint code:
public Boolean auth(FingerprintManager.AuthenticationCallback…

musica
- 1,373
- 3
- 15
- 34
6
votes
2 answers
How to get key from keystore on successful fingerprint auth
I'm creating an app where the user has two options to unlock their app, one is using a pin and the other is using a fingerprint. In order to use the fingerprint they must first set up a pin because this pin is the decryption key to get their…

MichaelStoddart
- 5,571
- 4
- 27
- 49
6
votes
0 answers
Android: Detect whether device can be unlocked with fingerprint
I have an app that uses fingerprint-authentication. As an extra security-measure I'd like to detect whether the fingerprint is used to unlock the device. I tried retrieving the lock-mode in the following way:
long mode =…

Wirling
- 4,810
- 3
- 48
- 78
6
votes
1 answer
Retrieving a users credentials (username & password) via a android keystore with fingerprint
I am building an android app where I need to authenticate the user via an username and password (on the backed) using the Fingerprint api.
Here's my understanding what I need to do in the simplest terms.
On login after the user has entered a…

FlashAsh80
- 1,357
- 1
- 16
- 27
6
votes
1 answer
How to programatically tell when FINGERPRINT_ERROR_LOCKOUT has expired in the Android FIngerprintManager?
When my app hits the "Too Many Attempts...", authentication error 0x7, FINGERPRINT_ERROR_LOCKOUT, how can I tell without calling FingerprintManager.authenticate() in a loop and getting the error that the lockout condition is cleared?

neuman8
- 324
- 4
- 15
6
votes
4 answers
Marshmallow Fingerprint Scanner Hardware Presence
I am looking to get started with the Marshmallow Fingerprint Authentication API. I understand that to ask for permission, I must use the following method:
ContextCompat.checkSelfPermission(getContext(), Manifest.permission.USE_FINGERPRINT);
And I…

Bryan
- 14,756
- 10
- 70
- 125
5
votes
2 answers
How to detect fingerprint hardware in android 11
How to detect that the phone has fingerprint hardware or not. I want a code that detects the fingerprint hardware.
I used this code but this code is showing an error on "isHardwareDetected()" this method.
if (Build.VERSION.SDK_INT >=…

Ghayas
- 1,266
- 10
- 17