android - FingerprintManagerCompat method had issues with Samsung devices -
problem
java.lang.securityexception: permission denial: getcurrentuser() pid=#####, uid=##### requires android.permission.interact_across_users @ android.os.parcel.readexception(parcel.java:1620) @ android.os.parcel.readexception(parcel.java:1573) @ android.hardware.fingerprint.ifingerprintservice$stub$proxy.hasenrolledfingerprints(ifingerprintservice.java:503) @ android.hardware.fingerprint.fingerprintmanager.hasenrolledfingerprints(fingerprintmanager.java:768) @ android.support.v4.hardware.fingerprint.fingerprintmanagercompatapi23.hasenrolledfingerprints(fingerprintmanagercompatapi23.java:39) @ android.support.v4.hardware.fingerprint.fingerprintmanagercompat$api23fingerprintmanagercompatimpl.hasenrolledfingerprints(fingerprintmanagercompat.java:239) @ android.support.v4.hardware.fingerprint.fingerprintmanagercompat.hasenrolledfingerprints(fingerprintmanagercompat.java:66)
this issue has occurred on samsung devices:
- galaxy s6 active (marinelteatt)
- galaxy on5 (on5ltemtr)
- galaxy j7(2016) (j7eltetmo)
(data crash reports)
current solution research
after researching issue, solution i've found add following permission manifest:
<permission android:name="android.permission.interact_across_users_full" android:protectionlevel="signature"/>
this seems odd , i'm not sure if best or proper solution.
question
why exception being thrown? above solution correct?
i more information on this.
thanks!
i found support thread samsung mentioned firmware issue devices.
i added try/catch around code prevent crashes.
this should resolved in samsung firmware update.
Comments
Post a Comment