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/.nearby.SDCardScannerService }: app is in
ANDROID_VERSION: '10'
APP_VERSION_NAME: 1.17-alpha0
AVAILABLE_MEM_SIZE: 109648322560
BRAND: samsung
DATE: '2023-06-24'
Message-ID: $2b$12$48058dc6a5575fa24ca0cuPs8XrKZyz.LJcvQ4nvBXEu8mbXaMrBW
PACKAGE_NAME: org.fdroid.fdroid
PHONE_MODEL: SM-N960U
STACK_TRACE_HASH: 1dabc4df
USER_COMMENT: ''
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/.nearby.SDCardScannerService }: app is in background uid UidRecord{649e837 u0a502 TRNB idle change:idle|uncached procs:1 proclist:9263, seq(0,0,0)}
at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7189)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7134)
at android.app.ActivityThread.access$1600(ActivityThread.java:274)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=org.fdroid.fdroid.nearby.SCAN cmp=org.fdroid.fdroid/.nearby.SDCardScannerService }: app is in background uid UidRecord{649e837 u0a502 TRNB idle change:idle|uncached procs:1 proclist:9263, seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1688)
at android.app.ContextImpl.startService(ContextImpl.java:1633)
at android.content.ContextWrapper.startService(ContextWrapper.java:683)
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:1190)
at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7184)
... 9 more
@