Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android API for on-screen fingerprint

Some new android devices come with on-screen fingerprint sensors
Here are bunch of them: https://www.smartprix.com/bytes/7-best-phones-with-under-display-fingerprint-sensor/

During fingerprint authentication the icon appears on screen, where user can put his finger on. Like this one:
enter image description here

This cause some troubles with overlapping screen contents with this icon (like pin-keyboard)

Is there some way in android's API to define:

  1. If device has on-screen fingerprint
  2. Then, if has, it's coordinates on the screen
like image 870
repitch Avatar asked Feb 04 '19 11:02

repitch


People also ask

How do I set my fingerprint sensor on my screen?

Setting up your fingerprintTap the Settings icon on your Android device and tap Lock screen and security. Scroll down and tap Screen lock type. Add your fingerprint — follow the instructions on your screen and go through the wizard. You'll be prompted to lift and rest your finger on the home button several times.

What is API in biometrics?

The biometric API provides three basic functions: Match biometric information on-card. Enroll users off-card and transfer their information on-card. Verify the user in a sequence of off-card and on-card interactions.


1 Answers

No, sorry, in the current Android SDK, there is nothing for either of these.

This cause some troubles with overlapping screen contents with this icon (like pin-keyboard)

Since fingerprints should not be collected except when you specifically request it (e.g., via BiometricPrompt), and since that has its own UI, my hope is that you should not run into any situation where the fingerprint sensor interferes with existing UI.

like image 70
CommonsWare Avatar answered Oct 19 '22 05:10

CommonsWare