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
42
votes
1 answer

Android Fingerprint API Encryption and Decryption

I am using the Android M Fingerprint API to allow users to login to the application. To do this I would need to store the username and password on the device. Currently I have the login working, as well as the Fingerprint API, but the username and…
Bryan
  • 14,756
  • 10
  • 70
  • 125
29
votes
2 answers

How to identify if device has in-display Biometric fingerprint support?

I'm writing a application feature to authenticate user using Biometric fingerprint authentication API. And it worked as expected with combination of BiometricPrompt API. In general it display own UI dialog so it can be unified across Android…
CoDe
  • 11,056
  • 14
  • 90
  • 197
27
votes
2 answers

Disable Fingerprint Sensor - Android Emulator

How to disable Fingerprint sensor in Android Emulator? I could not find any option in settings window or config.ini file. By default, all the emulators above SDK 23 have fingerprint support. I would like to test my flow in above SDK 23 with no…
Ponsuyambu
  • 7,876
  • 5
  • 27
  • 41
26
votes
6 answers

Intent to launch fingerprint enrollment screen

How to launch finger print enrollment settings screen(Add fingerprint screen) from my app? After enrolling finger print, is there any way to navigate back to my application? (with startActivityForResult)
Ponsuyambu
  • 7,876
  • 5
  • 27
  • 41
24
votes
2 answers

Is there a way to use Android fingerprint API or iOS Touch ID in web browser?

For example, I have a web site with authentication. Is there any fingerprint API, that can be used from JavaScript, to login users? Mobile OSs like Android and iOS has such API. So at least mobile version of browsers, in theory, can provide such…
23
votes
3 answers

Why crypto object is needed for Android fingerprint authentication?

I have gone through the android finger print sample provided by Google. https://github.com/googlesamples/android-FingerprintDialog As I am new to security standards, I am unable to understand the following. Why we need to use Keystore, key,…
Ponsuyambu
  • 7,876
  • 5
  • 27
  • 41
18
votes
1 answer

Android KeyStoreException:

My app is using Android's keystore to encrypt some data after authenticating with a fingerprint. This seems to work on most devices but I have received error reports of OnePlus2 users with the exception android.security.KeyStoreException:…
Philipp
  • 11,549
  • 8
  • 66
  • 126
18
votes
1 answer

Android UI test Fingerprint with Espresso

I have an Android fingerprint implementation working and I was looking to add UI tests with Espresso. One problem I can't find a solution to is how to emulate the scanning of a finger. There is an adb command adb -e emu finger touch which should…
QuirijnGB
  • 811
  • 1
  • 9
  • 18
17
votes
2 answers

Android Fingerprints: hasEnrolledFingerprints triggers exception on some Samsungs

I'm seeing a lot of exceptions in our production app when enabling fingerprints coming from Android 6 users, which I cannot reproduce on any of my local Samsung devices. The stacktrace is: Message: SecurityException: Permission Denial:…
kos
  • 1,770
  • 2
  • 19
  • 41
15
votes
0 answers

Android P FingerprintManager.hasEnrolledFingerprints replacement

As of Android P (API 28) the FingerprintManager API was deprecated and Google suggests we should switch to BiometricPrompt API. However FingerprintManager has a method named hasEnrolledFingerprints that we're currently using to display a prompt to…
Cosmin
  • 2,840
  • 5
  • 32
  • 50
14
votes
2 answers

UserNotAuthenticatedException during FingerprintManager.authenticate()

I have an encrypted password stored in the Android KeyStore. I want to decrypt that password by authenticating the user using the fingerprint API. As far as I understand, I have to call the FingerprintManager.authenticate(CryptoObject cryptoObject)…
muetzenflo
  • 5,653
  • 4
  • 41
  • 82
14
votes
1 answer

Android KeyStoreException Unknown Error

I am trying to decrypt encrypted text after the user is authenticated by the Android M Fingerprint API. I have been mostly trying to follow the Android Security samples, and the examples provided in the KeyGenParameterSpec documentation. I have been…
Bryan
  • 14,756
  • 10
  • 70
  • 125
14
votes
1 answer

Why is `hasEnrolledFingerprints` giving error that it requires a permission only in my Fragment but not in the Activity in Google's Example?

I am trying to implement the Google's Fingerprint API in my app (in my Fragment specifically). Google has given an example but it's implemented inside an Activity here. My specific question is that the code below to check if there are enrolled…
13
votes
3 answers

How to Use Unsupported Exception for Lower Platform Version

I have a DialogFragment that handles login and fingerprint authentication for my application. This fragment uses two classes that are exclusive to API 23, KeyGenParameterSpec and KeyPermanentlyInvalidatedException. I had been under the impression…
12
votes
1 answer

Customize biometricPrompt

I have problem with customization biometricPrompt in android devices. I use only authorization with fingerprint, but some devices with android 9.0 (for example Samsung Galaxy S10+) for authorization use fingerprint if allowed but the same with…
1
2 3
21 22