java.lang.RuntimeException: Unable to create application org.fdroid.fdroid.FDroidApp: java.lang.IllegalStateException: Not allowed to start service Intent { act=org.fdroid.fdroid.nearby.SCAN cmp=org.fdroid.fdroid.debug/org.fdroid.fdroid.nearby.SDCardScann
ANDROID_VERSION: '11'
APP_VERSION_NAME: 1.16-268-g1974ed8de-debug
AVAILABLE_MEM_SIZE: 2024968192
BRAND: Fairphone
DATE: '2023-06-16'
Message-ID: $2b$12$f15cfb39e6692f82d2e7buKHtMRnPstrKrsBe0r3R9uRYsiXmiZjO
PACKAGE_NAME: org.fdroid.fdroid.debug
PHONE_MODEL: FP2
STACK_TRACE_HASH: 830130f3
USER_COMMENT: "-- \nGregor"
STACK_TRACE:
java.lang.RuntimeException: Unable to create application org.fdroid.fdroid.FDroidApp: java.lang.IllegalStateException: Not allowed to start service Intent { act=org.fdroid.fdroid.nearby.SCAN cmp=org.fdroid.fdroid.debug/org.fdroid.fdroid.nearby.SDCardScannerService }: app is in background uid UidRecord{c1feac2 u0a217 TRNB idle change:idle|uncached procs:1 seq(0,0,0)}
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6724)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=org.fdroid.fdroid.nearby.SCAN cmp=org.fdroid.fdroid.debug/org.fdroid.fdroid.nearby.SDCardScannerService }: app is in background uid UidRecord{c1feac2 u0a217 TRNB idle change:idle|uncached procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1715)
at android.app.ContextImpl.startService(ContextImpl.java:1670)
at android.content.ContextWrapper.startService(ContextWrapper.java:720)
at org.fdroid.fdroid.nearby.SDCardScannerService.scan(SDCardScannerService.java:80)
at org.fdroid.fdroid.FDroidApp.onCreate(FDroidApp.java:398)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6719)
... 8 more
@