[Q] Gallery not finding pictures in the correct location - HTC Droid DNA

Okay, so hear me out.
I've been switching ROMS a lot lately (and I think this have played a part) and I've just landed back on ViperROM (4.1.1) from Carbon (4.2.2) and all of my old app/camera/etc data from Carbon was placed on /sdcard0/0/ (or /mnt/sdcard/0/). Now, I didn't care for it because it was mostly junk I wanted gone anyway. The only thing I wanted was my pictures (both taken on the phone and downloaded via facebook, browser, etc.). So, after a couple days using the ROM, I wanted to tidy up files and folders and remove the damn 0 folder because I'm not on 4.2.2 anymore. So I took my DCIM, downloads, etc and merged them with the respective folders under /sdcard0/ (or /mnt/sdcard/). Everything looked fine until I checked the Gallery and none of them are showing up when viewed (I get the exclaimation point in a triangle warning sign when I do) and the "View Details" option shows that they're "stored" under /sdcard0/0/.
In attempts to remedy the above stated situation, I tried to clear the cache/data of the camera and gallery apks. Doing so (and rebooting) lead the gallery to rebuild the photo cache!... and populate the old, broken photo links.
So what gives XDA? I can't wrap my head around this.
TL;DR:
Switched from ViperROM to Carbon back to ViperROM, moved /sdcard/0/ 4.2.2 folder back to /sdcard/ 4.1.1 folder, pictures are "stuck" on /0/ in Gallery but have been moved to /sdcard/
EDIT:
The camera even continues the naming pattern (say, I took 400 pictures on my "old" phone setup and they were IMAG000.jpg through IMAG400.jpg, if I take a picture, it labels the new one IMAG401.jpg)
It's not even that it's bothering me that it won't catch the old ones, but it's refusing to recognize that they aren't there anymore.

Related

Android(JB) Gallery broken?

Hi there,
Whats the deal with Google not fixing/improving the current Gallery? Right now i have installed a new SD card for dedicated camera storage for ease of transferring to/from my computer.
But upon copy my DCIM/Camera folder over, the gallery now decides to sort my media by grouping the entire Video selection at the front of my gallery in the correct date order, followed by all my photos in the correct date order? Why aren't they mixed together in date order and instead grouped in the "media type", and does anybody know a fix?
I have tried to check the filenames and they are fine. When I open the camera directory on my computer, the files appear fine and all in the correct date/filename sorting.
My device in a GS3 running stock rom, have asked in there but figured its more of a general Android/JB problem and here would have more chance of a helping hand.
Thanks!

[Q] Deleting pics from google+ took them out of Gallery?

Hi everyone,
I just got the M8 2 days ago. I have hundreds of pics saved to my SD card from GS3. The pictures showed up fine in the Gallery. Last night I saw new photos had been backed up into my never used google+ account. Having a moment of panic at the thought of those being "out there" I deleted all my pictures from Google+ and shut off auto back up.
This morning I go into my Gallery and see all those pictures are GONE from my Gallery!! I completely freak out. I open a file explorer and browse to SD card and in the DCIM folder they are all there - whew.
Now, here's the problem....I cannot get this pics to show up in the Gallery, no settings anywhere to "import" them...I would think they would just show up.
Thoughts?
Ok, figured it out - in case anyone else has this issue. I canged the storage location back to internal card, then closed the camera app...opened it again and changed the storage location to external SDcard and they suddenly appeared. Hope this helps some noob like me haha

No images in gallery apps, media storage to blame

Hey there guys,
For some time I haven't been able to see the images in my gallery properly. The list was only partial, it only showed the latest 50 photos of the 1000 available in DCIM/Camera.
Since there was no problem with permissions I dug some deeper. In /data/data/com.android.providers.media/databases I opened up the external.db with the sqlite3 command and did some poking around. It appears all my images are in the files table. When I take a picture from within any gallery app, a line gets added in the images table and then it is visible in the gallery apps.
Since I have narrowed it down to Media Storage not putting the files in the right table, how do I fix it? There is virtually no information available on the subject.
I'm running a very recent nightly build from this thread. (A CM12.1 build)
Please respond?
badoop22 said:
Hey there guys,
For some time I haven't been able to see the images in my gallery properly. The list was only partial, it only showed the latest 50 photos of the 1000 available in DCIM/Camera.
Since there was no problem with permissions I dug some deeper. In /data/data/com.android.providers.media/databases I opened up the external.db with the sqlite3 command and did some poking around. It appears all my images are in the files table. When I take a picture from within any gallery app, a line gets added in the images table and then it is visible in the gallery apps.
Since I have narrowed it down to Media Storage not putting the files in the right table, how do I fix it? There is virtually no information available on the subject.
I'm running a very recent nightly build from this thread. (A CM12.1 build)
Please respond?
Click to expand...
Click to collapse
Have you tried another gallery app, like QuickPic? If it's happening in just 1 app or multiple ones will help narrow down the problem.

