Article View: comp.mobile.android
Article #369Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
From: Maria Sophia
Date: Fri, 23 Oct 2026 21:49
Date: Fri, 23 Oct 2026 21:49
41 lines
2944 bytes
2944 bytes
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
Technical Details
Message-ID:
<11bgkoo$13vo$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> <11bgkfb$v2j$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:49:12 -0400 Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11bgkoo$13vo$1@nnrp.usenet.blueworldhosting.com> References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> <11bau61$jic$1@nnrp.usenet.blueworldhosting.com> <11bgkfb$v2j$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:49:12 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="kDFbMLCayXSZqkA/GNCfbb/6QVvqMRZJtdlXDNEuzKE"; logging-data="36856"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mojibake 1p3 Cancel-Lock: sha1:9SVFWOUKXMAzIGAIggWv5NY8HT8= sha256:vUoVSco+Tfk4kcMV8lqKGcTLZfAmjNTk02UJXpK2ZvQ= sha1:Pl6bFdxlp21r2kCKVpW15rSpTWA= sha256:caq9uuBNqHAUdnh2XX/el10x7XwBDki47nqjHv3zFS8= Content-Language: en-GB