[Q] Thumbnails Disappeared: ICS 4.0 3 - Xoom Q&A, Help & Troubleshooting

MZ604; Rooted; Stock ICS 4.0.3
UPDATE:
Problem solved! In the event any other readers have the same issue, I have outlined how I solved the problem. Note that the discussion which follows was synthesized from behavior and may not be 100% accurate...but is close and sufficiently accurate to solve the problem.
The issue was actually caused by my deleting the thumbnails which are located in: /mnt/sdcard/DCIM/.thumbnails. The contents of this folder are created and maintained by the"Gallery" app. As new content is discovered by the, "Mediascanner" app, the Gallery app updates the .thumbnails folder (database & thumbnails).
The solution of the problem then appeared to be recreation of the contents of the, .thumbnails folder. This, presumably, could be done by forcing the Gallery app to recreate the contents based on information provided by Mediascanner. Simple re-installation of the Gallery app then should do it. The Gallery app, however, is actually stored in the ROM, therefore not directly accessible to reinstall. Titanium Backup creates a copy of all apps, irrespective of location, and theoretically could be used to restore the Gallery app thereby simulating an initial installation which would result in creation of the thumbnails and controlling database (contents of the .thumbnails folder).
This approach seemed reasonable and was executed. The result was recreation of the .thumbnails folder, and update of the Gallery app. As a last, "clean up" step, I went to the Application section in Settings and deleted the updates thereby returning the app to its original state. Problem solved. Hope this is of benefit to anyone having a similar problem
Microi
==============================================================================================
ORIGINAL POST:
I copied images (JPEG) from the external micro SD to the internal SD card. I erroneously used the, ".foldername" to prevent display of some media. The result was that thumbnails from every folder were discovered by MediaScanner and displayed.
I searched for (not exactly knowing what I was looking for) the source of the thumbnails, deleted and then restored some files. The result of this "folly" was the disappearance of all thumbnails.
I obtained the, "Rescan Media" app and forced MediaScanner to rescan; no cigar!
Despite all efforts I have been unable to restore the thumbnails in, "Gallery". The images are on the internal SD card but have no thumbnail pointers.
I am at the point of doing a factory reset now but wanted to put this issue on the air before that drastic move.
If anyone has a solution, I would appreciate your input.
N.B. Once resolved, I will use, ".nomedia" to prevent media display.
Thanks in advance!
Microi

Related

CAUTION: using .nomedia to hide files

