You are not logged in.

#1 2009-04-16 17:43:10

toomanymirrors
Member
Registered: 2007-11-06
Posts: 15

Android not being found by adb

Hi, I was happy to see some fellow Arch users are playing with the Android because I just got one last week. I did manage to get the emulator and all working with Eclipse, but I can't get adb to find the phone when it's plugged in. I followed the directions on http://developer.android.com/guide/deve … setting-up and added the udev rule. But adb is not finding the device.
I also noticed two oddities:
1) The directions changes the rule file to an executable and none of the other rule files I have are executables, are they supposed to be?
2) Should I use the rule for Gusty/Hardy or Dapper?

In either case I've tried both and neither is resulting in adb finding the device (meaning when plugged in with phone on debug mode, executing adb devices lists nothing).

Can anyone help?

Offline

#2 2009-04-16 18:23:12

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Offline

#3 2009-04-17 15:57:20

toomanymirrors
Member
Registered: 2007-11-06
Posts: 15

Re: Android not being found by adb

Thanks, I added that to my udev rule file so that it looks like this:

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb",ATTR{idVendor}=="0bb4",ATTR{idProduct}=="0c02",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="0bb4",ATTR{idProduct}=="0c01",SYMLINK+="android_fastboot"

Now when I plug in the phone a device I see this device:

ls -al /dev/android_adb
lrwxrwxrwx 1 root root 15 2009-04-17 11:53 /dev/android_adb -> bus/usb/001/005

But adb devices still does not list any devices found. Any idea what I'm missing?

Offline

#4 2009-04-17 18:08:41

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Android not being found by adb

try running adb devices as root, I think I just ran mine as root; if it works its a permissions issue.

Dusty

Offline

#5 2009-04-17 18:51:15

toomanymirrors
Member
Registered: 2007-11-06
Posts: 15

Re: Android not being found by adb

No luck as root:

sudo adb devices
List of devices attached

Do I have to do something other than turn USB debugging on to the phone?

Offline

#6 2009-04-24 22:14:24

Evoreth
Member
Registered: 2007-06-09
Posts: 15

Re: Android not being found by adb

toomanymirrors wrote:

No luck as root:

sudo adb devices
List of devices attached

Do I have to do something other than turn USB debugging on to the phone?

No, just plug in your phone, kill adb and restart it as root. Now the device should be listed in adb devices.

Offline

#7 2009-07-21 16:48:24

smeat
Member
Registered: 2009-07-21
Posts: 1

Re: Android not being found by adb

I found that I had to change the 50-android.rules to have this instead.

SUBSYSTEM=="usb|usb_device", SYSFS{idVendor}=="0bb4", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_adb"
SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c01", SYMLINK+="android_fastboot"

After that I could run adb as a user that was in the plugdev group and everything just worked.

Offline

Board footer

Powered by FluxBB