<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>alan.lamielle.net &#187; Android</title>
	<atom:link href="http://alan.lamielle.net/categories/tech/android/feed" rel="self" type="application/rss+xml" />
	<link>http://alan.lamielle.net</link>
	<description>Alan LaMielle</description>
	<lastBuildDate>Fri, 16 Sep 2011 16:50:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Nexus One USB in Ubuntu 9.10</title>
		<link>http://alan.lamielle.net/2010/01/22/nexus-one-usb-in-ubuntu-9-10</link>
		<comments>http://alan.lamielle.net/2010/01/22/nexus-one-usb-in-ubuntu-9-10#comments</comments>
		<pubDate>Sat, 23 Jan 2010 04:55:14 +0000</pubDate>
		<dc:creator>Alan LaMielle</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[adb]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[droid]]></category>
		<category><![CDATA[droid eris]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[eris]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[N1]]></category>
		<category><![CDATA[nexus one]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[t-mobile]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[vendor id]]></category>
		<category><![CDATA[verizon]]></category>

		<guid isPermaLink="false">http://alan.lamielle.net/?p=623</guid>
		<description><![CDATA[My shiny new Google Nexus One wasn&#8217;t connecting properly over USB to my Ubuntu 9.10 (Karmic) notebook using the Android SDK.  Here&#8217;s how I fixed it. After a few days of debating whether or not to buy a Nexus One, I finally gave in a bought one.  Rachael ended up getting a Droid Eris (Verizon) [...]]]></description>
			<content:encoded><![CDATA[<p>My shiny new Google Nexus One wasn&#8217;t connecting properly over USB to my Ubuntu 9.10 (Karmic) notebook using the Android SDK.  Here&#8217;s how I fixed it.<br />
<span id="more-623"></span></p>
<p>After a few days of debating whether or not to buy a Nexus One, I finally gave in a bought one.  Rachael ended up getting a Droid Eris (Verizon) for Christmas, so in the course of a few weeks I gained access to two fantastic Android-powered phones.  I had been compiling a list of mobile application ideas and the fact that I now have the hardware to test on motivated me to start looking into Android development.</p>
<p>After getting the Android SDK setup I needed to connect my N1 and push an application to it for testing on real hardware.  I found some <a href="http://developer.android.com/guide/developing/device.html">Android documentation</a> that discussed connecting up an Android device over USB.  However, after following the steps on this page, I was still seeing strange output when running <code>adb devices</code>:<br />
<code>List of devices attached<br />
????????????    no permissions</code><br />
This led to some searching which turned up a <a href="http://dansyrstad.com/2010/01/09/getting-nexus-one-working-with-usb-on-ubuntu/">blog post</a>.  Basically, the Google Android team hasn&#8217;t added the Vendor ID for the Nexus One.  Apparently HTC&#8217;s USB Vendor ID isn&#8217;t correct.  So, I followed these steps to fix it:</p>
<ol>
<li>Create/edit a udev rules file:<br />
<code>sudo vim /etc/udev/rules.d/51-android.rules</code></li>
<li>Add the following line to this file:<br />
<code>SUBSYSTEM=="usb", SYSFS{idVendor}=="18D1", MODE="0666"</code><br />
(Note the vendor ID of 18D1.  This was changed from the HTC vendor code of 0BB4.)</li>
<li>Restart udev using either<br />
<code>sudo reload udev</code><br />
or<br />
<code> sudo service udev reload</code></li>
<li>Connect your Nexus One.</li>
<li>Run<br />
<code>adb devices</code><br />
and you should see something like<br />
<code>List of devices attached<br />
############    device</code></li>
</ol>
<p>Hopefully Google updates the documentation to include the Vendor ID 18D1 rather than making us hunt for this number ourselves.  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://alan.lamielle.net/2010/01/22/nexus-one-usb-in-ubuntu-9-10/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

