ADB – Common commands

What is ADB (Android Debug Bridge)

The ADB shell is a bridge between your computer and the Android device, which may be a physical device or an emulator.


How to install ADB

ADB comes with Android SDK, but you can also find it alone. Inside the AppUse VM we have installed and prepared it for you.

Common commands

adb devices

Find which devices (physical/emulators) ADB recognizes. Be aware that if you have more than one, you’ll need to specify the correct one for each command. It is recommended to close unnecessary devices.


adb kill-server

adb start-server

Many times ADB does not recognize your device (“error: device not found”). If this happens, restart and the ADB server will fix it.


adb shell

This command is used to open a shell inside the device.


adb shell somecommand

This command is used in order to run a command inside the device without staying inside the device’s shell.


adb pull /path_in_device/dir_or_file

This command is used in order to pull a file or directory from the device.


adb push localfile /path/in/device

This command is used in order to push a file into the device.


adb logcat 

This command allows you to view the logcat log.


adb install xxx.apk

This command is used in order to install an APK in the emulator.


adb shell pm uninstall -k com.packagename

This command is used in order to uninstall an application.


adb wait-for-device

This command is used inside script files. It blocks the script from being able to continue until the device will be ready.


adb help

See all options.


Do you have more important/common commands that you think that I should add to this post? Please reply this post

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *