HTC Magic (32B): Rooting

From CyanogenMod Wiki
Jump to: navigation, search

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.

Rooting

Downgrading to 1.5

The version you'll be downgrading to has a security hole which you will exploit in order to get root.

  1. Download SAPPIMG.nbh COC10
    md5sum: 33d958062cc02bb2cec157f68621d2ff
  2. Download FlashRec
    md5sum: 7e3f43760783348c02130f26e25df486
  3. Format your SD card to FAT32
    • Windows: Right-click on SD icon and select format
    • Mac users: Start Disk Utility, Partition the card
    • Linux: Use gparted (it's in the repositories of your favorite distro)
  4. Copy the COC10 build (SAPPIMG.nbh) file (and no others!!) to your SD card.
  5. Shut down the device.
  6. Reboot into fastboot by holding Volume Down + Power (you should see three Androids on skateboards)
    • On the DoCoMo HT-03A, press the Back button + Power to enter fastboot.
  7. Follow the on-screen instructions to flash the image. On some handsets it may require pressing the action button (trackball), while on others it may require pressing the power button.
    Note: If you get an error saying "Main version is older" or "Incorrect Model ID" you'll need to create a goldcard. Follow goldcard instructions (including the revert to 32B Radio and Rom). When you reach the 'apply update' step, skip to the 'Install CyanogenMod latest' link.
  8. Reboot when device is done updating. You now have the one-click vulnerable version of the firmware.

Install Cyanogen Recovery.img

  1. Open the Android Market and find and install "App Installer".
Note: You may have to configure the device provider APN (menu - configure APN) to sign-in to Google services
  1. Erase sappimg.nbh from your SD card and copy FlashRec to your SD card.
  2. Run App Installer and install FlashRec.
  3. Launch FlashRec. Use it to back up your recovery image.
  4. Flash the new recovery image included in FlashRec by pressing the button labeled "Flash Cyanogen Recovery 1.4"
  5. Reboot into recovery mode from FlashRec, or hold Power + Home after shutting down. You should see the new Cyanogen recovery screen.

Installing a Custom Recovery Image

The Cyanogen Recovery.img is no longer maintained. You should replace it with a custom recovery image. There are two custom recovery images available for the Magic: Amon_Ra's and ClockworkMod.

Amon_Ra's Recovery

Recommended

Amon_Ra is only available if you follow the Traditional Method above.

  1. Download Amon_Ra 1.7.0G
    md5: 8846b53e3184d688e3e8a628ad81074f
  2. Rename Amon_Ra's Recovery Image to recovery.img.
  3. Copy the recovery.img to the root of the SD card (NOT in any folders).
  4. Disconnect the HTC Magic from the computer.
  5. Open Android Telnet Client and type
    flash_image recovery /sdcard/recovery.img
  6. Once the Amon_Ra's Recovery is finished installing, you will see # # on the screen below the line you've just typed.
  7. Amon_Ra's Recovery should now be installed on the HTC Magic.

ClockworkMod Recovery

ClockworkMod is not recommended for the Magic due to low memory issues and file corruption.
  1. Download the latest version of the ClockworkMod Recovery (2.5.0.7).
  2. Rename the ClockworkMod Recovery Image to recovery.img
  3. Copy the recovery.img to the root of the SD card (NOT in any folders).
  4. Disconnect the HTC Magic from the computer.
  5. Open Android Telnet Client and type
    flash_image recovery /sdcard/recovery.img
  6. Once the ClockworkMod Recovery is finished installing, you will see # # on the screen below the line you've just typed.
  7. The ClockworkMod Recovery should now be installed on the HTC Magic.

Flashing CyanogenMod

Please follow the Flashing CyanogenMod guide to continue.
Personal tools