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

Crashed in the background. #92

Open
RokeJulianLockhart opened this issue Feb 2, 2025 · 0 comments
Open

Crashed in the background. #92

RokeJulianLockhart opened this issue Feb 2, 2025 · 0 comments

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Feb 2, 2025

Problem

FATAL EXCEPTION: main
Process: taco.scoop:crashDetectorService, PID: 17168
java.lang.RuntimeException: Unable to create service taco.scoop.core.service.detector.CrashDetectorService: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service taco.scoop/.core.service.detector.CrashDetectorService
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4665)
	at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2265)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8223)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:977)
Caused by: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service taco.scoop/.core.service.detector.CrashDetectorService
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
	at android.os.Parcel.readParcelableInternal(Parcel.java:4870)
	at android.os.Parcel.readParcelable(Parcel.java:4852)
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3052)
	at android.os.Parcel.createException(Parcel.java:3041)
	at android.os.Parcel.readException(Parcel.java:3024)
	at android.os.Parcel.readException(Parcel.java:2966)
	at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6761)
	at android.app.Service.startForeground(Service.java:775)
	at taco.scoop.core.service.indicator.IndicatorService.onCreate(IndicatorService.kt:33)
	at taco.scoop.core.service.detector.CrashDetectorService.onCreate(CrashDetectorService.kt:13)
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4652)
	... 9 more

Environment

OS: OEM distribution of AOSP
  Version: 14
  Build: FP5.UT2K.B.098.20250109
Device: Fairphone 5 (FP5)
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