Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to keystore #34

Open
yan-lixin opened this issue Aug 15, 2018 · 1 comment
Open

Cannot connect to keystore #34

yan-lixin opened this issue Aug 15, 2018 · 1 comment

Comments

@yan-lixin
Copy link

Cannot connect to keystore
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:617)
at android.security.IKeystoreService$Stub$Proxy.begin(IKeystoreService.java:1255)

This mistake happens occasionally. The wrong place is the 496th line of EncryptionManager.

@yan-lixin
Copy link
Author

Cannot connect to keystore
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:617)
at android.security.IKeystoreService$Stub$Proxy.begin(IKeystoreService.java:1255)
at android.security.KeyStore.begin(KeyStore.java:488)
at android.security.keystore.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreCipherSpiBase.java:248)
at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineInit(AndroidKeyStoreCipherSpiBase.java:148)
at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2973)
at javax.crypto.Cipher.tryCombinations(Cipher.java:2884)
at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2789)
at javax.crypto.Cipher.chooseProvider(Cipher.java:956)
at javax.crypto.Cipher.init(Cipher.java:1329)
at javax.crypto.Cipher.init(Cipher.java:1267)
at devliving.online.securedpreferencestore.EncryptionManager.decryptAES(EncryptionManager.java:496)
at devliving.online.securedpreferencestore.EncryptionManager.decrypt(EncryptionManager.java:341)
at devliving.online.securedpreferencestore.EncryptionManager.tryDecrypt(EncryptionManager.java:286)
at devliving.online.securedpreferencestore.EncryptionManager.decrypt(EncryptionManager.java:385)
at devliving.online.securedpreferencestore.SecuredPreferenceStore.getString(SecuredPreferenceStore.java:192)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant