Questions tagged [android-fingerprint-api]

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

318 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
  • 13,244
  • 9
  • 62
  • 114
24
votes
0 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
  • 10,214
  • 14
  • 74
  • 180
24
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
  • 4,730
  • 2
  • 20
  • 35
21
votes
3 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…
21
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
  • 4,730
  • 2
  • 20
  • 35
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
  • 10,577
  • 5
  • 57
  • 111
16
votes
1 answer

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,627
  • 2
  • 18
  • 35
16
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
  • 791
  • 1
  • 7
  • 18
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,452
  • 5
  • 26
  • 47
14
votes
4 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
  • 4,730
  • 2
  • 20
  • 35
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…
13
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
  • 13,244
  • 9
  • 62
  • 114
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…
12
votes
1 answer

Mock FingerprintManager in Android tests

Is there a way to simulate or mock FingerprintManager.authenticate()? I want to write instrumented tests for my fingerprint authenticator. I'm fine if there's a solution with a restriction that the tests can be run either on an emulator or a device.…
Juuso Ohtonen
  • 6,643
  • 7
  • 54
  • 89
1
2 3
21 22