Android Debugging: Install ‘adb’ on Windows XP

29 Nov


Recently I came across with a request to create a How-To document for
‘adb’ (Android Debug Bridge) installation on Windows XP. Later, I
thought this document may be of some help to some beginners and I am
adding it over here.

Incidentally this is my first blog entry, and I hope it will be useful for somebody!

Following are the steps for ‘adb’ installation for a complete beginner.

  1. Go to and download the Android SDK “” file for Windows from the table
    [Size: 22.6 MB]
  2. Unzip the file at some suitable location (Say, D:\work\mohan\), unzip results in creation of a new folder “android-sdk_r07-windows”.
  3. Copy the path to the “tools” directory in side the unzipped folder (say, D:\work\mohan\android-sdk_r07-windows\android-sdk-windows\tools)
  4. Right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Append the full path to the “tools” directory to the path.
  5. Open the command terminal and type ‘adb’ to see following:

    Android Debug Bridge version 1.0.26
    -d                 – directs command to the only connected USB device returns an error if more than one USB device is present.
    -e                 – directs command to the only running emulator. returns an error if more than one emulator is running.
    -s <serial number> – directs command to the USB device or emulator with the given serial number. Overrides ANDROID_SERIAL

    • ‘cd’ to ‘tools’ location and type command ‘android.bat update sdk’
      which will popup a Android SDK &amp; AVD Manager window.
    • Then allow the popped up window to refresh the package list and
      when it asks to choose Android SDK then click on Cancel button to close
      that window.
    • Now in Android SDK &amp; AVD Manager click on ‘Available Packages’ from
      left panel and expand the tree on right panel.
    • Then click on ‘SDK Platform Android 1.6, API 4, revision 3’ and
      ‘USB Driver package, revision 3’ options and click ‘Install selected’ button.
    • This should popup Package to install window. There Android SDK 1.6 and USB
      Driver entries will be listed, click ‘Accept’ radio button and then click the
      ‘Install’ button to proceed for platform specific download.

      Please be patient it takes some time to download.

    • Connect USB cable from G1Phone to Laptop. Windows will inform
      ‘New Hardware Found’ and will ask for installing its driver in a pop up
    • Click the ‘Install from a list or pecific location (Advanced)’
      radio button and click ‘Next’ button.
    • In the next step, if not checked, check the ‘Include this location
      in the search’ and click on ‘Browse’ button to select the
      “usb_driver” folder inside your SDK folder.
      (like, D:\work\mohan\android-sdk_r07-windows\android-sdk-windows\usb_driver).
    • Then click on ‘next’ and then ‘finish’ to complete the driver installation.
    • Restart the machine to properly register the adb’s USB driver.
    • Reconnect the G1Phone to Laptop using USB cable.
  6. On a command terminal, type ‘adb devices’. If driver is installed correctly,
    this should list the Android Phone’s unique number, as below:

    C:\>adb devices
    List of devices attached
    HT99GLZ00XYZ    device

  7. Then type ‘adb shell’ command to enter the adb’s shell, you should see ‘#’ as
    the first character in next line, as below:

    C:\>adb shell

  8. Then type ‘dmesg’ command to get the details of the latest happenings on the phone.

    C:\>adb shell

    [    0.000000] Linux version 2.6.27-00399-gc7f8bce-dirty (user@machine_name) (gcc version 4.2.1) #451 PREEMPT Wed Nov 17 16:26:33 IST 2010
    [    0.000000] CPU: ARMv6-compatible processor [4117b362] revision 2 (ARMv6TEJ), cr=00c5387f
    [    0.000000] Machine: trout
    [    0.000000] AKM Data size = 1018 , 0x89768976, size = 4064
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] On node 0 totalpages: 25856
    [    0.000000] free_area_init_node: node 0, pgdat c02ee414, node_mem_map c0397000
    [    0.000000]   DMA zone: 25654 pages, LIFO batch:7
    [    0.000000] CPU0: D VIPT write-back cache



If you see messages similar to above on your terminal, it is the
confirmed that ‘adb’ is correctly installed on your system.

Leave a comment

Posted by on November 29, 2010 in Android, Technical


Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: