googlearchive / android-FingerprintDialog

Migrated:
https://github.com/android/security
Apache License 2.0
1.38k stars 477 forks source link

Fingerprint permission #45

Closed andris95 closed 5 years ago

andris95 commented 7 years ago

Hello! In this sample project there is comment like this:

Now the protection level of USE_FINGERPRINT permission is normal instead of dangerous.

But it is not true, in my project I am using compilseSdkVersion and targetSdkVersion 25.0.2. And for example, to check if the device has a fingerprint sensor, i call this method: if (!mFingerprintManager.isHardwareDetected()) and it says

if (!mFingerprintManager.isHardwareDetected())

yashasvigirdhar commented 7 years ago

By Normal permission, it means that you can declare the permission in manifest and will be granted the same on app install. You don't need to request this permission at runtime. (All this applies for api >= 23 of course)

LoPoBo commented 7 years ago

I also saw this comment and found it confusing; has USE_FINGERPRINT ever been dangerous? I could not find any documentation supporting this.

codingjeremy commented 5 years ago

I am closing this issue/PR, as it has been migrated to the new repo linked above in the comments. Thank you!