A couple of months ago I rooted my HTC Desire and installed Cyanogen Mod 7 (CM7). The process was a bit fiddly as I worked my way through various guides and a couple of discussions on the CM7 IRC channel, but I got there. Now, three months later I’m doing it again on another phone, and have had to go digging through the same websites!
For future reference, I’m going to document the process here. I’ve taken most of this from two or three other sources, which I’ll link to at the end of this post.
I’m currently running Windows 7 Professional, but when I rooted the first phone I was on a computer with Windows XP Professional. The same steps and software are applicable for both these operating systems.
I have broken the guide into 7 steps:
- Make a back-up
- Install HTC Sync on your computer
- Install the HBOOT driver on your computer
- Gain S-OFF and install a Custom Recovery Image
- Flash CyanogenMod with Clockwork
- Partition SD Card and move apps
- All done!
1) Make a back-up
Everything on the phone will be wiped during this process, so it’s a good idea to make a back up of important content. Contacts are generally synced to your Google account so should flow through. There are various apps available for backing up SMS messages (SMS Backup+ is one that I use all the time) and a quick search of the Google Play store will return a selection of backup apps for other aspects of your phone.
2) Install HTC Sync on your computer
Although you don’t need the HTC Sync software on your computer, it is necessary to have the HTC Sync driver so that Revolutionary is able to connect to your phone and install the custom Recovery image.
You can download the HTC Sync driver here. Just download and run the EXE file, then follow the prompts to complete set up.
3) Install the HBOOT driver on your computer
During the rooting process, your phone will reboot into the bootloader. So that your computer can connect to your phone during that time, you will need to install the HBOOT driver. Download the driver here, then follow these steps:
- Turn off your phone.
- While your phone is off, remove your battery and take note of the serial number (you’ll need this in the next section).
- While holding down the Volume Down key, press and hold the Power button. Your phone will boot into the HBOOT menu.
Note: You navigate the HBOOT menu by using the Volume Up and Volume Down keys to select items, and press the Power button to make a selection. - Write down your HBOOT version (you’ll need this in the next section).
- Connect your phone to your computer via USB. Windows should identify the device, but will most likely fail in installing the drivers.
- When prompted to install the drivers, select the ‘Have Disk’ option and navigate to the HBOOT driver you downloaded earlier.
- Once the driver is installed, your phone should be recognised on your computer as an Android Bootloader Interface.
Warning: Gaining S-OFF will void your warranty. Proceed at your own risk.
This section will gain S-OFF and install a customer recovery image called Clockwork. This is required to root your phone and will allow you to install CM7 in the next section.
- Download Revolutionary from this site.
- Select the Windows version, and fill out the Beta key form (you will need the HBOOT version and serial number you noted in the previous section).
- Turn on your phone.
- Connect the phone to your computer via USB and select the option to connect your phone with HTC Sync. (If you only installed the HTC Sync drivers and don’t have the full program, your phone won’t be able to perform a sync. This doesn’t matter – just make sure you are in HTC Sync mode).
- Once Revolutionary has downloaded, launch the program and enter your beta key (take care of upper and lowercase letters).
- Revolutionary will root the HTC Desire (GSM) and set S-OFF. You will be prompted to install a custom recovery image – select yes to proceed.
5) Flash CyanogenMod with Clockwork
- Download the latest stable version of CM7 from this page. Note that CM7 does not include the Google Apps. I suggest you also download the Google apps file here, which also includes the Market / Google Play Store app.
- Copy the CM7 and Google Apps zip files into the root of your SD card (they should not be in any folders).
- While holding down the Volume Down key, press and hold the Power button. Your phone will boot into the HBOOT menu.
Note: You navigate the HBOOT menu by using the Volume Up and Volume Down keys to select items, and press the Power button to make a selection. - Select Recovery and press the Power button to select.
- Select Backup & Restore to create a backup of your current system.
Note: In Recovery, make a selection by pressing the Trackball button. - Select the option to Wipe data/factory reset.
- Then select the option to Wipe cache partition.
- Select Install zip from sdcard.
- Select Choose zip from sdcard.
- Select the CM7 zip file you downloaded earlier.
- Once the installation is complete, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. Your phone should now boot into CyanogenMod 7.
For me, the main reason for installing a custom ROM was so that I could mount my SD card and move away from the limited amount of internal memory that came with the phone. It’s recommended that you use a Class 6 or higher Micro SD card (Wikipedia has a handy article on Micro SD Card speeds). I bought a 16GB Sandisk Micro SDHC Ultra Class 10 card ($19 from CPL). Mounting 2GB has left me with 13GB or SD card for photos and music, and I haven’t encountered any performance issues running apps installed on the card.
Once you have your SD card, follow these steps to format the card and then move your phone apps across to the card:
- With the SD card already inserted in your phone, boot into HBOOT then navigate to Recovery.
- Select Advanced > Partition SD Card.
- Select your preferred partition size. I went with 2048 MB which seems to be plenty of space.
- Select 0 MB for the swap memory.
- Once the card is partitioned and formatted, reboot the system.
- Download and install S2E Free from the Google Play Store.
- Launch S2E and grant it Super User permissions.
- Select Applications, Application Data and Dalvik cache to move to the newly created SD-EXT partition.
- Reboot your phone. During this reboot S2E will move your apps and data across to the SD card. This is a once of activity – from now on the SD-EXT partition on the card will be mounted and used as standard phone memory when you start the phone.