how to stop the media scanning

Search This thread

nightswim

Member
Oct 17, 2006
13
0
Yep, please, please, how to disable it?
If you do have a lot of files on SD, it takes ages and slow down phone as hell.
 

mystifiyer

Senior Member
Jun 26, 2010
272
23
Hey guys,

1st post. Keep it easy on me ya?

Below are the requirements needed before you can disable Media Scanning for good.

1) Rooted Galaxy S
2) Startup Manager (free in Marketplace)

Steps:

1) Startup Startup Manager
2) Goto System tab
3) Uncheck Media Storage
4) Reboot
5) And it will never bother you again :D

This method works too when you plug and unplug the USB cable + the annoying scan on bootup.

For the bad news :(

Default Music Player will NOT be able to recognise additional new files (MP3 etc) after adding it.

Workaround for this is to reboot the phone and it will recognise it again. I presume software that depend on the Media Storage for creating paylists are prone to this issue.

For the good news :)

Get another music player in the Marketplace which allows you to manually scan create playlists should be fine.
 

sunwee

Senior Member
May 8, 2009
517
60
if we disable Media Storage, can we do manual scanning then? i can do without the music player, but i think gallery also needs media scanning to work?

Some widgets like Extended Control has button to force scanning, wonder if it will work.
 

mystifiyer

Senior Member
Jun 26, 2010
272
23
I think there is a slight misunderstanding here.
The main purpose of this is to disable the media scanning that occurs every reboot, power on and unmounting of the SD cards.

Instead of auto scanning, what we (I think) is to have the option of manually initialising it. This is due to the long scanning period some people have (thousands of songs etc)

I had tried your app and it works as it should with the exception that Media Storage service need to be autostarted for your app to work.

Not sure for the rest, but what I do want is to stop the annoying scanning part upon reboot/power on/umounting of SDs and to instead use your app for example to scan as and when I do want.

Btw, nice icon for the app :D
 

aditya_t90

Senior Member
Jan 18, 2010
175
43
Bombay
www.adityatalpade.com
I think there is a slight misunderstanding here.
The main purpose of this is to disable the media scanning that occurs every reboot, power on and unmounting of the SD cards.

Instead of auto scanning, what we (I think) is to have the option of manually initialising it. This is due to the long scanning period some people have (thousands of songs etc)

I had tried your app and it works as it should with the exception that Media Storage service need to be autostarted for your app to work.

Not sure for the rest, but what I do want is to stop the annoying scanning part upon reboot/power on/umounting of SDs and to instead use your app for example to scan as and when I do want.

Btw, nice icon for the app :D

The icon is what I too really loved. It looks brilliant on dark wallpapers which in turn look brilliant on the SGS:D.

Ok now back to the topic.
If Media Storage is not started, what error do you get?
FC?
I'd like to fix it. Could you post a crash dump if you get a fc?
Or have a look at logcat for anything?

Thanks
 

mystifiyer

Senior Member
Jun 26, 2010
272
23
The icon is what I too really loved. It looks brilliant on dark wallpapers which in turn look brilliant on the SGS:D.

Ok now back to the topic.
If Media Storage is not started, what error do you get?
FC?
I'd like to fix it. Could you post a crash dump if you get a fc?
Or have a look at logcat for anything?

Thanks

You got it right! Im using a pitch black wallpaper! :D

Anyway, back to topic.

When Media Storage is disabled from startup.

1) Launch Rescan Media
2) Screen will flick for a split second
3) Media scanning message does not appear
4) Repeatedly attempts yield the same thing

When Media Storage is enabled

1) Launch Rescan Media
2) Screen will flick for a split second
3) Media scanning message occurs
4) Repeated attempts still successful

This phenomenon still occurs even when tested with other media scan app (ScanMedia by HumanRobot) so rest assured its not bad coding on your end. :)

There is no crash or FC. Just nothing happened that is all.
 

sunwee

Senior Member
May 8, 2009
517
60
The icon is what I too really loved. It looks brilliant on dark wallpapers which in turn look brilliant on the SGS:D.

Ok now back to the topic.
If Media Storage is not started, what error do you get?
FC?
I'd like to fix it. Could you post a crash dump if you get a fc?
Or have a look at logcat for anything?

Thanks

suggestion:-

check for Media Storage status when user runs your app

1) if not running (means user has disabled startup intentionally), then start Media Storage, do the scan, then kill it when user exit your app.

2) if already running (ie default phone setting), then no change is required.
 

aditya_t90

Senior Member
Jan 18, 2010
175
43
Bombay
www.adityatalpade.com
YES I HAVE DONE IT.

I CAME, I SAW, I HIT HIM RIGHT THERE IN THE JAW!!!! *WOOT WOOT*

Uninstall the older Rescan Media
Search for Aditya in the market.
Then Rescan Media ROOT.

I require ROOT privileges to restart services and processes.:confused:


Open the app and allow root privileges(I promise there is nothing bad going on).***Read more on what goes on behind the scenes.

To kill the service after you are done click on kill service.
To restart the service click restart service.
To quit click exit.


***Read what goes on behind the scenes
I execute
Code:
"pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver"

and 

"pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver"

If you are afraid, drop to a shell and type
Code:
su

pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

It has the same effect of starting and stopping the service.
 

mystifiyer

Senior Member
Jun 26, 2010
272
23
YES I HAVE DONE IT.

I CAME, I SAW, I HIT HIM RIGHT THERE IN THE JAW!!!! *WOOT WOOT*

Uninstall the older Rescan Media
Search for Aditya in the market.
Then Rescan Media ROOT.

I require ROOT privileges to restart services and processes.:confused:


Open the app and allow root privileges(I promise there is nothing bad going on).***Read more on what goes on behind the scenes.

To kill the service after you are done click on kill service.
To restart the service click restart service.
To quit click exit.


