It's not the complexity that's intimidating, but the sheer volume. There are so many commands, a beginner can get lost in the first few steps. Below is an expanded list of the most useful commands that are actually used in everyday work.
![]() |
| "Designed by starline / Freepik" |
Connecting and basic control of the device
The work begins with a connection check. Without a stable connection to the device, the remaining commands are meaningless.
Shows a list of connected devices:
Start the ADB Server:
Stop the server:
Reconnect the device:
Switch back to USB:
Switches ADB to Wi-Fi mode:
Connection via IP:
Disconnect from the device:
Show the device status:
The work begins with a connection check. Without a stable connection to the device, the remaining commands are meaningless.
Shows a list of connected devices:
adb devices
Start the ADB Server:
adb start-server
adb kill-server
Reconnect the device:
adb reconnect
adb usb
adb tcpip 5555
adb connect 192.168.1.10
adb disconnect
adb get-state
Waiting for devices connection:
adb wait-for-device
Reboot and boot modes:
Using ADB, you can quickly enter the desired mode without key combinaison.
Normal Reboot
Booting into recovery:
adb reboot
adb reboot recovery
Switching to booloader:
adb reboot bootloader
Alternative entry into fastboot:
adb reboot fastboot
Installing the firmware:
adb sideload update.zip
Installing, removing, and disabling applications
ADB allows more faster application management than the system interface
Installing APK
adb install app.apk
Reinstallation with data preservation:
adb install -r app.apk
Installing an older version:
adb install -d app.apk
Automatic issuance of all permits
adb install -g app.apk
Unistalling the application:
adb unistall com.example.app
Delete with data preservation:
adb unistall -k com.example.app
List of all application:
adb shell pm list packages
User application only:
adb shell pm list packages -3
System only:
adb shell pm list packages -s
APK path:
Data clearing
adb shell pm path com.example.app
Data clearing
adb shell pm clear com.example.app
Disabling the application:
adb shell pm disable-user --user 0 com.example.app
Turning it back on:
adb shell pm enable com.example.app
Forced stop:
adb shell am force-stop com.example.app
Working with files
ADB replace the file manager, especially when access to sytem is limited
Copy to device:
adb push file.txt /sdcard/
Copy to PC:
adb pull /sdcard/file.txt
adb sync
View files:
adb shell ls
Deleting a file:
adb shell rm /sdcard/file.txt
adb shell mkdir /sdcard/test
Rename a file:
adb shell mv file1 file2
ADB shell and system commands:
The shell provides access to Android's internal processes
Login to the shell
System parameters:
Change parameter:
Real-time processes:
List of processes:
System diagnostics:
Battery information:
Memory usage:
Power button:
Tap on the screen:
Text input:
adb shell
adb shell getprop
adb shell setprop name value
Real-time processes:
adb shell top
adb shell ps
System diagnostics:
adb shell dumpsys
adb shell dumpsys battery
Memory usage:
adb shell dumpsys meminfo
Power button:
adb shell input keyevent 26
Tap on the screen:
adb shell input tap 500 500
adb shell input text hello
Screenshorts, screen recording, and logs:
Screenshort
Download Screenshort
Screen recording:
System logs
Logs in one output
Full system, report
adb shell screencap /sdcard/screen.png
Download Screenshort
adb shell pull /sdcard/screen.png
Screen recording:
adb shell screenrecord /sdcard/video.mp4
System logs
adb logcat
adb logcat -d
adb bugreport
Backup and Restore
ADB allow you to save data without third-party services
Creating a backup
Recovery
Conclusion
adb backup -all
Recovery
adb restore backup.ab
Conclusion
ADB covers almost every task an Android user might encounter. Installing apps, removing system junk, and performing diagnostics—all accomplished with just a few commands.
The learning curve seems steep only at the start. After a couple of days of active use, the commands become automatically memorized.

Post a Comment