Android Debug Bridge (adb) is a command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device. It is a client-server program that includes three components:
- A client, which sends commands. The client runs on your development machine. You can invoke a client from a command-line terminal by issuing an adb command.
- A daemon (adbd), which runs commands on a device. The daemon runs as a background process on each device.
- A server, which manages communication between the client and the daemon. The server runs as a background process on your development machine.
The following tables are the most commands that we are using with Android Devices :
|Lists connected devices|
|Lists connected devices and kind|
|Restarts adbd with root permissions|
|Starts the adb server|
|Kills the adb server|
|Remounts file system with read/write access|
|Reboots the device|
|Reboots the device into fastboot|
|Runs the specified command on device (most unix commands work here)|
|Displays the current screen resolution|
|Sets the resolution to WxH|
|Lists all installed packages|
|Lists all installed 3rd-party packages|
|Starts the specified package|
|Copies the local to the device at remote|
|Copies the remote from the device to local|