[MOD]Speed up media scanner

Adrynalyne

Account Deactivated
Dec 24, 2009
1,346
1,534
0
I really hate the Samsung media scanner.

Hate isn't even a strong enough word. If you have ever noticed, it scans the READ ONLY system on every boot. Then it scans SD card. Scanning the system is where the phone gets most sluggish though.

Well, I tried my best to hack that feature out and still haven't been able to.

I did find a workaround though:

D/MediaScanner( 2798): prescan return
D/MediaScanner( 2798): Start Original /system/media/
D/MediaScanner( 2798): found .nomedia, skipping directory

http://dl.dropbox.com/u/2056318/update-template/media_scanner_fast.zip


Its a dirty way of fixing it, but hey, it works.
 
I really hate the Samsung media scanner.

Hate isn't even a strong enough word. If you have ever noticed, it scans the READ ONLY system on every boot. Then it scans SD card. Scanning the system is where the phone gets most sluggish though.

Well, I tried my best to hack that feature out and still haven't been able to.

I did find a workaround though:

D/MediaScanner( 2798): prescan return
D/MediaScanner( 2798): Start Original /system/media/
D/MediaScanner( 2798): found .nomedia, skipping directory

http://dl.dropbox.com/u/2056318/update-template/media_scanner_fast.zip


Its a dirty way of fixing it, but hey, it works.

dang!! at it again. thanks. do you have my pie?
 
The only thing you want to watch for is that you don't wipe.

If you wipe, you lose your ringtone index. Easily fixed by removing the file or reflashing a rom though.
 
Sorry Adrynalyne, got to bug you for a question about these. Do we need to use both of these or just the new scripts one you posted? And for everyone's sake since the second one is script we would run it in terminal emulator, correct?
 
Yeah, scripts enable/disable, then reboot you. They stick through a wipe, too.

You only need one. The scripts are more versatile. Run via terminal emulator or adb shell.
 
Yeah, scripts enable/disable, then reboot you. They stick through a wipe, too.

You only need one. The scripts are more versatile. Run via terminal emulator or adb shell.

Much appreciated sir. First one getting deleted from phone, will keep a copy on my pc though. Buh Bye.
 
thanks a lot Adrynalyne! this was really annoying me too and seems to take a really long time on froyo
 
OK, so downloaded the script zip... Now what?

Flash it through cwm, then open up terminal emulator, next to the $ type su, hit the enter key, wait for super user permission, then a # will appear and next to that type fast_media, hit the enter key. Done. I still haven't figured out adb, so I don't know if it is the same exact method for adb.
 
  • Like
Reactions: Kevin Gossett
Looks good, flashed it and ran scripts through terminal emulator then rebooted. Safe mode appeared on the home screen along with widgets not working. I did another reboot and its gone, looked like a small hiccup other than that loving the faster startup!
 
  • Like
Reactions: Landshark
Looks good, flashed it and ran scripts through terminal emulator then rebooted. Safe mode appeared on the home screen along with widgets not working. I did another reboot and its gone, looked like a small hiccup other than that loving the faster startup!

Glad to hear that Captain Tenneal. And what do we always say? Don't get eliminated!
 
Flash it through cwm, then open up terminal emulator, next to the $ type su, hit the enter key, wait for super user permission, then a # will appear and next to that type fast_media, hit the enter key. Done. I still haven't figured out adb, so I don't know if it is the same exact method for adb.

I am going to email it to myself then go to TE and run the script. Any objections?
 
Where do I copy it to or how can I change my path?

If you don't understand ADB best to just flash through CWM Red as Landshark stated.

Put the .zip anywhere on your SD card. Boot to Recovery and when you get to the option for apply .zip from SDCard you will see all your folders. If it is in a folder go there if it is on the root of your SDCard use the vol up and down keys to scroll to it. Power key to select it.
 
If you don't understand ADB best to just flash through CWM Red as Landshark stated.

Put the .zip anywhere on your SD card. Boot to Recovery and when you get to the option for apply .zip from SDCard you will see all your folders. If it is in a folder go there if it is on the root of your SDCard use the vol up and down keys to scroll to it. Power key to select it.

It wasn't a zip file or I would have tried that first. Looks like I DLed a script. Where do I get the zip file from?

Edit: The file I DLed was a zip but the two files in it had no extension.
 
Last edited:
It wasn't a zip file or I would have tried that first. Looks like I DLed a script. Where do I get the zip file from?

Edit: The file I DLed was a zip but the two files in it had no extension.

Never mind... I am a ******... I figured it out and got it to work. Thanks all!
 
So far I have not had an issue with SC 2.9.1. But when I ran fast_media I think it put the .nomedia file on the root of the SD card. Then the media scanner deleted all the image files off my the SD Card. From what I found out there is a bug in Google Froyo media scanner.
 

Members online

Forum statistics

Threads
955,362
Messages
6,964,568
Members
3,163,260
Latest member
eaglealtflow