MIUI Gallery reverse engineered - General Topics

In the MIUI Gallery app data we have a picture database /data/user/0/com.miui.gallery/databases/gallery.db containing information such as timestamp, exif data and file name.
There is a cache directory /mnt/runtime/write/emulated/0/Android/data/com.miui.gallery/files/gallery_disk_cache/full_size containing thumbnails in 1080x1440 resolution.
How does the MIUI Gallery app know which preview belongs to which picture?
I am looking for information about the missing link. I have attached example app data for one picture. The original example picture is included.
The goal is to recover metadata of pictures. I lost the phone and MicroSD Card so the original photos are lost. But I have a f2fs disk dump of userdata partition, that allowed my to restore at least thumbnails of lost pictures. The goal is to find the link to the database entries, so I can at least restore the timestamp and file names.
My first attempt was to simply rename the files by mtime (see shell script) but unfortunately that doesn't reflect the correct timestamp, because that is only the creation date of the thumbnail (when first opened a picture in gallery)

Related

where profile pictures are stored

I cannot find where the profile pictures are stored (small photos in the contacts). I want to know the path in the file system.
Probably either in the various PIM/contacts databases, or in files whose paths are in those databases. I don't know; I've never gone looking.

Stock gallery

This tablet is awesome, however the stock gallery app seems to be useless or am I missing something? I bought tablet because of the stylus and photo editing possibilities. I copied my photos from my pc on a micro sd card and inserted it into the note. However the gallery app does not seem to sort the resulting folders in any order, just a random mishmash of dates and names, I'd rather use the stock gallery due to the multi screen support however it is a real chore to find a folder / photo when it's presented randomly....does anyone know how to make the folders sort and appear alphabetically? Or even how the gallery app sorts the folders that photos are in?
Sent from my GT-N8010 using XDA Premium HD app
That's easy:
Arrange photos in Folders (= Albums) and You have them sorted in Albums. (Which by themselves can be sorted by time, location etc .)
Once You are IN an Album You can sort them by tTime, location, persons or groups
troed said:
That's easy:
Arrange photos in Folders (= Albums) and You have them sorted in Albums. (Which by themselves can be sorted by time, location etc .)
Once You are IN an Album You can sort them by tTime, location, persons or groups
Click to expand...
Click to collapse
I'm missing something with the gallery, too. I have my photos in folders, and when I have albums selected from the upper-left menu, I see a bunch of randomly sorted "albums." If I choose something else from that menu... say, time, for instance, each item on the screen (each thumbnail) is a group of photos from a specific day. I'd like the folders to be sorted in such a way that makes sense. Ideally, I'd like to sort them by name, as my folders are named with year and month (yyyy_mm). And I'd also like to not see every folder on that main screen, because some of them are inside the yyyy_mm folders. Ideally, I would only see a bunch of thumbnails named yyyy_mm, in chronological order... the way they appear in my folder structure on my PC.
Is this possible?
What I've found out about the stock gallery..........
Firstly there seems to be a limitation on android that it whilst it knows folders are nested, it will not support displaying only the parent folder, rather it displays all the orphan folders, I've tried lots of photo organising apps and they all have this limitation....this is a right pain if you want to sort your folders in logical way without every single folder displayed on the root display
In the stock gallery app the display options are based on..
Place, uses GPS data on the photo
Album, the folder names that your pictures are stored in on the device
People, face tagging which you have to enable on the device and then assign names from your contact directory.
groups, will display face tagged photos in the group's that are set up in your contact directory.
The limitation of face tagging is that you can't just enter a name for a face, it will only use your contacts directory so you have to enter a load of names in your directory to use for this feature, I suggest you make a group for these entries.
The main problem with the stock gallery is that once you have your photos in the gallery displayed in one of the ways detailed above you can not sort them, hide folders or enter manual information such as a location on places.
For my purposes I just want the folders to be displayed as I have them saves in my sd card, I have a parent folder for each year since 2000 within each oh these folders are a series of further folders for each set of pictures such as holiday, wedding etc. I just want my parent folders displayed in the gallery root, sorted by date. This doesn't seem possible as the stock gallery has no sorting options, my albums are displayed with no logic just, it seems, randomly.
I use the excellent quickpic app, which has loads is display and sorting options but has the "can't display only the parents of nested directorys" feature of android.
Sent from my GT-I9100 using xda app-developers app
manmikey said:
What I've found out about the stock gallery..........
Firstly there seems to be a limitation on android that it whilst it knows folders are nested, it will not support displaying only the parent folder, rather it displays all the orphan folders, I've tried lots of photo organising apps and they all have this limitation....this is a right pain if you want to sort your folders in logical way without every single folder displayed on the root display
In the stock gallery app the display options are based on..
Place, uses GPS data on the photo
Album, the folder names that your pictures are stored in on the device
People, face tagging which you have to enable on the device and then assign names from your contact directory.
groups, will display face tagged photos in the group's that are set up in your contact directory.
The limitation of face tagging is that you can't just enter a name for a face, it will only use your contacts directory so you have to enter a load of names in your directory to use for this feature, I suggest you make a group for these entries.
The main problem with the stock gallery is that once you have your photos in the gallery displayed in one of the ways detailed above you can not sort them, hide folders or enter manual information such as a location on places.
For my purposes I just want the folders to be displayed as I have them saves in my sd card, I have a parent folder for each year since 2000 within each oh these folders are a series of further folders for each set of pictures such as holiday, wedding etc. I just want my parent folders displayed in the gallery root, sorted by date. This doesn't seem possible as the stock gallery has no sorting options, my albums are displayed with no logic just, it seems, randomly.
I use the excellent quickpic app, which has loads is display and sorting options but has the "can't display only the parents of nested directorys" feature of android.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Wow, that seems like a pretty silly limitation. I would think a lot of people would want to be able to sort the way you described. I organize my photos almost exactly the same way, except that I have a folder for each month. But then, like you, I have subfolders that describe an event. I, too, just want to see the top level. I hope, at some point, someone comes up with an app that does that. In the meantime, I'll try QuickPic, as it seems to have more sorting options and, hopefully, I can at least sort the "albums" in a way that doesn't seem competely random.
Thanks!

