I am trying to add FP authentication to my application, and for some reason it does not work in Note 4, while it works fine on other Samsung devices (like Galaxy S7) as well as on Nexus devices. I have Marshmallow 6.0.1 installed on this note 4. Here are two ways I tried to detect the FP reader:
Approach No. 1:
FingerprintManager mFingerprintManager = context.getSystemService(FingerprintManager.class);
return mFingerprintManager.isHardwareDetected()
&& mFingerprintManager.hasEnrolledFingerprints();
Approach No. 2:
return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT);
Both return false.
Please note that I have other applications that use the FP reader on this device. Is there any other FP API that I can use if the above value returns False? I would use it as a reserve.