[OnePlus 3 & 3T Cross Device Development] swat4samp:
I'm facing android.process.media FC whenever i download any image file from either whatsapp or telegram. I'm on latest build and the only modification i did is to remove google play services from not optimized list in battery setting. I'll provide full log if it's necessary.

build.board: msm8996
build.bootloader: unknown
build.brand: OnePlus
build.cpu_abi: arm64-v8a
build.cpu_abi2:
build.device: OnePlus3
build.display: aosip_oneplus3-userdebug 8.1.0 OPM1.171019.021 11f82666c0 test-keys
build.fingerprint: OnePlus/OnePlus3/OnePlus3:8.0.0/OPR1.170623.032/02281230:user/release-keys
build.hardware: qcom
build.host: KangBox
build.id: OPM1.171019.021
build.manufacturer: OnePlus
build.model: ONEPLUS A3003
build.product: aosip_oneplus3
build.radio: unknown
build.serial: 390e9f7a
build.tags: release-keys
build.time: 1522167731000
build.type: user
build.user: akhil
version.codename: REL
version.incremental: 11f82666c0
version.release: 8.1.0
version.sdk_int: 27

04-04 00:00:01.792 E/AndroidRuntime(7007): FATAL EXCEPTION: main
04-04 00:00:01.792 E/AndroidRuntime(7007): Process: android.process.media, PID: 7007
04-04 00:00:01.792 E/AndroidRuntime(7007): java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.android.providers.media/.MediaScannerService (has extras) }: app is in background uid UidRecord{5d14cc7 u0a10 TRNB idle change:uncached procs:1 seq(0,0,0)}
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1521)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.app.ContextImpl.startService(ContextImpl.java:1477)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.content.ContextWrapper.startService(ContextWrapper.java:650)
04-04 00:00:01.792 E/AndroidRuntime(7007): at com.android.providers.media.MediaScannerService$1.requestScanFile(MediaScannerService.java:194)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.media.MediaScannerConnection.scanFile(MediaScannerConnection.java:176)
04-04 00:00:01.792 E/AndroidRuntime(7007): at com.android.providers.downloads.DownloadScanner$ScanRequest.exec(DownloadScanner.java:64)
04-04 00:00:01.792 E/AndroidRuntime(7007): at com.android.providers.downloads.DownloadScanner.onMediaScannerConnected(DownloadScanner.java:143)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.media.MediaScannerConnection.onServiceConnected(MediaScannerConnection.java:256)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1652)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1681)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.os.Handler.handleCallback(Handler.java:790)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.os.Handler.dispatchMessage(Handler.java:99)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.os.Looper.loop(Looper.java:164)
04-04 00:00:01.792 E/AndroidRuntime(7007): at android.app.ActivityThread.main(ActivityThread.java:6499)
04-04 00:00:01.792 E/AndroidRuntime(7007): at java.lang.reflect.Method.invoke(Native Method)
04-04 00:00:01.792 E/AndroidRuntime(7007): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
04-04 00:00:01.792 E/AndroidRuntime(7007): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)