4

for a project at work, I'm trying to get the status (working or defective) of a fingerprint sensor on android devices to see if it works properly.

I'm using the "isHardwareDetected" function in this android 6.0 API (APK 23).

Does anyone knows how the operating system gets this information about the fingerprint sensor propriety without involving the user?

i have a cell phone (Note 4) with working fingerprint sensor that gets false from isHardwareDetected and i cant explain why.

thanks, Maor.

2 Answers2

5

After a bit of investigating it seams that Samsung did not implement the Android Fingerprint API support for some of their devices, thus the FingerprintManager Class wont respond as intended. I suggest using the Samsung PASS SDK which can be found here : http://developer.samsung.com/galaxy/pass.

Related Links : Android M FingerprintManager.isHardwareDetected() returns false on a Samsung Galaxy S5

FingerPrint API isHardwareDetected always returns false

Community
  • 1
  • 1
Alex T
  • 163
  • 1
  • 9
  • Thanks very much. problem solved. Do you know about more Android devices with the same issue? – Maor Gershkovitch Apr 30 '17 at 10:03
  • From what I've tested and researched it seams that the issue is limited to S5 and Note4. But I can't say for sure if it these are the only devices with the problem. Here you can follow the latest release notes from the Samsung Developer page for updates : http://developer.samsung.com/release-note/view.do?v=R000000009 – Alex T May 02 '17 at 09:10
  • Do I understand correctly from here that Samsung Pass’s API no longer works on not only newer but any up to date device? (See “note”.) https://developer.samsung.com/galaxy/pass Wondering if I should add support for it or not. –  Jan 11 '19 at 02:59
0

Android system services includes the FingerprintManager:

FingerprintManager fingerprintManager = (FingerprintManager)getSystemService(FINGERPRINT_SERVICE);

You need to add this permission:

<uses-permission android:name="android.permission.USE_FINGERPRINT" />

For more on how to handle the FingerprintManager read this:

How to use fingerprint scanner to authenticate users

Community
  • 1
  • 1
RonTLV
  • 2,376
  • 2
  • 24
  • 38
  • thanks for the response. I already have all the permission required, and I'm not trying to authenticate users, just to understand how the operating system gets the information about the propriety of the fingerprint sensor itself. – Maor Gershkovitch Apr 25 '17 at 17:14