You are not logged in.

#1 2012-01-23 05:44:20

iso
Member
Registered: 2008-12-27
Posts: 46

[SOLVED] adb doesn't detect Android devices

When I plug in a device via USB, `adb devices` comes up empty.  I followed the instructions on the Android site[1] , but both my Nexus One and Samsung Nexus are still undetected.

~  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?

1. http://developer.android.com/guide/deve … evice.html

Last edited by iso (2012-01-24 04:43:01)

Offline

#2 2012-01-23 12:58:44

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: [SOLVED] adb doesn't detect Android devices

When I use ADB and Fastboot, I need to run the commands as sudo.  I think it has something to do with permissions, and I never felt like changing them with the actual devices, so I'd give running the commands as root a shot, if you haven't already (solved my problem anyhow).

Hope this helps!


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#3 2012-01-23 13:16:19

Stemp
Member
From: Paris, Europe
Registered: 2011-04-26
Posts: 61
Website

Re: [SOLVED] adb doesn't detect Android devices

I use the AUR package android-udev.
The google part is :

#      Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="adbusers"
#      NEXUS S
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e21", 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", SYMLINK+="android_adb"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", SYMLINK+="android_fastboot" 
#      Nexus One
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e11", 
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", SYMLINK+="android_adb"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
#      Generic and unspecified debug interface
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", SYMLINK+="android_fastboot" 

And I'm part of the adbusers Group.


Sorry for my English - Home Page - «Violence never settles anything.» : Genghis Khan, 1162-1227

Offline

#4 2012-01-23 13:33:06

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [SOLVED] adb doesn't detect Android devices

@mrmylanman - running with sudo still shows no devices

@Stemp - I created the adbusers group, added myself to it, installed android-udev and added the configurations, restarted my machine, but still can't detect any devices.  Since the Samsung Nexus isn't included with your settings when I plugged it shows "????????????    no permissions" when running `adb devices` which is expected.

Offline

#5 2012-01-23 23:04:33

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: [SOLVED] adb doesn't detect Android devices

I'm assuming you have debugging enabled in the settings app of your phone.  Super basic, but that's strange I have never encountered an issue like this before.  Good luck with it.  I was hoping I could be of help but it seems like maybe not.


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#6 2012-01-24 04:42:19

iso
Member
Registered: 2008-12-27
Posts: 46

Re: [SOLVED] adb doesn't detect Android devices

It turns out the problem was that when I initially installed the android sdk's there was an issue when doing it through eclipse and the solution was to run eclipse via sudo.  This did allow everything to be installed, but I think it may have been responsible for my issues since all the files belonged to the sudo group.

I re-downloaded the sdk and instead of installing the versions through eclipse I installed them by running the `android` terminal command.  After installing, running the ddms detected my devices. ** I also notices that I pluralized the ATTR in my rules file.

In the end below 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"


Thanks for the help.

Offline

Board footer

Powered by FluxBB