This question already has an answer here:
I have a problem connecting HTC Wildfire A3333 in debugging mode with my Fedora Linux 17. Adb says:
./adb devices
List of devices attached
???????????? no permissions
my udev rules (first rule for Samsung which works just fine and second for HTC which is not):
SUBSYSTEM=="usb",SYSFS{idVendor}=="04e8",SYMLINK+="android_adb",MODE="0666",GROUP="plugdev"
SUBSYSTEM=="usb",SYSFS{idVendor}=="0bb4",SYMLINK+="android_adb",MODE="0666",GROUP="plugdev"
For Samsung devices everything's okay:
./adb devices
List of devices attached
00198a9422618e device
I have been trying all of the answers given in a simmilar thread wthout any luck: Using HTC wildfire for android development
I agree with Robert Siemer and Michaël Witrant. If it's not working, try to debug with
strace
In my case it helps to kill all instances and remove socket file
/tmp/ADB_PORT
(the default is/tmp/5037
).I have a similar problem:
Investigation
If I run
lsusb
, I can see which devices I have connected, and where:This is showing my Samsung Galaxy S3 and my Nexus 7 (2012) connected.
Checking the permissions on those:
Wait. What? Where did that "plugdev" group come from?
(I've wrapped those lines)
Note the
GROUP="plugdev"
lines. Also note that this doesn't work for the other device ID:(nothing is returned)
Fixing it
OK. So what's the fix?
Add a rule
Create a file
/etc/udev/rules.d/99-adb.rules
containing the following line:This should be a single line, I've wrapped it here for readability
Restart udev
That's it
Unplug/replug your device.
Try it
under ubuntu 12.04, eclipse juno. I face the same issue. This what I found on Yi Yu Blog
The solution is same as same as Leon
Had the same issue. It was a problem with udev rules. Tried a few of the rules mentioned above but didnot fix the issue. Found a set of rules here, https://github.com/M0Rf30/android-udev-rules. Followed the guide there and, voila, fixed.
I encountered the same problem today.
I followed the official instructions, but I didn't noticed that I SHOULD run command
"chmod a+r /etc/udev/rules.d/51-android.rules"
After I set this file to world readable and re-plug my usb cable,the status became unauthorized. Then just grant the permission and everything goes fine.
Another possible source of this issue is USB tethering. If you have used USB tethering, turn it off, then unplug the device from USB, plug it back in, then do
That did the trick in my case (Ubuntu 12.04, Nexus S, SDK in home dir, never needed root to get it running). Depending on your device, you may need to run
adb devices
as root, though.