Home | History | Annotate | Download | only in sdk
      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>
      8     <li><a href="#notes">Revisions</a></li>
      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 
     37 <h2 id="notes">Revisions</h2>
     38 
     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>
     43 
     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 }
     72 .toggleme a {
     73   text-decoration:underline;
     74 }
     75 .toggleable.closed .toggleme {
     76   display:none;
     77 }
     78 #jd-content .toggle-img {
     79   margin:0;
     80 }
     81 </style>
     82 
     83 <div class="toggleable opened">
     84   <a href="#" onclick="return toggleDiv(this)">
     85         <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" />
     86 USB Driver for Windows, Revision 3</a> <em>(January 2010)</em>
     87   <div class="toggleme">
     88 
     89 <dl>
     90 <dt><p>Adds support for the Nexus One.</p></dt>
     91 </dl>
     92  </div>
     93 </div>
     94 
     95 <div class="toggleable closed">
     96   <a href="#" onclick="return toggleDiv(this)">
     97         <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
     98 USB Driver for Windows, Revision 2</a> <em>(November 2009)</em>
     99   <div class="toggleme">
    100 
    101 <dl>
    102 <dt><p>Adds support for the Verizon Droid (or similar hardware on
    103 other carriers).</p></dt>
    104 </dl>
    105  </div>
    106 </div>
    107 
    108 <div class="toggleable closed">
    109   <a href="#" onclick="return toggleDiv(this)">
    110         <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
    111 USB Driver for Windows, Revision 1</a> <em>(October 2009)</em>
    112   <div class="toggleme">
    113 
    114 <dl>
    115 <dt><p>Initial release of the WinUsb-based driver, with support
    116 for the T-Mobile G1 and myTouch 3G (and similar devices).</p></dt>
    117 </dl>
    118  </div>
    119 </div>
    120 
    121 <h2 id="WinUsbDriver">Installing the USB Driver for Windows</h2>
    122 
    123 <div class="sidebox-wrapper">
    124 <div class="sidebox">
    125   <p>The USB driver for Windows provides support for the following
    126 Android-powered
    127 devices:</p>
    128   <ul>
    129     <li>T-Mobile G1* / ADP1</li>
    130     <li>T-Mobile myTouch 3G* / Google Ion</li>
    131     <li>Verizon Droid*</li>
    132     <li>Nexus One</li>
    133   </ul>
    134   <p>* <em>Or similar hardware on other carriers</em></p>
    135   <p>Any additional devices will require Windows drivers provided by
    136 the hardware manufacturer.</p>
    137 </div>
    138 </div>
    139 
    140 
    141 <p>The sections below provide instructions on how to download the USB Driver
    142 for Windows and install it on your development computer. </p>
    143 
    144 <h3>Downloading the USB Driver for Windows</h3>
    145 
    146 <p>The USB Driver for Windows is available for download as an optional SDK
    147 component. You need the driver only if you are developing on Windows and 
    148 want to connect an Android-powered device to your development environment
    149 over USB. </p>
    150 
    151 <p>To install the driver or upgrade your existing driver to the latest
    152 revision, you must first download the driver to your development computer. </p>
    153 
    154 <p>To download the driver, use the Android SDK and AVD Manager tool that is
    155 included with the Android SDK. If you haven't yet installed the Android SDK, as
    156 described in <a href="installing.html">Installing the Android SDK</a>, please do
    157 so before continuing with the driver installation. </p>
    158 
    159 <p>When you are ready to download the driver, follow the instructions given in
    160 <a href="adding-components.html">Adding SDK Components</a> to launch the Android
    161 SDK and AVD Manager. From the <strong>Available Packages</strong> panel, select
    162 "Usb Driver Package" and download it to your computer. The driver files are
    163 downloaded into the <code>&lt;sdk&gt;\usb_driver</code> directory.</p>
    164 
    165 <p>After the download, follow the instructions below to install or upgrade the
    166 driver, based on your needs and Windows operating system version. If you are
    167 connecting an Android-powered device to your computer for the first time, follow
    168 the below procedure to "Perform a fresh installation." If you have installed one
    169 of the older USB drivers and would like to upgrade to the latest version, follow
    170 the procedure to "Upgrade an existing driver."</p>
    171 
    172 <p>Once you've completed the USB driver installation,
    173 please see <a
    174 href="{@docRoot}guide/developing/device.html">Developing on a Device</a> for
    175 other important information about using an Android-powered device for
    176 development.</p>
    177 
    178 <ol class="nolist">
    179   <li><strong>Windows Vista:</strong>
    180     <ol class="nolist">
    181       <li><a href="#VistaFreshInstall">Perform a fresh installation</a></li>
    182       <li><a href="#VistaUprade">Upgrade an existing driver</a></li>
    183     </ol>
    184   </li>
    185   <li><strong>Windows XP:</strong>
    186     <ol class="nolist">
    187       <li><a href="#XPFreshInstall">Perform a fresh installation</a></li>
    188       <li><a href="#XPUpgrade">Upgrade an existing driver</a></li>
    189     </ol>
    190   </li>
    191 </ol>
    192 
    193 
    194 <p class="caution"><strong>Caution:</strong>
    195 You may make changes to <code>android_winusb.inf</code> file found inside
    196 <code>usb_driver\</code> (for example, to add support for other devices),
    197 however, this will lead to security warnings when you install or upgrade the
    198 driver. Making any other changes to the driver files may break the installation
    199 process.</p>
    200 
    201 <h3 id="VistaFreshInstall">Windows Vista: Perform a fresh installation</h3>
    202 
    203 <p>To install the Android USB driver on Windows Vista for the first time:</p>
    204 
    205 <ol>
    206   <li>Connect your Android-powered device to your computer's USB port. Windows
    207   will detect the device and launch the Found New Hardware wizard.</li>
    208   <li>Select "Locate and install driver software."</li>
    209   <li>Select "Don't search online."</li>
    210   <li>Select "I don't have the disk. Show me other options."</li>
    211   <li>Select "Browse my computer for driver software."</li>
    212   <li>Click "Browse..." and locate the folder where you copied the
    213     installation package. As long as you specified the exact location of the 
    214     installation package, you may leave "Include subfolders" checked or
    215   unchecked&mdash;it doesn't matter.</li>
    216   <li>Click "Next." Vista may prompt you to confirm the privilege elevation
    217   required for driver installation. Confirm it.</li>
    218   <li>When Vista asks if you'd like to install the Google ADB Interface device,
    219   click "Install" to install the driver.</li>
    220 </ol>
    221 
    222 
    223 <h3 id="VistaUpgrade">Windows Vista: Upgrade an existing driver</h3>
    224 
    225 <p>To upgrade an existing Android USB driver on Windows Vista with the new
    226 driver:</p>
    227 
    228 <ol>
    229   <li>Connect your Android-powered device to your computer's USB port.</li>
    230   <li>Right-click on "Computer" from your desktop or Windows Explorer,
    231     and select "Manage."</li>
    232   <li>Select "Device Manager" in the left pane of the Computer Management
    233   window.</li>
    234   <li>Locate and expand "ADB Interface" in the right pane.</li>
    235   <li>Right-click on "HTC Dream Composite ADB Interface", and select "Update
    236   Driver Software..."</li>
    237   <li>When Vista starts updating the driver, a prompt will ask how you want to
    238   search for the driver
    239     software. Select "Browse my computer for driver software."</li>
    240   <li>Click "Browse..." and locate the folder where you copied the
    241     installation package. As long as you specified the exact location of the 
    242     installation package, you may leave "Include subfolders" checked or
    243     unchecked&mdash;it doesn't matter.</li>
    244   <li>Click "Next." Vista may prompt you to confirm the privilege elevation
    245   required for driver installation. Confirm it.</li>
    246   <li>When Vista asks if you'd like to install the Google ADB Interface device,
    247   click "Install" to install the driver.</li>
    248 </ol>
    249 
    250 
    251 <h3 id="XPFreshInstall">Windows XP: Perform a fresh installation</h3>
    252 
    253 <p>To install the Android USB driver on Windows XP for the first time:</p>
    254 
    255 <ol>
    256   <li>Connect your Android-powered device to your computer's USB port. Windows 
    257     will detect the device and launch the Hardware Update Wizard.</li>
    258   <li>Select "Install from a list or specific location" and click
    259     "Next."</li>
    260   <li>Select "Search for the best driver in these locations"; un-check "Search
    261     removable media"; and check "Include this location in the search."</li>
    262   <li>Click "Browse..." and locate the folder where you copied the installation 
    263     package.</li>
    264   <li>Click "Next" to install the driver.</li>
    265 </ol>
    266 
    267 
    268 <h3 id="XPUpgrade">Windows XP: Upgrade an existing driver</h3>
    269 
    270 <p>To upgrade an existing Android USB driver on Windows XP with the new
    271 driver:</p>
    272 
    273 <ol>
    274   <li>Connect your Android-powered device to your computer's USB port.</li>
    275   <li>Right-click on "My Computer" from your desktop or Windows Explorer,
    276     and select "Manage."</li>
    277   <li>Select "Device Manager" in the left pane of the Computer Management
    278   window.</li>
    279   <li>Locate and expand "Android Phone" in the right pane.</li>
    280   <li>Right-click "Android Composite ADB Interface" and select "Update
    281   Driver..."
    282     This will launch the Hardware Update Wizard.</li>
    283   <li>Select "Install from a list or specific location" and click
    284     "Next."</li>
    285   <li>Select "Search for the best driver in these locations"; un-check "Search
    286     removable media"; and check "Include this location in the search."</li>
    287   <li>Click "Browse..." and locate the folder where you copied the installation 
    288     package.</li>
    289   <li>Click "Next" to install the driver.</li>
    290 </ol>
    291   
    292