🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mobile.android
Article #75

Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android

#75
From: Jeff Layman
Date: Sat, 10 Oct 2026 07:10
80 lines
4394 bytes
On 09/10/2026 20:30, Maria Sophia wrote:
> Jeff Layman wrote:
>> Or you could use the Muntashirakon App Manager. Putting "messages" in
>> the search box results in:
>>
>> Messages
>> com.google.android.apps.messaging
> 
> Hi Jeff,
> 
> I think I turned you on to Muntashirakon, didn't I?
> If so, I'm glad you enjoy it.

It's very useful and I haven't even scratched the surface of what it can 
do - as per the current thread, for instance. It's also very easy to 
copy'n'paste the correct package name into the adb command.
> Agree the package name (i.e., the unique identifier) is critical when using adb commands & agree that Muntashirakon App Manager is the best GUI.
>     <https://github.com/MuntashirAkon/AppManager> (apk)
>     <https://muntashir.dev/AppManager/en/> (doc)
> 
> Also agree the damn Samsung GUI is very different for no good reason
> from the stock Android experience that, oh, say, a Pixel affords us.
> 
> Another way is to use adb to list all the package names on your system.
>   adb shell pm list packages
> 
> BTW, you can past your results into an LLM/AI and ask it to be brutally
> honest of what it thinks the user is who owns those apps on their phone.
> 
> Take a look at this, based only on a list of package names on my phone:
>   <https://i.postimg.cc/tCzzQNKT/Clipboard-10-09-2026-01.jpg>

(very big snip)

Out of interest, do the different LLM/AIs come up with the same answer?

> Here are other related package listing commands for adb:
>    # List all packages on the device:
>      adb shell pm list packages
> 
>    # List only third-party (user-installed) apps:
>      adb shell pm list packages -3
> 
>    # List only system apps:
>      adb shell pm list packages -s
> 
>    # List only enabled apps:
>      adb shell pm list packages -e
> 
>    # List only disabled apps:
>      adb shell pm list packages -d
> 
>    # Filter for a specific keyword (Case-insensitive):
>      adb shell pm list packages | grep -i "google"
> 
>    # Count how many total packages are installed:
>      adb shell pm list packages | wc -l
> 
>    # List packages that request a specific permission:
>      adb shell pm list packages -g android.permission.CAMERA
>      (Replace CAMERA with any permission string, such as
>       ACCESS_FINE_LOCATION or READ_CONTACTS, etc.)
> 
>    # Show the APK file path alongside the package name:
>      adb shell pm list packages -f
> 
>    # Show the UID (User ID) assigned to each package:
>      adb shell pm list packages -U
> 
>    # Show installer source (who installed the app):
>      adb shell pm list packages -i
> 
>    # Export a clean, un-prefixed list of just package names to a text file:
>      adb shell pm list packages | sed 's/package://g' > installed_apps.txt

I think that the Muntashirakon app manager can do most of those on its 
own, without recourse to adb.

-- 
Jeff
Technical Details
Message-ID: <11acoe1$1gk8u$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11aa45j$i8tn$1@dont-email.me> <11aas0j$rfjb$1@dont-email.me> <11abfc2$1655$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!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Jeff Layman <Jeff@invalid.invalid>
Newsgroups: comp.mobile.android
Subject: Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb
 with Android
Date: Sat, 10 Oct 2026 08:10:56 +0100
Organization: A noiseless patient Spider
Lines: 80
Message-ID: <11acoe1$1gk8u$1@dont-email.me>
References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com>
 <11aa45j$i8tn$1@dont-email.me> <11aas0j$rfjb$1@dont-email.me>
 <11abfc2$1655$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 10 Oct 2026 07:10:58 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1593630"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/jrTiIzwCKNnXLEVunDrqFg5zpr6oySR4="; posting-host="f1f2afe2727ebaf8bd51c0e7d61ac55d"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fjTZyNJgfzQlCGE8q6AB7tsTOUA= sha256:1VYYDe1/3cGFYGG7a1Syc8bq9J60YwbK5iQuxPhCBms=
	sha1:E711sD8z0EIBcVGzSLpTp+W8VMw= sha256:aLwN6QcZAXhkQgaEH1wvF/9twgaHU+Dl4LLRithVzew=
Content-Language: en-GB
In-Reply-To: <11abfc2$1655$1@nnrp.usenet.blueworldhosting.com>