Media Server battery drain issues - Android Q&A, Help & Troubleshooting

Recently I've been having a real bad experience with the Android Media Server, I know of the Rescan Media Server app that kills the service but that's not what I'm after. I know this problem plagues a lot of Android users and some might not even know that this is happening to their phones!
Is there a sure and permanent way to fix this problem? Like maybe an app to repair the corrupted files on the phone?
Formatting your SD card might help but with phones like the HTC One with non removable storage, having a corrupted file will be disastrous! I really hope Google will fix this issue :/

Related

[Q] Storage issue

I don't know if it's just on my folio, but I seem to be losing things stored on on both internal and sd card. This is mainly media (music and video). Has anyone else had any problems?
Anyone got any ideas as to anything I might be able to do to stop this?
I didn't put this in the new issues/bugs thread because it's been happening since the original stock rom.
Thanks in advance
Do you mean that you are loosing files randomly?
This could be a hardware problem.
bastospn said:
Do you mean that you are loosing files randomly?
This could be a hardware problem.
Click to expand...
Click to collapse
Yes, it's quite frustrating really. I was hoping it was something software related.

Problems with music on AOKP (media scanner issue maybe?)

Hey guys, I've been having a maddening problem with music stored on my external SD card and hopefully someone can help figure this out:
I'm running AOKP, and have all of my music stored on a 16GB external SD card. The problem I've been having is that whenever I open up the phone (generally to switch SIM cards as I'm living overseas and use several different cell companies) the media storage gets all messed up.
I used to be using Google Play Music, and whenever I'd do a SIM swap I could no longer play music. I'd get an error saying "could not play the requested track" on all of my music files.
Figuring GPM just sucks, I switched to WinAmp. Well, the same thing kinda happens. Now, when I do a SIM swap, all of my music tracks get listed twice. One version of the track won't play, the other one will.
Basically what it seems like is that every time I change the SIM card, the media scanner is re-running. Except that it doesn't realize that the files haven't changed, so it re-indexes everything. But this causes music apps to go haywire.
I used to do a data wipe on the Media Storage app, which would clear everything out on Google Play Music (haven't done it yet when using WinAmp). But eventually the problem would crop up again.
To be clear, I recently did a full wipe and installed a fresh version of AOKP. Unfortunately after swapping SIM cards just once the problem reappeared, and TBH I shouldn't have to do a clear data on Media Storage every time I swap the darn SIM card.
I used the phone overseas about 6 months ago when I was still running stock 2.3.6 from AT&T, and never had issues with media storage. Is this an issue using non-Samsung ROMs, or is it an ICS issue in general, or is something else at work here? It's a bit maddening that something as simple as using my phone to play music has become such an ordeal, and I'd like to find a permanent solution to this without having to constantly do data wipes.
Thanks
Anyone? I realize probably the majority of people here are using their i777 on ATT and probably don't open the phone much, but this is a pretty maddening problem to not be able to store my music on the external SD card without the phone going crazy after every time I open it up. I may try going back to a Samsung ROM and see if it's just an AOSP thing, but I'd really prefer to stay on AOKP if possible...
goheels said:
Anyone? I realize probably the majority of people here are using their i777 on ATT and probably don't open the phone much, but this is a pretty maddening problem to not be able to store my music on the external SD card without the phone going crazy after every time I open it up. I may try going back to a Samsung ROM and see if it's just an AOSP thing, but I'd really prefer to stay on AOKP if possible...
Click to expand...
Click to collapse
I have this too. Would like to know a solution!
Sent from my SGH-I777 using xda app-developers app
This probably isn't the solution you're looking for, but I'm pretty sure PowerAmp uses its own media scanner, so that should mitigate the problem. See if that helps. As for listing twice, that's usually because there's a symlink somewhere; for me it's usually /emmc and /mnt/emmc, so it's listing twice.
Thanks for the tip, if I decide to stick with AOKP I'll probably give PowerAmp a try I'm actually wondering if the Samsung music player works the same way and has its own media scanner; that would likely explain why I don't remember ever having a music issue when I was running Samsung-based ROMs.
Regarding the symlinks, how would I know if that's the real issue? I do have both /emmc and /mnt/emmc, and I also have /sdcard/external_sd. How could the problem be fixed if that's what's going on?
goheels said:
Hey guys, I've been having a maddening problem with music stored on my external SD card and hopefully someone can help figure this out:
I'm running AOKP, and have all of my music stored on a 16GB external SD card. The problem I've been having is that whenever I open up the phone (generally to switch SIM cards as I'm living overseas and use several different cell companies) the media storage gets all messed up.
I used to be using Google Play Music, and whenever I'd do a SIM swap I could no longer play music. I'd get an error saying "could not play the requested track" on all of my music files.
Figuring GPM just sucks, I switched to WinAmp. Well, the same thing kinda happens. Now, when I do a SIM swap, all of my music tracks get listed twice. One version of the track won't play, the other one will.
Basically what it seems like is that every time I change the SIM card, the media scanner is re-running. Except that it doesn't realize that the files haven't changed, so it re-indexes everything. But this causes music apps to go haywire.
I used to do a data wipe on the Media Storage app, which would clear everything out on Google Play Music (haven't done it yet when using WinAmp). But eventually the problem would crop up again.
To be clear, I recently did a full wipe and installed a fresh version of AOKP. Unfortunately after swapping SIM cards just once the problem reappeared, and TBH I shouldn't have to do a clear data on Media Storage every time I swap the darn SIM card.
I used the phone overseas about 6 months ago when I was still running stock 2.3.6 from AT&T, and never had issues with media storage. Is this an issue using non-Samsung ROMs, or is it an ICS issue in general, or is something else at work here? It's a bit maddening that something as simple as using my phone to play music has become such an ordeal, and I'd like to find a permanent solution to this without having to constantly do data wipes.
Thanks
Click to expand...
Click to collapse
Just a few points, I'm on AOKP and always stored music on the external uSD card and I never have any problem with any sort of players such Apollo, MortPlayer, VLC, GMP, ..... Am I a lucky one? Could be.
Honestly, I've seen this kind of reports already, in this room, maybe in the AOKP thread, can't remember on which page but you search from there. I'm sure there should be the answer.
I don't know about other TW-based ROMs behavior. If you don't get any feedback from users, you can always install one and try it out and see what happens.
Okay, so after a bit of searching I'm (maybe) convinced that it's a symlink issue. My hope is that the problem was that I still had /sdcard/external_sd from running Samsung-based ROMs, and that the media scanner was getting confused between that and /emmc.
Still have one question, however - there are two versions each of the sdcard and emmc folders:
/emmc
/mnt/emmc
/sdcard
/mnt/sdcard
Should each folder exist twice? If not, which ones shouldn't be there, and are they safe to delete? I've tried figuring out what the default mount points are for AOKP, but some people say /emmc and some say /mnt/emmc.
I've deleted /sdcard/external_sd so I'm going to try putting my card back in and seeing if there are still problems. But in the meantime, knowing if both versions of the emmc and sdcard folders should be there would be great
goheels said:
Okay, so after a bit of searching I'm (maybe) convinced that it's a symlink issue. My hope is that the problem was that I still had /sdcard/external_sd from running Samsung-based ROMs, and that the media scanner was getting confused between that and /emmc.
Still have one question, however - there are two versions each of the sdcard and emmc folders:
/emmc
/mnt/emmc
/sdcard
/mnt/sdcard
Should each folder exist twice? If not, which ones shouldn't be there, and are they safe to delete? I've tried figuring out what the default mount points are for AOKP, but some people say /emmc and some say /mnt/emmc.
. . .
Click to expand...
Click to collapse
Yes, that's what a symlink is; both paths are the same thing.
Sent from my Galaxy S2
I understand that both folders link to the same place; the question is, are both of the folders necessary? In other words, if /mnt/emmc is deleted, will the external SD card still be able to be read from /emmc (or vice versa)? Or will it make things go haywire?
My hope is that the duplicate music files I was seeing in WinAmp were because /emmc and /sdcard/external_sd were both on the phone. But if that isn't the case, and even after deleting external_sd I'm still getting duplicates and music playing isn't working properly, then I'd think the only remaining issue is because the phone has both /emmc and /mnt/emmc and the media scanner is seeing them as separate entities.
So yeah, mostly I just want to know if AOKP needs both /emmc and /mnt/emmc to function properly, or if only one of those folders is needed.
I'd be inclined to think they are both required.
Sent from my Galaxy S2
Yeah, I'm having the same issue after moving my music over from internal storage to a external card. On rocket player the files would be listed twice just like what op stated and using Google play they would not be able to play in the player even if they are playable from directly opening them in astro. While my phone is the skyrocket i727, the issue is exactly the same on aokp milestone 6. I tried reformatting the card then putting back on the music yet to no avail. I'm hoping someone would know what the problem is.
Redbolt said:
Yeah, I'm having the same issue after moving my music over from internal storage to a external card. On rocket player the files would be listed twice just like what op stated and using Google play they would not be able to play in the player even if they are playable from directly opening them in astro. While my phone is the skyrocket i727, the issue is exactly the same on aokp milestone 6. I tried reformatting the card then putting back on the music yet to no avail. I'm hoping someone would know what the problem is.
Click to expand...
Click to collapse
I am having the same issue...
Finally able to fix this problem. Googled a bit more to find solution. Harder to find than expected but anyways this is how I did it.
Went into
setting --> apps ---> all ---> media storage
And cleared data
After I cleared data of both the music player apps I used, play music and rocket player. Somehow on milestone 6, media scanner is very stubborn and refuses to run many times even with the download of media scanner apps and restarts of the phone. Somehow I managed to get media scanner to run and finally I see my files in play music. I click on a file to ru and it starts playing. Very relieved to say the least.
Media scanner apps used were both SD rescan and rescan media. Don't know which one did the trick.
Hope this helps.

[Q] mediaserver battery drain

Hi all,
I'm having some trouble with battery drainage. Main cause is mediaserver, I have searched, and (for other devices) they suggested moving my pictures and videos off the sdcard. I have no additional media files since before this mediaserver issue began so I don't know what the problem is.
As you can see from the image, battery drains normally, then the sudden drop.
Can anyone shed any light on this? Are there any other people with the same issue?
One thing I did was flashing latest firmware from sammobile. Was fine for the first few days but suddenly this happened..
I used to have this problem. I think it might have been caused by a corrupt media file, which made the media scanner get "stuck" on that file. I deleted everything in my /sdcard/ folder which solved the issue. I'm not 100% sure, that this was the solution though, since I did a few factory resets at the same time, but the problem is gone and so is the excessive battery drain.
Sent from my GT-I9300
member68 said:
I used to have this problem. I think it might have been caused by a corrupt media file, which made the media scanner get "stuck" on that file. I deleted everything in my /sdcard/ folder which solved the issue. I'm not 100% sure, that this was the solution though, since I did a few factory resets at the same time, but the problem is gone and so is the excessive battery drain.
Sent from my GT-I9300
Click to expand...
Click to collapse
when you say deleted everything, literally the entire contents of the sd card? on my nexus there is no external one so that means deleting all the notification/gallery/system files too??
yep wanna ask the same thing. I haven't actually had any media I've added myself, which probably means it may be a file from one of the apps.
Will I have to go through all of them and delete? The mediaserver seem okay now but I'm worried about when it might go off again..
Sent from my GT-I9300 using xda premium
Had the same problem yesterday.. no new apps or anything. Looks like I solved it by emptying my photo roll. Suspecting it could be a video I recently filmed. The thumbnail was all black, so guessing that was the culprit.
Edit: And just after typing this I noticed Media was up at 20% usage again.
The problem started happening again. It's really hard to pinpoint this problem. For me, it only happens charging, but not when the phone is unplugged. I hope this is a rom issue which gets resolved in the next version.
Sent from my GT-I9300
Are u using viber or something similar? I never saw mediaserver in battery hog list unless i started using viber
I've never even heard of Viber. I might have a different issue though since I don't have a constant wake lock. Whenever my phone started acting up, I found a lot of repeating logcat messages related to the media scanner. It might be something completely different though.
Sent from my GT-I9300
maybe a fix
i had the same problem after wipe clean and fresh install of JB.
I dont know exactly what solved it but here is what i did:
1. disable media store
2. clear media store data
2.5 executed playerpro application while media store is disabled
3. deleted all .nomedia files i could find
4. deleted the Player Pro album art directory content.
5. deleted all image caches of all applications i could find
6. enabled media store
Google doesn't really care?
http://code.google.com/p/android/issues/detail?id=37298

[Q] Phone is deleting media files unwanted and automatically

Gooday guys,
I've got serious troubles at the moment. 2 days ago I wanted to show a picture to a friend of mine. Opened my gallery > ehm, what is going on here? > there were no photos images anymore.
First I thought that the gallery app got some problemes, rebooted my phone, still the same. Looked up the folders with Solid Explorer, well ... all files got definitely deleted.
I searched for this here on xda and google. Well, all I found out was that it could be ROM related, or that it could have something to do with RomManager (haven't installed it though). The curious thing is that the *.jpg and *.mp4 files got deleted from all folders and subfolders, not only from DCIM and even from the sd card.
I'm not here for any recovery attempts, have done this already
Well this is not all. I've got some *.avi files on my phone (internal and external storage). Theses files were deleted too. BUT not at the same day as the other media files (*.jpg and *.mp4).
So this is the pre story. Now I wanted to know what can I do to discover what is causing this problem, because what's next? Is my phone deleting all my files in a few days?
For me it seems like a script that is searching the whole device for media files and deleting them. (malicious?)
My thoughts were:
to smali all applications and try to find out if a app is causing this
to analyze logcats
Well, These options seems to be very long-lasting, so I ask you if somebody have any ideas on this?
Information about my phone
Phone: Samsung Galaxy S3 (i9300)
ROM: ParanoidAndroid v3.68
Kernel: Googy-Max v1.5.9
I haven't isntalled any apps or updates the last two weeks so I think there are no problems with apps and therefore will not list them.
tldr;
phone is deleting media files
two days ago it deleted *jpg and *.mp4 files from internal and external storage and from all folders (not only DCIM)
today it deleted *.avi files from internal and external storage
could it be a malicious script that is crawling my phone for those files?
how can I find out what is causing this problem?
I hope that somebody could help me *pray pray*
thanks a lot in advance!
Wish you guys a nice weekend
John
Sounds like a nasty software bug
Oooooooooooooo NOT fun! I have seen this before (first time on the S3 though). Sounds like a nasty software bug. Sometimes you can fix this and sometimes you cannot.
What you NEED to do is backup ALL of your phones information. I recommend that you back it ALL up to a computer, even your memory cards information as well.
Then wipe that device clean with a Factory data reset. This will set the phone back to its default settings and will be like a brand new phone.
You might also want to consider formatting your SD card at the same time. Just in case whatever is causing this issue is coming from your Memory Card.
Afterwards I recommend that you try using your phone without any 3rd party applications for a couple days, just to make sure it’s not a bad app causing trouble.
If the phone is still acting up and erasing things then you should file a warranty claim as soon as possible.
Good luck John.
~James~

Question OP9R internal storage crashing

Hi everyone,
My OnePlus 9R often crashes, and it looks like it's related to the internal storage. Read and write operations stop working, to the point where apps won't open and restarting hangs until I do a hard reset.
When I do restart, the same apps always fail in the same ways - mainly apps like Instagram and Sync for Reddit sign me out, indicating that there might be a problem with secure storage?
I think it may be triggered by me using a certain amount of space, though I'm not entirely sure about that.
This happens on custom ROMs as well as on Oxygen OS.
Has anyone ever seen anything like this before? If there are indeed bad blocks in my internal storage, is there a way to avoid them?
You have a memory leak?
blackhawk said:
You have a memory leak?
Click to expand...
Click to collapse
I doubt it, when this happens it will generally keep happening within minutes of rebooting until I go into TWRP and delete some files.

Categories

Resources