Search code examples
androidlinuxubuntuadb

Ubuntu: Android device debug


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?


Solution

  • 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.