Originally Posted by wizzbang3
I can't believe this problem has been around so long without a solid fix. You would think google would be on top of this.
I'm having it on my S3 and it makes a great phone a misery.
I have HTC One X. Problems started after updating to JB.
MediaServer kept my phone wake for about 1.5 hours during one charge and it was always in the top 2 items of the battery usage list.
I solved the problem by doing this:
1. In menu Apps -> Media Storage, Force stop then Clear data.
2. In DCIM folder delete .thumbnails folder which contained two 350MB database files for me and the thumbs.db file if it is present.
After that go to Gallery app and try to see your photos. Media Storage process will restart and recreate all the thumbnails. Close gallery and just leave your phone for a while while it recreates thumbnails.
After it's finished check the gallery if all the thumbnails are there and restart your phone from the power menu.
After reboot all your ringtones and notification sounds should be back to default ones. Just set them again.
After that I only had one database file in DCIM/.thumbnails folder which was 150MB instead of 2x350MB. After next charge MediaServer was keeping my phone for only 22sec wake. Of course if I take a new picture with the camera it will activate but only for couple of seconds per image.
It finally worked and my phone feels so much smoother without MediaServer constantly working in the background.
I noticed one more thing. I have a new folder in DCIM folder called Corrupted which is just bunch of small thumbs.db files and folders which do not take too much space.