Media scanner running... preparing mass storage? - Vibrant Q&A, Help & Troubleshooting

New to Android, so I'm wondering why this process is necessary on every single boot. What's happening during this time?

donalgodon said:
New to Android, so I'm wondering why this process is necessary on every single boot. What's happening during this time?
Click to expand...
Click to collapse
it scans your SD card and checks for music, videos, other files etc.
If this didn't happen on every boot, you video app your music app, would be empty.
all your apps would be set to how they first were when installed. etc.

Related

Disabling Media Scanner

Does anyone know how to disable the media scanner, that runs on every boot?
I don't want to uninstall it, because sometimes you'll need to run it manually to detect new media files, but I don't want it running on every startup
I thought it was necessary so it can see what you have on your SD card?
Apo11on said:
Does anyone know how to disable the media scanner, that runs on every boot?
I don't want to uninstall it, because sometimes you'll need to run it manually to detect new media files, but I don't want it running on every startup
Click to expand...
Click to collapse
Is this your first samsung phone? It always runs at the start by design in every samsung android phone, as far as i know there is nothing you can do about it unless a dev can find a way to change it in a custom rom.
camaroz28 said:
Is this your first samsung phone? It always runs at the start by design in every samsung android phone, as far as i know there is nothing you can do about it unless a dev can find a way to change it in a custom rom.
Click to expand...
Click to collapse
Media Scanner is a process and just like any other process it either runs as a service, or invoked by some init.* startup script. I'm simply asking for guidance how to modify phone configuration to disable the startup of this process.
Contents of /sdcard are cached, so the only price you pay if it doesnt run is that it wont see any changes, occured since it was last active. If you dont add/remove files on your phone all that frequently - disabling it wont have much impact and it will noticeably improve startup performance
Back in the captivate days there was a script that as created to disable this but it proved to be more of a hinderence than a help, I don't recommend it. But if you really insist search the threads over there and see if you can find it. Who knows it may work maybe with a mod here or there
Rescan Media Root from the Market will disable the media scanner.
iirc Nitrality in the market can disable media scan too
Apo11on said:
If you dont add/remove files on your phone all that frequently - disabling it wont have much impact and it will noticeably improve startup performance
Click to expand...
Click to collapse
I disagree. I added a 32 GB card a few days ago, nearly full with songs, and my time from power button to lock screen didn't change at all. Yes, the scan takes a while and doesn't finish until well after the lock screen appears but it is a background process. It doesn't prevent you from using the device.
techntrek said:
I disagree. I added a 32 GB card a few days ago, nearly full with songs, and my time from power button to lock screen didn't change at all. Yes, the scan takes a while and doesn't finish until well after the lock screen appears but it is a background process. It doesn't prevent you from using the device.
Click to expand...
Click to collapse
Can you use the camera though?
I too have a 32 Gb card installed with a mixture of films, music and apps. My media scanner can take 2-3 hours to run and whilst I can use the phone for most things, it does prevent me from viewing photos and more critically taking photos.
I have on numerous occations not be able to take photos of the kids doing something funny, hours after unplugging my Note and it is very inconvenient at work when I need to take a photo of a business card or reciept or something.
To me this is a serious flaw on a device which is, as much as a phone, my on the go camera - and not a welcome feature of my first android phone!
I have tried a couple of methods (apps) but most of these seem to fill my notification area with adverts!
ChemicalJasper said:
Can you use the camera though?
I too have a 32 Gb card installed with a mixture of films, music and apps. My media scanner can take 2-3 hours to run and whilst I can use the phone for most things, it does prevent me from viewing photos and more critically taking photos.
I have on numerous occations not be able to take photos of the kids doing something funny, hours after unplugging my Note and it is very inconvenient at work when I need to take a photo of a business card or reciept or something.
To me this is a serious flaw on a device which is, as much as a phone, my on the go camera - and not a welcome feature of my first android phone!
I have tried a couple of methods (apps) but most of these seem to fill my notification area with adverts!
Click to expand...
Click to collapse
Wow. Could there be somethinks wrong with your sd card? Have you switched it from using on one device for a while to your note? I have 23gb out of 29 gb available filled with 10gb of that being music and 3gb of pics and my start up media scan takes about a minute max. Maybe not even that long. I initially had a 16gb card that i used in my LG thrill that when i switched to the not would take forever to scan. It eventually quit working so i bought the 32 and no problems now.
Sent from my SAMSUNG-SGH-I717 using xda premium
ChemicalJasper said:
Can you use the camera though?
I too have a 32 Gb card installed with a mixture of films, music and apps. My media scanner can take 2-3 hours to run and whilst I can use the phone for most things, it does prevent me from viewing photos and more critically taking photos.
I have on numerous occations not be able to take photos of the kids doing something funny, hours after unplugging my Note and it is very inconvenient at work when I need to take a photo of a business card or reciept or something.
To me this is a serious flaw on a device which is, as much as a phone, my on the go camera - and not a welcome feature of my first android phone!
I have tried a couple of methods (apps) but most of these seem to fill my notification area with adverts!
Click to expand...
Click to collapse
2-3 hours is ridiculous.
What class card are you using? You may need to upgrade to a faster card.
Apo11on said:
Does anyone know how to disable the media scanner, that runs on every boot?
I don't want to uninstall it, because sometimes you'll need to run it manually to detect new media files, but I don't want it running on every startup
Click to expand...
Click to collapse
Run this in Terminal Emulator or Adb Shell:
Code:
su
pm disable com.android.providers.media.MediaScannerReceiver
an app can help you
You should try this:
http://forum.xda-developers.com/showthread.php?t=753294
You can use System Tuner to disable it from starting up at reboot
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
https://play.google.com/store/apps/details?id=com.addz.mediascannerroot
I have used this in the past....but requires root.
But i do agree maybe an upgrade of your sd cards class...
Trolling via Tapatalk 2, on my GNote...
I suggest formatting your card or replacing it. Bad sectors can cause funny stuff to happen. I couldn't even copy files using a card reader till I formatted it. Warning. This will erase all you files from the card, but you will have a clean slate to start.
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Before erasing put the card in an adaptor and copy your stuff to a pc.
"oh yes it does..."
techntrek said:
I disagree. I added a 32 GB card a few days ago, nearly full with songs, and my time from power button to lock screen didn't change at all. Yes, the scan takes a while and doesn't finish until well after the lock screen appears but it is a background process. It doesn't prevent you from using the device.
Click to expand...
Click to collapse
Well,on my NOTE, I cannot use the camera until Media Scanner Runs off round the corner - if I just unlock my phone (even when it is on) to take a photgraph, then I get this annoying message and the camera turns itself OFF repeatedly... finally the photo opportunity has gone... buggerit!
Pav, Edinburgh

