Saturday, December 10, 2011

Cyanogen Mod on HTC Hero

HTC Hero (GSM): Full Update Guide

This guide will walk you through the process of taking the HTC Hero (GSM) from stock to having the ability to flash the latest version of CyanogenMod.

Contents

Before you do anything — Make a backup

Don't forget to back up your data. If you have synced the device with a Google account, then the contacts, calendar, Gmail, & select other Google-related data will not be lost and will come back after the next sync. However, you should backup anything you want to keep that is not stored on the SD card:
It would also be a good idea to backup everything stored on the SD card in the rare case the SD card must be formatted to resolve any major problems.
MyBackup Root, SMS Backup & Restore, and Call Backup & Restore are all free applications that can assist with backing up your data.

Installing a Custom Recovery Image

For the HTC Hero (GSM), there are two custom recovery images available, Amon_Ra's Recovery & the ClockworkMod Recovery. Choose one and follow the instructions below on how to install each custom recovery image. If the HTC Hero (GSM) already has a custom recovery image, skip this section.
WARNING: INSTALLING A CUSTOM RECOVERY IMAGE ON THE HTC HERO (GSM) WILL VOID THE WARRANTY.
Amon_Ra's Recovery
  1. You will need ADB on the computer to install Amon_Ra's Recovery on the HTC Hero (GSM). Follow the Android SDK guide, to get the ADB shell on the computer.
  2. Download flash_image & the latest version of Amon_Ra's Recovery:
    • flash_image: Download
      md5: bd475f29e0665c702f8eaf57a0423b58
    • Amon_Ra's Recovery 1.7.0.1: Download
      md5: 2c399ba2d780742c1eb8bb2710a31684

  3. Unzip the flash_image &and copy its contents with Amon_Ra's Recovery to the same folder as adb (the /platform-tools folder within the Android SDK folder).

  4. Connect the HTC Hero (GSM) to the computer via USB.

  5. On the computer, open terminal and run the following commands:
    adb push recovery-RA-hero-v1.7.0.1.img /data/local/
    adb push flash_image /data/local/
    adb shell chmod 777 /data/local/recovery-RA-hero-v1.7.0.1.img
    adb shell chmod 777 /data/local/flash_image
    adb shell rm /data/local/rights/mid.txt
    adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
    adb reboot

  6. The HTC Hero (GSM) will reboot. Once it's booted back all the way, run the following command:
    adb shell /data/local/flash_image recovery /data/local/recovery-RA-hero-v1.7.0.1.img

  7. Amon_Ra's Recovery should now be installed on the HTC Hero (GSM).
ClockworkMod Recovery
  1. You will need ADB on the computer to install the ClockworkMod Recovery on the HTC Hero (GSM). Follow the Android SDK guide, to get the ADB shell on the computer.
  2. Download flash_image & the latest version of the ClockworkMod Recovery:
    • flash_image: Download
      md5: bd475f29e0665c702f8eaf57a0423b58
    • ClockworkMod Recovery 2.5.0.7: Download
      md5: 4e576c048d8d4d8890e755992577a5b
  3. Unzip the flash_image &and copy its contents with the ClockworkMod Recovery to the same folder as adb (the /platform-tools folder within the Android SDK folder).

  4. Connect the HTC Hero (GSM) to the computer via USB.

  5. On the computer, open terminal and run the following commands:
    adb push recovery-clockwork-2.5.0.7-hero.img /data/local/
    adb push flash_image /data/local/
    adb shell chmod 777 /data/local/recovery-clockwork-2.5.0.7-hero.img
    adb shell chmod 777 /data/local/flash_image
    adb shell rm /data/local/rights/mid.txt
    adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
    adb reboot

  6. The HTC Hero (GSM) will reboot. Once it's booted back all the way, run the following command:
    adb shell /data/local/flash_image recovery /data/local/recovery-clockwork-2.5.0.7-hero.img

  7. The ClockworkMod Recovery should now be installed on the HTC Hero (GSM).

 

Flashing CyanogenMod

Amon_Ra's Recovery process
  1. Download the latest version of CyanogenMod.
    Optional: Download the Google Apps for the device.

  2. Place the CyanogenMod update.zip file on the root of the SD card.
    Optional: Place the Google Apps .zip on the root of the SD card also.

  3. Boot into Amon_Ra's Recovery.

  4. Once you enter Amon_Ra's Recovery, scroll up & down with the trackball, and the trackball button to select.

  5. Select Wipe, then Wipe data/factory reset

  6. Select Flash zip from sdcard.

  7. Select the CyanogenMod update.zip.
    • Optional: Install the Google Apps by performing steps 6 & 7 again and choosing the Google Apps update.zip.

  8. Once the installation has finished, select Reboot system. The HTC Hero (GSM) now should boot into CyanogenMod.
ClockworkMod Recovery process
Method via Recovery
  1. Download the latest version of CyanogenMod.
    Optional: Download the Google Apps for the device.

  2. Place the CyanogenMod update.zip file on the root of the SD card.
    Optional: Place the Google Apps .zip on the root of the SD card also.

  3. Boot into the ClockworkMod Recovery.

  4. Once the device boots into the ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select.
    Optional: Select backup and restore to create a backup of current installation on the HTC Hero (GSM).

  5. Select the option to Wipe data/factory reset.

  6. Then select the option to Wipe cache partition.

  7. Select Install zip from sdcard.

  8. Select Choose zip from sdcard.

  9. Select the CyanogenMod update.zip.
    Optional: Install the Google Apps by performing steps 7 - 9 again and choosing the Google Apps update.zip.

  10. Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. The HTC Hero (GSM) should now boot into CyanogenMod.
Method via ROM Manager
  1. Launch RomManager.
    Optional: Choose the first option in the app, Flash ClockworkMod Recovery to update to the latest version.

  2. Select the Download ROM option from the main menu in the ROM Manager.

  3. Select the CyanogenMod option, and then choose the latest version of CyanogenMod from the menu.
    Optional: When you select the latest version of CyanogenMod, check the Google Apps* option.

  4. Once the ROM is finished downloading, it asks if you would like to Backup Existing ROM and Wipe Data and Cache.

  5. If Superuser prompts for root permissions check to Remember and then Allow.

  6. The HTC Hero (GSM) will now reboot into the recovery, wipe data and cache, and then install CyanogenMod. When it's finished installing it will reboot into CyanogenMod.

Taken From: http://wiki.cyanogenmod.com/wiki/HTC_Hero_(GSM):_Full_Update_Guide

No comments: