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

Credential encrypted storage are not available #85

Open
mehdismh24 opened this issue Nov 16, 2021 · 2 comments
Open

Credential encrypted storage are not available #85

mehdismh24 opened this issue Nov 16, 2021 · 2 comments

Comments

@mehdismh24
Copy link

Hi,
My use case is an android launcher app for a tv box and Metrica crashes on device boot.
After a few seconds user is unlocked automatically and everything is fine from there.

java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:419) at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:404) at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:174) at com.yandex.metrica.impl.ob.kr.a(SourceFile:1) at com.yandex.metrica.impl.ob.cr.a(SourceFile:1) at com.yandex.metrica.impl.ob.cr.<init>(SourceFile:5) at com.yandex.metrica.impl.ob.fr.<init>(SourceFile:1) at com.yandex.metrica.impl.ob.vc.a(SourceFile:1) at com.yandex.metrica.impl.ob.ye.<init>(SourceFile:17) at com.yandex.metrica.impl.ob.ye.<init>(SourceFile:6) at com.yandex.metrica.impl.ob.ye.<init>(SourceFile:3) at com.yandex.metrica.impl.ob.we.l(SourceFile:1) at com.yandex.metrica.impl.ob.we.a(SourceFile:1) at com.yandex.metrica.impl.ob.te.call(SourceFile:2) at com.yandex.metrica.impl.ob.te.call(SourceFile:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.os.HandlerThread.run(HandlerThread.java:65) java.util.concurrent.ExecutionException: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked at java.util.concurrent.FutureTask.report(FutureTask.java:123) at java.util.concurrent.FutureTask.get(FutureTask.java:193) at com.yandex.metrica.impl.ob.we.n(SourceFile:1) at com.yandex.metrica.impl.ob.we.a(SourceFile:13) at com.yandex.metrica.impl.ob.Vt.run(SourceFile:3) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.os.HandlerThread.run(HandlerThread.java:65) java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked at com.yandex.metrica.impl.ob.we.n(SourceFile:2) at com.yandex.metrica.impl.ob.we.a(SourceFile:13) at com.yandex.metrica.impl.ob.Vt.run(SourceFile:3) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.os.HandlerThread.run(HandlerThread.java:65)

@ghost
Copy link

ghost commented Nov 16, 2021 via email

@mehdismh24
Copy link
Author

Does anybody even cares about the issues of this repo?

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