[Tutorial] How To Downgrade HTC Legend From Android v2.2 to v2.1 (100% Working With Hboot 1.01)

Note: This is to be done at your own risk; I am not responsible for any damage or harm caused by this process.Also,all the commands that you have to type have been written down in ‘bold’. 

The HTC Legend is the hardest thing I’ve ever rooted.It took me about 8 straight hours to find the right way to downgrade and another 2 hours to root it. This article is just gonna show you how you can downgrade.

Please Follow the Instructions Carefully.

Items Required :
1.  HTC Legend
2. 1 MicroSD Card (Gold Card).Use this procedure to make one
3. 1 Micro USB Cable
4. Full Charge Recommended
5. Windows OS (I used Windows 7) – Recommended but not necessary.

Downloads and installations required :
1. Android SDK installed
2. hack4legend-v5.zip
3. RUU 1.31 for Legend
4. VISIONary+ apk file (Install it to your phone like you would install any other .apk file after downloading)

 It’s recommended that you back up Data first —>>

1. Contacts:  You can save you’re contacts from you’re legend by clicking contacts, menu, import/export and export to SD Card.

2. SMS: Get the SMS Backup and Restore App form Market, Install and Save it on to the SD Card.

3. Backup Complete SD Card: Copy all the contents of the SD Card and save it onto the PC.

Procedure

Step 1 –  Install Android SDK (If you don’t have it already) on your PC/Mac and then Extract hack4legend-v5.zip to your C Drive.

Step 2 – Move the files contained in hack4legend-v5.zip into your sdk/platform-tools directory so your pushes will work properly.

FOR ALL OS’s Make sure your phone has Applications->Development->USB Debugging turned on.Do NOT have your phone in Disk Drive Mode, have it in Charge Only.

Open a terminal window in your platform-tools directory and type these commands –

crackin.sh (For Mac/Linux) or crackin.bat (For Windows)

Your phone will reboot 5 times and you WILL see several error messages.Don’t worry.It’s all normal.

If the last error you get looks like this, ‘ c—rw—- 1 1001 2002 90, 0 Jul 19 16:19 /dev/mtd/mtd0′ then you’re all set to move on to the next step otherwise keep trying by either resetting phone to factory settings or by making  a new gold card.

Step 3 – Install VISIONary+ on your phone using the .apk provided above (if you already haven’t).Then,’Temproot’ your phone.Once you are temprooted, connect via ‘adb’ and type the following commands –

su (to get root)

/data/local/flash_image misc /data/local/misc1-2.img

Step 4 – Run the RUU (like any other .exe) you downloaded earlier to downgrade to version 2.1 – it should be possible to do so now.

For rooting your device check out this post.

Now that you’ve downgraded your legend to Android 2.1,just root it the normal way.

All the Information in this guide is taken from the works of following Authors :
1. wag3slav3: (http://forum.xda-developers.com/showthread.php?t=725430)
2. Paul (http://android.modaco.com/content/ht…rom-froyo-ota/)
3. TheDeadCpu: (http://forum.xda-developers.com/showthread.php?t=746454)

Special Credits – icebuck

[Tutorial] How To Make A Gold Card With Any Micro SD Card

I. Requirements before you begin

1) An SD card (Any brand)

2) A working phone which can connect to the computer as a disk drive ( You should be able to see the SD card as a removable disk in My Computers) or just use a Micro USB card reader.

3) Gold card Tool by klutsh

II. Setting up ADB

Follow these instructions to setup ADB for your phone, then come back to this procedure and continue.

III. Creating a Goldcard

Automatic method with a tool

1. Put the memory card you want to use for the GoldCard into your phone.

2. With the memory card in your phone, click on Settings, SD and Phone storage, then click Unmount SD card. Once it unmounts, click Format SD card. (Please keep in mind that some memory cards don’t work, and this will erase all data on your SD Card so back all the data up first to your computer)

3. On the Phone, goto Settings, Applications, Development and then make sure USB Debugging is checked.

