Devices with a fingerprint sensor above 6.0 that do not use the Android Fingerprint SDK

My app has recently implemented fingerprint authentication (with the official Android Fingerprint SDK of course!), Some of my users have complained that they have a fingerprint sensor in their phone (as of Android 6.0), but cannot use this feature ...

I did some investigation and I found that Samsung S5 and Note 4 devices have fingerprint sensor since 6.0, but they don't use the official Android Fingerprint SDK.

My questions:

  • Does anyone have a list of devices that use their own fingerprint SDK.
  • In this case, I would like to inform the user that your device is not supported by the application. Is there any reliable way I can programmatically find these devices ("Devices with unsupported fingerprint sensor 6.0 and up") and show a message?
+1


source to share


1 answer


You can check it with FingerprintManager like

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
    FingerprintManager fingerprintManager = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);
    if (!fingerprintManager.isHardwareDetected()) { 
        // Device doesn't support fingerprint api. Notify the user.
    }
}

      



and as usual you need permission

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

      

0


source







All Articles