BlissLauncher crashes after reboot
- /e/ version: v.21-r
- Device model(s): FP4
- Device rooted: no
Summary
BlissLauncher crashes after a reboot.
Possible reason
This might be because we start a foreground service from the background.
Logs
01-21 17:36:14.231 3334 3334 E AndroidRuntime: FATAL EXCEPTION: main
01-21 17:36:14.231 3334 3334 E AndroidRuntime: Process: foundation.e.blisslauncher, PID: 3334
01-21 17:36:14.231 3334 3334 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{foundation.e.blisslauncher/foundation.e.blisslauncher.features.launcher.LauncherActivity}: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=foundation.e.blisslauncher/.features.notification.NotificationService }: app is in background uid UidRecord{ec8f9b4 u0a86 TPSL idle procs:1 seq(0,0,0)}
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3431)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
--
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7664)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=foundation.e.blisslauncher/.features.notification.NotificationService }: app is in background uid UidRecord{ec8f9b4 u0a86 TPSL idle procs:1 seq(0,0,0)}
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1715)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.ContextImpl.startService(ContextImpl.java:1670)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.content.ContextWrapper.startService(ContextWrapper.java:720)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at foundation.e.blisslauncher.features.launcher.LauncherActivity.onCreate(LauncherActivity.java:314)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7994)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7978)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3404)
01-21 17:36:14.231 3334 3334 E AndroidRuntime: ... 11 more
Edited by Jonathan Klee