Skip to content

Exception after reboot(?)/at startof logcat #14

Description

@rugk

Was debugging something else, but noticed this exception:

--------- beginning of crash
03-22 19:06:14.695  3064  3064 E AndroidRuntime: FATAL EXCEPTION: main
03-22 19:06:14.695  3064  3064 E AndroidRuntime: Process: com.paranoid.privacylock, PID: 3064
03-22 19:06:14.695  3064  3064 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver com.paranoid.privacylock.receivers.BootReceiver: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user (id 0) is unlocked
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4939)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2527)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:109)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:232)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:317)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8934)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: Caused by: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user (id 0) is unlocked
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:632)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:610)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:223)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at h4.b.c(Unknown Source:14)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at h4.b.a(Unknown Source:22)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at j4.a.<init>(Unknown Source:300)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at com.paranoid.privacylock.receivers.BootReceiver.onReceive(Unknown Source:54)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4930)
03-22 19:06:14.695  3064  3064 E AndroidRuntime: 	... 9 more

Maybe you want to do something about it?

system

Device: Fairphone 4 (FP4)
OS: Android 15, CalyxOS 6.10.20
source: F-Droid
version: v. 1.1.9
Build-ID: BP1A.250505.005.25610200

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions