This section describes the Android Debug Bridge (adb) tool, which allows you to manage an Android emulators or connected Android devices.
What Is Android Debug Bridge (adb)?
"adb" is the command line tool provided in the Android SDK Platform Tools package.
"adb" stands for Android Debug Bridge which allows you to communicate with an emulator instance or
connected Android-powered device to:
Manage the state of an emulator or device.
Run shell commands on a device.
Manage port forwarding on an emulator or device.
Copy files to/from an emulator or device.
In order for "adb" to communicate with a device (or emulator), it requires that:
1. The device must be connected to your desktop computer using these options:
Over USB Cable - Connect your Android device directly with USB cable to desktop computer.
Over Wi-Fi Router - Connect your Android device to the same Wi-Fi router
as your desktop computer.
Android Emulator - Run the Android Emulator on your desktop computer.
2. An Android debugging environment must be established between the connected device
and you desktop computer. This environment requires 3 components:
Client Component - This is the "adb" tool, which sends out Android debugging commands.
Daemon Component - This is a background process (called "adbd")
running on the connected device to execute Android debugging commands.
Server Component - This is a background process running on your desktop computer to
to manage communications between the client and the daemon.
Here is a diagram that shows you Android debugging connection options
and communication components:
In next tutorials, we will look at how to create Android debugging connections
and manage related components.