ADB File Transfer & Storage Cheat Sheet
Fast reference for pushing, pulling, checking partitions, and organizing device storage.
Push & Pull
| Command |
Purpose |
| adb push file.apk /sdcard/Download/ |
Upload file to phone |
| adb push -z zstd ./folder /sdcard/Music/ |
Push folder with zstd compression |
| adb pull -a /sdcard/DCIM ./Photos |
Download photos preserving timestamps |
| adb sync system |
Sync modified build partition files |
Storage Shell Commands
| Command |
Purpose |
| adb shell df -h |
Human-readable partition disk usage |
| adb shell du -h -d 1 /sdcard/ |
Top-level folder storage sizes |
| adb shell rm -rf /sdcard/temp |
Delete folder and contents permanently |
| adb shell mkdir -p /sdcard/NewDir |
Create nested directory tree |