Hey All,
I know this topic has been dabbled in across a few threads, but I think it's worth making a dedicated sticky...
The 'accepted' way to hide media files in Android is to either make the hidden by adding a period to the front of the file name (eg: rename file.ext to .file.ext) or to add a blank file named .nomedia at the root of the folder containing the files you don't want picked up by the media scanner.
Works great in theory, but there are some existing bugs in Android (not sure if they're fixed in any release yet), that causes the media scanner to physically delete these files...!!
http://code.google.com/p/android/issues/detail?id=3692
I understand this only happens when the media scanner initiates another scan, which will happen when you power cycle your device, or unmount and remount your storage. So while you might be safe for now, watch out when you run out of battery and wonder where everything's gone...!
I don't know full details, but I suspect it might do the same for any other instructional files, like: .noimage and anything else like that...
There are some theories on how to make it work properly - like creating an empty folder first, containing the .nomedia file, then adding the media - I understand this issue is only due to the media scanner deleting records from already its database - so if it doesn't know about them first, it shouldn't be an issue... Although I'm not 100% on that - so I'd be careful.
Is this still a problem?
not for me so far, and I always turn my tab off whenever I charge (it's better for the battery)
[email protected] said:
Is this still a problem?
Click to expand...
Click to collapse
Yes it is. I have brilliant corners 1.3.1 and by god I've tried every thing I could to get it to stop deleting media from me sd2 card, to no avail. If anyone hows why it still deletes after I;'ve installed nomedia in the sd2 card's root directory please advise.

GALLERY - Howto Prevent Indexing Certain Directories

I have a folder on my SD card that I don't want images to appear from. Is there a means to exclude certain directories?
Sent from my DROIDX using XDA Premium App
Put an empty file called .nomedia in the directory.
This one works well for me - makes the process easier:
https://market.android.com/details?id=com.studiokuma.nomedia
What kind of images don't you want to show up in your gallery?
The .nomedia method should work for you, if not you can always rename the folder with a "." at the beginning to make it hidden
Folder name examples:
.pr0n / .dontlookhere / .ignore
kyouko said:
What kind of images don't you want to show up in your gallery?
The .nomedia method should work for you, if not you can always rename the folder with a "." at the beginning to make it hidden
Folder name examples:
.pr0n / .dontlookhere / .ignore
Click to expand...
Click to collapse
.nomedia works for me, as far as keeping stuff out of the gallery. Being all grown up in my computer usage, I choose to not let my computing devices hide stuff from me, so that .folder thingy doesn't work for me (and pictures in those .folders without a .nomedia file still seem to make their way into my gallery).
I do have a .stuff folder for my .porn though... Keeps it up near the top of the list...
how about the hideitpro app from the market? it's actually pretty cool. opens up as an audio manager, then you put in a password and there you have all the hidden files you want. not just pics...just an fyi
Install the app Just Pictures and ignore the folders you don't want to see.
The .nomedia "solution" prevents the album art to display in the media players.
I use the app QuickPic from the Market, and in the app you can choose which folders you want include and exclude. Pretty useful. You don't have the pretty 3-D effects from the default Gallery app but it's so much faster.
You can do the same thing with Fishbowl Gallery. You can set default albums, as well as hide albums. However, this still doesn't prevent someone from stumbling upon the default gallery app. The best solutions are either .nomedia, or do not have media on your phone that you do not want prying eyes to see. Alternatively, while cumbersome, you can use androzip or unrar pro to zip the material in question. Of course, by zipping your files, you can add the additional layer of security by encrypting it, if you're the paranoid sort.
Sent via Tapatalk on CM7.0.0-Vision Stable.
I remember this method. Any one know if the older file deletion ever got fixed with 2.2.1 or later?
If you don't know what I'm talking about here's a quick rundown.
You put the .nomedia file in a folder with pictures, upon reboot all those pictures are deleted. This had something to do with them already being scanned once and them being older than the .nomedia file so instead of ignoring them it deletes them. Something along those lines (anyone have the link to the original bug report from back in '08 or '09?).
Anyway, if it hasn't been fixed you've been warned, you stand a good chance of losing all media in those folders. So backup those files - but you knew that already
The easiest remedy to this is to remove the files, rename the folder to .whatever or insert the .nomedia file. Reboot. Then throw the files back onto the sdcard. That should eliminate any issues.
I've used the .nomedia solution awhile back to get icons, cover art, etc out of my gallery and it worked just fine... nothing was deleted (Droid X).
IIRC, I did have to clear the gallery app's cache to get it to "forget" about media that it had already found; on first lauch after clearing it's cache, expect it to be slow as it re-scans your device / sd card (..rebooting didn't work to clear the cach on my device... had to clear it via settings > application > manage apps..)
.nomedia file solution works
KCRic said:
I remember this method. Any one know if the older file deletion ever got fixed with 2.2.1 or later?
If you don't know what I'm talking about here's a quick rundown.
You put the .nomedia file in a folder with pictures, upon reboot all those pictures are deleted. This had something to do with them already being scanned once and them being older than the .nomedia file so instead of ignoring them it deletes them. Something along those lines (anyone have the link to the original bug report from back in '08 or '09?).
Anyway, if it hasn't been fixed you've been warned, you stand a good chance of losing all media in those folders. So backup those files - but you knew that already
The easiest remedy to this is to remove the files, rename the folder to .whatever or insert the file. Reboot. Then throw the files back onto the sdcard. That should eliminate any issues.
Click to expand...
Click to collapse
The .nomedia file solution works fine for me on Android 2.3.3.
The issue you mentioned is therefore fixed (nothing file was deleted unexpectedly).
Reboot was also necessary so that the native photo gallery app does not display the icons/pics any longer for the folders where I added the .nomedia file.
Furthermore, this works also for the music files.
(I use also TapeMachine app, and wanted to avoid that the sounds I recorded are listed in the Music Player).
If I place a .nomedia file in a directory, does that exclude all of its subdirectories from the gallery, as well?
Yes, it does. I just placed a .nomedia file in my /Music folder on my extsdcard and all the pictures in my albums are gone after a reboot.
UPDATE: I just tied this on my tablet (running 4.4.2) and it did not need a reboot. Gallery adjusted automatically. It was a folder on the extsdcard - and since 4.4.x restricts access to the sdcard, it stands to reason it saw the file placed and adjust the library automatically.
NiveusLuna said:
If I place a .nomedia file in a directory, does that exclude all of its subdirectories from the gallery, as well?
Click to expand...
Click to collapse

Delete files .Thumbdata3 - 19xxxx (710MB!)

Inside the folder DCIM /.thumbnails there is a file .Thumbdata3 of 710MB!
I tried to delete it but it always returns the same size.
I also tried to delete all the photos from the DCIM folder but nothing has changed!
How is it that the file has a size so big?
MarkAndroid said:
Inside the folder DCIM /.thumbnails there is a file .Thumbdata3 of 710MB!
I tried to delete it but it always returns the same size.
I also tried to delete all the photos from the DCIM folder but nothing has changed!
How is it that the file has a size so big?
Click to expand...
Click to collapse
That's probably the thumbnail data for your pictures. I'm assuming you have quite a few...?
I deleted all the images.
The folder .thumbnails no contains preview as I deleted everything.
There remains only the file to 711 MB
MarkAndroid said:
I deleted all the images.
The folder .thumbnails no contains preview as I deleted everything.
There remains only the file to 711 MB
Click to expand...
Click to collapse
As the first reply already stated, this is a thumbnail file that is generated on the basis of all pictures on your device. Deleting all thumbnails doesn't really help, because the thumbnail cache will regenerate itself. If you want to diminish it in terms of size, you'll have to remove the actual pictures on your device (be it wallpapers, family pictures, Reddit downloads or porn). Only that will lessen the numbers of thumbnails generated and thus the size of this file.
As I said I deleted all the real pictures and not just the thumbnails!
When I open the gallery there is no picture or video!
I also raised the MicroSD to make sure there were no photographs or video to generate thumbnails.
Yes, I see what you mean. I have two, each about 600 Mb, one from 08/07/2012 and one from 19/10/2012. These appear to be the Thumbnail files from the media players.. So until you clear the librarycache from those, they'll keep reappearing.
I also had two files, then deleting all reappeared only one from 711MB!
You have lots of photos and videos?
MarkAndroid said:
I also had two files, then deleting all reappeared only one from 711MB!
You have lots of photos and videos?
Click to expand...
Click to collapse
About 40gb internal, and another 40ish on SD's.
We are different!
My internal memory 45GB free!
MicroSD removed
Yes, quite obviously, you are different. Won't get you a Nobel Prize.
Did you clear the media player's data yet? I have device pretty chock full with all kinds of graphics and videos, and on the MicroSD, the thumbnails file is only slightly less than 12 MB.
ShadowLea probably has a lot more.....errrmmm...shadowy material than me, so I dare not compare us directly.
It seems likely though that you just had a lot of material to be indexed previously, and those caches are never emptied, neither are they touched upon a reinstall. You'll need to empty them by hand yourself.
Yes, obviously we're different. :cyclops:
MartyHulskemper said:
ShadowLea probably has a lot more.....errrmmm...shadowy material than me, so I dare not compare us directly.
Click to expand...
Click to collapse
Well... I'm not paying for my Eweka payserver in the spirit of charity.
MartyHulskemper said:
Yes, quite obviously, you are different. Won't get you a Nobel Prize.
Did you clear the media player's data yet? I have device pretty chock full with all kinds of graphics and videos, and on the MicroSD, the thumbnails file is only slightly less than 12 MB.
ShadowLea probably has a lot more.....errrmmm...shadowy material than me, so I dare not compare us directly.
It seems likely though that you just had a lot of material to be indexed previously, and those caches are never emptied, neither are they touched upon a reinstall. You'll need to empty them by hand yourself.
Click to expand...
Click to collapse
How can I manually clear the cache?
Usually through the settings in the apps themselves.
OK. So what application should I see? Gallery app or all photos and videos app? (Example QuickPic, Mxplayer)
All of them.
MarkAndroid said:
Inside the folder DCIM /.thumbnails there is a file .Thumbdata3 of 710MB!
I tried to delete it but it always returns the same size.
I also tried to delete all the photos from the DCIM folder but nothing has changed!
How is it that the file has a size so big?
Click to expand...
Click to collapse
I had the same problem...my files was 1.6GB. I believe it has to do with thumbnails database off all pictues that have been on your phone or gallery, and even if you delete it, they keep track of the all and then recreates the thumbnails file.
My solution was to create a empty folder with the exact same name of the file, in the same location (after deleting the big file first)...did not need to change permissions or anything, just an plain empty folder with the same name replacing the file. I´ve rebooted several times/took lots of pictures and seems to prevent the file to re-create. Has worked so far.
Hope that helps
It seems to work!
Since I created two folders with the name of the file .thumbdata are no longer created the two large files and does not create even the thumbnails!
THANKS
MarkAndroid said:
It seems to work!
Since I created two folders with the name of the file .thumbdata are no longer created the two large files and does not create even the thumbnails!
THANKS
Click to expand...
Click to collapse
Any abnormalities with your device since? Like opening the camera app, taking photos, accessing Gallery, and FCs?
I noticed this type of behavior back with my Motorola DROID. I realized that when I performed Factory resets it would not delete these files off of the SDCard, an I had 4 or 5 of them (when I was trying every ROM under the sun before CM7 was released).
I finally figured out that just deleting them would allow the apps to recreate what they needed - but yeah, some photos that I had moved to a 'hidden' location still had thumbnails showing. I finally figured out what ShadowLea is saying - you have to clear the cache components of the applications themselves and then let them rebuild. From there it is a piece of cake.
solved for Galaxy S3
Hello,
I had the same problem on my Samsung S3. The file was allways created with 1,74 GB and growed. when i deleted it by hand it was created a few minutes later again.
Here the solution that worked for me
1) copy file name
2) delte the file
3) create a folder with the filename (not a file!) *
4) take away all possible permissions for this folder (with total commander for andriod for example)
After that my camera and my picture viewer still works fine. the only "problem" i have is that i dont see a preview of my old pictures in the down left corner of the camera app.
*I also tried to create a file with the name and took the permissions from it but it was overwriten by the camera anyway.
cheers!

