LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

adb-devices

list connected Android devices

TLDR

List all connected devices
$ adb devices
copy
List devices with extended info
$ adb devices -l
copy

SYNOPSIS

adb devices [-l]

DESCRIPTION

adb devices lists all Android devices currently connected to the computer, whether via USB or wireless connection. The output shows device serial numbers and their connection states.Device states include: device (connected and ready), offline (not responding), unauthorized (USB debugging not authorized), no permissions (Linux udev rules issue), and bootloader (in fastboot mode).

PARAMETERS

-l

Long output format showing additional device information (product, model, device, transport_id)

OUTPUT FORMAT

$ List of devices attached
[serial]    [state]
copy
With -l flag:
$ [serial]    [state] product:[name] model:[name] device:[name] transport_id:[id]
copy

INSTALL

sudo apt install adb
copy
sudo dnf install android-tools
copy
sudo pacman -S android-tools
copy
sudo apk add android-tools-adb
copy
sudo zypper install android-tools
copy
nix profile install nixpkgs#android-tools
copy

CAVEATS

Devices showing "unauthorized" require you to accept the RSA key prompt on the device. "No permissions" errors on Linux usually require udev rules for your device. Emulators appear as emulator-5554 or similar.

HISTORY

The adb devices command has been part of adb since its initial release with the Android SDK in 2008. The -l flag for extended information was added later to help distinguish between multiple devices of the same model.

SEE ALSO

adb(1), adb-connect(1), fastboot(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid