PhilippC / keepass2android

Password manager app for Android
https://play.google.com/store/apps/details?id=keepass2android.keepass2android
GNU General Public License v3.0
4.58k stars 378 forks source link

Fingerprint sensor has not been recognized #1025

Open junpet opened 4 years ago

junpet commented 4 years ago

I'm using the application for years (beta channel), but this never happened. I don't use it every day, so I don't know the first version with this error. My current version is 1.08-pre3, Xiaomi Redmi 4 Prime.

Pixelatic commented 4 years ago

I am also seeing this behaviour with the latest beta (Xiaomi Redmi 3S Prime).

PhilippC commented 4 years ago

Can you please describe more clearly what happens? Do you see a toast message? What's the exact message? And you were able to use fingerprint before? That's interesting because I thought especially Redmi phones have issues...

junpet commented 4 years ago

The error message is:
This device does not have a fingerprint sensor

It worked before. I have never got any issue with any app, this is the first time.

PhilippC commented 4 years ago

@junpet and @Pixelatic could you please report which Android versions you are running?

junpet commented 4 years ago

Mine is 6.0.1. Yeah, its really old, but there's no newer version for my device.

PhilippC commented 4 years ago

for reference: https://stackoverflow.com/questions/58777186/fingerprint-sensor-has-not-been-recognized-with-biometricprompt

Pixelatic commented 4 years ago

Android 6.0.1 with MIUI 10.2.2.0

On Sat, 9 Nov 2019, 03:30 PhilippC, notifications@github.com wrote:

@junpet https://github.com/junpet and @Pixelatic https://github.com/Pixelatic could you please report which Android versions you are running?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PhilippC/keepass2android/issues/1025?email_source=notifications&email_token=ABJ63BU3462KL7SPPETDO3LQSYVEBA5CNFSM4JKE2EP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDT4WFY#issuecomment-552061719, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ63BXP3DYQAQ7YGKDV26DQSYVEBANCNFSM4JKE2EPQ .

DaKine26-2 commented 4 years ago

I recently switched from a OnePlus 6 where fingerprint auth worked fine (back of device) and now it's broken with the OnePlus 7T with the in-screen reader on the front. It seems to fail to tell the OS to prompt for fingerprint auth, as all other apps where it works will cause the place where a finger is pressed to light up indicating things are ready to accept a finger press. AFAIK this is because a newer version of the biometric libraries need to be used.

mdcfe commented 4 years ago

seems to fail to tell the OS to prompt for fingerprint auth, as all other apps where it works will cause the place where a finger is pressed to light up indicating things are ready to accept a finger press.

I have a Samsung Galaxy A50 on Pie (One UI 1.1) with 1.08-pre3 and I'm encountering the same issue. Normally on this phone, the screen dims and the area of the fingerprint sensor on the display is marked with a "fingerprint" icon when the sensor is ready, but since updating to the prerelease this doesn't happen and so there's no way to enable or use fingerprint unlock in KP2A.

vukasin-nikodijevic commented 4 years ago

@PhilippC here is issue with actual screenshots of stack trace - hope this will help: https://github.com/PhilippC/keepass2android/issues/1090

mdcfe commented 4 years ago

@vukasin-nikodijevic Are you running 1.08-pre3 or 1.07b-r0? #1090 was reported on 1.07b-r0 using FingerprintManager - the wide variety of issues reported in this thread appear to have been reported on 1.08-pre3 which uses BiometricPrompt instead.

Furthermore, #795 seems to show that fingerprint and face unlock do work for some users on 1.08-pre3, so this isn't affecting everyone.

vukasin-nikodijevic commented 4 years ago

@md678685 - thanks for the directions - I've signed up for beta testers program so I was able to install 1.08 pre release.

With new 1.08 (pre) release things works as expected.

DaKine26-2 commented 4 years ago

@md678685 - thanks for the directions - I've signed up for beta testers program so I was able to install 1.08 pre release.

With new 1.08 (pre) release things works as expected.

Beta works for my OnePlus 7T as well.

mdcfe commented 4 years ago

Update: I reverted to 1.07b-r0, and fingerprint unlock now works as expected.

I then upgraded to 1.08-pre3 again, but this time I went into settings and changed "Preferred biometric" from Face recognition to Fingerprints, and biometric unlock works fine when this is set to fingerprints. I changed it back to face recognition, and instead of showing the biometric prompt overlay, an empty toast message appears briefly and the fingerprint icon in KP2A changes to the warning icon.

I'm not an expert, but after doing some reading it seems like Samsung's facial recognition doesn't work properly with BiometricPrompt even though it claims to. Apparently iris scanning works, but I don't have a phone capable of testing this.

I don't think there's a secure fix or workaround for this (the suggested fix is insecure) - it might be worth adding a notice to the changelog or unlock screen informing Samsung users to change their settings?

Edit: some other potentially useful reading: an article on BiometricPrompt issues; androidx issues 129937212 and 142150327. Apparently this is considered "fixed" as certain devices are blacklisted, but according to subsequent comments this blacklist doesn't cover all affected devices.


For any Samsung users who find this thread: go to Settings > Biometrics and security > Biometrics preferences > Preferred biometric and change it to fingerprint (or try iris if you have a device capable of it). The biometric unlock in KP2A should then work.