I'm looking for a way to retrieve timestamps of my download history at the full precision that they are stored at, preferably to at least second precision.
Unfortunately though, without obtaining root permission over my phone, I don't have access to my own user data at /data/
, so I'm trying to figure out a way to do this through Firefox using JavaScript.
Situation: I made the big mistake of moving pictures and videos from the internal storage of my phone to a microSD card using Android's stock tool to do so (‘Settings’ → ‘Storage’ → ‘Transfer data to SD card’). Unfortunately, this bumped the timestamps of all of the files, and also messed around with directories other than DCIM/
(images and videos were also moved from the Download/
, image/
, Pictures/
, and video/
directories). In hindsight it seems silly that I used such a tool (I'd normally use Ghost Commander), but it appeared as a notification when running low on internal storage space and it just looked so easy. I've since been trying to piece back together the timestamps of the various images and videos.
I have restored the timestamps of photos and recorded videos in DCIM/100ANDRO/
based on timestamps in their embedded metadata (see this Unix & Linux Q/Asee this Unix & Linux Q/A), and I've figured out how to restore the timestamps of all of the images and videos in the image/
, Pictures/
, and video/
directories, but I'm still stuck with how to restore the images in Download/
.
The embedded metadata of these files isn't going to help me to restore their timestamps, because I want to restore them back to when I obtained the file (i.e. downloaded it), so I need to get access to my Firefox data and obtain the download timestamps. Once I have the timestamps, I'll then be able to touch
the files to approximately the correct timestamp that they had before Android lost them.
I'm using mobile Firefox 27.0 on Android 4.3.