How to root the HTC Legend (vodafone UK)
June 24th, 2011 | Posted by Chirag Vadhia
If any of the images appear to be blurred, click on them to enlarge them.
NOTE: This guide is only tested on a vodafone HTC Legend (UK) with
H-Boot 1.00 (To check the version of your H-Boot, turn off your phone if
it's not already off and hold down the power button and volume down key at
the same time. You should see a screen similar to the one below. If the
H-Boot version line is 1.000, this guide will work for you. H-Boot, is your Android bootloader and allows you to boot into Android. Without
it, if you turned your phone on, nothing would happen as nothing would be
telling Android to boot.
If your version of H-BOOT is 0.43 - please follow The Unlockr's Guide on how to do it.
If your version of H-BOOT is 1.01 - this guide may work as well.
Here is a link containing all the downloads that will be required:
So what exactly is rooting?
Rooting (or gaining root access to your phone) allows you to gain administrator privilages into your phone. With administrator priviliages, you gain more access to your phone compared to not rooting.
Why should I root my phone?
If you have a vodafone branded HTC Legend, you would know that it's painfully slow and pretty much unusable. Also, you have a mere ~90MB of storage for app's which is basically nothing. By rooting your phone, you can delete stock applications on your phone, overclock your phone (make it work faster) and increase the amount of storage you have for applications. More importantly, you can "debrand" your HTC Legend which removes the vodafone logo from startup and the pointless apps they put on your phone in the first place.
HTC Legend (vodafone branded updated to FroYo),
Internet Connection (To download about 1GB of files),
Spare microSD memory card (preferably not the one that you use primarily),
SD Card Reader (You cannot mount the memory card from the phone, as this will not work),
E-Mail address (this is needed for Step 2).
Step 1 - Enabling ADB
ADB (or Android Debug Bridge) allows you to give instructions to your phone via your computer. Your computer emulates a server and creates a client allowing you to issues commands to your HTC Legend. With ADB, you can send files to the internal storage of your phone and download them too (If you want to learn more, head here: http://developer.android.com/guide/developing/tools/adb.html)
Start off by downloading the Android SDK from Google: http://developer.android.com/sdk/index.html
Install the SDK to the location as shown below:
If you get the error Java SE Development Kit (JDK) not found and you are sure that you have it installed, press back on the installation once, then click forward on it once and it will let you continue with the installation.
Make sure that the "Start SDK Manager" box is ticked and press finish.
Once the SDK has finished refreshing it's sources, press close.
Another box will come up asking you choose which packages to install. The list that is given to you is fine as it is and does not need to be changed, so press "Install".
Android SDK will now start downloading all the files we requested. This should take around ~30 minutes depending on your internet connection.
Whilst this downloading, make sure that "USB Debugging" is enabled on your HTC Legend. To do this, go to - Settings > Applications > Development and tap the "USB Debugging" box so there is a 'tick' in it.'
To check that our computer can communicate with our phone, connect the HTC Legend to the PC with the USB Cable provided.
Press Start in Windows, and in the Search Box, type in "Run" and press Enter. In this box, type in "CMD" as shown below.
A box with a black background should come up. This is called Command Prompt and can be used to interact with Windows and lets you give specific commands to your system. In this case, we are going to check to see if ADB is working.
First, we need to navigate to the ADB folder in the Android SDK, so we need to type in:
Then we need to check to see if our device is connected, so we type in:
A screen similar to the one below will come up. It should show some letters and numbers and next to it, the word "device":
If your device number displays, ADB is now working.
Step 2 - Making a Gold Card
First of all, you probably want to know what a Gold Card is. Well a goldcard is used to debrand your phone. Every phone has a CID (which is used to identify mobile phone towers and which network it's attatched too) An example of this in use, is when you update the software on your phone. Vodafone have a list of CID's that are allowed to get the update and your HTC Legend (from vodafone) is on that list too. So if you tried to update your phone using the official HTC Legend de-branded software, you would not be able too as your phone isn't on the list of HTC's CID's allowed for the upgrade. A Gold Card is designed to bypass this check by giving your phone a different CID to the one already on your phone allowing you to install HTC's original software. A micro SD card is required in a Gold Card as that is where the alternate CID is stored. If you accidently format your micro SD the CID that you implemented will still be there as it is hard coded to it. You also only need your Gold Card once and it does not need to be kept in your phone all the time. I recommend using a spare SD card just incase something goes wrong on your main one.
The first thing we need to do, is put the microSD card into the Card Reader plugged into the machine/or the external card reader - it doesn't matter, as long as the microSD card isn't plugged in via the phone.
Backup any data from the SD card onto your machine as this may erase all of your data.
Download the Gold Card creation tool and save it to your desktop: http://www.filefactory.com/file/1yt9jpxpbpnr/n/Gold_Card_Tool.exe
NOTE: Make sure you have the latest version of HTC Sync installed (Available here) and if any further support is required whilst using this software, head over to the creator of the software's website.
Once the download has completed, right click on the file and select, "Run as adminstrator".
A screen similar to the one below will appear:
First press "Get CID" - If you recieve the error, "Failed to get CID", don't worry. Select "MMC0" instead of "MMC1" and try the process again. You will get something like the screen below.
Click on the blue link that says, "Free HTC Gold Card Generator". This will open up a website in your browser. Fill in all the details you have and where it says, "SD Card Serial (CID)", enter the CID that was generated by the Gold Card Tool as shown below.
NOTE: If you get the error, "Failed to get CID", try putting the mSD card into your phone, with your phone as "Charge Only", to get your CID. Make sure to take the SD card back out of your phone and into the SD card reader to continue the process and to load the Gold Card Image. Also, try formatting the SD card on your phone. This may fix the problem too. You can do this by going into Settings > SD Card and Phone Storage > Unmount SD Card. Then press "Format SD Card".
Press the, "Generate Gold Card!", button and you will be sent (via e-mail) the image of the goldcard. The e-mail should take about a minute to come thorugh.
Once you recieve the e-mail, download the Gold Card image to your desktop and go back to the Gold Card Tool. In the GoldCard Tool, press "Load GoldCard.img", and navigate to your desktop to load it.
After you have loaded the image, press "Format MMC", to erase any data on your memory card, and then after the format has completed, press "Patch MMC". You should recieve a message saying that your memory card is now a Gold Card!
Step 3 - Downgrading your HTC Legend
from 2.2, to 2.1
Now we have to downgrade from FroYo (Android 2.2) to Eclair (Android 2.1) The reason why this has to be done, is because HTC patched the workaround for rooting in the latest version and you can now only root if you are using 2.1
The first thing we have to do, is download an Android application called Visionary+ so that we can copy a file over to the HTC Legend that will allow us to downgrade. Click here to download it. This file can be considered a virus, so make sure you disable any anti-virus that is running.
Copy the file over to your Gold Card (micro SD Card) and put it in your HTC Legend. Turn your phone on and go to: Settings > Applications > Tick the box that allows "Unknown Sources". This will allow us to install Visionary+
Open up the "Market" application and search for an application called "ASTRO File Manager" and install it.
Open the application and tap on the file called, "com.modaco.visionaryplus.r14", then press "Open App Manager".
Press "Install" for the first time, and then "Install" for the second. Once it has finished, plug your phone in via the USB Cable and select "Charge Only" on your phone.
We then need to download this file which allows us to downgrade our phones.
Once you have downloaded the file, right-click on it, and press, "Extract files...". Enter the destination of the files as, "C:\AndroidSDK\platform-tools\" (without the commas)
If you navigate to this directory, the folder should look like this:
On your HTC Legend, open up the "Visionary+" application and press, "Temproot now". After this is done. Open CMD on your computer (like shown before whilst setting up ADB).
Type in the following: (each new line represents you pressing the "Enter" key)
On your phone, a small window will appear and say the following: "'Unknown' is requestiong for Superuser Permissions", press, "Accept".
Then we have to type the following into CMD:
/data/local/flash_image misc /data/local/misc1-2.img
Your CMD should look like this:
We are now ready to downgrade. Make sure you leave the CMD window open for the process.
Download the Official HTC Legend Stock ROM from here and open up the file.
Agree to the terms and press "Next". At the next screen, make sure you have followed the steps and press, "Next" again. Then on the third screen, press, "Update" and finally, "Next" again, and then "Next" once more. The downgrading process should take around 10 minutes.
NOTE: If you recieve ERROR , you need to re-create your Gold Card. Try using a different micro SD card to try and solve this problem.
After the ROM utility has completed, you should see this screen. You now have an un-rooted, HTC Legend with the official HTC stock ROM.
Step 4 - Flashing the Rooted ROM
Now we have our stock HTC ROM, we need to overwrite it with the one with Superuser privileges (or administrator access)
First we need to un-install our version of HTC Sync (version 3.0+) and replace it with an older version of HTC Sync (version 2.0.33) You can download it here. This version is required for the final procedure of rooting.
Now you need to download the Legend Rooting Tools to install the rooted update. Extract the files to C:\R4-Legend-Root\ like shown below:
Turn your phone off and enter Recovery mode - This is done by holding down the power button and volume down button at the same time.
Press down the power button with "FASTBOOT" highlighted (it should already be highlighted) and now the letters "FASTBOOT" will have a red background like below.
Make sure your phone is connected to your computer and open the file called, "step1-windows.bat" in the folder, "R4-Legend-Root" on your computer. CMD will open up like below:
After this has completed, your phone will still be in, "FASTBOOT" where you had originally left it. Press the power button on your phone whilst, "BOOTLOADER" is highlighted in blue and then the volume down button so that, "RECOVERY" is now highlighted in blue. Press the power button and wait till the following image displays:
Now, making sure you have HTC Sync version 2.0.33 installed, open up the file called, "step2-windows.bat" on your computer. After the process has completed, you should see this:
On your phone, using the trackball, scroll down to, "Flash zip from sdcard" and then click on the trackball. Then click on, "rootedupdate.zip" and click again to confirm the flashing of the ROM. Your phone will now begin flashing the ROM like below:
Click, "Reboot system now" and you will now have a rooted version of Android 2.1 with HTC Sense.
I would recommend installing a custom ROM as there are many more features you can access. Follow my guide on How to install a Custom ROM on how to do this.
TheUnlockr - www.theunlockr.com for providing me with most of the information to this guide.
Klutsh - www.vorbeth.co.uk for creating an easy to use Gold Card Tool.
Paul - www.twitter.com/paulobrien for creating VISIONary+ to provide Temp-Root access and creating R4-Legend-Root which without, we wouldn't have superuser access.
wag3slav3 - http://forum.xda-developers.com/showthread.php?t=725430 for creating the Hack4Legend Files.
Donate to these people if you felt this guide has been useful to you or donate to me if you liked the layout of this guide at email@example.com