Gallery app issue in EMUI

Hello All,
Since long time i facing some issue related to Gallery App. Below is the description.
On Memory Card there is path /Memory Card/Xender/images/abc.jpg. In Gallery it's showing correct path, in 'Other' section of Gallery there is folder named 'images' and in that abc.jpg is showing.
I move /Memory Card/Xender/images/abc.jpg to new location /Memory Card/Pictures/My/abc.jpg and deleted the folder /Memory Card/Xender and all it's content.
Now, when i open Gallery in 'Other' section i can still see folder named 'images' (which was in /Xender/ and i have already deleted it) and in that abc.jpg is still showing. However when i check properties/details of abc.jpg in Gallery it shows me correct path which is /Memory Card/Pictures/My/abc.jpg.
Though folder has been deleted and image file has been moved to different location, why Gallery is showing that folder and image in that folder.
To resolve this i have to clear data of Gallery App and due to which all highlights and discover gets deleted. Which is really sad..
Can someone please help me to resolve this issue or provide the workaround without losing any data.
Reboot dosen't help, also tried to clear Cache of Gallery App.

Android 11 and .nomedia file

I was about to post a question about this, but I just figured this out myself. My phone recently updated to Android 11. I have an SD-Card which has music on it - along with a lot of album art. Since the update, all these album art photos have been cluttering up my gallery. Every time I add a .nomedia file in here (which also was there before the update), it seems to get automatically deleted (no, not hidden). I tried copying a .nomedia file from elsewhere on the phone. I even tried popping out the SD-Card and adding the file via PC. As soon as Android touches it, it deletes the file again.
So, here is the issue. With Android 11, it is creating some default folders (I wish it wouldn't clutter up things with these empty folders that I never need or use). Those default folders include: Music, Pictures, Movies. These are created at the top level on the SD-Card and on internal storage. So, if you are also using one of those folders for something, it's going to auto delete the .nomedia file. In my case, I just moved my music into a Musics folder instead(and ensured it has a .nomedia file, of course.
Hopefully this will save someone else from wasting their time trying to figure out why this is happening!
pacaveli420 said:
I was about to post a question about this, but I just figured this out myself. My phone recently updated to Android 11. I have an SD-Card which has music on it - along with a lot of album art. Since the update, all these album art photos have been cluttering up my gallery. Every time I add a .nomedia file in here (which also was there before the update), it seems to get automatically deleted (no, not hidden). I tried copying a .nomedia file from elsewhere on the phone. I even tried popping out the SD-Card and adding the file via PC. As soon as Android touches it, it deletes the file again.
So, here is the issue. With Android 11, it is creating some default folders (I wish it wouldn't clutter up things with these empty folders that I never need or use). Those default folders include: Music, Pictures, Movies. These are created at the top level on the SD-Card and on internal storage. So, if you are also using one of those folders for something, it's going to auto delete the .nomedia file. In my case, I just moved my music into a Musics folder instead(and ensured it has a .nomedia file, of course.
Hopefully this will save someone else from wasting their time trying to figure out why this is happening!
Click to expand...
Click to collapse
This makes no sense, please explain in more detail.
android1977 said:
This makes no sense, please explain in more detail.
Click to expand...
Click to collapse
If you're storing your music files in any of the default folders, Android is going to auto delete your .nomedia file if you try to put one there. Ergo, the solution is you need to store your music in a folder named something else.
pacaveli420 said:
If you're storing your music files in any of the default folders, Android is going to auto delete your .nomedia file if you try to put one there. Ergo, the solution is you need to store your music in a folder named something else.
Click to expand...
Click to collapse
Thanks that's what I did and got lucky, I was so desperate I signed up to XDA just to comment I gotta say XDA I love your site and been reading for a couple year's now, enjoy the information provided, thanks guy's for all your hard work
pacaveli420 said:
If you're storing your music files in any of the default folders, Android is going to auto delete your .nomedia file if you try to put one there. Ergo, the solution is you need to store your music in a folder named something else.
Click to expand...
Click to collapse
Thank you for saving my media library! I've been tortured by this issue since using the new phone, finally!
hello, i just get Android 11 on my MI A3, and those folders ( music, pictures, movies )appears on my sd card, they are useless for me, is there a way to delete them?
before Android 11, i didn't have this problem because i choosed " use sd as external support " instead of "use sd as extended memory" when inserting the sd card, but now even if i make the same choice, the folders are there and i can't delete them.
Sort of off topic but not really:
How do I stop it from creating these default folders? It's extremely annoying. I don't have my SD card structured that way and never have. I've deleted the default music, movies, etc folders numerous times now as they just clutter up the root directory and they keep reappearing. Is there a solution to this?
This seems to be a part of Android 11s default folder structure which no one ever bothered to do something about. I wouldn't be surprised if it's there for "security reasons" as well as a communist one. As in you only have the option to use these "secure" folders or else it won't show up in your apps at all.
This might be a way for Google to slowly faze out SDCards entirely while only giving you the option to use said folders for your "private" stuff akin to how IOS (kinda) works. In other words, they are doing it on purpose and no one ever bothered to read the fine print.
Obviously private music and other media collections is the root (see what I did there) cause of the problem. They don't want you to have those at all, And want you to use streaming services instead (tinfoil hat). Which is probably what these folders will probably end up being used for.
Netflix and Spotify allow you to store music on your device, but it's encrypted and will probably end up there at some point in Androids lifecycle. Obviously these files don't need .nomedia since the files are encrypted and will only show up in said app either way which makes the above meaningless.
Most of this is speculation obviously, but we've slowly been moving towards this trend if you look at how System apps were split into app and priv-app and so on. At some point in time only certain apps that has had the blessing of Google will be allowed to read anything off your storage. This happened with Chrome not to long ago where they blocked side-loaded extensions from running.
You will slowly see Android turning into IOS because they (Google) and big-tech in general wants 100% control of what you can and can't do. And everything based on AOSP or LOS is gonna follow suit because no one gives a flying fudge because that's too bothersome. The fragmentation of custom builds based on LOS/AOSP in general already shows that this has always been the case for the last 10 years. Linux in general is no different either as can be seen with wokeism. Except that was through decimation via woke people and not big-tech.
I was going crazy thinking this issue was specific to my samsung's stock rom. I started searching about this once I noticed it on LOS 18. Glad I'm not alone
I tend to be a little OCD about my folder structures but at this point I don't mind making a separate folder to avoid album arts in my gallery.
I believe I found a solution to this. It's been about a week or two with no further incident now. My solution was to delete the default folders from the root of the SD card because I don't use them, then create blank files that used those names. Haven't had a problem since.
I use the top level pictures folder because of a compatibility issue with programs that have small file path character limits that cause the program to hang. I don't use them anymore but I haven't had a reason to move it back where I had it previously and that would only make the default folder issue worse if I did. Or at least it would have until now with this discovery.
I do not use the movies and music folders, and if I move my pictures folder back where I had it I won't use that one either. Having them pop up on their own to clutter my root directory on both my SD card and my phone itself was very annoying. After deleting the movies and music folders off of the root of my SD card for the billionth time and getting rid of the empty default folders on my phone again, I created two blank files on my SD card root called Music and Movies. Ever since then the default folders haven't reappeared. On top of that, it hasn't created any ".thumbnails" folders all over the place like it always used to do either. That includes doing so on the internal phone storage. Creating those files on the SD card seems to have broken the whole process. I imagine the same would work vice versa for OP since it sounds like they use those default folders. Find an empty default folder on internal storage, delete it, create a file and name it the name of the folder you deleted (case sensitive), and that should disable the annoying default folder management process too. I can't vouch for that method, but I can vouch for it working when you do so on the SD card.
I just noticed this today on my tab s7+.
From what I can tell, the .nomedia file nolonger does anything on its own. However, if I add the .nomedia file to a folder, then rename the folder placing a . in front, of course it hides the entire folder. When I rename the folder again, removing the ., the .nomedia file now works. No matter how many times I rename the folder, the gallery does not see it until I remove the .nomedia file.
pool_shark said:
I just noticed this today on my tab s7+.
From what I can tell, the .nomedia file nolonger does anything on its own. However, if I add the .nomedia file to a folder, then rename the folder placing a . in front, of course it hides the entire folder. When I rename the folder again, removing the ., the .nomedia file now works. No matter how many times I rename the folder, the gallery does not see it until I remove the .nomedia file.
Click to expand...
Click to collapse
thank you pool shark.. i tried what you did/suggested and it worked. thanks.

Categories

Resources