Maria Sophia wrote:
> So that all benefit, this thread is opened to allow others to post random > useful adb examples, where the goal is a usable list of useful examples.
Below is a uniquely new way to use adb to find the last app that we ran. Just now, someone asked a question on th eng of what apps do something. I popped up my phone and ran a few apps, and each time an app did the required task, I then queried adb for the most recent activity run. That gave me the unique package name of the app, which is very useful when we deal with device-checker apps, all of which seem to have the same icons. Newsgroups: comp.mobile.android Subject: Re: Saving "About Phone" info(?) Date: Tue, 3 Nov 2026 21:20:06 -0400 Message-ID: <11ce…@nnrp.usenet.blueworldhosting.com> VanguardLH wrote:
> croy <cr…@spam.invalid.net> wrote: >
>> Is there a way to save the "About Phone" info to a file? >> >> I'm currently using a Samsung S24 FE.
> > Possible a screen snapshot. > > https://www.samsung.com/us/support/answer/ANS10002500/
Since the answer has been given over the years, I approached this oft-asked question differently, in a way that extends our overall knowledge. Long ago I tested all the free system-reporting utilities, and one of the criteria were whether or not that utility could save its output to a file. Since I keep the apps that didn't fail the "one strike and you're out" rule, I still have tons of device-checker utilities so I ran a few now. adb shell dumpsys activity recents | grep -i "realActivity\|packageName" realActivity={flar2.devcheck/flar2.devcheck.MainActivity} realActivity={com.finalwire.aida64/com.finalwire.aida64.HHMainActivity} realActivity={com.evilscan.deviceinfo/com.evilscan.deviceinfo.view.activities.MainActivity2} realActivity={com.cpuid.cpu_z/com.cpuid.cpu_z.MainActivity} realActivity={org.uguess.android.sysinfo.pro/org.uguess.android.sysinfo.QSystemInfo} Those are the last few apps I ran (most recent first) which were able to export a file as shown by a listing of the Downloads folder. adb shell ls -lt /sdcard/Download -rw-rw---- 1 root everybody 3303 2026-11-03 17:06 cpus_8_socs_1_c.txt -rw-rw---- 1 root everybody 41948 2026-11-03 16:56 DeviceInfo.txt -rw-rw---- 1 root everybody 42353 2026-11-03 16:52 Device Info.txt -rw-rw---- 1 root everybody 24542 2026-11-03 16:44 Device-Info-Report.txt -rw-rw---- 1 root everybody 3044 2026-11-03 16:34 DevCheck-Nov 3, 2026 4_34 PM.txt -rw-rw---- 1 root everybody 554165 2026-11-02 21:34 logcat_2026-11-02_21-33-43.txt In short, the method I used was: 1. Re-run the apps, one by one, to see which export the system info 2. just after a successful export, note the most recent package run 3. In the end, check the Downloads folder for all the saved files If someone can suggest a better method to find the package name easily of a successful test of any given feature (exporting system info in this situation), please let us all know how you do it (as it's a useful trick).
-- My conversations are deep because they cover more detail than most do.