logo
The ADB utility
Basic use
List the available devices
If you have multiple devices connected
Install an apk application
Retrieve a file or folder on your device
Send a file from your computer to your device
Start a local terminal
Learn more

The ADB utility

Basic use

Make sure you have adb installed on your computer.

List the available devices

To list the available android devices (including virtual machines) you must enter the following command:
adb devices
This command returns the serial number of the connected devices.

If you have multiple devices connected

If you have multiple devices connected, you can specify with which you want to interact with the parameter '-s'.
adb -s serialNumber command
If you have only one device connected, it is useless to specify its serial number.

Install an apk application

The installation of an application using adb is simply done entering:
adb install /path/to/application.apk

Retrieve a file or folder on your device

To copy a file or folder from the device to the computer, you must use the 'pull' command.
adb pull /path/on/device  /path/on/computer

Send a file from your computer to your device

To copy a file from your computer to your android device, use 'push'.
adb push /path/on/computer /path/on/device

Start a local terminal

To launch a terminal locally on the android device, use the command 'shell'.
adb shell
A # appears, it is the prompt of your local android terminal. To close the current shell, ctrl-d as in unix.

Learn more

To learn more, i would say:
adb -help
Otherwise, ask the fucking google...
Be The First To Comment.

Add a comment:





You can use these HTML tags: <br><a><i><b>