ADB has long been a universal tool for working with Android. From a single console, you can manage apps, copy files, capture logs, and even repair the system. Many functions that are hidden or inaccessible in the interface can be performed in a matter of seconds using ADB.

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:
adb devices

Start the ADB Server:
adb start-server

Stop the server:
adb kill-server

Reconnect the device:
adb reconnect

Switch back to USB:
adb usb

Switches ADB to Wi-Fi mode:
adb tcpip 5555

Connection via IP:
adb connect 192.168.1.10

Disconnect from the device:
adb disconnect

Show the device status:
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
adb reboot

Booting into recovery:
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:
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

File synchronization:
adb sync

View files:
adb shell ls

Deleting a file:
adb shell rm /sdcard/file.txt

Creating a folder:
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
adb shell 

System parameters:
adb shell getprop

Change parameter:
adb shell setprop name value

Real-time processes:
adb shell top

List of processes:
adb shell ps

System diagnostics:
adb shell dumpsys

Battery information:
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

Text input:
adb shell input text hello


Screenshorts, screen recording, and logs:

Screenshort
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

Logs in one output
adb logcat -d

Full system, report
adb bugreport


Backup and Restore
ADB allow you to save data without third-party services

Creating a backup
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

Previous Post Next Post