LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   How to check Android 5.1.1 timestamps? (https://www.linuxquestions.org/questions/linux-mobile-81/how-to-check-android-5-1-1-timestamps-4175732848/)

maybeJosiah 01-16-2024 04:48 PM

How to check Android 5.1.1 timestamps?
 
I know File class in Android only supports last modified. I checked with a terminal on an Android 13 device and Android actually has accessed at, modified at, and changed at. I installed a terminal on like my old Android 5.1.1 Lollipop and found it does not have stat which is what I would need for this. How can I get things with timestamps as I could use on another device? How can I check if that Android even has all those timestamps? I know I can make a .ab file from like my device but does that store everything? If it does, can I unzip it or is it basically useless except as a restore on that device? I also have data on SD card on this phone. I would rather not upgrade Android and risk losing data. What can I do? I am trying for files off that device in human understandable format with all that can be preserved. I think one of like my computers has an SD card reader but for such an old phone, unsure. I have Android Studio and know how to use it if needed. This device is unrooted with locked bootloader and developer options enabled. I use it as a phone still. X E.

maybeJosiah 01-16-2024 05:43 PM

https://zzzcode.ai/answer-question?i...b-82fd1cba9376
This seems like it could install stat. Trying it. Bonus, I can access all these attributes using Runtime.getRuntime().exec("command") in Java code if stat is installed. X E.

maybeJosiah 01-16-2024 06:27 PM

Here is what I have tried: Termux, fails to install because of WiFi, Qute, pkg not found, BusyBox, requires root, apt-get install coreutils, fail. Maybe it is like my WiFi though. zzzcode.ai comes up with nothing more. X E.

maybeJosiah 01-16-2024 07:08 PM

Termux unable to install bootstrap packages. It is an old LGMS330 running LG powered by Android with MetroPCS. I do not know how to install stat or use anything to get like all timestamps. I know most phones it would be stat.

https://zzzcode.ai/answer-question?i...2-7dc0fe8ff432
It seems I should get coreutils, but what version, like my tar will not extract a 9.4 binary seemingly. I really should get advice before screwing with this. X E.

maybeJosiah 01-17-2024 05:56 PM

I just plugged like my LGMS330 into like my Ubuntu computer and had access to main accessible internal storage and SD card. I did not know Ubuntu could do that. Windows can't normally read SD cards on phones. I checked if stat would work on it from like my Ubuntu computer, just one timestamps, modified at. It displays more but all always same. I rsync ed data and last modified to like my Ubuntu computer. If this thing has any other timestamps accessible then those were recorded. I guess as solved as it can be. X E.


All times are GMT -5. The time now is 10:04 PM.