Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.mobile.android > #156342 > unrolled thread
| Started by | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| First post | 2026-10-08 15:46 -0700 |
| Last post | 2026-11-18 18:35 -0400 |
| Articles | 20 on this page of 37 — 10 participants |
Back to article view | Back to comp.mobile.android
FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-08 15:46 -0700
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Arno Welzel <usenet@arnowelzel.de> - 2026-10-09 09:12 +0200
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Frank Slootweg <this@ddress.is.invalid> - 2026-10-09 10:20 +0000
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Nuno Silva <nunojsilva@invalid.invalid> - 2026-10-09 12:37 +0100
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Jeff Layman <Jeff@invalid.invalid> - 2026-10-09 14:59 +0100
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Jeff Layman <Jeff@invalid.invalid> - 2026-10-10 08:10 +0100
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-10 03:25 -0700
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-11 09:37 -0700
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Arno Welzel <usenet@arnowelzel.de> - 2026-10-09 09:15 +0200
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Siard <saylor259@mailbox.org> - 2026-10-09 10:30 +0200
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Don <g@crcomp.net> - 2026-10-09 11:22 +0000
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-17 21:46 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-21 13:53 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-23 17:44 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-23 17:49 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android croy <croy@spam.invalid.net> - 2026-10-23 16:58 -0700
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-23 22:19 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 00:57 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 01:12 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 03:18 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 10:03 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 14:16 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-26 09:25 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-30 13:38 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-31 11:54 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-31 13:41 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android ram@zedat.fu-berlin.de (Stefan Ram) - 2026-10-31 18:06 +0000
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android "Carlos E. R." <robin_listas@es.invalid> - 2026-11-01 13:23 +0100
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-01 10:07 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-02 13:56 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-03 01:49 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android "Carlos E. R." <robin_listas@es.invalid> - 2026-11-03 18:01 +0100
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-03 13:29 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-03 21:39 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-07 14:39 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-18 10:16 -0400
Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-18 18:35 -0400
Page 1 of 2 [1] 2 Next page →
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-08 15:46 -0700 |
| Subject | FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android |
| Message-ID | <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> |
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.
[toc] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2026-10-09 09:12 +0200 |
| Message-ID | <11aa45j$i8tn$1@dont-email.me> |
| In reply to | #156342 |
In the following examples APPLICATION is the full identifier of an application package. To find out this identifier, go to the app list in Android, open the application information of the app and scroll down to the end of the list. There you should find the identifier. If you have a vendor specific UI (Xiaomi, Samsung etc.) it may look different. In this case, check Google Play online in a browser. The application identifier is part of the URL after the "id=" parameter like this: <https://play.google.com/store/apps/details?id=com.google.android.apps.messaging> For example Google Messages is com.google.android.apps.messaging and the ADB command to disable this for user 0 would be: adb shell pm disable-user --user 0 com.google.android.apps.messaging The identifier is the "reverse" domain notation intruced by Java, so instead of "google.com" at the end as the owner of the app it is "com.google" at the beginning. List of ADB commands to modify apps: Disable the app for user 0: adb shell pm disable-user --user 0 APPLICATION Note: the app will still be visible as installed app for this user and can be re-enabled. Using this command may work even when disabling the app within the Android UI is note possible. Re-enable an app that was disabled for user 0: adb shell pm enable --user 0 APPLICATION Force-stop an app: adb shell am force-stop APPLICATION Uninstall the app for user 0: adb shell pm uninstall --user 0 APPLICATION Note: if the app is preinstalled system app it may still be present in the file system and will only be made unavailable for user 0. It can be restored if neccessary. Restore a system/preinstalled app previously uninstalled for user 0: adb shell cmd package install-existing --user 0 APPLICATION -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Frank Slootweg <this@ddress.is.invalid> |
|---|---|
| Date | 2026-10-09 10:20 +0000 |
| Message-ID | <11aam68.m88.1@ID-201911.user.individual.net> |
| In reply to | #156345 |
Arno Welzel <usenet@arnowelzel.de> wrote: > In the following examples APPLICATION is the full identifier of an > application package. > > To find out this identifier, go to the app list in Android, open the > application information of the app and scroll down to the end of the > list. There you should find the identifier. If you have a vendor > specific UI (Xiaomi, Samsung etc.) it may look different. In this case, > check Google Play online in a browser. The application identifier is > part of the URL after the "id=" parameter like this: > > <https://play.google.com/store/apps/details?id=com.google.android.apps.messaging> Please note that Samsung (and other?) devices sadly do *not* show the 'id=' identifier in the 'App info' page of an app. For example for the (Google) 'Messages' app, it only mentions the 'Version' (which says ...phone_samsung_dynamic). Same for other apps, such as (Google) 'Maps' (but that has no Samsung specific tag in 'Version'). As the app-private storage areas (/Android/data, media and obb) are not accessible for normal file managers, one can also not find the 'id=' identifier that way. So for most Samsung users, they have to search the Google Play website and hope they find the app(s) they have, and if so, lookup their 'id=' identifier in te URL of the Google Play entry. Alternatively, some - but not all - APK 'downloader's, show the 'id=' identifier. For example, I use (amongst others) the (now apparently defunct) 'Kanade' APK downloader, which indeed identifies the (Google) messages app as com.google.android.apps.messaging. [...]
[toc] | [prev] | [next] | [standalone]
| From | Nuno Silva <nunojsilva@invalid.invalid> |
|---|---|
| Date | 2026-10-09 12:37 +0100 |
| Message-ID | <11aajmj$njeo$1@dont-email.me> |
| In reply to | #156348 |
On 2026-10-09, Frank Slootweg wrote: > Arno Welzel <usenet@arnowelzel.de> wrote: >> In the following examples APPLICATION is the full identifier of an >> application package. >> >> To find out this identifier, go to the app list in Android, open the >> application information of the app and scroll down to the end of the >> list. There you should find the identifier. If you have a vendor >> specific UI (Xiaomi, Samsung etc.) it may look different. In this case, >> check Google Play online in a browser. The application identifier is >> part of the URL after the "id=" parameter like this: >> >> <https://play.google.com/store/apps/details?id=com.google.android.apps.messaging> > > Please note that Samsung (and other?) devices sadly do *not* show the > 'id=' identifier in the 'App info' page of an app. > > For example for the (Google) 'Messages' app, it only mentions the > 'Version' (which says ...phone_samsung_dynamic). Same for other apps, > such as (Google) 'Maps' (but that has no Samsung specific tag in > 'Version'). > > As the app-private storage areas (/Android/data, media and obb) are > not accessible for normal file managers, one can also not find the 'id=' > identifier that way. > > So for most Samsung users, they have to search the Google Play website > and hope they find the app(s) they have, and if so, lookup their 'id=' > identifier in te URL of the Google Play entry. > > Alternatively, some - but not all - APK 'downloader's, show the 'id=' > identifier. For example, I use (amongst others) the (now apparently > defunct) 'Kanade' APK downloader, which indeed identifies the (Google) > messages app as com.google.android.apps.messaging. > > [...] It sounds silly to me that there's such an effort to hide identifiers, even when looking things up sometimes the instructions are "search for [presentation name of app]", which just reeks of lack of precision and of being abusable, I think even F-Droid doesn't make it easy to operate based on the actual application ID. IIRC it can be searched but won't show up in the program entry page, or was it in the list of the search results... -- Nuno Silva
[toc] | [prev] | [next] | [standalone]
| From | Jeff Layman <Jeff@invalid.invalid> |
|---|---|
| Date | 2026-10-09 14:59 +0100 |
| Message-ID | <11aas0j$rfjb$1@dont-email.me> |
| In reply to | #156345 |
On 09/10/2026 08:12, Arno Welzel wrote: > In the following examples APPLICATION is the full identifier of an > application package. > > To find out this identifier, go to the app list in Android, open the > application information of the app and scroll down to the end of the > list. There you should find the identifier. If you have a vendor > specific UI (Xiaomi, Samsung etc.) it may look different. In this case, > check Google Play online in a browser. The application identifier is > part of the URL after the "id=" parameter like this: > > <https://play.google.com/store/apps/details?id=com.google.android.apps.messaging> > > For example Google Messages is com.google.android.apps.messaging and the > ADB command to disable this for user 0 would be: > > adb shell pm disable-user --user 0 com.google.android.apps.messaging Or you could use the Muntashirakon App Manager. Putting "messages" in the search box results in: Messages com.google.android.apps.messaging Just entering f- (for F-Droid) results in: F-Droid org.fdroid.fdroid etc. -- Jeff
[toc] | [prev] | [next] | [standalone]
| From | Jeff Layman <Jeff@invalid.invalid> |
|---|---|
| Date | 2026-10-10 08:10 +0100 |
| Message-ID | <11acoe1$1gk8u$1@dont-email.me> |
| In reply to | #156351 |
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
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-10 03:25 -0700 |
| Message-ID | <11ad3pv$2p9f$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156357 |
Jeff Layman wrote: >> 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. Yup. Years ago I tested every known package manager out there, and that's when I ran into Muntashirakon App Manager as the best. People who haven't tested all known package managers might not realize how good it is, where one of the basics is you always get the full name. As you noted, the copy/paste of that full package name is very useful. > Out of interest, do the different LLM/AIs come up with the same answer? Heh heh heh... LLMs/AI's suck in terms of analyzing data for a whole bunch of reasons, one of which is the answer depends GREATLY on how you ask it. For example, I gave the same list but asked the question differently, and got this answer 'cuz I said to be brutally honest and very critical. <https://i.postimg.cc/x11dRhBW/analysis.jpg> In general, it can analyze your apps very well but it can't figure out which apps you use, which changes a lot its analysis 'cuz it gives equal weight to every app, it seems, but still - it's an interesting experiment. >> Here are other related package listing commands for adb: >> # List all packages on the device: >> adb shell pm list packages > I think that the Muntashirakon app manager can do most of those on its > own, without recourse to adb. That's probably true that Muntashirakon can list packages multiple ways. Since I'm on a USA-spec Samsung, I can't unlock the bootloader, so I've been testing different ways of making elevated Android system operations available to an app, which can be done using Shizuku & adb to elevate. For example, I added Shizuku to Aurora Store so that every app installed has the 'com.android.vending' installername metadata as shown below. <https://i.postimg.cc/T2gLdvrM/actual-installer.jpg> But you have to use adb in order to even *start* Shizuku on the phone. <https://i.postimg.cc/D00Dd5m2/shizuku-start-with-adb.jpg> But, you have to first use adb in order to add Shizuku to Aurora Store. <https://i.postimg.cc/hGm52fSP/aurora-shizuku-setup-steps.jpg> Only after you use adb to start Shizuku can you add Shizuku to Aurora. <https://i.postimg.cc/yxRGbxXH/add-shizuku-to-aurora.jpg> But to do the same thing with the Muntashirakon App Manager package installer requires a different set of complex adb commands since MAM uses either adb over TCP to elevate permissions, or it uses adb wireless debugging, but not Shizuku (and yet, MAM uses adb in both cases!). <https://i.postimg.cc/GhQKhvpz/mam-modeofoperation.jpg> To the point of this adb thread, if folks look at those images, they will see adding shell elevation to Aurora Store and adding shell elevation to Muntashirakon App Manager adds tremendous power, but, it's complicated stuff to spoof the installer name by default in either package manager. <https://i.postimg.cc/bNsrshy4/mam-spoofgoogleplay.jpg> Which is why I sometimes prefer just using the adb command instead of the package managers to spoof the installer name since it's so easy to do. adb install -i "not.com.android.vending" PACKAGE_NAME -- Note that what I just described is pretty complicated stuff, so I don't exepect many people, maybe none, who read this, to understand it all.
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-11 09:37 -0700 |
| Message-ID | <11age01$2coh$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156358 |
List system apps only: adb shell pm list packages -s List user-installed apps only: adb shell pm list packages -3
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2026-10-09 09:15 +0200 |
| Message-ID | <11aa4a1$i9s8$1@dont-email.me> |
| In reply to | #156342 |
ADB commands to copy files: Copy a file from a device to the computer: adb pull "PATH_ON_DEVICE" "PATH_ON_COMPUTER" Copy a file from the computer to the device: adb push "PATH_ON_COMPUTER" "PATH_ON_DEVICE" -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Siard <saylor259@mailbox.org> |
|---|---|
| Date | 2026-10-09 10:30 +0200 |
| Message-ID | <nirn3pF1cp9U1@mid.individual.net> |
| In reply to | #156342 |
On Thu, 8 Oct 2026 15:46 -0700, 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. Do you know this one? <https://cheat.sh/adb> More about cheat.sh: <https://www.linuxlinks.com/excellent-utilities-cheat-sh-community-driven-cheat-sheet/>
[toc] | [prev] | [next] | [standalone]
| From | Don <g@crcomp.net> |
|---|---|
| Date | 2026-10-09 11:22 +0000 |
| Message-ID | <20261009a@crcomp.net> |
| In reply to | #156342 |
On 10/8/26 16:46, 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.
This recipe clones Contacts, Calls, SMS, and Photos from a source
android with device serial R5C11111111 to a target android with device
serial R5C22222222.
Pull and Push Contacts
cd ~/contacts
adb -s R5C11111111 pull /sdcard/Download/Contacts.vcf
cd ~/contacts
adb -s R5C22222222 push Contacts.vcf /sdcard/Download/Contacts.vcf
* open Contacts on new phone and import Contacts.vcf
* Install SMS Backup & Restore
cd ~/SMS_Backup_Restore_APK
adb -s R5C22222222 install SMSBackupRestore-freeProductionRelease-10.26.010.apk
* Pull and Push SMS
*
* SMS Backup & Restore > Advanced Options > Dates off > Backup
* calls.xml and sms.xml
cd ~/sms
adb -s R5C11111111 pull /sdcard/Documents/calls.xml
adb -s R5C11111111 pull /sdcard/Documents/sms.xml
cd ~/sms
adb -s R5C22222222 push calls.xml /sdcard/Documents/
adb -s R5C22222222 push sms.xml /sdcard/Documents/
* Use SMS Backup & Restore to restore from sms_backup.txt
* More Options > Settings > Backup Location Settings > Save local copy
* Set SMS Backup & Restore as default SMS App
* Pull photos:
cd ~/photos
adb -s R5C11111111 pull /storage/sdcard0/DCIM
* Push photos:
adb -s R5C22222222 push DCIM /storage/self/primary
--
73, Don, WD7Q veritas _|_
liberabit |
https://www.qsl.net/wd7q vos |
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-17 21:46 -0400 |
| Message-ID | <11b18co$2avp$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156342 |
Here is an example, from today, of using wget/curl & adb to update WA.
Note that this skips the Google Play Store repository entirely.
Subject: A quick look at the WhatsApp Meta Services Framework server-side 7 day update
Date: Sat, 17 Oct 2026 12:43:55 -0400
Message-ID: <11b08kc$20fv$1@nnrp.usenet.blueworldhosting.com>
WhatsApp is firing an Android Intent (android.intent.action.VIEW)
with a data URI pointing directly to a non-Google APK file.
Two days ago my WhatsApp 2.26.29.70 asked to update & said I had 7 days.
Interestingly, the APK is *directly* from WhatsApp servers. Not Google.
<https://www.whatsapp.com/android/1/WhatsApp.apk>
C:\> wget -O WhatsApp.apk 'https://www.whatsapp.com/android/1/WhatsApp.apk'
...or...
C:\> curl.exe -L "https://www.whatsapp.com/android/1/WhatsApp.apk" -o WhatsApp.apk
Name: WhatsApp.apk
Size: 154517872 bytes (147 MiB)
SHA256: D89C24B2ECE176B060D5868FC8D60F6EE186E05F47083F948B54FFF7FD9DCA63
From Windows, anyone can install that app (w/o losing data) using adb:
C:\> adb install -r WhatsApp.apk
However, what's interesting is I have all automatic updates turned off in
the Google Play Store app & in the Aurora & in all my app updater apps.
Which means WhatsApp is dialing into a server to query the version number.
And then WhatsApp pops up an in-app intent, to obtain the latest version.
Usually I don't debug intents, but two days later I took a quick peek.
I will see if that intent changes over the next 5 days w/o updating it.
Action: android.intent.action.VIEW
Data: https://www.whatsapp.com/android/1/WhatsApp.apk
MIME type:
Package name:
Class name:
User ID: 0
Identifier:
URI: intent://www.whatsapp.com/android/1/WhatsApp.apk#Intent;scheme=https;launchFlags=0x3000000;S.MSF_INTENT_METADATA_ORIGIN_PACKAGE_NAME=com.whatsapp;l.MSF_INTENT_METADATA_LAUNCH_START_TIME=1792253039002;S.MSF_INTENT_METADATA_ID=JB0b67MnnjGpDkR0bqOBGh%3D%3D%0A;end
Categories:
Flags: FLAG_ACTIVITY_PREVIOUS_IS_TOP FLAG_ACTIVITY_FORWARD_RESULT
Extras: MSF_INTENT_METADATA_ORIGIN_PACKAGE_NAME com.whatsapp
MSF_INTENT_METADATA_LAUNCH_START_TIME 1792253039002
MSF_INTENT_METADATA_ID JB0b67MnnjGpDkR0bqOBGh==
The Meta Services Framework (MSF) fields are apparently generated
by Meta's background services on the device when that intent fires.
--
Windows WhatsApp installer:
<https://www.whatsapp.com/download>
<https://get.microsoft.com/installer/download/9NKSQGP7F2NH?cid=website_cta_psi>
Name: WhatsApp Installer.exe
Size: 813088 bytes (794 KiB)
SHA256: E537BD26AF9CD54AEB61231FFE22DAD2D54185D5B48DC345B236A7D8002E30C5
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-21 13:53 -0400 |
| Message-ID | <11bau61$jic$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156342 |
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.
Just now, I used this neat adb trick to operate the phone from the PC.
It's easy to unlock a phone from the PC, but locking it requires buttons.
But wait... there's adb to the rescue!
There's only 1 day left of my WhatsApp experiment on updating the app
Newsgroups: comp.mobile.android
Subject: A quick look at the WhatsApp Meta Services Framework server-side
7 day update
Date: Sat, 17 Oct 2026 12:43:55 -0400
Message-ID: <11b08kc$20fv$1@nnrp.usenet.blueworldhosting.com>
And I needed to take a screenshot of the date and time, but the phone was
tucked away somewhere (since I mirror onto my Windows monitor at home).
I needed a way to bring the phone to the lock screen w/o touching it.
adb shell input keyevent 26
That sent a power button event,turning the screen off & locking the phone.
Then, this awoke the phone, which gave me the clock lock screen I needed.
adb shell input keyevent 224
Voila!
With adb I was able to both lock & unlock the phone for the screenshots.
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-23 17:44 -0400 |
| Message-ID | <11bgkfb$v2j$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156548 |
Below are ad hoc off-the-cuff examples of what I used adb for just now.
I had to use adb to make sure the trash was cleaned out.
Worse, I needed to use adb to find all large files on my internal storage.
Then, I deleted a few of the largest files using adb.
And then, using adb, I was able to install the current.apk for WhatsApp.
I'm cleaning up my phone so that I can install WhatsApp (as my 128GB sd card was
given to my wife (long story) so I'm out of space on the 64GB internal storage).
Cleaning out trash can be done, apparently, from adb.
But it wasn't enough, in my case, so I had to delete actual files too.
adb shell df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-47 50G 49G 413M 100% /data/user/0
adb shell rm -rf /storage/emulated/0/.Trash-1000
adb reboot
adb shell df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-47 50G 49G 449M 100% /data/user/0
adb shell rm -rf /storage/emulated/0/Trash
adb shell df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-47 50G 49G 449M 100% /data/user/0
adb shell rm -rf /storage/emulated/0/Android/data/com.android.providers.media/cache/*
adb shell df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-47 50G 49G 449M 100% /data/user/0
adb shell "find /storage/emulated/0 -type f -size +10M -exec ls -l {} \; 2>/dev/null | sort -k5 -rn"
adb shell rm -rf /storage/emulated/0/.fvTrash
adb shell df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-47 50G 49G 804M 99% /data/user/0
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_los-angeles_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_san-francisco_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_san-diego_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_los-angeles-north_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_sacramento_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_fresno_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_lancaster_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_stockton_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_redding_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_chico_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/Us_california_bakersfield_northamerica.obf
adb shell rm /storage/emulated/0/Android/data/net.osmand.plus/files/World_basemap_mini.obf
adb shell df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-47 50G 47G 3.3G 94% /data/user/0
adb install -r current.apk
Performing Streamed Install
Success
adb shell df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-47 50G 46G 3.3G 94% /data/user/0
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-23 17:49 -0400 |
| Message-ID | <11bgkoo$13vo$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156621 |
I'm looking up commands to help clean out my internal 64GB sd card ('cuz I
gave my wife my 128GB sdcard and now I'm out of space) so these may help.
:: See all mount points and their usage
adb shell df -h
:: Find the largest directories under /data (requires root or shell access)
adb shell "du -sh /data/data/* 2>/dev/null | sort -rh | head -20"
:: If you have root, check app-specific data sizes
adb shell "du -sk /data/data/* 2>/dev/null | sort -rn | head -20"
:: Clear cache for a specific app (e.g., a browser or social media app)
adb shell pm clear com.example.app
:: Or clear cache for ALL apps (system will handle it)
adb shell pm trim-caches 999999999
:: Uninstall unused apps directly
adb uninstall com.example.unused.app
:: Move apps to external storage (if supported)
adb shell pm set-install-location 2
:: Find the 20 largest app data directories (sort by KB, numeric)
adb shell "du -sk /data/data/* 2>/dev/null | sort -rn | head -20"
:: Same for all user profiles
adb shell "du -sk /data/user/* 2>/dev/null | sort -rn | head -20"
:: Find large files (>50MB) inside /data
adb shell "find /data -type f -size +50M 2>/dev/null"
:: Find large files (>100MB) inside /data
adb shell "find /data -type f -size +100M 2>/dev/null"
:: Clear the download directory
adb shell rm /storage/emulated/0/Download/*
:: Use adb install with --sdcard flag (if the APK supports install location)
adb install -s -r current.apk
[toc] | [prev] | [next] | [standalone]
| From | croy <croy@spam.invalid.net> |
|---|---|
| Date | 2026-10-23 16:58 -0700 |
| Message-ID | <12tndll6pe28v3itjmeodj2s34krv92rsi@4ax.com> |
| In reply to | #156622 |
On Fri, 23 Oct 2026 17:49:12 -0400, Maria Sophia
<mariasophia@comprehension.com> wrote:
>I'm looking up commands to help clean out my internal 64GB sd card ('cuz I
>gave my wife my 128GB sdcard and now I'm out of space) so these may help.
"Internal 64GB sd card"? I'm not familiar with such. What is it?
--
croy
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-23 22:19 -0400 |
| Message-ID | <11bh4jt$2roi$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156623 |
croy wrote:
>>I'm looking up commands to help clean out my internal 64GB sd card ('cuz I
>>gave my wife my 128GB sdcard and now I'm out of space) so these may help.
>
> "Internal 64GB sd card"? I'm not familiar with such. What is it?
Good question.
For reasons known only to the people who designed Android, the internal
storage on my phone (and who knows on how many other phones) is /sdcard.
Notice all these commands use the internal /sdcard as the file spec.
You tell me why. I don't know why. I just know that's how it is.
adb shell readlink -f /sdcard
=> /storage/emulated/0
adb shell df -h /sdcard
=> Filesystem Size Used Avail Use% Mounted on
=> /dev/fuse 50G 44G 5.5G 89% /storage/emulated
adb shell ls -lah /sdcard
=> lrw-r--r-- 1 root root 21 2008-12-31 07:00 /sdcard -> /storage/self/primary
adb shell "du -sk /sdcard/Android/*"
4 /sdcard/Android/AndroidSystemProperties
8 /sdcard/Android/cache
4086747 /sdcard/Android/data
1260639 /sdcard/Android/media
18 /sdcard/Android/obb
11 /sdcard/Android/obj
adb shell "du -ah /sdcard/SoundRecorder"
1.2M /sdcard/SoundRecorder/20260829_083254.jpg
2.0M /sdcard/SoundRecorder/20260902_094625.jpg
1.7M /sdcard/SoundRecorder/20260902_095525.jpg
3.5M /sdcard/SoundRecorder/20260902_112232.jpg
1.1M /sdcard/SoundRecorder/20260904_144121.jpg
1.1M /sdcard/SoundRecorder/20260909_180255.jpg
1.8M /sdcard/SoundRecorder/20260911_080230.jpg
2.4M /sdcard/SoundRecorder/20260915_110817.jpg
1.5M /sdcard/SoundRecorder/20260916_121334.jpg
1.3G /sdcard/SoundRecorder
Find all files over 50MB
adb shell "find /sdcard -type f -size +51200k -exec ls -ln {} \;"
adb shell "du -sk /sdcard/* 2>/dev/null"
18750 /sdcard/0000
0 /sdcard/20240424_android-contacts.vcf
44 /sdcard/20260206calendar.ics
4 /sdcard/Alarms
164 /sdcard/All Layers.gpx
5347436 /sdcard/Android
40 /sdcard/AppManager
4 /sdcard/Audiobooks
11 /sdcard/Aurora
12 /sdcard/BatteryDog
12 /sdcard/BestDAV
4 /sdcard/Books
728 /sdcard/CaptivePortalLoginGoogle
12715 /sdcard/DCIM
14 /sdcard/Documents
6640 /sdcard/DocumentsUIGoogle
4 /sdcard/Download
4 /sdcard/Id.txt
4 /sdcard/MotionDetectorPro
54394 /sdcard/Movies
33582 /sdcard/Music
43 /sdcard/MyLogs
1424 /sdcard/NetworkStackGoogle
4 /sdcard/New Folder
24 /sdcard/Notifications
592 /sdcard/OpenContacts
23619 /sdcard/OziExplorer
3548 /sdcard/PackageViewer
706142 /sdcard/Pictures
4 /sdcard/Podcasts
4 /sdcard/Rambler
280 /sdcard/RamblerSharedData
118 /sdcard/ReadEra
4 /sdcard/Recordings
184 /sdcard/Ringtones
76 /sdcard/SHAREit Lite
5799 /sdcard/Samsung
3876 /sdcard/Snapseed
1454784 /sdcard/SoundRecorder
483 /sdcard/Tracks
16 /sdcard/WifiCollector
28 /sdcard/Writer
31 /sdcard/adbAutoSave
8 /sdcard/com.android.settings
11 /sdcard/dataLogger
12 /sdcard/freeopenvpn_udp.ovpn
31 /sdcard/gpsbox
39 /sdcard/hudunrecorder
4 /sdcard/keuwlsoft
316 /sdcard/logs
132 /sdcard/master_contacts_20260430_204626.vcf
4 /sdcard/micro.repl.ma7moud3ly_15.7z
4843 /sdcard/osmdroid
1682 /sdcard/osmtracker
4 /sdcard/passwd.txt
104 /sdcard/screenshot.png
11 /sdcard/sepolicy_extends
60 /sdcard/split_arch.apkDOS
4 /sdcard/temp
4 /sdcard/weblog
12 /sdcard/window.xml
4 /sdcard/window_dump.xml
What the heck is /sdcard/micro.repl.ma7moud3ly_15.7z
adb shell "ls -lh /sdcard/micro.repl.ma7moud3ly_15.7z"
-rw-rw---- 1 root everybody 59 2026-05-17 19:22 /sdcard/micro.repl.ma7moud3ly_15.7z
adb shell "file /sdcard/micro.repl.ma7moud3ly_15.7z"
/sdcard/micro.repl.ma7moud3ly_15.7z: 7-zip archive data, version 0.4
That strange file belongs to an open-source Android app called
Micro REPL (a MicroPython/CircuitPython IDE developed by Ma7moud3ly).
So I removed it
adb shell rm /sdcard/micro.repl.ma7moud3ly_15.7z
Notice all these commands use the internal /sdcard as the file spec.
You tell me why. I don't know why. I just know that's how it is.
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-24 00:57 -0400 |
| Message-ID | <11bhds5$igr$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156624 |
I don't know how people live without using adb all day, every day.
Just now I installed com.lyrebirdstudio.cartoon using Aurora.
<https://play.google.com/store/apps/details?id=com.lyrebirdstudio.cartoon>
When I started it, it asked me to sign into the Google Play Store.
This is new friction foisted by Google upon us via developers.
Notice since I don't have a Google Account on the phone, I can't
use the Google Play Store, but I can use Aurora, which gets the app.
If you don't know, Aurora gets the app off the Google Play Repository.
So it's the exact same file.
But... without Shizuku (I forgot to turn it on), Aurora sets the
installerPacakgeName to com.aurora.store instead of com.android.vending
This proves that statement:
adb shell dumpsys package com.lyrebirdstudio.cartoon | findstr installerPackageName
installerPackageName=com.aurora.store
So let's change that metadata field which takes a few adb steps.
First, let's use adb to find out where it's installed.
adb shell pm path com.lyrebirdstudio.cartoon
package:/data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/base.apk
package:/data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/split_config.arm64_v8a.apk
package:/data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/split_config.en.apk
package:/data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/split_config.xhdpi.apk
Second, let's download those splits to the desktop with adb:
adb pull /data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/base.apk .
adb pull /data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/split_config.arm64_v8a.apk .
adb pull /data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/split_config.en.apk .
adb pull /data/app/~~6ZH_PKvCqkDnF7ntSKdUsw==/com.lyrebirdstudio.cartoon-VZLEezShv4z6mtwWzOzNng==/split_config.xhdpi.apk .
Third, let's re-install but spoof the installer name:
adb install-multiple -r -i "com.android.vending" base.apk split_config.arm64_v8a.apk split_config.en.apk split_config.xhdpi.apk
Success
Lastly, let's prove that changed the installerPackageName value.
adb shell dumpsys package com.lyrebirdstudio.cartoon | findstr installerPackageName
installerPackageName=com.android.vending
Voila!
When I tap com.lyrebirdstudio.cartoon, it comes up w/o asking me to
log into the Google Play Store (because it just checked 1 field).
Using adb, I was able to overcome that bit of Google sideloading friction.
I don't know how anyone survives, on Android, without using adb.
(If they want privacy, anyway.)
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-24 01:12 -0400 |
| Message-ID | <11bheo1$1u37$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156625 |
Maria Sophia wrote: > Just now I installed com.lyrebirdstudio.cartoon using Aurora. > <https://play.google.com/store/apps/details?id=com.lyrebirdstudio.cartoon> So I create a toon from an image and now I want to use it in my email on the desktop, but my phone is on Wi-Fi and the images is on the phone. Offhand, I know of no way directly to get Windows File Explorer to see the Android file system (without adding a server like webdav/ftp). But adb can push and pull files over Wi-Fi so let's just use that. First, find the full path to the toonified image file: adb shell ls -la /storage/emulated/0/Pictures/ToonApp total 164 -rw-rw---- 1 root everybody 167291 2026-10-23 22:03 1062915192321.jpg Second, pull all the images in that folder to the desktop: adb pull /storage/emulated/0/Pictures/ToonApp /storage/emulated/0/Pictures/ToonApp/: 1 file ..., 0 skipped. 2.3 MB/s (167291 bytes in 0.070s) Voila! Now I can use that Android file on the desktop. Again, I don't know how others live w/o adb, where, in this case, how do they get files back and forth between the desktop sans USB?
[toc] | [prev] | [next] | [standalone]
| From | Maria Sophia <mariasophia@comprehension.com> |
|---|---|
| Date | 2026-10-24 03:18 -0400 |
| Message-ID | <11bhm52$24g0$1@nnrp.usenet.blueworldhosting.com> |
| In reply to | #156626 |
Maria Sophia wrote:
> Again, I don't know how others live w/o adb, where, in this case,
> how do they get files back and forth between the desktop sans USB?
Every day, I use adb, where I can't imagine how people survive on Android
without it, but of course, they don't have any privacy so that's how.
Nonetheless, I just used adb moments ago to start Shizuku, which is a
special package that gives special shell permissions to certain apps.
0. When you start Shizuku on Android for the first time, you'll see:
Shizuku is not running
1. Connect by Wi-Fi Wireless Debugging
C:\> adb devices
List of devices attached
192.168.1.4:5555 device
2. Have adb start Shizuku on the phone (which adds shell privileges)
C:\> adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
info: start.sh begin
info: attempt to copy starter from /storage/emulated/0/Android/data/moe.shizuku.privileged.api/starter to /data/local/tmp/shizuku_starter
info: exec /data/local/tmp/shizuku_starter
info: starter begin
info: killing old process...
info: apk path is /data/app/~~j2Bfj74f4DUXxNA5r8nvlQ==/moe.shizuku.privileged.api-EfgdS0yVAmbHZDgZAOOXtg==/base.apk
info: starting server...
info: shizuku_starter exit with 0
3. Now when you tap on Shizuku on Android, you see:
Shizuku is running
4. In Shizuku, you can now "authorize" any application that uses it
For example: Owlfiles, Total Commander, Obtainium, Warden,
ZArchiver, X-plore, Insular, LSPatch, Package Manager, LogFox,
Better Internet Tiles, SAI, Fluffy, App Ops, MiXplorer, Droid-ify,
Settings Database Editor, Button Mapper, FV File Explorer,
ShizuShell, Cx File Explorer, Key Mapper, DevCheck, Canta,
Universal Installer, Ultimate File Manager Pro, etc.
5. Lastly, in Aurora, I needed to set Shizuku as the installer.
Aurora:Settings > Installation > Installation method >
Shizuku Installer = on
Now when I install apps using Auroa, the installerPackageName will be
com.android.vending so that Google Play sideload friction is overcome.
6. I just tested Aurora-with-Shizuku by installing this app:
<toontap.photoeditor.cartoon.cartoonphotoeditor>
adb shell dumpsys package toontap.photoeditor.cartoon.cartoonphotoeditor | findstr installerPackageName
installerPackageName=com.android.vending
Voila!
Google added sideloading friction overcome!
Note that installerPackageName=com.android.vending is the recorded installer
identity, but it's not actual proof the app came from Google Play of course.
Hence, this little trick may satisfy an app that checks only that field.
But this trick will not satisfy every Play Store, licensing or integrity check.
It's sad we have to do this.
But given we must, how anyone lives without adb is beyond my comprehension.
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.mobile.android
csiph-web