Hello good people of stack exchange, I am having trouble setting up my Ubuntu 11.04 boot to use for app development on a hardware device. I have followed the instructions here to try and recongnize the phone. However, when I run ADB devices or in eclipse, the device is listed as ?????? and can not be used to install an app to. Any advice?
The problem is that you ran adb as an underprivileged user. So when adb server starts, it does not have the permissions to run read/write to the device. First you have to kill the server, and then restart it as root:
sudo adb kill-server sudo adb start-server Then you can run this as any user: adb devices
What number are you using for your udev? I wrote about my experiences with my HTC sensation here: http://colinwren.com/using-your-htc-sensation-to-debug-android-apps-on-ubuntu-11-04-natty-narwhal-using-udev-and-adb/
As stated by aspitzer use sudo to start the adb server. Also make sure you've got the correct device code. You can find this by using
lsusb and looking at the code given here (use the first 4 characters)
When I've experienced that, I've had to kill adb and restart it with sudo. You might have to sudo the rest of your adb commands as well.