Media Scanner Madness!?

I just installed an audio app and it screwed up my media scan, so now, it appears as though the files aren't there (I am pretty sure that they are still there) and no media application can see them. It seems as though the media scanner is trying to run. How long should it take to complete for a couple of gigs of audio files?
So annoying.
Any help would be appreciated. Is there a way to prevent this from happening again? I don't change media much on my external SD card, so I turned off media scanner entirely, but it seems that when I installed PowerAmp, it decided to scan again.
donalgodon said:
I just installed an audio app and it screwed up my media scan, so now, it appears as though the files aren't there (I am pretty sure that they are still there) and no media application can see them. It seems as though the media scanner is trying to run. How long should it take to complete for a couple of gigs of audio files?
So annoying.
Any help would be appreciated. Is there a way to prevent this from happening again? I don't change media much on my external SD card, so I turned off media scanner entirely, but it seems that when I installed PowerAmp, it decided to scan again.
Click to expand...
Click to collapse
What is did as : download startup manager from Play and disabedled media storage in system, i also downloaded rescan media, opened it after installation and from then it scans automaticly and not at boot also,
gee2012 said:
What is did as : download startup manager from Play and disabedled media storage in system, i also downloaded rescan media, opened it after installation and from then it scans automaticly and not at boot also,
Click to expand...
Click to collapse
I'll do that after I can finally get the files to show up again. Any tips on that aspect?
This has got to be the Achilles heel of Android as a media platform. No way that media scanning for some audio files on a Class 10 card should take so friggin' long.
donalgodon said:
I'll do that after I can finally get the files to show up again. Any tips on that aspect?
This has got to be the Achilles heel of Android as a media platform. No way that media scanning for some audio files on a Class 10 card should take so friggin' long.
Click to expand...
Click to collapse
Make sure you install the rooted version of rescan media, it will add new media to the galery almost instantly
I have the rooted version installed, but I'm confused a bit. Do I want to enable it or disable it?
I just want the scanner to finish building the library or whatever got screwed up, so I can play the files again.
Crap.
donalgodon said:
I have the rooted version installed, but I'm confused a bit. Do I want to enable it or disable it?
I just want the scanner to finish building the library or whatever got screwed up, so I can play the files again.
Crap.
Click to expand...
Click to collapse
Enable it,
donalgodon said:
I have the rooted version installed, but I'm confused a bit. Do I want to enable it or disable it?
I just want the scanner to finish building the library or whatever got screwed up, so I can play the files again.
Crap.
Click to expand...
Click to collapse
Don't do either. Just launch the app and it'll automatically start the rescan.
Theshawty said:
Don't do either. Just launch the app and it'll automatically start the rescan.
Click to expand...
Click to collapse
Well, realistically how long should that take?
I'm still looking at nothing and I've been at it over an hour.
Okay, so I installed the app and launched it, but still my files don't show up in the apps, like Music Player or Play Music or PowerAMP. They are there, because I can go to the external SD and open them one by one, but the playlists don't show anything.
Any tips would be greatly appreciated.
Would reinstalling the firmware and a full-wipe deal with this issue, or would it be a waste of time?

