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

Preparation:

  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)

Steps:

  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 ;))

Switch from Sense to Launcher Pro

Download Launcherpro from the marked.

Go to Settings>Applications>Manage Applications. Find HTC Sense and click on it.

scroll down a bit…you should see a button about restoring default…click that.

hitting home after this will present you with a menu of both launcher pro and Sense.

pick launcher pro…click the check box for default…and you’re done!

How to root HTC Desire from from official 2.2 Froyo firmware

Source: http://www.android-tutorials.org/dev/?page_id=78

I make some small additions because the original article was not very clear at the USB installation.

DONT USE THIS WITH HBOOT 0.83 or 0.93 SLCD DEVICES!!!
OTHERWISE YOUR PHONE WILL END UP WITH A DEAD SCREEN!

Overview

  1. Requirements
  2. Step 1 – downgrade (Video: Step 1 on youtube)
  3. Step 2 – root with unrevoke recovery
  4. Step 3 – repair /misc partition (Video: Step 3-4 on youtube)
  5. Step 4 – flash custom or stock rom

Please follow this step-by-step tutorial to go back to HBOOT 0.80

!!!! ROOTING / FLASHING / DOWNGRADING IS ALWAYS ON YOUR OWN RISK !!!!
Attention: This method will completely wipe your phone!!!

Requirements

  1. Make a NEW Goldcard (here) depending on your device (branded or not)
    It can be that your CID has changed so you have to make a new goldcard. You can try your existing card as well!
  2. MIRROR Download PB99IMG.zip (DE)
    MIRROR by Shipped-Roms
    MIRROR 2
    MIRROR by AdamG (UK)
  3. Rename the downloaded file to PB99IMG.zip [NOT zip.zip !!!] and copy it to the root directory of your SD Card. (Just to your SD Card, NOT into any subdirectory!)
  4. Download this misc_update.zip to repair your misc partition in Step 3 and copy it to your SD card as well.
  5. Download your desired ROM (custom or stock whatever you like) and copy it to your SD Card. Don’t name it update.zip!
Step 1 – downgrade (Video: Step 1 on youtube)
  1. Shutdown your device
  2. Hold volume DOWN and press power button
  3. Wait until PB99IMG.ZIP was found and verfied. If that fails, check if you named the file the right way and it’s located in the root of your SD.
  4. Press volume UP to start the update.
  5. Wait until all steps are done. DON’T POWER OFF YOUR DEVICE!
  6. After the downgrade progress has finished press volume UP to reboot.
  7. When the phone has started mount SD card and REMOVE PB99IMG.zip
  8. Unmount SD card and continue with the next step…
Step 2 – root with unrevoke recovery
  1. Uninstall HTC Sync completely
  2. Download unrevoke recovery here
  3. Enable USB debugging on your phone (under settings > applications > developments >USB Debugging).
  4. Download the unrevoke recovery USB driver here
  5. Install the drivers when the phone is in debug mode
  6. Install the drivers when the phone is in boot mode (shutdown > press volume down > power button)
  7. Start unrevoke and follow the instructions
  8. If unrevoke has finished you should be in custom recovery.
Step 3 – repair /misc partition (Video: Step 3-4 on youtube)
  1. You are still in custom recovery mode
  2. Select ‘install zip from sdcard‘ (Use Vol + and – to navigate and trackball)
  3. Select ‘choose zip from sdcard
  4. Select ‘misc_update.zip‘ from SD und confirm it with yes. Maybe you have to scroll down till you can see the file!
  5. After that your /misc partition should be repaired
  6. Go Back to custom Recovery menu.

Step 4 – flash custom or stock ROM

  1. You are still in custom recovery mode
  2. Select ‘install zip from sdcard‘ (Use Vol + and – to navigate and trackball)
  3. Select ‘choose zip from sdcard
  4. Select your desired ROM Zip-file from SD und confirm it with yes. Maybe you have to scroll down till you can see the file!
  5. After the flashing progress has finished use the back key and then select reboot. This may take some minutes.
  6. Congratulations. Now you have a re-rooted HTC Desire with HBOOT 0.80