Full Update Guide - MT3G/Magic Firmware to CyanogenMod
From CyanogenMod Wiki
Contents |
[edit] Prior to doing anything
Don't forget to think about backing up your data. Contacts and google data will not be lost and will come back after the next sync but you should backup your ringtones for instance because the following ROMs include only one.
In order to begin this process, data coverage is necessary. If you do not have network coverage, you will not be able to associate your google account with your phone at the sign-in screen after flashing your phone. So, be sure you have coverage and an appropriate SIM card before beginning the process.
This guide only applies to 32B units. 32A devices require an additional kernel package to be installed and the process is outlined here
[edit] 1.5 downgrade and FlashRec
[edit] Tested units
The following procedure has been applied successfully on the following handsets (please add yours if it's not yet listed and you were successful):
- T-Mobile USA MyTouch 3G
- HTC Magic labeled "With Google" and provided by the French cellphone company SFR (32B)
- Vodafone HTC Magic UK (32B, unlocked) mixed results
- Vodafone HTC Magic NL (32B, unlocked)
- Vodafone HTC Magic IT (32B)
- Swisscom HTC Magic CH (32B)
- Vodafone HTC Magic DE (32B)
- Vodafone HTC Magic ES (32B)
- Vodafone HTC Magic NZ (32B, unlocked, SPL 1.33.0004(SAPP10000)) Successfully executed the "non-TMobile 32B Magics" procedure.
- Vodafone HTC Magic NZ (32B, unlocked) Successfully downgraded, rooted and upgraded to 4.2.14.1
- Vodafone HTC Magic AU (32B) Successfully executed the "non-TMobile 32B Magics" procedure.
- Rogers HTC Magic CA (32A)
- Chung Hwa/Hami HTC Magic TW (32A, unlocked)
- NTT Docomo HTC Magic JPN (32B unlocked downgraded rooted and upgraded to latest)
- DOWNGRADING TO 1.5 FAILED: Vodafone HTC Magic ES (Spain) (32B) Official 1.6 updated OTA
- UPDATE SUCCESS: Vodafone HTC Magic ES (Spain) (32B, unlocked and rooted previously)
- UPDATE SUCCESS: Vodafone HTC Magic ES (Spain) (32B, unlocked and NOT rooted previously DOWNGRADE NOT REQUIRED, see below)
- TMN HTC Magic PT (32A)FAILED
[edit] Downgrading from 1.6 TO 1.5 and Rooting for T-Mobile MT3G
*Note: Data Plan required!
The version you'll be downgrading to has a security hole which you will exploit in order to get root.
Files you will need:
- Download the COC10 build of Cupcake from http://www.megaupload.com/?d=BLM4EDGE (Faster Mirror) (sappimg.nbh)
md5sum: 33d958062cc02bb2cec157f68621d2ff
- Download FlashRec from http://g1files.webs.com/Zinx/flashrec-20090815.apk
md5sum: 7e3f43760783348c02130f26e25df486
- 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)
- Copy the COC10 build (sappimg.nbh) file (and no others!!) to your SD card.
- Shut down your phone.
- Reboot into fastboot by holding Volume Down + Power (you should see three Androids on skateboards)
-
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.
- If you get an error saying "Main version is older" or "Incorrect Model ID" you'll need to create a goldcard. Follow goldcard instructions and the continue with the next step. <-- DOESN'T WORK ANYMORE :(
- Reboot when phone is done updating. You now have the one-click vulnerable version of the firmware.
- Load the Android Market and find/install "App Installer".
- Either shut down your phone and take out the SD card, or plug in your USB and mount it.
- Erase sappimg.nbh from your SD card, and copy over the APK of FlashRec. (READ AHEAD to "Flash Android 1.6 & CyanogenMod 4.2.x/4.1.99+" Also Add "DRC83_base_defanged.zip" & "update-cm-4.2.x-signed.zip" If you dont have SD Card reader they need to be on SD Card for later on.)
- Start up your phone or unmount the SD card, then run App Installer and install FlashRec from its APK.
- Launch FlashRec. Use it to back up your recovery image.
- Download the new recovery image from FlashRec
- Flash the new recovery image.
- Reboot into recovery mode from FlashRec, or hold Power + Home after shutting down. You should see the new Cyanogen recovery screen.
[edit] File Download
For legal reasons, CyanogenMod can not distribute Google specific apps with his ROMS. The way around this is to download and install the legal Google apps and then install CyanogenMod on top of those apps. The good news is that it works, the bad news is that it requires an extra step or two in the install process. Most people will need only two files.
- Download the HTC Android 1.6 base image:
md5sum: 081379e9b525484bcd1ee42bd0031a4c
- Download the latest CyanogenMod ROM for your device:
- Put all necessary files on your SD card
[edit] Flash Android 1.6 & CyanogenMod 4.2.x/4.1.99+
You will now install the actual OS on the phone. First you will install the legal Google apps, and then you will install CyanogenMod on top of those apps.
- Turn your phone off.
- Hold the Home button while booting to get to Recovery mode.
- Select "wipe data/factory reset") (MT3G/Magic boots to andrOid then black screen with back-lite otherwise.)
- Press home to confirm
- Select "apply any zip from sd")
- choose "DRC83_base_defanged.zip"
- Press home to confirm and let installation complete ('Formatting Cache' will stay at the bottom of the screen but once the menu reappears, the flashing is complete)
- STOP - DO NOT REBOOT YOUR PHONE
- Again, select "apply any zip from sd")
- choose "update-cm-4.2.x-signed.zip"
- Press home to confirm and let installation complete
- When this is complete, reboot your phone by pressing Home & Back or selecting that option.
- Wait. This will take a couple of minutes. Be patient!
[edit] Non-TMobile 32B Magics
If the above doesn't work for you, don't despair. Some non-US Magics are shipped with a fastboot compatible SPL installed. If you see 3 skateboarding androids when you boot to fastboot, you should be able to do the following:
Prep:
- Install the Latest Android sdk
- If it's not present in the 'tools' directory, get the fastboot binary http://developer.htc.com/adp.html#s2
- Get the latest AMON_RA recovery from here:
- http://forum.xda-developers.com/showthread.php?t=530492
- Be sure to get the G version of the recovery. Newest version now is 1.5.2H
- Save it to a folder that is easily accessible, such as the desktop
- Download the Defanged HTC Android 1.6 base image:
- DRC83_base_defanged
- Mirror: DRC83_base_defanged
-
md5sum: 081379e9b525484bcd1ee42bd0031a4c
- A defanged image is the HTC base with the boot.img, radio.img and recovery.img removed
- Download the latest CyanogenMod ROM for your device:
- Put the Defanged base and the newest CyanogenMod ROM on your SD card
Installation:
- Plug the phone into the computer
- Reboot into fastboot by holding Back + Power (you should see three Androids on skateboards) and the words 'fastboot USB' in red
- On the computer, open a command prompt
-
cd to the sdk/tools directory (we will assume the SDK is located in C:\android-sdk and the recovery file is in the root of the C:\ drive for the following steps
-
cd C:\android-sdk\tools -
fastboot boot C:\recovery-RA-sapphire-v1.5.2G.img
-
- You should see the following message on the computer:
downloading 'boot.img'... OKAY booting... OKAY
- The phone should reboot into Amon_RA's recovery
- Screenshot of Amon_RAs recovery
- If it still says <waiting for device> try fiddling with cable, rebooting phone, rebooting the computer, etc until it recognises the device properly
- Make a nandroid backup of your current state so you can easily restore to an unrooted state
- With the phone connect via USB, open up a cmd prompt
-
adb devices- A device name and 'recovery' should be returned
-
adb push C:\recovery-RA-sapphire-v1.5.2G.img /sdcard/RA152G.img- Where C:\recovery...img is the location of the recovery.img on your computer
-
adb shell flash_image recovery /sdcard/RA152G.img- This permanently flashes the recovery.img to your phone, you can now boot into it by holding Home while powering on the device
-
- Perform a wipe/factory reset
-
Apply ROMs
- First apply the Defanged base
- Without rebooting, now apply the CyanogenMod ROM
- Reboot
- The first boot may be a bit slow
- If the phone doesn't boot past the Vodafone screen after 10min, press and hold Send+End+Menu, as soon as the screen does black hold Home to boot into recovery. Confirm the md5sums of the defanged base and the CyanogenMod ROM. Then rewipe, and reflash the base and ROM
Welcome to CyanogenMod
- You now have a custom recovery and a fresh install of CyanogenMod. To update CyanogenMod, follow Upgrading from 4.1.99 or higher:
[edit] Spanish Vodafone 1.6 NOT rooted
Download haykuro's SPL update from here:
Boot with RA's custom recovery or whatever (I used 1.2.3, 1.3.2 should work ok) via fastboot.
Apply the SPL update.
Now you can flash the CR to the phone with no probs. Do it and reboot to it from the phone (HOME + POWER)
Now you've got the patched SPL up and running PLUS the CR. Go ahead and install the latest CyanogenMod ROM as described in the first section).
That's it! No downgrade, no previous rooting. :)
[edit] Google Dev Phone 2 (ION)
[edit] File Download
Due to recent events, CyanogenMod can no longer distribute Google specific apps with his ROMS. The way around this is to download and install the legal Google apps and then install CyanogenMod on top of those apps. The good news is that it works, the bad news is that it requires an extra step or two in the install process.
- Download the Android 1.6 Recovery Image:
- for Dev Phone 2, use this image: (DRC83_base_defanged)
- Avoids Android market not working or missing, Data Syncronization settings not working, etc.
- for Dev Phone 2, use this image: (DRC83_base_defanged)
- Download the latest CyanogenMod ROM for your device:
- Put both of these files on your SD card (in zip format)
[edit] Flash Android1.6 & CyanogenMod latest
You will now install the actual OS of the phone. First you will install the legal Google apps, and then you will install CyanogenMod on top of those apps.
- Fastboot a recovery image
- These instructions are based on this image: (recovery-RA-sapphire-v1.5.2G.img)
- To enter fastboot mode, power up the device (or reboot it) while holding down the BACK key. Hold the BACK key down until the bootloader screen is visible and shows "FASTBOOT". The device is now in fastboot mode and is ready to receive fastboot commands.
- In the Android SDK tools directory run: fastboot boot recovery-RA-sapphire-v1.5.2G.img
- Optional Step
- If you wish to have an option to return to your factory settings, select Backup/Restore and do a Nand Backup. If not, continue.
- Select Wipe to clear all user programs and data. (can avoid problems)
-
select "Flash zip from sdcard"
- select DRC83_base_defanged.zip and wait for it to complete.
- STOP - DO NOT REBOOT YOUR PHONE
-
select "Flash zip from sdcard"
- Select update-cm-4.2.x-signed.zip and wait for it to complete
- Select update-cm-4.2.x-signed.zip and wait for it to complete
- When this is complete, reboot your phone using the menu.
- Wait. Your phone will say writing radio image and then reboot. This will take a couple of minutes. Be patient! (though this should not take longer than 10 minutes)
- If the phone enters Recovery mode after rebooting, press Home & Back again to reboot it once more. You should see the blue CyanogenMod Android logo this time.
