2010-03-19

HTC Hero adb access under Ubuntu 9.10 amd64

When i connected my HTC Hero (formerly T-Mobile G2) with my Ubuntu 9.10 64bit to get shell access to it i had the following problem:

$ ./adb shell
error: insufficient permissions for device

$ ./adb devices
?????? no permissions

So i found a solution here: http://developer.android.com/guide/developing/device.html
First you should generate a new udev rule:

sudo vim /etc/udev/rules.d/51-android.rules
---
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
---

Now you have to change the rights:

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

Also you have to reload the udev rules:

sudo service udev reload

Now if you reconnect your HTC Hero you will have access with adb from the Android SDK Tools!

No comments: