Results 1 to 7 of 7

Thread: Android: adb devices gives empty list

  1. #1

    Default Android: adb devices gives empty list

    I can't get adb to show my Android devices. Neither my Sony Xperia2 10.1 tablet nor my Lenovo B phone (both Android 6.0) show up in the list; I'm only getting a "List of devices attached" without entries. However, they are recognized in Plasma when plugged in and are properly mountable via MSC or MTP.

    The adb returns immediately; it does not help to become root, so I suppose it is not a permission issue. Tips like adding a udev rule mainly address the issue of permissions and groups, and they actually did not work for me.

    Code:
    # lsusb | grep Sony
    Bus 001 Device 022: ID 0fce:e1b1 Sony Ericsson Mobile Communications AB
    
    # cat /etc/udev/rules.d/80-android.rules
    SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="e1b1", MODE="0660", GROUP="dialout", SYMLINK+="android%n"
    
    # ll /dev/android*
    lrwxrwxrwx 1 root root 15  2. Dez 23:15 /dev/android1 -> bus/usb/001/022
    
    # adb devices
    List of devices attached

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,106
    Blog Entries
    2

    Default Re: Android: adb devices gives empty list

    Have you enabled android debugging in the settings of your Android devices?

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Android: adb devices gives empty list

    No.

    I suppose this is important. :-)

    (WTF? About Tablet ... hit Build Number seven times? Bad joke. Yes, it worked.)

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,106
    Blog Entries
    2

    Default Re: Android: adb devices gives empty list


    Easy and common thing to overlook...

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Android: adb devices gives empty list

    Indeed, thanks!

    Particularly easy to overlook since they hid the debug mode behind funny touchscreen dances. Next release you'll have to recite some poem while balancing the device on your fingertips.

    I wished adb would output some informational message like "No devices found; check devices for debug mode". "No news is good news" is definitely not true when you invoke adb, because you most likely expect some device to show up.

  6. #6

    Default Re: Android: adb devices gives empty list

    Quote Originally Posted by tsu2 View Post

    Easy and common thing to overlook...

    TSU

    Sorry to hijack this thread, but I have USB debugging enabled and get an empty list of attached devices with my essential phone. I tried it with an HTC 10 and instead of a device ID, I get "???????????". I guess a bunch of question marks is better than nothing, but it does not inspire confidence.

    Any idea what is wrong?

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,106
    Blog Entries
    2

    Default Re: Android: adb devices gives empty list

    You should start by running the commands in the first post that verify your device is detected and recognized properly, only after that you can try to diagnose connecting to the device.
    Of course your device isn't a Sony device... So you can either grep for your won device identification or not grep and simply scroll through the entire result looking for your device.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •