ADB Commands Every Custom ROM User Should Know
Master these commands to become a custom ROM pro.
Setup
Install Platform Tools
Download from developer.android.com
Enable USB Debugging
Settings > Developer Options > USB Debugging
Essential ADB Commands
Check Connection
adb devices
Reboot Commands
adb reboot adb reboot bootloader adb reboot recovery adb reboot fastboot
Push/Pull Files
adb push local_file /sdcard/ adb pull /sdcard/file local_path
Install APK
adb install app.apk adb install -r app.apk # Replace existing
Sideload ROM
adb sideload rom.zip
Shell Access
adb shell adb shell pm list packages adb shell dumpsys battery
Essential Fastboot Commands
Enter Fastboot
adb reboot bootloader
Check Connection
fastboot devices
Unlock Bootloader
fastboot oem unlock fastboot flashing unlock
Flash Images
fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img
Wipe Data
fastboot -w
Boot Image Temporarily
fastboot boot boot.img
Advanced Commands
Logcat (Debugging)
adb logcat adb logcat -b crash # Crash logs only
Screen Record
adb shell screenrecord /sdcard/video.mp4
Screenshot
adb shell screencap /sdcard/screen.png
Pro Tips
---
*Command line mastery unlocks advanced ROM management.*