stratumauth / app

📱 Two-Factor Authentication (2FA) client for Android + Wear OS
https://stratumauth.com
GNU General Public License v3.0
3.04k stars 199 forks source link

App won't unlock with fingerprint when opened #254

Closed itspuia closed 2 years ago

itspuia commented 3 years ago

Hi there I have been using this App for a couple of months and everything works perfectly. Especially the WearOS App is the reason I chose this Authenticator. Unfortunately for about one or two months (I guess since the last update) the app won't start as usual. When I open it, it shows me the "Scan your finger" window as usual, but it closes immediately and I need to type in my password instead. When I press on "Use biometry" it shows up again and it scans my finger well. It does not show me my OTP tho, it is just an empty app with the Authenticator Pro Icon. If I go back to my Android home screen and open it up again, it finally opens up unlocked and it works fine. So everytime instead of 1) open app 2) scan fingerprint I have to 1) open App 2) Press "use biometry" 3) scan fingerprint 4) let it load an empty screen 5) close app 6) open app again.

Here's a video on how it looks. At the end when the screen is black, it shows the passwords as usual. https://i.imgur.com/lbMK6M5.mp4

Expected behavior I should be able to use the fingerprint sensor immediately and unlock my OTPs

App Version 1.14.10

Additional context Huawei P10 VTR-L09 Build 9.1.0.275 Android 9, EMUI 9.1.0

jamie-mh commented 3 years ago

Hi,

Sounds like #227 and #235, but I'm not getting any answers there. A few questions to help diagnose the issue:

Thanks

jamie-mh commented 3 years ago

Hi,

This is strange since the unlock code hasn't really changed between 1.14.9 and 1.14.10. Does this only happen with fingerprint or does it happen with the password too?

Thanks

l-marchesi commented 3 years ago

Hi I have a similar behaviour that might help resolve the problem here: On an older phone of mine I have to unlock with my fingerprint twice to unlock the app. It immediately asks again after the first unlock. This happens on a Sony Xperia Z5 Compact with Android 7.1.1. On my new phone (Sony Xperia 1 II, Android 11) this issue does not exist.

I do have developer tools ready, let me know if you would like a log of my older phone.

jamie-mh commented 3 years ago

Hi,

To anyone experiencing this issue, attached is a test version of the app (different package name will not overwrite existing install). The issue may or may not be fixed. If you're able to test it, please let me know if the issue is present. Thanks.

me.jmh.authenticatorpro.dev-arm64-v8a-Signed.zip

Hundhausen commented 3 years ago

@jamie-mh I've tested the test version of yours and the Issue still exists but its a bit different.

The PRG Version currently asks for my fingerprint, then just shows the logo. Pressing Back brings up the fingerprint promt again but closes the app. Pressing the App Icon again on my Homescreen brings up the promt and then it works. The DEV Version is different in the last part. When restarting it from the homescreen, it doesn't require my fingerprint anymore. Both Apps are told to lock the app immediately.

This is different. Prior to the 1.15 Version it looked for me like in the video of itspuia.

Also one Note: When I close the app via the App Change Screen (or how ever this is called), I'm back to the start.

itspuia commented 3 years ago

@jamie-mh Thanks for the Dev Version, but as @Hundhausen said, it still does not work the right way. It is different, but still very complicated to open.

I open the app and can scan my fingerprint (This wasn't possible before at the first start). Then it wants my fingerprint again and "unlocks", but does not show me the OTPs. When I go back to the Home Screen and open the app again, it goes immediately to the OTPs without asking for a fingerprint.

Here's a video of how that looks, if that helps. https://i.imgur.com/rQHvlTH.mp4

Thanks a lot for your work and support.

EDIT: I just compared it to the behaviour of the other version. I just realized, that it is exactly the same except one difference: I do not need to tap on "use biometrics" to scan it after the first failed time. It automatically tries again, but that's the only difference I can see.

jamie-mh commented 3 years ago

Thanks for your detailed feedback. Does the issue persist if the timeout is set to 10 minutes? Perhaps the issue may be related to the auto-locking of the database.

jamie-mh commented 2 years ago

Hi,

Attached is another dev version with some changes that may solve the issue. If anyone experiencing this issue can test it out, your help would be much appreciated. As always, it has a different package name, so won't overwrite an existing install. Please let me know if this solves the issue.

Thanks

me.jmh.authenticatorpro.dev-arm64-v8a-Signed.zip

itspuia commented 2 years ago

Hi, I've just installed this Version and it seems to work perfectly! Thanks a lot!

Hundhausen commented 2 years ago

Can confirm. Unlocking now works at the first try.

l-marchesi commented 2 years ago

New update from the PlayStore seems to have fixed the issue for me as well :)

jamie-mh commented 2 years ago

Ok great. Thanks for the feedback everyone.