Disclaimer: Please note that rooting should be done at your own risk and that I will not be responsible for any issues that come up due to rooting, though I can surely help to fix the issues
What is rooting:
Rooting is a method to gain super user access (root) in your phone. tasks like modding the firmware, installing a different ROM etc. can be accomplished after gaining super user access. Some might ask why we need to take risk and load custom ROM? Android was supposed to be open platform, giving users some freedom but thanks to the madness among manufacturers to customize the UI (senseUI, touchwiz, motoblur), the end users suffer huge delays in getting OS updates. best example would be SE Xperia phones. X10 is still stuck on 1.6 and users are desperate to get newer version which is lot more faster and they are at the mercy of SE. Same is the case with other manufacturers. While Froyo was release couple of months ago, there is no sign of updates for most of the current gen phones. Thanks to the rooting methods, we will be able to load and use ROMs that are having all the latest-and-greatest updates (cooked by independent developers). Sometimes, these custom ROMs run faster than factory UI and are lighter too.
State of the Legend:
HTC Legend currently runs Android 2.1 (Éclair). While HTC said that it will push Froyo updates for legend, nobody knows when that will be done. I personally felt that, though SenseUI is awesome and makes lot of tasks easier, it eats lot of resources and sometimes gets in the way. The custom ROM that I am going to use (Cyanogen 6, Azure) is lighter, faster and without SenseUI. This ROM also allows you to move the apps to SD card which is a huge plus, given the number of apps available for download and the limited internal memory size. Here is a list of great features that are available in Azure ROM:
Based on Froyo, which means its faster and lighter on resources.
no Sense UI, takes less space and better battery life.
rooted, super-user access and terminal emulator available.
options to install custom boot loader
allows installation of hundreds of apps that can be run only on rooted phones.
The latest ROM (2.05 or 2.1) does not allow rooting and the only way to root the phone is to downgrade the firmware to 1.3x and then root the phone. The process to follow is:
Create a goldcard
downgrade legend to 1.31
root the firmware
install ROM Manager
install Froyo ROM with Google apps.
A formatted micro SD card
Fully charged phone
Linux PC if possible else a windows PC (better stick to 32-bit OS for now)
Backup tools to backup existing data on your Android phone.
Things to do before rooting:
Before you do the rooting and Froyo install process, Please use the backup tools to backup all your data (sms, contacts, application list, bookmarks and other data). Installing new ROM removes erases user data.
The first step in this process is to create a goldcard. A goldcard turns your device into a generic device, thereby allowing modifications like installing another firmware possible. There are different methods to create a gold and the following, I felt, is the easiest of all. Please use a secondary or unused SD card for this purpose.
- A formatted SD card is necessary for this. A gold card is nothing but a formatted SD card with modified CID. Insert the SD card in the phone and format the card (Settings -> SD Card & Phone Storage -> Unmount SD Card -> Format SD Card).
- Download klutsch’s goldcard creation tool from here. Run this tool as administrator. (this tool is windows only)
- Enable USB Debugging mode in your phone (Settings -> Applications -> Development -> USB Debugging) and connect the phone to your windows PC.
- Click on “Get CID” Tab and copy the cid that is generated. In case you get any error, select MMC0.
- Open the link “http://psas.revskills.de/?q=goldcard“, enter your email id and the CID. You will then get the goldcard image to the mentioned email id.
- Download the goldcard image to PC, from the goldcard creation tool, click on ‘load GoldCard.img’, select the image that you just downloaded and click on “Patch MMC”.
- Voila, you now have your goldcard. Please do not use this card for any other purpose till the rooting process is over and it’s time to downgrade the OS.
Remove the goldcard and use the primary card till the goldcard is needed
Downgrade the OS:
Download the following packages before starting this process:
- Android SDK (copy the SDK to C:, add c:\androidSDK\Tools to your windows path)
- RUU 1.31 for Legend
Connect your phone to Linux host now in ‘charge only’ mode. copy the contents of hack4legendv5.zip to androidSDK/tools directory and then run the script ‘crackin.sh’. Run crackin.bat if you do not have a Linux box and are using windows pc. The phone will reboot couple of times and there will be lot of errors shown in the terminal. In the end look for the line showing permissions for the file /dev/mtd/mtd0. It should look like this:
crwxrwxrwx 1 1001 2002 90, 0 Jul 19 16:19 /dev/mtd/mtd0
This means that your phone is ready for OS downgrade. For the next step, you do need a winodws host.
now, connect your phone to windows phone in ‘charge-only’ mode and execute the file RUU_Legend_HTC_WWE_1.31.405.5_R_Radio_47.26.35.04_ 7.05.35.26L_release_126592_signed.exe and just follow the instructions and the phone will reboot to 1.31 version of firmware. And it’s time for Legend to get rooted.
Root the Legend:
Time to use the goldcard. insert the goldcard and connect the phone to pc in ‘charge only’ mode.
Download the file r4-legend-root.zip from here. Unzip the file to a directory and cd to the directory.
Switch off your Legend, switch it back on in ‘fast boot’ mode (keep the back button pressed while switching the phone ON). When you see that the phone has booted into fast boot screen.
connect the phone to Linux or windows pc (preferably Linux) and run ‘./step1-linux.sh’ (linux) or step1-windows.sh (windows).
You can now remove or format the goldcard. I would keep the goldcard for now as if there is any issue the above step need to be run again with goldcard.
Now Select RECOVERY option. Fastboot screen –> Boot loader -> recovery. You need to use phone’s volume rocker to move up/down the menu and power button to select the option. The phone screen should now show a phone with red caution sign.
From the terminal window, run ‘./step2-linux.sh’ (linux) or step2-windows.sh (windows). Once this step is completed, the phone will be back in recovery mode. From the options, select ‘wipe data’ and then select the option to update the ROM, select the file ‘rootedupdate.zip’ from SD card. The rooting process will now start and after few minutes, the phone will boot with rooted firmware.
Now, the easy way to install custom ROM is by using ROM Manager. You can backup/restore existing ROM.
Install Azure ROM with Google apps:
Download the files Azure ROM (http://derhofbauer.at/android/downloads/roms/azure-1.0.1) and Google Apps (http://derhofbauer.at/android/downloads/addons/gapps-az-20100816-1.0) from your PC and copy them to the SD Card. Start ROM Manager and first use ‘Backup Current ROM’ to backup existing ROM. Once the backup is completed, select “Install ROM from SD Card” and select Azure first, followed by Google Apps patch. You will see option to clear used data. select the option and start Azure install. Few minutes later, the phone will boot into CyanogenMod 6 Froyo ROM and you are done.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.