PhilippC / keepass2android

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

Crash on fingerprint activation #362

Open federicoiosue opened 6 years ago

federicoiosue commented 6 years ago

Device: One plus 5T

Android: 8.1

App version: 1.0.5-pre2

I'm actually not sure if the problem persists even without Xposed. I always used it and everything used to work flawlessly but I've upgraded my firmware to Android 8.1 just some days ago so I'll try to debug further.

FATAL EXCEPTION: main
Process: keepass2android.keepass2android, PID: 5213
java.security.ProviderException: Keystore operation failed
    at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:321)
    at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:604)
    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(CompoundButton.java:171)
    at android.widget.CompoundButton.toggle(CompoundButton.java:127)
    at android.widget.RadioButton.toggle(RadioButton.java:76)
    at android.widget.CompoundButton.performClick(CompoundButton.java:132)
    at android.view.View$PerformClick.run(View.java:24921)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6753)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:482)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:108)
Caused by: android.security.KeyStoreException: User authentication required
    at android.security.KeyStore.getKeyStoreException(KeyStore.java:672)
    at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:322)
    ... 16 more   
mtraxiot commented 6 years ago

Also crashing for me on android 7.0 tablet

federicoiosue commented 6 years ago

It depends from xposed

mtraxiot commented 6 years ago

I don't have xposed on my phone and it works

federicoiosue commented 6 years ago

Still not working on version 1.05e even without Xposed

FATAL EXCEPTION: main
Process: keepass2android.keepass2android, PID: 11306
java.security.ProviderException: Keystore operation failed
    at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:321)
    at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:604)
    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(CompoundButton.java:171)
    at android.widget.CompoundButton.toggle(CompoundButton.java:127)
    at android.widget.RadioButton.toggle(RadioButton.java:76)
    at android.widget.CompoundButton.performClick(CompoundButton.java:132)
    at android.view.View$PerformClick.run(View.java:25032)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6753)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:482)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: android.security.KeyStoreException: User authentication required
    at android.security.KeyStore.getKeyStoreException(KeyStore.java:672)
    at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey(AndroidKeyStoreKeyGeneratorSpi.java:322)
    ... 15 more
federicoiosue commented 6 years ago

Could you need more informations about this @PhilippC ?

icyerasor commented 5 years ago

Had the same issue (with another app though) - try going into the "nexus imprint" / "fingerprint" settings of android OS and changing some stuff there - i.e. display the name of the imprints, change it, etc. For me no re-setup of the imprints was necessary. Afterwards, back in the app everything worked again..

divid3byzero commented 4 years ago

This is (still) an issue on OnePlus 7 Pro running Android 10. I'm running version 1.07b-r0 of the app on the afore mentioned device. I've already tried disabling/reenabling the finger print feature in the app and deleting and readding my fingerprint in the devices settings, sadly without any effect.

@PhilippC can you look into this?