Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Last edited by maybeJosiah; 01-16-2024 at 04:50 PM.
Reason: Device spec maybe
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.
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.
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.
Last edited by maybeJosiah; 01-16-2024 at 09:44 PM.
Reason: info maybe
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.