General :: Media Scanner / Manager Causing CPU Battery Usage / Drainage
Nov 22, 2012
Have a brand new HTC One X+ (AT&T). Having an issue where after boot and sometimes all of the sudden during the day, the phone gets hot and battery level drops l like ton of bricks. Using Android Task Manager App and enabling monitor of system processes and selecting realtime monitor, I've traced the problems to "android.process.media". This appears to be something to do with Android scanning the device for media files (audio/video/etc) and creating some sort of database. I also usually see the "Music Enhancer" process which has to do with Beats Audio according to HTC (but I have Beats turned off.)
I've seen old threads of people with same problem and in some cases it had to do with a "corrupted" media file and they had to remove all media files and/or factory reset their device. I just spent an entire weekend customizing this device! Plus, how the heck do you prevent yourself from copying the corrupted file over if it was a corrupted mp3 or something?
I'm pretty sure my issue stems from the fact I used my media manager (Media Monkey) to sync over 2,800 audio files to the device. My collection is of high bitrate quality, about 16GB worth of music. I'm pretty sure this is what it is choking on. What I'm not sure of is if the Media Scan the Android device is performing is just a "normal check" for changes/addition/deletions to any of the media files. This of course would take a lot of time and CPU if it has to scan 2,800 files every reboot or periodically. It seems launching Google Play sometimes starts it too as I also sometimes see Google Play Service:Music or something like that (even though I don't stream any of my audio from Google Play.)
View 1 Replies
Jun 22, 2012
I am experiencing massive battery drain from *wakelock*/mediaplayer while music playback.
For now, i have tried everything:
- full wipe
- music playback on fresh wiped rom
- formatting sdcard / internal storage
- disabling media server
- debugging with logcat
- ...
Currently, the mediaserver drains more power then any other process, including screen. The phone gets not hot, but warm while only playing music with screen off. That was not happening before, as i listen music daily.
After all, the problem is most likely caused by a corrupt file, but how can i locate this file ? I have 2300 mp3s on my phone, so testing every single one would be a bit complicated...
GT-I9100
View 9 Replies
View Related
Nov 26, 2013
Often your Media scanner can misbehave and eat lot of CPU, Battery un-wantedly.
I had been digging out how to fix it, and here are my solutions. Perhaps try al of them, it would definitely relieve your cpu and battery usage by large. Solution works on any Android version:
Solution 1. Clear media storage data
Settings > applications > Media Storage > clear data, force stop and reboot.
Solution 2. Remove unwanted media files Navigate to /sdcard/DCIM/.thumbnails and delete all files. Repeat for external sd card. On AOSP roms, Android gallery creates too many of thumbnails that later becomes problematic for media scanner.
Solution 3. Analyze and delete excessive media files Find out what files are causing media scanner to go mad. Use any sdcard analyst (I use ES file manager > menu > Sd card analyst) to determine which directory has lots of files/subdirectories inside it. Any directory having >1000 files/folders is an alarmingly high number. Get rid of them (if you can).
Solution 4. Probe and delete bad/damaged media If you're sure you've tried above solutions and still encountering battery drain, its time to dig deeper with developer tools. Pre-requisite: You must be rooted, and have android developer tools (adb) setup. With ADB tools installed, enter shell and acquire su permissions
Code:
adb shell
su
Then run top (linux task manager) to see which process is eating cpu. You can filter top results
Code:
top -grep media
this would give you a result like
Quote:
130|root@n7000:/ # top | grep media
1905 0 10% S 7 23080K 6168K bg media /system/bin/mediaserver
2808 0 40% S 3 3524K 740K media_rw /system/bin/sdcard
2825 0 9% S 19 255832K 43936K bg u0_a5 android.process.media
%age cpu shows media server is eating cpu and needs to be fixed. Run the following command to determine which file is it currently reading
Code:
lsof | grep media_rw
If the media service is stuck at a directory/file for a long time, you know it's a damaged media file, you should get rid of it.
Once you get rid of such files, Its guaranteed media server would finish scanning soon enough.
Solution 5: Format SD cards If nothing works (or you're too lazy of trying solution 4): Take backup and format Internal, external sd card and copy only selective files/folders that you need. Problems would go away for sure.
Solution 6: Disable Media scanner If your Droid is against you and it just won't tame, its time to disable the media scanner. You can do this from adb shell
Code:
pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver All Solutions with full detail: Fix Android Media server scanner SDcard CPU, Battery drain
View 6 Replies
View Related
Sep 27, 2010
When I run the following line of code:
MediaScannerConnection scanner = new MediaScannerConnection( this, null );
scanner.connect();
scanner.scanFile( szFinalFileName, null ); //<---crash here
I get a crash and this message in the console window:
09-26 14:47:44.074: ERROR/MediaScannerService(10288): Failed to delete file /data/data/com.android.providers.media/pause_scan
does anyone have any ideas why this isnt working and what i can do to fix it?
View 1 Replies
View Related
May 10, 2013
Before I entered the world of custom ROMs, my i9300's battery was fine. However, when I flashed my first custom rom months ago (CM10.1 nightly), my battery would drain from 100% to 0% in around four or five hours. This was only on light to moderate use, with a bit of Web browsing and Kindle. GPS and mobile data are almost always both off, other than when I need them, and brightness is set at the lowest possible 90% of the time. I checked my battery usage in the settings and there was no evidence of the renowned mediaserver cause of battery drainage, so I'm not really sure what the cause is.
Also, a few days ago my phone began reaching extreme temperatures when I executed any operation on my phone. At the moment I am typing in xda only and my battery is at 111 degrees. I noticed that it began with a certain nightly of Carbonrom and Temasek kernel.
I have done numerous factory resets and flashed different ROMs and even gone back to stock and fully unrooted, but the problem persists.
View 2 Replies
View Related
Nov 15, 2012
I have bought S3 i9300 few days ago.Its updated to Android 4,.1 and it is rooted.Screen uses more than 50% of battery but the brightness is at low.I am facing is the WiFi connectivity , when I disconnect the WiFi it remains as and does not work at all.I think the WiFi problem is due to old kernal but I don't know how to update Kernal ?
View 2 Replies
View Related
Jun 9, 2011
And if yes, what is the name of the app/service that I have to freeze using Titanium Backuup?
I have a 8 GB SD Card with only about 550 MB free, and the stupid media service creates 500mb worth of thumbnails and cache. It re-creates it each time I delete the cache. I'm currently running MIUI Gingerbread 2.3.4. Back when I was running CyanogenMod 6.xx I used to simply freeze the Gallery app and that used to solve the issue, but I don't see the gallery app listed in Titanium on the MIUI ROM. Freezing the MIUI Gallery app didn't stop the thumbnail cache creation process.
Creating a .nomedia file in the respective folders isn't an option because I need my photographs (I have about 20k worth of family/spouse pics that I always carry around on my phone in addition to wallpapers etc.) to be visible in Quickpic / Fishbowl photo app etc.
View 5 Replies
View Related
Nov 15, 2010
Downloaded this over the weekend and really liked it,especially the counts on the icons for Mial, SMS etc.
However, It is draining the battery fast.Using System Info I can see that when LauncherPro is installed android.process.acore is running at 100% CPU yet without it installed it runs at 0%.Any ideas what is occuring and how it can be fixed, or is this normal for LauncherPro?
View 11 Replies
View Related
Jun 18, 2010
Something I have noticed - both with and without using an app killer is that when my battery is fully charged, I will have above 180mg of memory available at all times. But as the battery's charge starts to drain down around 50%, my available memory also gets smaller and smaller, despite how many or how little apps are being run.
Has anyone else noticed this and what is preventing it or what wold a fix be?
View 1 Replies
View Related
Oct 22, 2009
whenever any (non-android) java project in my eclipse ide is built, a "Loading Android Sdk Content" Job is started although no android project is open. Furthermore adb is started in the background, causing 100% CPU usage. When killing adb DDMS prints: Code...
View 2 Replies
View Related
Aug 6, 2010
Been following the forums closely (particularly Early Mon's post found here: ttp://androidforums.com/support-troubleshooting-evo-4g/141369-how-fix-froyo.html)I was an early adopter of the 'unofficial' FROYO leak and while i havent had any significant issues (i'd rather wait for fix from HTC) i have suffered from an incredibly leaking battery once its off charge (i use SWITCH PRO WIDGET battery monitor) and it appears that im losing 1% every minute. While i dont mind doing a HARD RESET--its just time consuming reconfiguring some of my apps' settings-I would like to take a less dramatic approach. i know there are proponents on both sides of fence (for HARD RESET and against it) and wanted to know my options.
View 11 Replies
View Related
Jan 20, 2010
I ended up buying a Behold 2 off of ebay (new) and I still sort of have a battery problem after reading and doing most of the tips on here. My phone charged overnight and has been unplugged on standby since 7am (now 2pm) and the battery is at 74%. Is this normal? WiFi/BT/GPS are all disabled, I always kill unnecessary tasks with taskiller but still, any other suggestions?
Also: it's some cool stuff you guys are doing with the galaxy ROM; I tried rooting it last night but got $ when I typed in su instead of #. Oh well, I can wait until the galaxy ROM is 100% working, afaik the vibration still isn't. With classes picking up again next week, vibrate would be my only setting.
View 10 Replies
View Related
Jun 28, 2010
I used to get about 35-40 hours on one charge before the wonderful update to 1.6.I got off the charger at 6am TODAY and now i am at 20%.ridiculous nothing on my phone has changed except the 1.6 update (and some app updates cause 1.6).Anyone else seeing this issue?
View 49 Replies
View Related
Sep 28, 2012
I used to have a problem with the media scanner making duplicate song entries, only one would play and the other was invalid. For some reason that went away and now it adds media once and never scans again, so if I add songs later they never get picked up to be shown in the music player or winamp etc.
I found these tips:
go to application manager> all application and search
-media storage,
-music player,
-gallery application
and just delete cache and data and restart. It will solve the problem a it force to re build data base
This works still but it is a complete PITA because it resets wallpapers, ringtones and all sorts of other things to default and I don't want to have to do this every time I add a song. How do I fix the media scanner, does it even have logs or something I can look at?
Galaxy Note i717 ICS 4.0.4.
View 1 Replies
View Related
Nov 20, 2009
There seems to be lots of discussions on Battery life, so I did a test myself. I was getting about the same battery life as everybody else, about 6-7 hours with moderate usage. Which is what all the beta testers were getting pre release. I thought I would give something a try. First of all, when I picked up the phone it was about 75% charged. I charged it to 100%, and let it go down to about 30% that first day and then charged it. I followed this everyday for the first week, and was still getting the same battery life out of it. I never allowed the device to completely drain and shut off. Well I gave that a shot, and what did I find, My battery is lasting much longer, like doubled. So give this a try. I let the phone die, completely die so it shuts off. Then charge it 100% overnight. Worked for me, don't know if it will work for you, but give it a shot.
View 3 Replies
View Related
Jul 21, 2010
Night before last, I charged the battery to 100% before I went to sleep. When I was going to sleep, I unplugged it. When I woke up 7 hours later, it had only dropped 30% to 70%. I did the software upgrade, and the battery jumped back up to 80% and lasted a Long time. Well, last night, I did the same thing, and when I woke up, my battery had dropped to 50%. The phone was supposedly sleeping this whole time! A few minutes on the browser to look up the issue brought me down to 40%.
All I installed yesterday was YellowPages, WhitePages, Flikie (then uninstalled it) and LauncherPro (could this be the culprit?). Before I went to bed though, I opened GMail, and it was having trouble connecting to the server and finally gave me a "retry" button because it couldn't connect. I never pressed it and just went to sleep. WiFi, GPS, everything was off, and the screen was set to lowest brightness (which doesn't even matter here.) Why it dropped so much?
View 3 Replies
View Related
Mar 26, 2010
I have gone through multiple battery out reboots and my phone is still at 100% awake (via spare parts). I kill every process but voice control keeps coming back. my battery is only good for 3-4 hours as of this morning. battery died once, charged it, and i'm now on my spare!
View 3 Replies
View Related
Sep 1, 2010
What is the class name of media scanner service?
View 2 Replies
View Related
Nov 2, 2009
I've already been searching forums and google groups to find out how to force Media Scanner to rescan the sd-card for media files, but with no luck. So after 2 days of searching i decided to post a question here.
In my app i need to rename media files, change their extension, or to reveal them by changing back their extension, but the changes take effect only after i run Media Scanner from the dev-tools, or remount the image, or reboot the phone/emulator. I've tried using MediaScannerConnection, and it only works when revealing media files, but not refreshing the gallery / music player thumbnails which is the biggest problem in my app development right now.
I've also tried copying files and deleting the old ones, but that has no effect also. Does anyone have any experience with this?
View 2 Replies
View Related
Apr 20, 2013
Is there any device (phone or tablet) running Android 4.0.x that can display the native battery usage data via Settings --> Battery , instead of displaying "Battery usage data not available" ?
It is supposed to display a list of apps and what % of the battery they consumed.
View 2 Replies
View Related
Sep 7, 2009
I am trying to open an image edit it and save it back. And i am using the below code, mScanner = new MediaScannerConnection(this, new MediaScannerConnection.MediaScannerConnectionClient() { public void onMediaScannerConnected() { mScanner.scanFile (fileName, null /* mimeType */); }
View 4 Replies
View Related
Nov 2, 2011
how to force media scanner to scan different location other than /mnt/sdcard like /mnt/USB or /mnt/sdcard_2 ..
View 1 Replies
View Related
Aug 25, 2010
Is anyone using the Motorola Media Manager (or Media Link) to sync their itunes with the X? I downloaded the software but it keeps crashing. I've seen a few people refer to it but haven't seen much about it working or being used. I did find an app called iSyncr for PC that seems to have some good comments though.
View 11 Replies
View Related
Jul 16, 2012
how to get the battery usage per application.I want to implement battery usage per application in code. So I need idea how I should work to get this. I am not searching for app shows battery usage. I want to implement one such app.
View 7 Replies
View Related
Dec 11, 2012
how the Apps affect Battery usage. I'm using a Note 2 with the latest OS.
So, I wanted to know if the apps are still using battery power when I switch screens? When I press the center (home) button, it shows me thumbnail list of all the apps, areas I've been to or used. I can select and remove them from the list. I am wondering if they are still using battery power until I remove them from the list. If this does tend to use extra battery power, is there an app out there that will definitely turn off the app when I am not using it?
I just don't know how Android manages Memory/power. It just seems that I can watch my battery power decrease, even when it's not being used.
View 2 Replies
View Related
Sep 17, 2009
I push a audio file named "music.aac" into SD card, and then execute "Media Scanner" application or re-start the device. I found that media scanner didn't process ".aac" file, so the "music.aac" file doesn't exist in music player. But Android supports AAC/AAC+/eAAC format.So who know the reason that the ".aac" file doesn't be processed by media scanner.
View 2 Replies
View Related
Nov 22, 2012
I am using K-touch w619 rebranded as Karbonn A5 in India.
I get horrible battery backup because of cell standby which takes 50%-60% battery...How can i reduce it???
I just have 13 apps intalled namely xda,dolphin and uc browsers,jetaudio,titanium b,es file ex,es task mgr,link2sd, lucky patcher,soundhound,holo plus and dictionary
View 3 Replies
View Related
Nov 7, 2009
I've been using Task Panel X and Advanced Task manager to kill unneeded tasks and keep memory at a maximum.
Recently, every time I open Task Panel X and then revert back to Home screen I get the HTC logo and then a loading screen while the device sets itself. This happens even if I kill NO tasks.
So my solution was to uninstall Task Panel X and then use just Advanced Task Manager. All the sudden, same result.
Everytime I open either of these apps and then go back to home screen I get a BLACK SCREEN WITH HTC LOGO, THEN A BRIEF (10 SECONDS) LOADING SCREEN. THEN ALL IS NORMAL.
View 7 Replies
View Related
Jun 9, 2010
I bought a 3rd party battery charger. When it is plugged & charging my phone is froze. If I'm listening to the radio or music the app continues to work, but I but everything else is froze. Anyone having this problem or know a workaround?
View 1 Replies
View Related
Nov 4, 2010
Ive just got a new Wildfire and I�m having some issues with the battery. The most concerning thing is that it seems to be running down quicker overnight, while I�m asleep and the phone is idle with the screen locked. When I went to sleep last night it was showing at about 50%. However it woke me up at 5am this morning telling me to connect the charger � the second time this has happened in 3 days. I already have wireless, bluetooth and 3G switched off (I only switch these on when I want to use them), background data switched off and the screen brightness set at low. When I checked the applications that were running this morning, there was nothing that shouldn't have been there. Anyone got any idea what could be causing the battery to run down so quickly overnight when the phones not being used?
View 2 Replies
View Related