Help I accidentally removed the Media Scanner A couple of hours ago I was cleaning out unnecessary apps on my phone (LG G3) using 3C Toolbox when I must have accidentally removed the app responsible for scanning my media. The Gallery &amp; Music apps both claim that there's no media for them to retrieve yet when I use the file browser I can locate specific files on my phone. 3C toolbox won't allow me to create backups for some reason but that's another issue. I have the .zip for the exact ROM that I'm using but I'm unsure on how to extract the right app from it to reinstall. Any help whatsoever is greatly appreciated! Thank you!

P.S. I have tried numerous media re-scanners on the Play store but none of them seem to work, I assume this is due to the media scanner itself being missing.

(Device: LG G3 D855) (ROM: Resurrection_Remix_LP_v5.3.8-20150309-d855)
Here's what you do since you have the ROM zip:


Open the ROM zip in pc with winrar or similar.
Inside zip go to system/app and copy MediaScanner.apk (or any similar name depicting it as MediaScanner) to desktop. If there is no MediaScanner.apk inside system/app, then check inside system/priv-app (it would definitely be in one of these folders).
Connect your phone to PC. Copy MediaScanner.apk from desktop to its internal sdcard.
Install and open Terminal Emulator.

Enter the command su -- it will ask for granting root, grant it. 
Enter the command cp /sdcard/MediaScanner.apk /system/app/ -- this will copy MediaScanner.apk to the folder where it should be. 
Now the final step, permissions. Enter this command to set permissions -- chmod 755 /system/app/MediaScanner.apk

Reboot phone.


NOTE:

Make sure you copy mediascanner.apk to root of your internal memory and not in some folder. Else you will have to modify the commands I told above.

The name MediaScanner.apk might be different in your case. Just look around for an app that resembles the name. For e.g. in my phone the name is MediaProvider, so just look around for keyword Media.

Choice 2 in case you fail to find MediaScanner.apk, or any other problem


From the zip file on computer you opened in winrar, copy the entire app and priv-app folders inside system folder to desktop. Then connect your phone and copy these two folders to root of internal memory (not in some folder).
Install and open Terminal Emulator, enter the following commands one by one.

su
cp /sdcard/app/ /system/app/
cp /sdcard/priv-app/ /system/priv-app/
chmod 755 /system/priv-app/
chmod 755 /system/app/

Reboot phone.


NOTE:

This may cause crashing of some stuff (only once this time, wont happen after you run all these commands and reboot). Dont fret, and think of it as normal.

You will have all those useless apps installed again, so you will have to remove them carefully again. This time, take a backup first and remove one by one keep checking for consequences of every app you uninstall by rebooting and testing.