Adb does not detect Android devices

When I connect the device via USB, adb devices appears blank. I followed the instructions on the Android site [1], adding the code below and restarting the adb server (I also restarted my machine because I couldn’t get it working). Both my Nexus One and Samsung Nexus are still not detected.

~ cat / etc / udev / rules.d / 51-android.rules

 # nexus one SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", SYMLINK+="android_adb", MODE="0666", GROUP="wheel" # samsung nexus SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", SYMLINK+="android_adb", MODE="0666", GROUP="wheel" 

Any ideas?

+6
source share
5 answers

It turns out the problem was that when I initially installed sroid sroid, there was a problem when I did it through eclipse, and the solution was to start eclipse through sudo. This allowed me to install everything, but I think it could be the cause of my problems, since all the files belonged to the sudo group. I rebooted sdk and instead of installing versions via eclipse I installed them by running the android terminal command. After installation, starting ddms detected my devices. ** I also notice that I have pluralized ATTR in my rules file. In the end, this is what worked for me (after creating the adbusers group and adding myself).

 # nexus one SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="adbusers" # samsung nexus SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="adbusers" 
+3
source

Why is your GROUP wheel? Try changing it to plugdev

0
source

The general answer is to check / update USB drivers.

I often find that a USB driver that installs automatically from the device itself is either 1) out of date, or 2) not intended to support "true" support from application developers. (i.e. more for "consumer" access to the device as a storage medium, and not for adb debugging support)

The Android developer page has a list of vendor links to get USB drivers for the device

0
source

Try:

it worked for me :)

0
source

For windows

You can find the solution at the following link

https://stackoverflow.com/a/30024998/2336184

0
source

Source: https://habr.com/ru/post/906628/


All Articles