Can I create folders inside DCIM-100MEDIA? (Android phone)

Hello. I have thousands of pictures. I would like to know If I am able to create folders inside the DCIM -> 100MEDIA folder of my M8 and label them for certain events ("birthday 2014, xmas, friends party"... etc etc etc). I created a "test" folder and moved pictures to it, and it does not show up in gallery camera shots, or anywhere else in gallery app.
How do you guys organize your pictures?
Also, lets say I move a picture named "IMAG3400" from DCIM to a different folder and or delete it, will any future pictures I take ever be re-named that SAME name? I did a test and it was named differently... So does this mean future picture names will not ever be re-named the same as a previously taken picture?

VSCO Cam - where is the hidden folder located?

Hello,
my problem is, that, unlike with iOS devices, VSCO decided to not offer the option that pictures taken with the app will be saved to the general pictures folder. I want to use VSCO as my main camera app, but each time I take a picture I have to go to the album inside the app and "export" it, so it shows up when I open the general photos app.
So I wonder - VSCO must save these pictures somewhere internally in a "hidden" folder or sth. Does anybody know where they store the pictures. Or has somebody an idea how I could locate it? I could then probably automatically move the files to another folder or point a gallery app to this folder.
Any tip is appreciated.

Thumbnail and cache

How long an image stays in thumbnail after deleting from gallery.Does android deletes the thumbnails each time the phone is restarted?
joejoy said:
How long an image stays in thumbnail after deleting from gallery.Does android deletes the thumbnails each time the phone is restarted?
Click to expand...
Click to collapse
Thumbnail created whenever you add pictures or videos on your android. Thumbnails remains in your phone even after you delete pictures or videos from your android. Android don't delete these thumbnail files after restart.
But then what if we hadd reset the phone. Doea it go
are the thumbnails created for all the images or cideos send from whatsapp or bluetooth or any means
joejoy said:
are the thumbnails created for all the images or cideos send from whatsapp or bluetooth or any means
Click to expand...
Click to collapse
If you hard reset then thumbnails get erased because it stored in internal storage as internal storage get erased.
Thumbnails created for all pics and videos. It doesn't matter it source.
Where is the thumbnail folder created if the camera pictures are stored in external memory card. Does thumbnail folder get created in external memory card or internal memory?

Categories

Resources