***Read what goes on behind the scenes
I execute
Code:
"pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver"

and 

"pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver"

If you are afraid, drop to a shell and type
Code:
su

pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

It has the same effect of starting and stopping the service.

Hi Dude!

Thanks for the continued support!

I just downloaded it from the market and tested.

Pity though that I couldn't get it to work. Got stuck at the "Hardcore background Kung-fu" :p

Funny! :D

OK, here's the thing. My rom (JM5 + Lagfix) is not a default rom so your fix might not have work since some of my files were shuffled around to the ext2.
Perhaps I will try your fix again when I flashed to a newer default rom next time with a newer lagfix.

Hope to hear some success stories from the rest here. :D

One more thing: Your app is the 1st I see in the Market that required 0 permission (beside the newly added Superuser permission).

That is AWESOME!

Keep it up and thanks again for the good work!
 
Last edited:

aditya_t90

Senior Member
Jan 18, 2010
175
43
Bombay
www.adityatalpade.com
Hi Dude!

Thanks for the continued support!

I just downloaded it from the market and tested.

Pity though that I couldn't get it to work. Got stuck at the "Hardcore background Kung-fu" :p

Funny! :D

OK, here's the thing. My rom (JM5 + Lagfix) is not a default rom so your fix might not have work since some of my files were shuffled around to the ext2.
Perhaps I will try your fix again when I flashed to a newer default rom next time with a newer lagfix.

Hope to hear some success stories from the rest here. :D

One more thing: Your app is the 1st I see in the Market that required 0permission (beside the newly added Superuser permission).

That is AWESOME!

Keep it up and thanks again for the good work!

What lagfix do you use?
I use the Ryan Za lagfix.

What lagfix do you use.
I will post a video later to show it working on my quadrant ~2000 ext2 lagfix on a DDJG4.
 

mystifiyer

Senior Member
Jun 26, 2010
272
23

aditya_t90

Senior Member
Jan 18, 2010
175
43
Bombay
www.adityatalpade.com
Mine is the 1st gen fix from http://xdaforums.com/showthread.php?t=748596

Not too sure if it play a part in this but for now, it seemed highly probable.

Maybe I go try again when a newer firmware is out. Both Chainfire's and RyanZA looks good. :D

Try going to adb shell
Code:
su

pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

See what happens.


:::::::UPDATE:::::::
Youtube video.
May take a while to process

http://www.youtube.com/watch?v=Bo_mBQL8VrU

1st half is without startup manager
2nd half is with startup manager + disabling media storage.
 
Last edited:

mystifiyer

Senior Member
Jun 26, 2010
272
23
Try going to adb shell
Code:
su

pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

See what happens.

Good Work, I say!

It works now.

In case you interested, this is the output after I keyed in your command.

Component {com.android.providers.media/com.android.providers.media.MediaScannerReceiver} new state: enabled

Did a test drive by rebooting and switching off Media Storage. Works like a charm now.

Perhaps you can advise what was wrong earlier? Was my MediaScannerReceiver state=off?
 

aditya_t90

Senior Member
Jan 18, 2010
175
43
Bombay
www.adityatalpade.com
Good Work, I say!

It works now.

In case you interested, this is the output after I keyed in your command.

Component {com.android.providers.media/com.android.providers.media.MediaScannerReceiver} new state: enabled

Did a test drive by rebooting and switching off Media Storage. Works like a charm now.

Perhaps you can advise what was wrong earlier? Was my MediaScannerReceiver state=off?

Awesomesauce!!!
Glad it worked.
Maybe it needed to be on just once I really dunno lol.
 

mystifiyer

Senior Member
Jun 26, 2010
272
23
Now we just need to wait for this thread to be propagated around.

Saw a couple of posts in Android Forums and Modaco asking for a fix like this.

I say, this is a different kind of Lagfix altogether :D

LOL~!

Is it possible this fix can be incorporated in the next Rescan Media Root?

And you are right. The command only need to be entered once and not every reboot :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Hey guys,

    1st post. Keep it easy on me ya?

    Below are the requirements needed before you can disable Media Scanning for good.

    1) Rooted Galaxy S
    2) Startup Manager (free in Marketplace)

    Steps:

    1) Startup Startup Manager
    2) Goto System tab
    3) Uncheck Media Storage
    4) Reboot
    5) And it will never bother you again :D

    This method works too when you plug and unplug the USB cable + the annoying scan on bootup.

    For the bad news :(

    Default Music Player will NOT be able to recognise additional new files (MP3 etc) after adding it.

    Workaround for this is to reboot the phone and it will recognise it again. I presume software that depend on the Media Storage for creating paylists are prone to this issue.

    For the good news :)

    Get another music player in the Marketplace which allows you to manually scan create playlists should be fine.
    3
    YES I HAVE DONE IT.

    I CAME, I SAW, I HIT HIM RIGHT THERE IN THE JAW!!!! *WOOT WOOT*

    Uninstall the older Rescan Media
    Search for Aditya in the market.
    Then Rescan Media ROOT.

    I require ROOT privileges to restart services and processes.:confused:


    Open the app and allow root privileges(I promise there is nothing bad going on).***Read more on what goes on behind the scenes.

    To kill the service after you are done click on kill service.
    To restart the service click restart service.
    To quit click exit.


    ***Read what goes on behind the scenes
    I execute
    Code:
    "pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver"
    
    and 
    
    "pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver"

    If you are afraid, drop to a shell and type
    Code:
    su
    
    pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver
    
    pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

    It has the same effect of starting and stopping the service.
    2
    If you want a media scanner, search the market for Aditya

    I have made a media refresh app.

    It's called Rescan Media

    http://www.androlib.com/android.application.com-addz-mediascanner-jtDAw.aspx