James Jefferies and ShedCode Ltd

The world of James and ShedCode

Computer – Please Talk to the Phone…

| Comments

I have in my hand a piece of paper, well, actually it is an htc hero android phone, but let’s not let that get in the way of an opening sentence..

Karmic Koala, Ubuntu 9.10 doesn’t take kindly when you ask it to pick up an htc hero via USB. The android developers guide gives you hints for Hardy ubuntu, but nothing more recent. Assuming you’ve followed all the other steps outlined in the guide, you get stuck with this output when you run

1
adb devices

output is:

1
2
List of devices attached
????????????    no permissions

Fortunately, someone else has done the hard work sorting out the authentication. This is what you need to do:

1
<span><span style="font-family: Helvetica,Arial,sans-serif;" class="Apple-style-span">sudo vi /etc/udev/rules.d/51-android.rules </span></span>

and add the following (for an HTC phone - the code changes for other devices)

1
2
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c01", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02", MODE="0666"

Sort out permissions for that file

1
sudo chmod a+r /etc/udev/rules.d/51-android.rules

Then restarted the android debugging thingy (adb should be on the path after installing the Android SDK)

1
2
adb kill-server
sudo adb start-server

Now when you run

1
adb devices

you should get something like this:

1
2
List of devices attached
HT9C2L901094    device

Comments