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
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.
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
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
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.
cp /sdcard/app/ /system/app/
cp /sdcard/priv-app/ /system/priv-app/
chmod 755 /system/priv-app/
chmod 755 /system/app/
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.