Forrest logo
back to the adb tool

adb:tldr:ebac5

adb: Get a list of connected devices.
$ adb devices
try on your machine

The command "adb devices" is used to obtain a list of Android devices connected to the computer via USB that have debugging enabled.

ADB (Android Debug Bridge) is a versatile command-line tool provided by Google as part of the Android SDK (Software Development Kit). It allows developers to interact with an Android device or emulator from a computer through a USB connection.

When you run the "adb devices" command, it scans for connected devices and displays a list of devices along with their unique device ID. Each device in the list represents an Android device that is ready for debugging and testing.

Here's an example output of the "adb devices" command:

List of devices attached TA01234567 device ZY98765432 device

In this example, there are two devices connected. The unique device IDs are "TA01234567" and "ZY98765432". The "device" status indicates that these devices are available for debugging and communication.

This command is particularly useful for developers when they want to ensure that the Android device is detected and properly connected before performing various tasks such as installing, debugging, or executing commands on the device.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adb tool