4 (a )Open up the Gold Card creator that you downloaded earlier and Click on ‘Get CID’ (At this moment,your SD Card must appear in My computers as a removable disk.That’s the only way this will work.).Also,if the CID doesn’t appear in your first attempt,select ‘MMC0’ and try again.

4 (b) Then,once you have the CID,go to the lick provided and download for goldcard.img and save it wherever you want to (On your desktop preferably).

4 (c) Select your SD card from the dr0p down list and then select your Goldcard.img.Once all that’s done ; click on Patch MMC and wait until you get a popup telling you that the SD card is now a gold card.

Manual method for people who can’t get the tool to work 

1. Put the memory card you want to use for the GoldCard into your phone.2. With the memory card in your phone, click on Settings, SD and Phone storage, then click Unmount SD card. Once it unmounts, click Format SD card. (Please keep in mind that some memory cards don’t work, and this will erase all data on your SD Card so back all the data up first to your computer)3. On the Phone, goto Settings, Applications, Development and then make sure USB Debugging is checked.4. Plug the phone into the computer and then open the Command Prompt (goto the start menu and type in cmd in the search box). Then type the following with hitting enter at the end of each line.cd\
cd\AndroidSDK\platform-tools\
adb devicesThen type:

adb shell
cat /sys/class/mmc_host/mmc1/mmc1:*/cid

(There is no spaces in this line EXCEPT right after the word cat in the beginning, make sure to put that space in).

5. A code will display, write the code down (MAKE SURE TO WRITE IT DOWN EXACTLY!)

6. Now with the code written down, simply write it backwards (it must be reversed, so if the code is 123456789, slowly write it backwards and make sure not to make a mistake so it becomes 987654321 then continue to the next step).

7. Now, on your computer, goto http://psas.revskills.de/?q=goldcard and enter your email in the appropriate field and for CID enter the reversed CID you just copied down BUT REPLACE THE FIRST 2 DIGITS WITH 2 ZEROS! (i.e. 12345678910 becomes 00345678910). *Thanks to Viper for providing these Goldcards for FREE!

8. Click continue and then download the goldcard.img to your computer.

9. Now, go to http://download.cnet.com/HxD-Hex-Editor/3000-2352-10891068.html?part=dl-HxDHexEdi&subj=uo&tag=button to download the HxD Hex Editor. Save it and install it to your computer.

10. Take your SD card out of your phone and put it into the SD adapter it came with. Then put that into your computer so it shows up on your computer as Removable Disk.

11. Open the Hex Editor (Run as Administrator if one Vista or Windows 7) and click on the Extra tab, then click on Open Disk. Under Physical Disk select Removable Disk (your SD card you just put into the computer). Make sure to UNcheck “Open as ReadOnly”. Click OK.

12. Goto the Extra tab again and click Open Disk Image. Open up the goldcard.img that you saved from your email. You should now have two tabs, one is the SD card (Removable Disk) and the other is the goldcard.img
Press OK when prompted for Sector Size 512 (Hard Disks/Floppy Disks).

13. Click on the Goldcard.img tab and click on the Edit tab and click Select All. Then click on the Edit tab again and click Copy.

14. Click on the Removable Disk tab (Your SD Card) and select offset 00000000 to 00000170 then click on the Edit tab and click Paste Write.

15. Click on File then click Save.

16. Close the Hex Editor.

17. Test what we’ve done: Disconnect the Adaptor and reconnect and see if the card appears in My Computers.If it doesn then you’re all set but if windows tells you that you have to format the card then you need to format it and try again.

That’s it folks! You should be able to root your previously un-rootable phones now.

Reported Issues:

Issue: I get no such directory or file when I type:

cat /sys/class/mmc_host/mmc1/mmc1:*/cid

Solution: Try to type this instead (replace the 1′s after mmc with zeros):

cat /sys/class/mmc_host/mmc0/mmc0:*/cid

Issue: Having difficulty with the cat command…

Solution:

“Plug your phone into your computer with the going to be gold card
Go to my computer
Make sure you mount your phone to your computer
Right click after mounted FORMAT on your drive NOT IN THE SETTINGS>FORMAT MODE (trust me)
dont do quick format let it run its course
After it has completed formatting come back to the steps starting at step number 4.”