adb devices

Android adb command for host, provides a command line if you want to access the device shell of Android. Once you installed Adb as mentioned in “How to Install ADB & Fastboot on Ubuntu” you will need to connect your Android Mobile over USB and type command,

$ adb devices
 List of devices attached
 daemon not running; starting now at tcp:5037
 daemon started successfully
 B2NGAA8831702707    device

here, if you have run adb devices command first time, it will start the adb server daemon and list the device attached over USB with device serial number and name.

When you connect next time, and check adb devices, you can see the demon running messages not shown and list the devices connected as,

$ adb devices

List of devices attached
B2NGAA8831702707	device

You can also check the device product, model, USB bus connected to as,

$ adb devices -l

List of devices attached
B2NGAA8831702707       device usb:1-3 product:Onyx_00WW model:Nokia_7_plus device:B2N_sprout transport_id:56

Now, you can connect to this device using adb shell as,

$ adb shell

You can also connect to adb shell using serial number as,

 $ adb -s B2NGAA8831702707 shell 

Refer For “How to use adb shell when multiple devices are connected

Find Your Android Device Code Name x
Find Your Android Device Code Name

1 thought on “adb devices”

Leave a Comment

Sign up to our newsletter!

ADB Commands Android Android Applications Android Build system Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development, Debugging and Performance Tools Development and Build Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia NDK / Middleware / HAL Operating System Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web Design and Development Website Hosting Wordpress Yocto Embedded Linux