[Q] [Tasker] Questions about tinkering with the media scanner

I'd really like to completely disable automatic media scanning on my GS3 and run it on a schedule via Tasker.
1) Is it possible to disable it completely? I tried Rescan Media Root from the Play Store and that prevents it from running at boot, but it still runs every time I modify a file on the ext sd card. Not to mention it seems to cause some other strange behavior (every time a scan was triggered the TouchWiz file explorer opened and asked for root).
2) Is anyone using the Scan Card action in Tasker? I tried running this and pointing it to the ext sd card, but nothing happens.

[SOLVED] Media Server battery usage increased by CF-autoroot

Is it normal to have a steady 10% battery usage by Media Server?
Re: Media Server battery usage
Do you listen to a lot of music, or listen regularly, more to the point? 10% usage indicates to me you are just listening to music, if it jumps right up then you might have the media bug, but doesn't sound like it to me, from that stat
slaphead20 said:
Do you listen to a lot of music, or listen regularly, more to the point? 10% usage indicates to me you are just listening to music, if it jumps right up then you might have the media bug, but doesn't sound like it to me, from that stat
Click to expand...
Click to collapse
Actually I don't listen to music at all (with the phone), that's why I don't understand the media server running constantly.
I have the latest BTU EMB1 firmware. Installed wiping all data.
Re: Media Server battery usage
jurijvi said:
Actually I don't listen to music at all (with the phone), that's why I don't understand the media server running constantly.
I have the latest BTU EMB1 firmware. Installed wiping all data.
Click to expand...
Click to collapse
Hmm, well you can disable the media scanner with rescan media root from Play, do you have a lot of pictures or other media?
It can also run a lot if your sd card is corrupt, if you ever get messages that your card has been ejected then the media scanner will run again after each mount.
Another problem can be nandroid backups, if you use the wrong format you end up with thousands of tiny files which makes the scanner run for ages.
Re: Media Server battery usage
Just to share, yesterday I changed my stock battery for an extended Hyperion 4400, media scanner drain 5% of it in 15 min, the device was also hot, I had to force close the media scanner several times until I reboot twice and it stopped, got annoyed by it, and it's also first time it happens, nothing abnormal in my sd or internal.
Sent from my GT-I9300 using Tapatalk 2
boomboomer said:
It can also run a lot if your sd card is corrupt, if you ever get messages that your card has been ejected then the media scanner will run again after each mount.
Another problem can be nandroid backups, if you use the wrong format you end up with thousands of tiny files which makes the scanner run for ages.
Click to expand...
Click to collapse
I don't have problem with the card being ejected. However I have titanium backup running twice a week. It does create a fair amount of files.
Could that be the issue?
slaphead20 said:
Hmm, well you can disable the media scanner with rescan media root from Play, do you have a lot of pictures or other media?
Click to expand...
Click to collapse
I have a "normal" amount of pix, like less than a hundred. Few videos and that's about it.
jurijvi said:
I have a "normal" amount of pix, like less than a hundred. Few videos and that's about it.
Click to expand...
Click to collapse
I turned off Google+ while having the same issue and it fixed the problems. Turn off all the settings for it.
wga22 said:
I turned off Google+ while having the same issue and it fixed the problems. Turn off all the settings for it.
Click to expand...
Click to collapse
I have all the settings deselected for Google +. No notification, no instant upload etc..
I just re-flashed the latest BTU rom. No more media server draining the battery. However after rooting with CF-root, the media server started to show up with a steady 10% rate!

super annoying scared bug, PLEASE HELP

So whenever I put my sd card into my Xperia z3tc I can't open any apps apart from a few like settings and it often freezes and no buttons work, and if I boot with it in my tablet has a black screen with notification center usable and only a back button. FYI I'm using the SGP12 which is the 32gb WiFi model, no root and it only started happening since I updated to 5.0.2. PLEASE HELP
Perhaps the SD Card is bad?
I experience a similar issue (on KitKat) and it has to do with the media scanner (I have many MP3s on my SD card). Basically, before I reboot my device, I need to use a root app to delete my media library. If I do not do so, upon reboot, the phone is slow, nothing media-related works (including ringers and alert tones), and opening media-using apps or setting menus freezes the device (until I delete my media library, which gets reformulated next reboot). I tend to assume that maybe your SD card is triggering a media-rescan and that is causing your issue. Don't know if this is Android or Z3TC specific, but yes it is annoying.
thref23 said:
Perhaps the SD Card is bad?
I experience a similar issue (on KitKat) and it has to do with the media scanner (I have many MP3s on my SD card). Basically, before I reboot my device, I need to use a root app to delete my media library. If I do not do so, upon reboot, the phone is slow, nothing media-related works (including ringers and alert tones), and opening media-using apps or setting menus freezes the device (until I delete my media library, which gets reformulated next reboot). I tend to assume that maybe your SD card is triggering a media-rescan and that is causing your issue. Don't know if this is Android or Z3TC specific, but yes it is annoying.
Click to expand...
Click to collapse
The sd card should be fine it's a SanDisk and it only has a few pics on, this happened immediately after I updated to lollipop and then stopped and now it's happening again.
AryG15 said:
The sd card should be fine it's a SanDisk and it only has a few pics on, this happened immediately after I updated to lollipop and then stopped and now it's happening again.
Click to expand...
Click to collapse
Images are still media. Try using the SD card without any images saved to it. Or try deleting your media library - to rule this out if nothing else. I use an app called Music Database Repair to delete my media library (although other features of the app don't seem to work).

Categories

Resources