Article View: comp.mobile.android
Article #533Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
From: Maria Sophia
Date: Wed, 04 Nov 2026 01:39
Date: Wed, 04 Nov 2026 01:39
66 lines
4507 bytes
4507 bytes
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: <11ce185$1n2h$1@nnrp.usenet.blueworldhosting.com>
VanguardLH wrote:
> croy <croy@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.
Technical Details
Message-ID:
<11ce2c0$14i0$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mailReferences:
<11a96gn$b36$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mail From: Maria Sophia <mariasophia@comprehension.com> Newsgroups: comp.mobile.android Subject: Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Date: Tue, 3 Nov 2026 21:39:13 -0400 Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11ce2c0$14i0$1@nnrp.usenet.blueworldhosting.com> References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> Reply-To: pusvul@getTjewytR4so+mqe2.invalid Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 4 Nov 2026 01:39:13 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="IfCZz72xNNlHXBkfV9B6WJEa9xVhaehMJfhAC6fCwnM"; logging-data="37440"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mojibake 1p3 Cancel-Lock: sha1:x85sNBoGUotZahY88Y1j67tG2Dw= sha256:IQDyaDUMKFVlOM4cTONYqg4c8VZUXEMiGMetcj4yq50= sha1:5HVNt1YimwdMod4iCB+IVPRtXcE= sha256:0BOnPxyCm8tLO+yHKWCJQcDM0rNFST46QO49OTpIMY8= Content-Language: en-GB