Android Debug Bridge
The Android Debug Bridge (ADB) is a versatile command line tool that lets you connect with
a device. The ADB command facilitates a variety of device actions, such as installing and
debugging applications and provides access to the Unix shell that you can use to run a variety
of commands on your device. Is a client-server program that has three components:
a device. The ADB command facilitates a variety of device actions, such as installing and
debugging applications and provides access to the Unix shell that you can use to run a variety
of commands on your device. Is a client-server program that has three components:
- A client, who sends commands. The client runs on his development machine. You can
- A hidden program (ADBD) runs commands on the device. The program runs as a
- A server, which manages the communication between the client and the daemon. The
How Android Debug Bridge works
When an ADB client starts, the client first checks whether an ADB server process is already
running. If it is not there, it starts the server process. When the server starts, it is connected
to local TCP port 5037 and listens to commands sent from ADB clients - all ADB clients use
port 5037 to communicate with the ADB server.
running. If it is not there, it starts the server process. When the server starts, it is connected
to local TCP port 5037 and listens to commands sent from ADB clients - all ADB clients use
port 5037 to communicate with the ADB server.
The server then configures the connections to all running devices. Locate the emulators by
scanning ports with odd numbers in the range of 5555 to 5585, the range used by the first
16 emulators. When the server finds an ADB daemon, it configures a connection to that port.
Each emulator uses a pair of following ports: an even-numbered port for console connections
and an odd-numbered port for ADB connections.
scanning ports with odd numbers in the range of 5555 to 5585, the range used by the first
16 emulators. When the server finds an ADB daemon, it configures a connection to that port.
Each emulator uses a pair of following ports: an even-numbered port for console connections
and an odd-numbered port for ADB connections.
Emulator 1, console: 5554
Emulator 1, ABD: 5555
Emulator 2, console: 5556
Emulator 2, ABD: 5557
and so on…
Emulator 1, ABD: 5555
Emulator 2, console: 5556
Emulator 2, ABD: 5557
and so on…
Once the server has configured connections to all devices, you can use the Android Debug
Bridge commands to access those devices. Because the server manages connections to devices
and handles the commands of several Android Debug Bridge clients, you can control any device
from any client (or from a script).
Bridge commands to access those devices. Because the server manages connections to devices
and handles the commands of several Android Debug Bridge clients, you can control any device
from any client (or from a script).
Enable Android Debug Bridge debugging on your device
To use ADB with a USB-connected device, you must enable USB debugging in the device system
settings, under Developer Options.
settings, under Developer Options.
In Android 4.2 and later versions, the developer options screen is hidden by default. To make it
visible, go to Settings> About phone and touch Compilation number seven times. Return to the
previous screen to find the developer options below. On some devices, the Developer Options
screen may be located or labeled differently.
visible, go to Settings> About phone and touch Compilation number seven times. Return to the
previous screen to find the developer options below. On some devices, the Developer Options
screen may be located or labeled differently.
ADB or Android Debug Bridge is a term that you have encountered quite frequently. Every time
you connect your device to your computer by a cable, or if you browse through the 'Developer
Options', you will find the term Android Debug Bridge or ADB for short, but what does it mean?
And what is its purpose? It's a versatile tool that helps your Android device work the way it is,
for more detailed information, you can visit Android training in Chandigarh.