Setup ADB and Fastboot with Android SDK on Mac OSX

[banner]

Download Android SDK (original article @ http://androidtricks.net/setup-adb-and-fastboot-android-sdk-mac-osx-18)

Download and extract Android SDK from http://developer.android.com/sdk/index.html to your desktop

Browse to Tools and double click “android”. It will open up a terminal window and load the SDK.

Install packages

Here go to “Available Packages” and select what you want to download. I selected everything. Wait for the packages to download and install.

Set the Path

Next you need to update the PATH for tools/ and platform-tools/ folder. To do this you need to edit your ~/.bash_profile (create it if you don’t already have one). Add the following two lines

export PATH=${PATH}:/Users/(username)/Desktop/android-sdk/tools
export PATH=${PATH}:/Users/(username)/Desktop/android-sdk/platform-tools

Download Fastboot

Now go to http://developer.htc.com/adp.html scroll to the middle of the page and download Fastboot binary for OSX. Because HTC host no longer the fastboot binary you can download the version on my blog. Unzip it and place it in /tools/

 

Now your all set for ADB and Fastboot

Tnx http://androidtricks.net/ for the article!

To check if your fastboot works you can start your terminal and cd /Users/(username)/Desktop/android-sdk/tools
then run ./fastboot-mac devices

When you some output you are connected. Happy modding!! 🙂

Note: please check the comments for more feedback

[banner]

HTC Restore to stock / factory ROM

If you must sent your phone back to the factory because of your hardware warranty, make sure your phone is running a stock rom. I will tell you how to restore your phone back to stock.

After this tutorial your phone is completly unrooted, s-on and with a HTC stock radio 🙂

Ok, lets started

  1. Make a backup of all your files
  2. Connect your phone to your pc
  3. Pull down the android menu and switch from charging to HTC Sync (on the phone)
  4. With HTC Sync wizard (PC) give your phone some name (if you run HTC Sync for the first time)
  5. Now run the signed exe file your downloaded @ shipped-rom
  6. Follow the wizard to flash the rom

Now your phone is back to stock. Enjoy your warranty 😀

Android 2.2: Install all apps to SD (even the unsupported apps)

Because a lot of android phones have a really small disk (NAND) you must move all the apps manually to SD. You can automate this with an tool on the marked (easy way).

  1. Search for modinstalllocation in the marked
  2. download and install this.
  3. Start the tool and set the value on 2 external

The hard way:

  1. Connect the phone using the android SDK. (If you don’t know how, you can use my tutorial https://blog.wapnet.nl/2011/03/windows-7-x64-android-sdk-example-connect-htc-desire/)
  2. Now start cmd
  3. change folder to C:\Program Files (x86)\Android\android-sdk\platform-tools
  4. Now run the following command:

adb shell pm setInstallLocation 2

Note: For both options you’re phone don’t have to be rooted  😉

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