Related
I made a .nomedia so my scanner doesn't pick some of my pics up...
But it takes 10 seconds to load EACH picture?
is this because media scanner isn't caching those pictures?
Is there a fix? An alternative?
i've noticed the same thing about the .nomedia folder. i do think you are correct, its been my assumption as well, that this folder being excluded from the media scanning causes it to lag on displaying pics. guess thats the price we pay for having files we don't want popping up in the gallery.
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
Hi guys,
I know there is an issue with the media scanner killing battery, until now I have been disabling the scanner with the rescan media root app.
My Q: Has it been fixed? Or is there a fix where it does not kill battery soo quick?
Thanks in advance
--r1sh12
Bump
Be on a newest possible samsung rom and everything should be fine.. Atleast i dont have any prob.. And siyah kernel included also..
Sent from my GT-I9300 using xda premium
Is pretty easily fixed.
First if you do nandroid backups in the blob format change to .tar and delete any current backups.
If that does not fix it format your sd card.
If still not fixed clear your thumbnail caches.
And as a last resort full wipe and start from scratch.
Sent from my SGS3 using Tapatalk
ROM Sotmax Ultimate V13
Kernel Yank555.lu-V3a
corrsea said:
Is pretty easily fixed.
First if you do nandroid backups in the blob format change to .tar and delete any current backups.
If that does not fix it format your sd card.
If still not fixed clear your thumbnail caches.
And as a last resort full wipe and start from scratch.
Sent from my SGS3 using Tapatalk
ROM Sotmax Ultimate V13
Kernel Yank555.lu-V3a
Click to expand...
Click to collapse
Thanks for the advise
I can't remember what format my backups were.. It was set to the default one. I have a few on my external SD though so I'll move them to PC.
I also have CoPilot on my internal SD so I'm thinking maybe the map cache is causing a problem? I refuse to delete it though just because Google/Samsung have this annoying bug in their software.
Add .nomedia files in all your backup and cache directories, the scanner should then ignore them.
Try stopping Media Storage, clearing data and rebooting before formatting or wiping, run the scanner once after boot then disable with Rescan Media Root app.
Offered ntsDaa
It's my understanding (See Issue 37199 on codeDOTgoogleDOTcom, comment 45) that
MediaScanner: reimplement the ".nomedia" feature for hiding files from the media provider
Previously we ignored any files and directories that had name started with '.'
and ignored any directories that contained a ".nomedia" file.
Now to support transferring any file via MTP, we now add these previously ignored files
to the media database, but will not mark them as audio, video, image or playlist files.
That way they will be included in the files table but will be hidden from the
audio, video, images and playlist views that are used by apps like Music and Gallery.
Click to expand...
Click to collapse
To wit, MediaScanner indexes ALL files irrespective of the presence or absence of a .nomedia file in that directory.
From that same issue it appears that it is because filenames with characters that are also SQL wildcards ( "_" and similar) cause the scan to run slower.
From android googlesource change id I1cd4efbd56a37886cb44a86acb73eb9a3c9f303d
Improve scan time for some cases
When the path being matched has a sqlite wildcard character in it, a "like"
match will be quite slow. Unfortunately this is fairly common, since "_"
is a wildcard character. However, because in most cases the case of the path
in the database will match the case on disk, an "=" match will work, so it
is worthwhile to try an "=" match first, before trying a "like".
If there are no wildcard characters, the "like" will be as fast as the "=",
because of the case-insensitive index on the _data column, so there is no
need to try "=" first in that case.
Click to expand...
Click to collapse
Apparently this is substantially improved in 4.2, but there my knowledge ends; I ran across this while trying to fix an unrelated issue.
EDIT @ 1639UTC: Koushik Dutta said the same thing in his G+ post of 27th December: plusDOTgoogleDOTcom/103583939320326217147/posts/Ntgmq2oniA5
Thanks for the info guys
I disabled media scanning the past few days but none of my stored photos would show in gallery apart from recent ones!
If I can keep my library intact but stop the annoying scanning, then I'll be very happy
I've had it twice for different reasons and it is annoying. Don't bother with freezing and using rescan media as that's just as annoying.
It's easy enough to live with while you're trying to track down the cause. Simply stop media scanner after you boot the phone. In my experience the wakelock will not return until you reboot. Then you can just stop it again. That way everything works
Sent from my SGS3 using Tapatalk
ROM Sotmax Ultimate V13
Kernel Yank555.lu-V3a
fade2black101 said:
Thanks for the info guys
I disabled media scanning the past few days but none of my stored photos would show in gallery apart from recent ones!
If I can keep my library intact but stop the annoying scanning, then I'll be very happy
Click to expand...
Click to collapse
Just enable media scanner occasionally to update your libs
---------- Post added at 10:42 AM ---------- Previous post was at 10:41 AM ----------
corrsea said:
I've had it twice for different reasons and it is annoying. Don't bother with freezing and using rescan media as that's just as annoying.
It's easy enough to live with while you're trying to track down the cause. Simply stop media scanner after you boot the phone. In my experience the wakelock will not return until you reboot. Then you can just stop it again. That way everything works
Sent from my SGS3 using Tapatalk
ROM Sotmax Ultimate V13
Kernel Yank555.lu-V3a
Click to expand...
Click to collapse
^^^^ exactly this....so simple :thumbup:
So, I disabled the media scanner because it's a pain in my ass and lags my phone for 5+ minutes @ boot because of a 32 GB SD card - Took a picture, gallery didnt see it, ran media scanner and gallery sees it, but now, the problem I have is with Viber - IT calls its own gallery process, and I cold rebooted my device with media scanner on - Stupid app still doesn't see the pic I took. Using Term Emu, how would I run the process for media scanner? Have busybox/ su already - Device Boost Mobile Samsung Replenish
One of the reasons I upgraded to the z5c is the ease of entering a secure code (my fingerprints). If stolen; I want to feel confident that my personal pictures and videos will not be accessed by a beginner or intermediate level hacker until I issue a remote wipe.
Right now I have phone encryption off and as well as sd card encryption. The problem for me with SD card:
it can be removed and plugged into a computer to bypass my phone's security. If my phone suddenly breaks or requires a factory reset; i wont be able to access the sd card data unless I format that too.
if encrypted; I wont be able to plug it into a computer in case I need to.
Increase in battery usage to decrypt and encrypt the data
So until I decide; I'm placing my sensitive data such as IDs and pictures inside the 32gb internal and the others in the sd card. I like to play a lot of audiobooks and mp3s on my phone so I'm having second thoughts in encrypting my sdcard. I'm that paranoid.
What about you guys? how do you secure your phone?
is there now way to access android-encrypted SD data on linux?
With marshmallow if you use sd card as internal memory sd card is at least not directly readable in another device. I guess since it's not encrypted there are ways to nevertheless access the content. But it's less straight forward.
If you go with Android 6, it *is* much more secure if you use the external sd as internal data, as it is always encrypted. And it usually IS readable on the pc as well (at least on Linux) if you have the passphrase, but it depends on if the key is stored in the internal trustzone which cannot be easily read. Have a look at the following article:
http://nelenkov.blogspot.de/2015/06/decrypting-android-m-adopted-storage.html
Oh and by the way: Beginning with Android 5, encryption is always enabled so you don't get any performance impact. Nevertheless, even on much slower devices in previous Android version the encryption had virtually no impact on performance.
Of course, when you use encryption together with the fingerprint scanner you void most security benefits since fingerprint scanners are normally pretty easy to trick.
Defier525 said:
...
Oh and by the way: Beginning with Android 5, encryption is always enabled so you don't get any performance impact. Nevertheless, even on much slower devices in previous Android version the encryption had virtually no impact on performance.
...
Click to expand...
Click to collapse
I've never had a device running Lollipop that had encryption enabled by default. I had to turn it on.
scottjb said:
I've never had a device running Lollipop that had encryption enabled by default. I had to turn it on.
Click to expand...
Click to collapse
Please note: Even if did not have to assign a password to protect the encryption key, encryption can be still enabled by default. But you are right, actually Google did not enable this on LP but only starting with Marshmellow (they planned to do that for LP already but didn't):
http://www.theverge.com/2015/3/3/8143607/android-lollipop-default-disk-encryption-performance
Fingerprint makes your device less secure. It is purely for convenience.
By enabling the fingerprint reader, it is another possible vulnerability. It can easily be bypassed to pin/pattern/password which means your device is only as secure as that, while adding the vulnerability of the fingerprint scanner implementation. It also has many weaknesses depending on the hardware technology and implementation.
Finally, there is the psychological dimension: because of mistaken understanding of these vulnerabilities , many users' behaviour exacerbates the issue by using weak pin/pattern/password.