TWRP backup causing duplicated pictures?

So I created a backup with TWRP about two weeks ago (selected all the checkboxes of things to backup) and since then have been noticing that the pictures in my gallery are duplicated everytime I restart the phone (clearing the cache gets rid of them). Sometimes I get more than one duplicate, like this morning there was 6 of each picture.
So I downloaded FX file manager and had a snoop as the details option in gallery showed the duplicate images being located on USB18. Sure enough, there was a library called USB18 which I took a wild guess being something to do with the backup as it never appeared before. It had duplicates of every single file on the phone inside it.
Cut and pasted USB18 to an OTG memory stick as a precaution and deleted it. Rebooted the phone and the duplicates, along with USB18, are gone.
So created another backup in TWRP...boom USB18 and the duplicate pictures came back.
Anyone noticed the same thing happening? Am I doing something wrong?
Answers on a postcard please...

Some recently taken photos/videos are only accessible by Google Photos, appear to be in its app data and not movable

Very peculiar issue occurring: there are a fair amount of photos and videos that show up under google photos under library -> photos on device -> camera with SDCard Icon.
But the location for these files is "/external/video/media" or "/external/image/media" under ""On Device (size)." The other files taken in a similar way are correctly on "/storage/9C32-13OC/DCIM/Camera"
When clicking these files, they play normally, clicking share and More or Create Link says "Error, could not download media" and using Google Photos to Move / Copy says "Trouble Moving 1 item"
When ejecting the SDCard and physically removing it while keeping Google Photos open, all the files actually on /storage/<ID> disappear, and all these weird files remain and can be played. This is how I discovered it wasn't just today's videos, which were mysteriously not being uploaded to my nextcloud. No other app can see these videos/images, including the system's gallery app, and they are not in the internal emulated "SDcard"
These are on my SO's phone and I use the exact same model phone. I did discover that I do have some files like these but hey are all older than the oldest file on my SDCard, e.g. Google Photos has somehow decided to cache them. But on my SO's phone, these files are intermingled with the ones she's actually taken
Interestingly when I switch the google photos account to another google user logged on the phone, those files disappear. I did try moving files to the locked folder but it says "Trouble moving to Locked Folder. Try again later"— I did verify I could move files actually on the SDCard there, and they are then removed from all views except Locked Folder.
In this folder, on the top right when clicking the SDCard Icon, it does show the "SD Card folder" as "file:///storage/9C32-13OC/DCIM/Camera" as expected.
I searched for the filename in a file browser as well as in adb shell (using find / -name "filename" 2> /dev/null) and nothing comes up. As there are some lengthy videos in here, I used DiskUsage to see what might be using a lot of space, and the Google Photos app is using 7.55 GB of data, so it seems like they are being stored there. And it makes sense why they can't be found, as /data/data/com.google.android.apps.photos is only accessible by that app or the system, and I'm unrooted.
My SO said she took them the same way she normally takes photos and video, and of course when I take some they show up on the actual SDCard. I suppose in theory I could use adb backup and follow instructions on how to decrypt the data files, but really what the heck is going on?
We aren't on the latest phone or even the latest Google Photos app (could be a bug with this specific version, but then again google photos isn't taking the photos/videos, the system Camera app is). I could try upgrading her google photos but I also don't want to lose these videos of our kid. It does seem like it would back them up, but we don't have enough Google Storage to back them up online (hence why we use nextcloud), and they don't even show up under different google accounts as mentioned.
Phone: LG G7
Android 10
Google Photos: 6.21.0.504361003
robobub said:
EDIT: whoops, can this be moved to https://forum.xda-developers.com/f/android-q-a-help-troubleshooting.1236/ ?
Click to expand...
Click to collapse
Done!
Regards
Oswald Boelcke
robobub said:
I suppose in theory I could use adb backup and follow instructions on how to decrypt the data files, but really what the heck is going on?
Click to expand...
Click to collapse
Well this didn't work, as google photos does not back up with adb, as some apps can specify this.
Some of these videos did get uploaded to google photos, but they are (now) compressed to under 1/8th their size (the original size is noted correctly in google photos), and from 4k to HD.
From what I had recalled, when they are first uploaded, they are available at their original size to be downloaded. So I tried deleting one to get it to re-upload, and now that video no longer shows up on my SDCard under "/external/video/media" so I basically lost the original HQ video of my kid, great.
Any ideas?

Categories

Resources