Fingerprintmanager.ishardwaredetected() Throwing Java.lang.securityexception?
I have an App that offers the usage of fingerprints for authentication. Before asking if the user wants to enable it, I verify if it is available at all and it is done via: Fingerp
Solution 1:
Looks like a bug in the build process. A clean/rebuild makes the problem disappear
Solution 2:
The issue "automagically" stopped happening.
So far, I can only see those two affected users each one on a different version of our App (we publish every 2 weeks) and there was no change whatsoever in the App in regards to fingerprint permissions.
The last occurrence of the crash was on March 17th.
I see this as a Android/Play Store permissions glitch.
Solution 3:
I Fixed the Following issue by removing a build library from dependencies and added "lib" dir from Lollipins' github sources https://github.com/omadahealth/LolliPin/tree/master/lib
- Remove "implementation('com.github.omadahealth:lollipin:2..." from build.gradle
- Add "implementation project(':lib')" to build.gradle
- Add "include ':lib'" to your settings.gradle
On your IDE(I am using android Studio) navigate to AppLockActivity.java
line 147: Change to:
if (mFingerprintManager != null && mFingerprintManager.isHardwareDetected() && mFingerprintUiHelper.isFingerprintAuthAvailable())
Post a Comment for "Fingerprintmanager.ishardwaredetected() Throwing Java.lang.securityexception?"