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

Crash on Android 8,9,10 and 11 #48

Open
abdurahmanadilovic opened this issue Aug 11, 2022 · 0 comments
Open

Crash on Android 8,9,10 and 11 #48

abdurahmanadilovic opened this issue Aug 11, 2022 · 0 comments

Comments

@abdurahmanadilovic
Copy link
Contributor

Crash when trying to get an ecrypted key

Exception

androidx.security.crypto.MasterKeys.generateKey
android.security.KeyStoreException: -49

Stacktrace

android.security.KeyStore.getKeyStoreException KeyStore.java:1301
android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey AndroidKeyStoreKeyGeneratorSpi.java:331
javax.crypto.KeyGenerator.generateKey KeyGenerator.java:612
androidx.security.crypto.MasterKeys.generateKey MasterKeys.java:142
androidx.security.crypto.MasterKeys.getOrCreate MasterKeys.java:97
androidx.security.crypto.MasterKey$Builder.buildOnM MasterKey.java:357
androidx.security.crypto.MasterKey$Builder.build MasterKey.java:314
com.schibsted.account.webflows.persistence.EncryptedSharedPrefsStorage.buildSharedPreferences SessionStorage.kt:82
com.schibsted.account.webflows.persistence.EncryptedSharedPrefsStorage.setupSharedPreferences SessionStorage.kt:73
com.schibsted.account.webflows.persistence.EncryptedSharedPrefsStorage.getSharedPreferences SessionStorage.kt:48
com.schibsted.account.webflows.persistence.EncryptedSharedPrefsStorage.get SessionStorage.kt:161
com.schibsted.account.webflows.client.Client.resumeLastLoggedInUser Client.kt:205
com.schibsted.account.webflows.client.RetrofitClient.resumeLastLoggedInUser RetrofitClient.kt:26
com.podme.ApplicationClass.initSchibstedSdk ApplicationClass.kt:169
com.podme.ApplicationClass.access$initSchibstedSdk ApplicationClass.kt:39
com.podme.ApplicationClass$onCreate$1.invoke ApplicationClass.kt:57
com.podme.ApplicationClass$onCreate$1.invoke ApplicationClass.kt:52
org.koin.core.context.GlobalContextKt.startKoin GlobalContext.kt:72
com.podme.ApplicationClass.onCreate ApplicationClass.kt:52
android.app.Instrumentation.callApplicationOnCreate Instrumentation.java:1208
android.app.ActivityThread.handleBindApplication ActivityThread.java:6996
android.app.ActivityThread.access$1700 ActivityThread.java:274
android.app.ActivityThread$H.handleMessage ActivityThread.java:2098
android.os.Handler.dispatchMessage Handler.java:106
android.os.Looper.loop Looper.java:233
android.app.ActivityThread.main ActivityThread.java:8035
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:631
com.android.internal.os.ZygoteInit.main ZygoteInit.java:978
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