type: crash
osVersion: google/bluejay/bluejay:13/TP1A.221005.003/2022101600:user/release-keys
package: tech.projectmatris.antimalwareapp:10400
process: tech.projectmatris.antimalwareapp
java.lang.RuntimeException: Unable to start receiver tech.projectmatris.antimalwareapp.receiver.BootCompletedReceiver: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4346)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7904)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ExecInit.main(ExecInit.java:49)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
Caused by: java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:577)
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:562)
at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:217)
at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:217)
at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:545)
at tech.projectmatris.antimalwareapp.receiver.BootCompletedReceiver.onReceive(BootCompletedReceiver.java:40)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4337)
... 11 more
The background service crashes every time I boot my phone. It has happened many times, but this time I copied the stacktrace and reported it here.
Information: LibreAV app version: 1.4.0 (installed from F-Droid) Android version: 13 OS: GrapheneOS 2022101600 Phone: Pixel 6a
Stacktrace: