PhilippC / keepass2android

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

Pixel 6 pro bio unlock not working #1907

Open wired64 opened 2 years ago

wired64 commented 2 years ago

On the pixel 6 pro, no worries the first time is setup, but then stops displaying the fingerprint UI. This is without changes to the prints stored in the system (which the app indicated will occur).

MichelJe commented 2 years ago

Having the same issue with Pixel 6 Pro and Android 12 20220117_060102

wired64 commented 2 years ago

Actually, I'm thinking it may be related to other programs (not just adding fingerprints). Not to say this may not be a bug, but it's possible that the bug is a side-effect of something else happening (adding a new program with new system requirements, for example).

I'm trying to keep track of what I do on my phone that may cause this to happen - today, I've been getting the fingerprint prompt all day long - yesterday and the day before - no so much.

If I can winnow down what's related, I'll pass it along! These issues are tough - I won't be really complaining about this unless there are just a ton of others having the same issue.

marno-t commented 2 years ago

Same error for the Pixel 4a and Pixel 4a 5G

MichelJe commented 2 years ago

After the system update yesterday it works now on my Pixel6. Android-Version: 12 Android Secrityupde: 5.Feb 2022

marno-t commented 2 years ago

@MichelJe was it reinstalled or data cleaned after update ? installed same update but still getting same exception

MichelJe commented 2 years ago

@MichelJe was it reinstalled or data cleaned after update ? installed same update but still getting same exception

Nothing. Just updated Android Screenshot_20220211-154945

MichelJe commented 2 years ago

Maybe deactivating and reactivating the biometrics for the database might do the trick. (Preferences -> Database -> ~biometrics)

marno-t commented 2 years ago

Ok thanks, 4a has got different build 4.19.202-g5fbe36ea56f7-ab8008033

1 Thu Dec 16 06:08:11 UTC 2021

SQ1A.220205.002

marno-t commented 2 years ago

Maybe deactivating and reactivating the biometrics for the database might do the trick. (Preferences -> Database -> ~biometrics)

Magic! I got it working now, thanks!

PhilippC commented 2 years ago

@wired64 did you try disabling and reactiving biometrics as well?

wired64 commented 2 years ago

I will give thatva try.

The biometrics have seemed to be more reliable lately. I know that's doesn't help to track down any issues, but I've had to enter me password less frequently...

Cheers,

SK

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: PhilippC @.> Sent: Monday, February 14, 2022 2:22:44 AM To: PhilippC/keepass2android @.> Cc: Steve Klos @.>; Mention @.> Subject: Re: [PhilippC/keepass2android] Pixel 6 pro bio unlock not working (Issue #1907)

@wired64https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwired64&data=04%7C01%7C%7Ca70667916f75445ae16408d9efa41390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637804310249790453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Ig%2F%2B70%2BMpfatGevQ0sj%2BUFPkNOMi5ejaWxx6niD8NBA%3D&reserved=0 did you try disabling and reactiving biometrics as well?

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPhilippC%2Fkeepass2android%2Fissues%2F1907%23issuecomment-1038909982&data=04%7C01%7C%7Ca70667916f75445ae16408d9efa41390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637804310249790453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=qMB3ivzu15dtlQSL5t%2BJEhoHEVlAZREYaMitqwWTn%2Fo%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACNTGU7HFNFJLMNWLMS7BKTU3DJXJANCNFSM5MBKM3UA&data=04%7C01%7C%7Ca70667916f75445ae16408d9efa41390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637804310249790453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=JjsVyArI6Asb8OotoPcInpDKXxrl8QI7hEgTWatUg%2Bw%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7Ca70667916f75445ae16408d9efa41390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637804310249790453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=K78wYwY9TFMen%2B6NuAFQybT9U1cap14za8WbjrLHWKs%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7Ca70667916f75445ae16408d9efa41390%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637804310249790453%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=2WoLR4xCSlAGuLEzXIHprEHNFrBW%2FfTTw0yXi3a5Hys%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

gtgt commented 2 years ago

I have a MI8 with MIUI 12.5. App version is 1.09d-r0. I have the same result using latest stable. Biometric unlock worked with earlier version of the application or MIUI or both. I don't remember, since it was more than a year ago when I used the feature successfully. Here is the log I collected (I tried to enable biometric unlock in database settings):

`

      1. 18:41:58:99 -- DatabaseSettingsActivity.OnPause 19 2022. 07. 27. 18:41:58:99 -- Timeout start 2022. 07. 27. 18:41:58:143 -- BiometricSetupActivity.OnCreate 20 2022. 07. 27. 18:41:58:143 -- BiometricSetupActivity:apptask= 20 2022. 07. 27. 18:41:58:199 -- BiometricSetupActivity.OnStart 20 2022. 07. 27. 18:41:58:204 -- BiometricSetupActivity.OnResume 20 2022. 07. 27. 18:41:58:204 -- DatabaseIsUnlocked=True 20 2022. 07. 27. 18:41:58:205 -- Timeout cancel 2022. 07. 27. 18:41:58:217 -- BiometricHardware available = 0 2022. 07. 27. 18:41:58:615 -- DatabaseSettingsActivity.OnStop 19 2022. 07. 27. 18:41:59:499 -- FP: Create BiometricEncryption 2022. 07. 27. 18:41:59:501 -- FP: CreateKey 2022. 07. 27. 18:41:59:529 -- Java.Lang.RuntimeException: Keystore operation failed ---> Java.Lang.Exception: User authentication required --- End of inner exception stack trace --- at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue args) [0x0008e] in :0 at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue parameters) [0x0001f] in :0 at Javax.Crypto.KeyGenerator.GenerateKey () [0x0000a] in :0 at keepass2android.BiometricEncryption.CreateKey () [0x0006c] in :0 --- End of managed Java.Lang.RuntimeException stack trace --- java.security.ProviderException: Keystore operation failed at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(Unknown Source:220) at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:612) at mono.android.widget.CompoundButton_OnCheckedChangeListenerImplementor.n_onCheckedChanged(Native Method) at mono.android.widget.CompoundButton_OnCheckedChangeListenerImplementor.onCheckedChanged(CompoundButton_OnCheckedChangeListenerImplementor.java:30) at android.widget.CompoundButton.setChecked(Unknown Source:29) at android.widget.CompoundButton.toggle(Unknown Source:4) at android.widget.RadioButton.toggle(Unknown Source:6) at android.widget.CompoundButton.performClick(Unknown Source:0) at android.view.View.performClickInternal(Unknown Source:3) at android.view.View.access$3500(Unknown Source:0) at android.view.View$PerformClick.run(Unknown Source:8) at android.os.Handler.handleCallback(Unknown Source:2) at android.os.Handler.dispatchMessage(Unknown Source:4) at android.os.Looper.loop(Unknown Source:242) at android.app.ActivityThread.main(Unknown Source:98) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11) at com.android.internal.os.ZygoteInit.main(Unknown Source:275) Caused by: android.security.KeyStoreException: User authentication required at android.security.KeyStore.getKeyStoreException(Unknown Source:102) at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(Unknown Source:216) ... 17 more 2022. 07. 27. 18:41:59:529 -- FP: Init for Enc 2022. 07. 27. 18:42:01:664 -- FP: Create BiometricEncryption 2022. 07. 27. 18:42:01:666 -- FP: CreateKey 2022. 07. 27. 18:42:01:682 -- Java.Lang.RuntimeException: Keystore operation failed ---> Java.Lang.Exception: User authentication required --- End of inner exception stack trace --- at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue args) [0x0008e] in :0 at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue parameters) [0x0001f] in :0 at Javax.Crypto.KeyGenerator.GenerateKey () [0x0000a] in :0 at keepass2android.BiometricEncryption.CreateKey () [0x0006c] in :0 --- End of managed Java.Lang.RuntimeException stack trace --- java.security.ProviderException: Keystore operation failed at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(Unknown Source:220) at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:612) at mono.android.widget.CompoundButton_OnCheckedChangeListenerImplementor.n_onCheckedChanged(Native Method) at mono.android.widget.CompoundButton_OnCheckedChangeListenerImplementor.onCheckedChanged(CompoundButton_OnCheckedChangeListenerImplementor.java:30) at android.widget.CompoundButton.setChecked(Unknown Source:29) at android.widget.CompoundButton.toggle(Unknown Source:4) at android.widget.RadioButton.toggle(Unknown Source:6) at android.widget.CompoundButton.performClick(Unknown Source:0) at android.view.View.performClickInternal(Unknown Source:3) at android.view.View.access$3500(Unknown Source:0) at android.view.View$PerformClick.run(Unknown Source:8) at android.os.Handler.handleCallback(Unknown Source:2) at android.os.Handler.dispatchMessage(Unknown Source:4) at android.os.Looper.loop(Unknown Source:242) at android.app.ActivityThread.main(Unknown Source:98) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11) at com.android.internal.os.ZygoteInit.main(Unknown Source:275) Caused by: android.security.KeyStoreException: User authentication required at android.security.KeyStore.getKeyStoreException(Unknown Source:102) at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(Unknown Source:216) ... 17 more 2022. 07. 27. 18:42:01:684 -- FP: Init for Enc 2022. 07. 27. 18:42:02:827 -- FP: Create BiometricEncryption 2022. 07. 27. 18:42:02:830 -- FP: CreateKey 2022. 07. 27. 18:42:02:852 -- Java.Lang.RuntimeException: Keystore operation failed ---> Java.Lang.Exception: User authentication required --- End of inner exception stack trace --- at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue args) [0x0008e] in :0 at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue parameters) [0x0001f] in :0 at Javax.Crypto.KeyGenerator.GenerateKey () [0x0000a] in :0 at keepass2android.BiometricEncryption.CreateKey () [0x0006c] in :0 --- End of managed Java.Lang.RuntimeException stack trace --- java.security.ProviderException: Keystore operation failed at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(Unknown Source:220) at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:612) at mono.android.widget.CompoundButton_OnCheckedChangeListenerImplementor.n_onCheckedChanged(Native Method) at mono.android.widget.CompoundButton_OnCheckedChangeListenerImplementor.onCheckedChanged(CompoundButton_OnCheckedChangeListenerImplementor.java:30) at android.widget.CompoundButton.setChecked(Unknown Source:29) at android.widget.CompoundButton.toggle(Unknown Source:4) at android.widget.RadioButton.toggle(Unknown Source:6) at android.widget.CompoundButton.performClick(Unknown Source:0) at android.view.View.performClickInternal(Unknown Source:3) at android.view.View.access$3500(Unknown Source:0) at android.view.View$PerformClick.run(Unknown Source:8) at android.os.Handler.handleCallback(Unknown Source:2) at android.os.Handler.dispatchMessage(Unknown Source:4) at android.os.Looper.loop(Unknown Source:242) at android.app.ActivityThread.main(Unknown Source:98) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11) at com.android.internal.os.ZygoteInit.main(Unknown Source:275) Caused by: android.security.KeyStoreException: User authentication required at android.security.KeyStore.getKeyStoreException(Unknown Source:102) at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(Unknown Source:216) ... 17 more 2022. 07. 27. 18:42:02:855 -- FP: Init for Enc 2022. 07. 27. 18:42:05:243 -- BiometricSetupActivity.OnPause 20 2022. 07. 27. 18:42:05:243 -- Timeout start 2022. 07. 27. 18:42:05:248 -- Fingerprint: StopListening without prompt 2022. 07. 27. 18:42:05:270 -- DatabaseSettingsActivity.OnStart 19 2022. 07. 27. 18:42:05:273 -- DatabaseSettingsActivity.OnResume 19 2022. 07. 27. 18:42:05:273 -- DatabaseIsUnlocked=True 19 2022. 07. 27. 18:42:05:273 -- Timeout cancel 2022. 07. 27. 18:42:05:655 -- BiometricSetupActivity.OnStop 20 2022. 07. 27. 18:42:05:658 -- BiometricSetupActivity.OnDestroyTrue 20 `

Thanks