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

Removed direct boot awareness to fix silent crashes #1837

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mlostekk
Copy link

In order to remove silent crashes during the startup of the device, this direct boot awareness was removed.

This is the affected crash

Exception java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked
  at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:499)
  at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:484)
  at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:188)
  at com.google.android.gms.internal.appset.zzl.zzf (com.google.android.gms:play-services-appset@@16.0.0:1)
  at com.google.android.gms.internal.appset.zzl.zzd (com.google.android.gms:play-services-appset@@16.0.0:1)
  at com.google.android.gms.internal.appset.zzh.run
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
  at java.lang.Thread.run (Thread.java:923)

which happens to all users that reboot their device

@mlostekk
Copy link
Author

We have verified the fix by deploying 2 versions

  • Local notifications were added in 0.2.0
  • The suggested fix was deployed in 0.4.1

image

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

Successfully merging this pull request may close these issues.

None yet

1 participant