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.
Related
Samsung SGHT-959, stock Froyo.ka6 rooted.
A funny thing happened to me while adding some D64 images to play with Frodo C64 on my vibrant.
Media Scanner started and where it used to take just under 60 seconds was now taking close to 10 minutes to complete! WTF?!?!
Ok fine, I deleted the 4 files I added, same thing, Media Scanner frozen at 0% for 10 minutes. I have a total of 30 media files on my SD card combined ( I use Ipod touch for music & vids) so there was no reason for the scanning to exponentially increase in scanning time when all I did was add 4 non-media files. Rebooted, no change. Deleted all data from DCIM/.thumbnails from internal phone memory & SD, no change. Others recommended factory reset but then I have to re-install all apps - what a drag!!
I searched here & Google and noticed that the Media Storage service is responsible scanning - I went into application manager, running applications and noticed that Media Storage data was at 95+MB and rising! I don't even have 95MB worth of media on this phone! I force closed which STOPPPED media scanning (yay!!!) and cleared the data. I rebooted. The media scanning took about 30 seconds total!! I went to Media Storage and the data is now at 212KB which sounds about right considering what I have on this phone.
I have read that ringtones disappeared then later re-appeared, didn't happen to me, my guess is the noobs didn't wait for media scanner to reach 100%. Yes, I did have to go and reset contact ringtones (I didn't have that many) and I have read that you will lose playlists. Since many of you are running hacked roms I imagine you are also using a different media player as well so this shouldn't be a problem.
There are workarounds such as running Media Scanner on demand, probably a good solution for those of you with tons of media that use stock music player and playlists:
http://forum.xda-developers.com/showthread.php?t=753294
This is obviously a bug in the Media Storage service and something to be aware of..Anyone know if this is fixed in Android 3.x?
You can also go into recovery and format the sd card there or in adb
According to what I read in various threads here in XDA that doesn't help. I have read that it's normal for media scanner to take a long time if you have thousands of media files on your SD so that didn't apply to me.
Somehow Media Storage service doesn't properly flush out it's internal data cache causing to increase in both size as well as time needed to scan. I flushed it out manually and that solved the problem. Media Storage is an indexing service for all media on your phone so either the service locks up under certain conditions or the database doesn't purge properly. This affects all versions of froyo.
Besides I don't need to go into ADB or recovery to format the card, I can do it right from the settings.
I'm on CM7 Nightly7 and I'm having an issue putting playlists on this phone. I use Ubuntu's Rhythmbox player for my media player. It has the ability to sync playlists to this phone. It worked fine under stock ROM. However, since moving to this CM7 ROM, the PLS files will sync to the phone (in the specified location). I can see them before I disconnect the USB. If I look in the file, it has the incorrect location for the music. It shows the location as:
///media/string_of_numbers_and_letters/media/audio/music/correct_folders
Before the switch to CM7, it was showing just the media portion of the path. When I disconnect the phone, the PLS files are gone. I even tried saving them to a different location on the internal SD card and still they are gone when I go to look through Root Explorer. Has anyone else seen this issue? Thanks!
Jim
I am new to Samsung, coming from HTC Desire. And got into bizarre already )
A couple of days ago noticed a strange problem with photos in galery unreadable, appearing to be corrupt (all of them on external sd, internal sd photos are displayed properly). Then today happened that Music app couldn't play music files on external SD.
Read countless of similar issues on the internet, with lots of people blaming on the sd card. However, I found that it is not the case.
Put into a SD card reader and plug into PC, the files on SD card are all ok.
Put back card into phone and investigated further. First I thought maybe it's a problem with SD card reader in the phone. BUT! Noticed files are perfectly visible in ES File Explorer, and even display correctly when using Gallery App to open them from ES file explorer. But if Gallery is opened first, it cannot display files.
I'm sure somebody else happened the same, since the internet is full with such reports regarding Galaxy devices (even S1 and Note alike), but anyone identified the sorce of the problem and eventually solved it? I would be very much interested.
crisagatie said:
I am new to Samsung, coming from HTC Desire. And got into bizarre already )
A couple of days ago noticed a strange problem with photos in galery unreadable, appearing to be corrupt (all of them on external sd, internal sd photos are displayed properly). Then today happened that Music app couldn't play music files on external SD.
Read countless of similar issues on the internet, with lots of people blaming on the sd card. However, I found that it is not the case.
Put into a SD card reader and plug into PC, the files on SD card are all ok.
Put back card into phone and investigated further. First I thought maybe it's a problem with SD card reader in the phone. BUT! Noticed files are perfectly visible in ES File Explorer, and even display correctly when using Gallery App to open them from ES file explorer. But if Gallery is opened first, it cannot display files.
I'm sure somebody else happened the same, since the internet is full with such reports regarding Galaxy devices (even S1 and Note alike), but anyone identified the sorce of the problem and eventually solved it? I would be very much interested.
Click to expand...
Click to collapse
Try to run Rescan Media app from Play store.
Maybe your media scanner service does not work properly and needs to refresh the list of media files on your sd card.
Good luck !
rescan is done automatically every reboot. doesn't help. thanx anyway.
investigated further and found out that the files are not corrupt, but the libraries of Music app and Gallery app created duplicated empty files (in fact 2 fake entries in library for every valid file on the card). Duplicate files don't exist physically on SD card, only in libraries of the two applications.
Already tried formatting cache and dalvik cache, but to no avail...
ICS 4.0.4 Orange Romania (BVLPH) stock ROM.
Later EDIT: This was an easy one. Unmounted SD Card and open Gallery app and Music app. Then re-mount SD Card, both apps will refresh libraries, wait a while for media scan in the background and voila: duplicate files disappear, everything is in god order.
I had a similar problem where both gallery and music files were duplicated, but the duplicates were unreadable.
My solution was Settings -> Applications -> All -> Media Storage -> Clear Data.
This forced a refresh and everything turned normal again.
Slightly annoying that the media scan data is stored under a separate application and not within the data of the gallery or music player applications, but once I discovered this it was an easy fix.
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).
Is there a way to disable media scan on KitKat? I have a rooted Sony Z3 with an external microsd card.
I know there was an app for Gingebread, but I understand it's not compatible with Android 4+.
I understand it used to be common to place a .nomedia empty file in folders not to be scanned, but is this still possible/does it still work now that Kitkat has made it harder to write to external SD cards?
I am asking the question because android.process.media is draining my battery. I use poweramp as a music app and I have disabled background scanning, but something else must be triggering it.
Btw, I tried formatting the card with the phone, and I also tried removing the card altogether (so i don't know what on earth is being scanned), but android.process.media keeps running and draining battery!
Thanks!