[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] p.l.jones:
Looks like this is the exception causing the android media service fail:

09-19 11:54:00.061 12773 12773 E d.process.medi: Not starting debugger since process cannot load the jdwp agent.
09-19 11:54:00.073 12773 12773 W d.process.medi: Core platform API violation: Ljava/lang/reflect/Field;->accessFlags:I from Landroid/os/Build; using reflection
09-19 11:54:00.114 12773 12773 D NetworkSecurityConfig: No Network Security Config specified, using platform default
09-19 11:54:00.114 12773 12773 D NetworkSecurityConfig: No Network Security Config specified, using platform default
09-19 11:54:00.147 12773 12773 E SQLiteLog: (1) no such column: mediastore_uri in "SELECT _id, mediastore_uri FROM downloads WHERE mediastore_uri IS NOT NULL"
09-19 11:54:00.148 12773 12773 D AndroidRuntime: Shutting down VM
--------- beginning of crash
09-19 11:54:00.149 12773 12773 E AndroidRuntime: FATAL EXCEPTION: main
09-19 11:54:00.149 12773 12773 E AndroidRuntime: Process: android.process.media, PID: 12773
09-19 11:54:00.149 12773 12773 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.android.providers.downloads.DownloadProvider: android.database.sqlite.SQLiteException: no such column: mediastore_uri (code 1 SQLITE_ERROR): , while compiling: SELECT _id, mediastore_uri FROM downloads WHERE mediastore_uri IS NOT NULL
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:7252)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:6788)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6705)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.app.ActivityThread.access$1300(ActivityThread.java:237)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7665)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: Caused by: android.database.sqlite.SQLiteException: no such column: mediastore_uri (code 1 SQLITE_ERROR): , while compiling: SELECT _id, mediastore_uri FROM downloads WHERE mediastore_uri IS NOT NULL
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1554)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1401)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1272)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1440)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at com.android.providers.downloads.DownloadProvider$DatabaseHelper.updateMediaStoreUrisFromFilesToDownloads(DownloadProvider.java:447)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at com.android.providers.downloads.DownloadProvider$DatabaseHelper.upgradeTo(DownloadProvider.java:385)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at com.android.providers.downloads.DownloadProvider$DatabaseHelper.onUpgrade(DownloadProvider.java:311)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:416)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:340)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at com.android.providers.downloads.DownloadProvider.onCreate(DownloadProvider.java:592)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:2388)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:2358)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:7247)
09-19 11:54:00.149 12773 12773 E AndroidRuntime: ... 10 more

App info says it's "Download Manager": com.android.providers.download