Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 1 | page.title=USB Driver for Windows |
| 2 | @jd:body |
| 3 | |
| 4 | <div id="qv-wrapper"> |
| 5 | <div id="qv"> |
| 6 | <h2>In this document</h2> |
| 7 | <ol> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 8 | <li><a href="#notes">Revisions</a></li> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 9 | <li><a href="#WinUsbDriver">Installing the USB Driver for Windows</a></li> |
| 10 | </ol> |
| 11 | <h2>See also</h2> |
| 12 | <ol> |
| 13 | <li><a |
| 14 | href="{@docRoot}guide/developing/device.html">Developing on a |
| 15 | Device</a></li> |
| 16 | <li><a |
| 17 | href="adding-components.html">Adding SDK Components</a></li> |
| 18 | </ol> |
| 19 | </div> |
| 20 | </div> |
| 21 | |
| 22 | <p>The USB driver for Windows is a downloadable component for the |
| 23 | Android SDK. If you are developing on Windows and would like to |
| 24 | connect an Android-powered device to test your applications, then you will need |
| 25 | to install the USB driver.</p> |
| 26 | |
| 27 | <p>This document provides information about the latest version of the |
| 28 | USB driver and a guide to installing the driver on your development |
| 29 | computer.</p> |
| 30 | |
| 31 | <p class="note"><strong>Note:</strong> |
| 32 | If you're developing on Mac OS X or Linux, then you do not need to install a |
| 33 | USB driver. Refer to <a |
| 34 | href="{@docRoot}guide/developing/device.html#setting-up">Setting up a |
| 35 | Device</a> to start development with a device.</p> |
| 36 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 37 | <h2 id="notes">Revisions</h2> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 38 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 39 | <p>The sections below provide notes about successive revisions of the USB Driver |
| 40 | for Windows, as denoted by revision number. To determine what revision of the |
| 41 | USB Driver for Windows you are using, refer to the "Installed Packages" listing |
| 42 | in the Android SDK and AVD Manager.</p> |
Scott Main | b149ee8 | 2009-12-15 10:47:31 -0800 | [diff] [blame] | 43 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 44 | <script type="text/javascript"> |
| 45 | function toggleDiv(link) { |
| 46 | var toggleable = $(link).parent(); |
| 47 | if (toggleable.hasClass("closed")) { |
| 48 | //$(".toggleme", toggleable).slideDown("fast"); |
| 49 | toggleable.removeClass("closed"); |
| 50 | toggleable.addClass("open"); |
| 51 | $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png")); |
| 52 | } else { |
| 53 | //$(".toggleme", toggleable).slideUp("fast"); |
| 54 | toggleable.removeClass("open"); |
| 55 | toggleable.addClass("closed"); |
| 56 | $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png")); |
| 57 | } |
| 58 | return false; |
| 59 | } |
| 60 | </script> |
| 61 | <style> |
| 62 | .toggleable { |
| 63 | padding: .25em 1em; |
| 64 | } |
| 65 | .toggleme { |
| 66 | padding: 1em 1em 0 2em; |
| 67 | line-height:1em; |
| 68 | } |
| 69 | .toggleable a { |
| 70 | text-decoration:none; |
| 71 | } |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 72 | .toggleme a { |
| 73 | text-decoration:underline; |
| 74 | } |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 75 | .toggleable.closed .toggleme { |
| 76 | display:none; |
| 77 | } |
| 78 | #jd-content .toggle-img { |
| 79 | margin:0; |
| 80 | } |
| 81 | </style> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 82 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 83 | <div class="toggleable opened"> |
| 84 | <a href="#" onclick="return toggleDiv(this)"> |
Scott Main | 60c4e03 | 2011-01-07 14:48:18 -0800 | [diff] [blame] | 85 | <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" |
| 86 | width="9px" /> |
| 87 | USB Driver for Windows, Revision 4</a> <em>(December 2010)</em> |
| 88 | <div class="toggleme"> |
| 89 | |
| 90 | <dl> |
| 91 | <dt><p>Adds support for the Nexus S.</p></dt> |
| 92 | </dl> |
| 93 | </div> |
| 94 | </div> |
| 95 | |
| 96 | <div class="toggleable closed"> |
| 97 | <a href="#" onclick="return toggleDiv(this)"> |
| 98 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" |
| 99 | width="9px" /> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 100 | USB Driver for Windows, Revision 3</a> <em>(January 2010)</em> |
| 101 | <div class="toggleme"> |
| 102 | |
| 103 | <dl> |
| 104 | <dt><p>Adds support for the Nexus One.</p></dt> |
| 105 | </dl> |
| 106 | </div> |
| 107 | </div> |
| 108 | |
| 109 | <div class="toggleable closed"> |
| 110 | <a href="#" onclick="return toggleDiv(this)"> |
| 111 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 112 | USB Driver for Windows, Revision 2</a> <em>(November 2009)</em> |
| 113 | <div class="toggleme"> |
| 114 | |
| 115 | <dl> |
| 116 | <dt><p>Adds support for the Verizon Droid (or similar hardware on |
| 117 | other carriers).</p></dt> |
| 118 | </dl> |
| 119 | </div> |
| 120 | </div> |
| 121 | |
| 122 | <div class="toggleable closed"> |
| 123 | <a href="#" onclick="return toggleDiv(this)"> |
| 124 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 125 | USB Driver for Windows, Revision 1</a> <em>(October 2009)</em> |
| 126 | <div class="toggleme"> |
| 127 | |
| 128 | <dl> |
| 129 | <dt><p>Initial release of the WinUsb-based driver, with support |
| 130 | for the T-Mobile G1 and myTouch 3G (and similar devices).</p></dt> |
| 131 | </dl> |
| 132 | </div> |
| 133 | </div> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 134 | |
| 135 | <h2 id="WinUsbDriver">Installing the USB Driver for Windows</h2> |
| 136 | |
| 137 | <div class="sidebox-wrapper"> |
Scott Main | f54574a | 2010-03-24 17:18:01 -0700 | [diff] [blame] | 138 | <div class="sidebox"> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 139 | <p>The USB driver for Windows provides support for the following |
| 140 | Android-powered |
| 141 | devices:</p> |
| 142 | <ul> |
Scott Main | 60c4e03 | 2011-01-07 14:48:18 -0800 | [diff] [blame] | 143 | <li>ADP1 / T-Mobile G1*</li> |
| 144 | <li>ADP2 / Google Ion / T-Mobile myTouch 3G*</li> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 145 | <li>Verizon Droid*</li> |
Scott Main | b149ee8 | 2009-12-15 10:47:31 -0800 | [diff] [blame] | 146 | <li>Nexus One</li> |
Scott Main | 60c4e03 | 2011-01-07 14:48:18 -0800 | [diff] [blame] | 147 | <li>Nexus S</li> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 148 | </ul> |
| 149 | <p>* <em>Or similar hardware on other carriers</em></p> |
| 150 | <p>Any additional devices will require Windows drivers provided by |
| 151 | the hardware manufacturer.</p> |
| 152 | </div> |
| 153 | </div> |
| 154 | |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 155 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 156 | <p>The sections below provide instructions on how to download the USB Driver |
| 157 | for Windows and install it on your development computer. </p> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 158 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 159 | <h3>Downloading the USB Driver for Windows</h3> |
| 160 | |
| 161 | <p>The USB Driver for Windows is available for download as an optional SDK |
| 162 | component. You need the driver only if you are developing on Windows and |
| 163 | want to connect an Android-powered device to your development environment |
| 164 | over USB. </p> |
| 165 | |
| 166 | <p>To install the driver or upgrade your existing driver to the latest |
| 167 | revision, you must first download the driver to your development computer. </p> |
| 168 | |
| 169 | <p>To download the driver, use the Android SDK and AVD Manager tool that is |
| 170 | included with the Android SDK. If you haven't yet installed the Android SDK, as |
| 171 | described in <a href="installing.html">Installing the Android SDK</a>, please do |
| 172 | so before continuing with the driver installation. </p> |
| 173 | |
| 174 | <p>When you are ready to download the driver, follow the instructions given in |
| 175 | <a href="adding-components.html">Adding SDK Components</a> to launch the Android |
| 176 | SDK and AVD Manager. From the <strong>Available Packages</strong> panel, select |
| 177 | "Usb Driver Package" and download it to your computer. The driver files are |
Scott Main | 93d204e | 2010-12-06 15:19:37 -0800 | [diff] [blame] | 178 | downloaded into the <code><sdk>\google-usb_driver\</code> directory.</p> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 179 | |
| 180 | <p>After the download, follow the instructions below to install or upgrade the |
| 181 | driver, based on your needs and Windows operating system version. If you are |
| 182 | connecting an Android-powered device to your computer for the first time, follow |
| 183 | the below procedure to "Perform a fresh installation." If you have installed one |
| 184 | of the older USB drivers and would like to upgrade to the latest version, follow |
| 185 | the procedure to "Upgrade an existing driver."</p> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 186 | |
| 187 | <p>Once you've completed the USB driver installation, |
| 188 | please see <a |
| 189 | href="{@docRoot}guide/developing/device.html">Developing on a Device</a> for |
| 190 | other important information about using an Android-powered device for |
| 191 | development.</p> |
| 192 | |
| 193 | <ol class="nolist"> |
| 194 | <li><strong>Windows Vista:</strong> |
| 195 | <ol class="nolist"> |
| 196 | <li><a href="#VistaFreshInstall">Perform a fresh installation</a></li> |
Scott Main | 369c1c1 | 2010-12-07 11:17:00 -0800 | [diff] [blame] | 197 | <li><a href="#VistaUpgrade">Upgrade an existing driver</a></li> |
Scott Main | ad68fdd | 2009-11-05 18:53:59 -0800 | [diff] [blame] | 198 | </ol> |
| 199 | </li> |
| 200 | <li><strong>Windows XP:</strong> |
| 201 | <ol class="nolist"> |
| 202 | <li><a href="#XPFreshInstall">Perform a fresh installation</a></li> |
| 203 | <li><a href="#XPUpgrade">Upgrade an existing driver</a></li> |
| 204 | </ol> |
| 205 | </li> |
| 206 | </ol> |
| 207 | |
| 208 | |
| 209 | <p class="caution"><strong>Caution:</strong> |
| 210 | You may make changes to <code>android_winusb.inf</code> file found inside |
| 211 | <code>usb_driver\</code> (for example, to add support for other devices), |
| 212 | however, this will lead to security warnings when you install or upgrade the |
| 213 | driver. Making any other changes to the driver files may break the installation |
| 214 | process.</p> |
| 215 | |
| 216 | <h3 id="VistaFreshInstall">Windows Vista: Perform a fresh installation</h3> |
| 217 | |
| 218 | <p>To install the Android USB driver on Windows Vista for the first time:</p> |
| 219 | |
| 220 | <ol> |
| 221 | <li>Connect your Android-powered device to your computer's USB port. Windows |
| 222 | will detect the device and launch the Found New Hardware wizard.</li> |
| 223 | <li>Select "Locate and install driver software."</li> |
| 224 | <li>Select "Don't search online."</li> |
| 225 | <li>Select "I don't have the disk. Show me other options."</li> |
| 226 | <li>Select "Browse my computer for driver software."</li> |
| 227 | <li>Click "Browse..." and locate the folder where you copied the |
| 228 | installation package. As long as you specified the exact location of the |
| 229 | installation package, you may leave "Include subfolders" checked or |
| 230 | unchecked—it doesn't matter.</li> |
| 231 | <li>Click "Next." Vista may prompt you to confirm the privilege elevation |
| 232 | required for driver installation. Confirm it.</li> |
| 233 | <li>When Vista asks if you'd like to install the Google ADB Interface device, |
| 234 | click "Install" to install the driver.</li> |
| 235 | </ol> |
| 236 | |
| 237 | |
| 238 | <h3 id="VistaUpgrade">Windows Vista: Upgrade an existing driver</h3> |
| 239 | |
| 240 | <p>To upgrade an existing Android USB driver on Windows Vista with the new |
| 241 | driver:</p> |
| 242 | |
| 243 | <ol> |
| 244 | <li>Connect your Android-powered device to your computer's USB port.</li> |
| 245 | <li>Right-click on "Computer" from your desktop or Windows Explorer, |
| 246 | and select "Manage."</li> |
| 247 | <li>Select "Device Manager" in the left pane of the Computer Management |
| 248 | window.</li> |
| 249 | <li>Locate and expand "ADB Interface" in the right pane.</li> |
| 250 | <li>Right-click on "HTC Dream Composite ADB Interface", and select "Update |
| 251 | Driver Software..."</li> |
| 252 | <li>When Vista starts updating the driver, a prompt will ask how you want to |
| 253 | search for the driver |
| 254 | software. Select "Browse my computer for driver software."</li> |
| 255 | <li>Click "Browse..." and locate the folder where you copied the |
| 256 | installation package. As long as you specified the exact location of the |
| 257 | installation package, you may leave "Include subfolders" checked or |
| 258 | unchecked—it doesn't matter.</li> |
| 259 | <li>Click "Next." Vista may prompt you to confirm the privilege elevation |
| 260 | required for driver installation. Confirm it.</li> |
| 261 | <li>When Vista asks if you'd like to install the Google ADB Interface device, |
| 262 | click "Install" to install the driver.</li> |
| 263 | </ol> |
| 264 | |
| 265 | |
| 266 | <h3 id="XPFreshInstall">Windows XP: Perform a fresh installation</h3> |
| 267 | |
| 268 | <p>To install the Android USB driver on Windows XP for the first time:</p> |
| 269 | |
| 270 | <ol> |
| 271 | <li>Connect your Android-powered device to your computer's USB port. Windows |
| 272 | will detect the device and launch the Hardware Update Wizard.</li> |
| 273 | <li>Select "Install from a list or specific location" and click |
| 274 | "Next."</li> |
| 275 | <li>Select "Search for the best driver in these locations"; un-check "Search |
| 276 | removable media"; and check "Include this location in the search."</li> |
| 277 | <li>Click "Browse..." and locate the folder where you copied the installation |
| 278 | package.</li> |
| 279 | <li>Click "Next" to install the driver.</li> |
| 280 | </ol> |
| 281 | |
| 282 | |
| 283 | <h3 id="XPUpgrade">Windows XP: Upgrade an existing driver</h3> |
| 284 | |
| 285 | <p>To upgrade an existing Android USB driver on Windows XP with the new |
| 286 | driver:</p> |
| 287 | |
| 288 | <ol> |
| 289 | <li>Connect your Android-powered device to your computer's USB port.</li> |
| 290 | <li>Right-click on "My Computer" from your desktop or Windows Explorer, |
| 291 | and select "Manage."</li> |
| 292 | <li>Select "Device Manager" in the left pane of the Computer Management |
| 293 | window.</li> |
| 294 | <li>Locate and expand "Android Phone" in the right pane.</li> |
| 295 | <li>Right-click "Android Composite ADB Interface" and select "Update |
| 296 | Driver..." |
| 297 | This will launch the Hardware Update Wizard.</li> |
| 298 | <li>Select "Install from a list or specific location" and click |
| 299 | "Next."</li> |
| 300 | <li>Select "Search for the best driver in these locations"; un-check "Search |
| 301 | removable media"; and check "Include this location in the search."</li> |
| 302 | <li>Click "Browse..." and locate the folder where you copied the installation |
| 303 | package.</li> |
| 304 | <li>Click "Next" to install the driver.</li> |
| 305 | </ol> |
| 306 | |