10 min read 2026-08-29 by ADB Systems Architecture Lab

Top 25 Must-Know ADB Shell Commands Every Android Power User Should Know

The definitive cheatsheet of the most powerful ADB commands for tweaking performance, changing display DPI, forcing 120Hz, managing permissions, and debugging.

Essential Connection & Device Discovery

1. `adb devices -l` — List all connected devices with model name and USB interface details. 2. `adb get-serialno` — Print the unique hardware serial number. 3. `adb shell getprop ro.build.version.release` — Check exact Android OS release version (e.g. 14, 15, 16).

Display, UI & Performance Customization

4. `adb shell wm density <DPI>` — Change display scaling without root (e.g. `wm density 420` makes UI more compact). 5. `adb shell wm size <WIDTHxHEIGHT>` — Override hardware display resolution. 6. `adb shell settings put system peak_refresh_rate 120.0` — Force 120Hz smooth scrolling across all apps. 7. `adb shell settings put global window_animation_scale 0.5` — Cut animation speeds in half for an instantly snappier phone feel.

Package & App Management Tricks

8. `adb shell pm list packages -3` — List all third-party user apps. 9. `adb shell pm list packages -d` — List all currently disabled packages. 10. `adb shell pm uninstall -k --user 0 <pkg>` — Debloat system app for primary user. 11. `adb shell cmd package install-existing <pkg>` — Restore uninstalled system package. 12. `adb shell pm grant <pkg> android.permission.WRITE_SECURE_SETTINGS` — Unlock Tasker/SystemUI Tuner power permissions.

Hardware Diagnostics & Battery Testing

13. `adb shell dumpsys battery` — Query live battery thermals, voltage (mV), and charging source. 14. `adb shell dumpsys battery set level 100` — Simulate 100% battery level for testing. 15. `adb shell dumpsys battery reset` — Restore authentic hardware battery reporting. 16. `adb shell dumpsys netstats detail` — Inspect per-app Wi-Fi and mobile data consumption. 17. `adb shell dumpsys meminfo <pkg>` — View RAM consumption breakdown for any process.

Screen Capture, Media & Remote Input

18. `adb exec-out screencap -p > screen.png` — Capture high-res screenshot directly to PC. 19. `adb shell screenrecord /sdcard/demo.mp4` — Record 60 FPS video of your screen. 20. `adb shell input keyevent 26` — Toggle hardware Power button. 21. `adb shell input keyevent 3` — Press Home key. 22. `adb shell input keyevent 4` — Press Back key. 23. `adb shell input text "Hello"` — Type text into any focused Android input field.