I have a Sony Xperia ZL running Android 4.2.2 . There's a background process named "Mediaserver" which uses most of my battery, while the phone is on standby. If I charge it to 100% and leave it alone, the "Mediaserver" process by itself will account for some 30% of all battery usage after 8 hours or so... Mediaserver manages to have "Keep awake" CONSTANTLY!
I've spent quite a lot of time searching about this, and went around many ideas, including that this excessive battery usage could be caused by some corrupt media (audio/picture/video) file stored on the device. But, despite having flashed several stock ROMs from around the world, without even having any kind of media (or even any app but the stock ones), the problem persists!
I have also tried the apps "Rescan Media Root" and "Mediaserver Killer" from the Play store (of course, I do have root access). For my misfortune, they were not useful.
As a fairly advanced user, who likes to be in control of things, I've tried to find "Mediaserver" under Settings / Apps hoping to stop it but it's not there. I'm believing to have found it under /system/bin/Mediaserver (no extension), but how can I stop it from running all the time? It seems to me that deleting/renaming this file isn't really a good idea.
Ps: I also tried a few Task Managers, but still couldn't find/stop the running process.
Any ideas on this will be appreciated, including possible some more information on how to manage built-in background processes on Android. Anything, really, I don't care if it envolves turning to ADB or running commands from Terminal Emulator.
Thank you everyone!