Nexus One Debugging In Ubuntu Linux

This is mostly just a note to myself, but I figured some other people might find it useful. When I connected my Nexus One, it was showing up as “???????????? no permissions” when I ran adb devices. I added the typical udev rule and had no luck. Running lsusb revealed the the vendor ID is different from the HTC G1. So, to enable debugging this device and the G1 in Ubuntu (and other flavors of Linux), create/edit /etc/udev/rules.d/51-android.rules and put the following in it:

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"

You may need to run sudo reload udev and/or disconnect and reconnect the N1. Check adb devices again and hopefully you’ll see “HT9CSP123456 device” or similar.

About Ian G. Clifton

He served in the USAF and earned his secondary level teaching certification in Washington State. After that, he worked as a web developer and then as a mobile app developer, specializing in Android. He currently works in Seattle, WA as an Android developer and spends his off time on photography, drawing, developing, and doing technical review for other Android developers. You can follow his posts on this blog or his ramblings on Twitter.
This entry was posted in Mobile Development and tagged , , , , , , , . Bookmark the permalink.

2 Responses to Nexus One Debugging In Ubuntu Linux

  1. Vinay Setty says:

    Thank you so much, it worked for me, its really frustrating I tried many forums and many of them failed to explain this.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>