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: '10'
APP_VERSION_NAME: 1.16-255-g6f3d0a739-debug
AVAILABLE_MEM_SIZE: 398110720
BRAND: Nokia
DATE: '2023-06-13'
Message-ID: $2b$12$c42838fcd141799344bebOInSKtPHmDLn.o2mC51mqNCf8ugluCOC
PACKAGE_NAME: org.fdroid.fdroid.debug
PHONE_MODEL: Nokia 3.1
STACK_TRACE_HASH: bf3fbf93
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.debug/org.fdroid.fdroid.nearby.SDCardScannerService }: app is in background uid UidRecord{be522f3 u0a484 TRNB idle change:idle|uncached procs:1 seq(0,0,0)}
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6493)
at android.app.ActivityThread.access$1400(ActivityThread.java:226)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1884)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7386)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
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{be522f3 u0a484 TRNB idle change:idle|uncached procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1617)
at android.app.ContextImpl.startService(ContextImpl.java:1572)
at android.content.ContextWrapper.startService(ContextWrapper.java:669)
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:1189)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6488)
... 8 more
@