Since this morning after powering up my Oneplus 6 I'm unable to see any data in my phone via gallery or file manager or any application, and I'm unable to save any data to internal storage. (example: I'm able to use whatsapp for texting, but I can't receive/send any audio/picture and I can't access the old ones).
And I keep getting this error message:"com.android.providers.media.MediaApplication keeps stopping."
I don't know if that's what causing it or if that's just a consequence of not being able to access internal storage.
I can still see all the used storage from settings though.
Phone has unlocked bootloader, but no root.
I see other Oneplus users started getting the same error these days... (I have a Oneplus 6, but others have different models like Oneplus Nord).
I tried rebooting in safe mode, cleaning media and media.module packages from adb but no luck even if successful.Looks like the only remaining option is to reset the phone through recovery, but I wouldn't like to go through this and lose app data.
If anyone has any other suggestion on things to try, post it here please.
com.android.providers.media.MediaApplication
is the central database that maps the files to their file location. Since Android 11 it is the only way for regular apps to access shared files. If it encounters a media file it can not process correctly (e.g. crashes while processing it) you can end up in such a situation. You can regenerate the database by clearing the app data for the aforementioned system app. It will then be regenerated (depending on the number of files you have stored this can take minutes or hours.