Article View: comp.mobile.android
Article #358Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
From: Maria Sophia
Date: Fri, 23 Oct 2026 21:44
Date: Fri, 23 Oct 2026 21:44
72 lines
4767 bytes
4767 bytes
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
Technical Details
Message-ID:
<11bgkfb$v2j$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.p847012-ipxg03601okidate.aomori.ocn.ne.jp!not-for-mailReferences:
<11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11bau61$jic$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.p847012-ipxg03601okidate.aomori.ocn.ne.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: Fri, 23 Oct 2026 17:44:12 -0400 Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11bgkfb$v2j$1@nnrp.usenet.blueworldhosting.com> References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11bau61$jic$1@nnrp.usenet.blueworldhosting.com> Reply-To: pusvul@getTjewytR4so+mqe2.invalid Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 23 Oct 2026 21:44:12 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="kDFbMLCayXSZqkA/GNCfbb/6QVvqMRZJtdlXDNEuzKE"; logging-data="31827"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mojibake 1p3 Cancel-Lock: sha1:ryItk9LMD5Hwnv464sYmPx84X9E= sha256:Fkpnj4CwOAibv7tTSv5JdDvpxS95bEFPbv+6EO1TVjk= sha1:080wlJ7GstNwH1riWop54zyzz0M= sha256:52c6vyDTIaSWsGbbPfu2hS7lk4Dcx3tOKQgdl4z/B4M= Content-Language: en-GB