Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Apo11on
Old
#1  
Apo11on's Avatar
Senior Member - OP
Thanks Meter 61
Posts: 846
Join Date: Sep 2008
Location: San Diego, CA
Default 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
There are 10 kinds of people in the world: those who understand binary, and those who don't

Samsung Galaxy Note 2 SGH-i317

OS: Android Jelly Bean 4.1.2
Rom: CleanROM 3.3
Kernel: 3.0.36 Perseus alpha 28.2
Recovery: TWRP 2.4.1.0
Bootloader: TBD
Baseband: I317UCALJ2
LTE: TBD
MicroSDXC: SanDisk 64GB Class 10
Battery: 3100mAh Li-ion
 
Eric-1987
Old
#2  
Account currently disabled
Thanks Meter 144
Posts: 1,500
Join Date: Jul 2009
I thought it was necessary so it can see what you have on your SD card?
 
camaroz28
Old
#3  
camaroz28's Avatar
Senior Member
Thanks Meter 20
Posts: 120
Join Date: Apr 2010
Location: Atlanta
Quote:
Originally Posted by Apo11on View Post
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
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.
Smartphones Owned:
  • Samsung Galaxy S 4 (SCH-i545)
  • Samsung Galaxy Note (SGH-i717)
  • Samsung Captivate (SGH-i897)
  • Samsung Epix (SGH-i907)
 
Apo11on
Old
#4  
Apo11on's Avatar
Senior Member - OP
Thanks Meter 61
Posts: 846
Join Date: Sep 2008
Location: San Diego, CA
Quote:
Originally Posted by camaroz28 View Post
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.
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
There are 10 kinds of people in the world: those who understand binary, and those who don't

Samsung Galaxy Note 2 SGH-i317

OS: Android Jelly Bean 4.1.2
Rom: CleanROM 3.3
Kernel: 3.0.36 Perseus alpha 28.2
Recovery: TWRP 2.4.1.0
Bootloader: TBD
Baseband: I317UCALJ2
LTE: TBD
MicroSDXC: SanDisk 64GB Class 10
Battery: 3100mAh Li-ion
 
bkeaver
Old
#5  
bkeaver's Avatar
Senior Member
Thanks Meter 191
Posts: 2,061
Join Date: Dec 2006
Location: Dayton, Ohio
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
 
StaticMatt
Old
#6  
Member
Thanks Meter 15
Posts: 81
Join Date: Jun 2007
Location: California
Rescan Media Root from the Market will disable the media scanner.
The Following User Says Thank You to StaticMatt For This Useful Post: [ Click to Expand ]
 
bclark
Old
#7  
bclark's Avatar
Senior Member
Thanks Meter 147
Posts: 1,117
Join Date: Oct 2010
Location: NYC

 
DONATE TO ME
iirc Nitrality in the market can disable media scan too
Nexus 4:
One for Android
One for Ubuntu

Nexus 7:
Support

i9300:
Music Player <3 that Wolfson

i9100:
Buy Me
 
techntrek
Old
#8  
techntrek's Avatar
Senior Member
Thanks Meter 42
Posts: 838
Join Date: Oct 2007
Location: MD
Quote:
Originally Posted by Apo11on View Post
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
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.
 
ChemicalJasper
Old
#9  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jul 2012
Quote:
Originally Posted by techntrek View Post
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.
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!
 
Mad383Max
Old
#10  
Mad383Max's Avatar
Senior Member
Thanks Meter 90
Posts: 558
Join Date: Dec 2009
Quote:
Originally Posted by ChemicalJasper View Post
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!
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
Coming from a Galaxy far, far away!

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...