views:

72

answers:

1

Hey,

I have a HTC Desire which i would like to debug and run my Android application on. But when i in Eclipse gets the Window where i can choose between devices my HTC Desire is listed with only questionmarks (????????). What am i doing wrong?

I have tried this:

Enabled USB Debugging on my device and enabled debugging in my application Manifest.xml file.

In Terminal i have do this: 1. Log in as root and create this file: /etc/udev/rules.d/51-android.rules. 2. SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" 3. sudo service udev restart

What else could i try or have forgotten?

+2  A: 

You need to run adb manually using sudo. If you just run adb without sudo (or if you let Eclipse/ADT do it for you), it won't have the permissions necessary to see your devices.

If it's already running, then sudo adb kill-server and sudo adb start-server.

EboMike
Yup, this is the absolutely correct answer. For ADB to connect to a physical device in Linux, ADB needs to run with root privileges. You can do that with sudo, or by running as root (with all the problems that brings with it).
Bob McCormick