Windows 7 x64 Android SDK – Example: Connect HTC Desire

I had some troubles with the Android SDK so I will explain the steps you must take to connect your phone from your pc


  1. Download the Android SDK
  2. Turn on your USB debugging mode (On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging)


  1. Install the Android SDK
  2. During the install ask to download and install the Java SDK
  3. Continue the installation when you have installed the Java SDK
  4. Start the (Android) SDK Manager and download all the default packages. Note: when you start the SDK Manager in the future always start the shortcut with administrator permissions. (right click > runas admin)
  5. Now download the USB drivers with the SDK Manager
  6. Now start notepad as administrator and open “C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver\android_winusb.inf”
  7. Now add some x64 code to the 32bits inf file
  8. [Google.NTamd64]
    ; HTC Desire
    %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C87
    %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C87&MI_01
  9. Example:
  10. Now connect your phone with an USB cable (usb debuging mode must be turned on) open your device manager and update the android device with the modified driver.
  11. Now you can start cmd and use the adb util to manager your phone. Some example if you want to change your default install location for all apps to SD (even the app that not support this feature)

If your phone are other phone rather than HTC Desire, you have to change the Hardware ID (e.g. USB\VID_0BB4&PID_0C87) to be your phone’s ID. You can get this ID by

– Right-click on the My computer -> properties.
– Click on Device Manager.
– Find the phone in the list on left-hand. (Should be some warning mark if you don’t have driver for it)
– Right click on ADB -> Properties -> Detail
– Change the drop-down box to Hardware ID. This is where your phone USB ID is keep. Use this ID to put in the android_winusb.inf as described above.

Note: for 32bits computers use: [Google.NTx86]
Note: for 64bits computers use: [Google.NTamd64]

Happy debugging 🙂

(pfff crappy wordpress editor ;))

Author: Thomas Faddegon

Do you like my posts and want to do something back? You can buy me a beer :)