Yet Useful
July 12

Media Picker Crashed

It's been a long time that i'm not posting about guides or how to fix something, but recently, i got stupid things that causing very rare problem like you can't find the fix anywhere.

The Story

Recently, i was facing bugs that makes me frustrated for almost a month! But the funny thing is, it was because my own fault.

In every ROMs, i always do Debloating all useless system apps to prevent thise system apps from running in the backgrounds. [Also read Batch Debloat Article]

After doing everything that the internet says to fix this, none of them are fixing my problem.

  • Relabeling all files under /data/media/0/ [Only can be done using custom recovery such as TWRP and OrangeFox]
  • Fix SeLinux Contexts [Only can be done using custom recovery such as TWRP and OrangeFox]
  • Install SeLinux permission fix module [The file is available on XDA forums but i don't have the link anymore]
  • Repair and Change Partitions of Data, Cache and Metadata [Only can be done using custom recovery such as TWRP and OrangeFox]
  • Reset App Preferences [Go to Apps list > 3 dots > Other settings > Reset app preferences]
  • Clear Media Picker Databases
  • /data/data/com.android.providers.media/databases
  • /data/data/com.google.android.providers.media.module/databases
  • I forgot what else i've done for this 🥸

Point of Problem

Before Debloating, i always take a look in the apps list first. In MIUI,there's 2 of Downloads app:

So i debloat on of them that doesn't has a launch activity and then i forgot about it for long time ago. After 1 or 2 weeks i got a popups that telling my Media Picker [Also known as Media Storage] is Crashed [Also known as Keeps stopping], and it's always happened after i Moving, Copying, Deleting files whether To or From internal Download folder. [It's also affect to Gallery, MiXplorer, Browsers when downloading files]

Caused by the Problem

Fixing

After everything and nothing can fix, i try to experiments and finds what makes the problem to triggered, and here's what i'm doing, i already debloat all system apps as always before i'm doing this:

First, i move 2.5GB file using MiXplorer to Download folder [External to Internal storage]
It's completely safe and nothing wrong, but when i delete the file that i moved in Download folder, MiXplorer crashed and also the Media Picker.
I did it more than 10 times with different files, i also try to move a bunch of photos, the problem still persists when i delete them.
And i got an idea what about if i move and delete them to another folder. So i moved them to Pictures folder in Internal storage, everything is fine like the problem never exists.
I'm asking myself why? Why is it not crashed like before? I try to move and delete to Download folder again, it does crashed again! [I was like I FOUND YOU] I finally found what's makes the problem triggered.
As i said before, i always take a look of apps list to find another useless system apps, and then i remember there's a Download Manager app that i debloated. [I'm thinking like it might be connected to the problem right?]
So i try to install the app again using Lucky Patcher app. After the app installed, i try to move and delete big and bunch of photos to Download folder again, and you know what? Nothing is crashed, whether MiXplorer or Media Picker app, none of them is crashed! I repeat it again and again for almost 10 times and everything's fine.

After everything i'm done to fix the problem it's only because my stupid actions! Thanks for reading my story, it's not only a story, it can helps you in the next time if you do the same stupid thing like this too so you can fix it easily or you can avoid this problem by DO NOT DEBLOAT DOWNLOAD MANAGER APP!