Jump to content

pigeve

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About pigeve

  • Rank
    Newbie
  1. I've got the same problem on a Vernee Thor. I extracted the error stack trace (@devs you can fin it bellow). It seems that the actual code doesn't properly handle multi fingerprints. You can suppress all the fingerprints from the security settings of Android and only add one for now. It did the trick for me. Hope it helps others. 2019-05-27 18:23:27.584 22246-22246/? W/System.err: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:240) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi$AES.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:53) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at javax.crypto.KeyGenerator.init(KeyGenerator.java:487) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at javax.crypto.KeyGenerator.init(KeyGenerator.java:470) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.createNewKey(FingerprintKeyStoreHelper.java:274) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:77) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.preference.Preference.performClick(Preference.java:1022) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AdapterView.performItemClick(AdapterView.java:315) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AbsListView.performItemClick(AbsListView.java:1204) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AbsListView$4.run(AbsListView.java:4382) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.os.Handler.handleCallback(Handler.java:836) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:103) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.os.Looper.loop(Looper.java:203) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6251) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924) 2019-05-27 18:23:27.586 22246-22246/? W/System.err: Caused by: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use 2019-05-27 18:23:27.586 22246-22246/? W/System.err: at android.security.keystore.KeymasterUtils.addUserAuthArgs(KeymasterUtils.java:117) 2019-05-27 18:23:27.586 22246-22246/? W/System.err: at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:234) 2019-05-27 18:23:27.586 22246-22246/? W/System.err: ... 21 more 2019-05-27 18:23:27.596 22246-22246/? W/System.err: java.security.InvalidKeyException: Only SecretKey is supported 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:435) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:260) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2977) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.tryCombinations(Cipher.java:2884) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2789) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.chooseProvider(Cipher.java:956) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.init(Cipher.java:1199) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.init(Cipher.java:1143) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.initEncryptCipher(FingerprintKeyStoreHelper.java:96) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:81) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at android.preference.Preference.performClick(Preference.java:1022) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AdapterView.performItemClick(AdapterView.java:315) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AbsListView.performItemClick(AbsListView.java:1204) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AbsListView$4.run(AbsListView.java:4382) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.os.Handler.handleCallback(Handler.java:836) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:103) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.os.Looper.loop(Looper.java:203) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6251) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
  2. I've got the same problem on a Vernee Thor. I extracted the error stack trace (@devs you can fin it bellow). It seems that the actual code doesn't properly handle multi fingerprints. You can suppress all the fingerprints from the security settings of Android and only add one for now. It did the trick for me. Hope it helps others. 2019-05-27 18:23:27.584 22246-22246/? W/System.err: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:240) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi$AES.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:53) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at javax.crypto.KeyGenerator.init(KeyGenerator.java:487) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at javax.crypto.KeyGenerator.init(KeyGenerator.java:470) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.createNewKey(FingerprintKeyStoreHelper.java:274) 2019-05-27 18:23:27.584 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:77) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.preference.Preference.performClick(Preference.java:1022) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AdapterView.performItemClick(AdapterView.java:315) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AbsListView.performItemClick(AbsListView.java:1204) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.widget.AbsListView$4.run(AbsListView.java:4382) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.os.Handler.handleCallback(Handler.java:836) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:103) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.os.Looper.loop(Looper.java:203) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6251) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063) 2019-05-27 18:23:27.585 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924) 2019-05-27 18:23:27.586 22246-22246/? W/System.err: Caused by: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use 2019-05-27 18:23:27.586 22246-22246/? W/System.err: at android.security.keystore.KeymasterUtils.addUserAuthArgs(KeymasterUtils.java:117) 2019-05-27 18:23:27.586 22246-22246/? W/System.err: at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:234) 2019-05-27 18:23:27.586 22246-22246/? W/System.err: ... 21 more 2019-05-27 18:23:27.596 22246-22246/? W/System.err: java.security.InvalidKeyException: Only SecretKey is supported 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:435) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:260) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2977) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.tryCombinations(Cipher.java:2884) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2789) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.chooseProvider(Cipher.java:956) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.init(Cipher.java:1199) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at javax.crypto.Cipher.init(Cipher.java:1143) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.initEncryptCipher(FingerprintKeyStoreHelper.java:96) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:81) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda) 2019-05-27 18:23:27.597 22246-22246/? W/System.err: at android.preference.Preference.performClick(Preference.java:1022) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AdapterView.performItemClick(AdapterView.java:315) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AbsListView.performItemClick(AbsListView.java:1204) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.widget.AbsListView$4.run(AbsListView.java:4382) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.os.Handler.handleCallback(Handler.java:836) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:103) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.os.Looper.loop(Looper.java:203) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6251) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063) 2019-05-27 18:23:27.598 22246-22246/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
×
×
  • Create New...