How To: Downgrade the HTC Legend to 1.31 So It Can Be Rooted

December 13, 2010 in Android How To's, Featured, How To's, HTC Legend How To's

HTC Legend

I. Before You Begin

1. This procedure will downgrade your phone from Android 2.2 Build 2.0.XXXX to Android 2.1 Build 1.31.XXXX. This is necessary if you are to root the phone. Once rooted, you can then flash a custom ROM to get back to Android 2.2 without losing root access.

II. Make a Goldcard

1. Head to our How To Make a Goldcard procedure, make a goldcard and come back to this procedure to continue.

III. Make Phone Downgrade-able

1. On your phone, make sure that USB Debugging is checked ON in Settings > Applications > Development.

2. Plug in your phone and make sure it is connected as Charge Only NOT Disk Drive or something else.

3. Download the Downgrading Tools and extract them to your AndroidSDK\tools\ folder (all of the files need to be in the tools folder with adb).

Legend Downgrading Tools

4. Open a command prompt on your computer by clicking on the Start button and typing cmd and hitting enter in the search box.

5. In the command prompt, type the following with hitting enter at the end of each line:

cd c:\AndroidSDK\tools\
crackin.bat

6. The phone will reboot 5 times, be patient.

7. After it is done, you will see a bunch of error messages, that is normal.

8. Look for the following line, if you see it (the date and time can be different) you are ready to continue, if not then reboot your phone, factory reset it, and try again:

crwxrwxrwx    1 1001     2002      90,   0 Jul 19 16:19 /dev/mtd/mtd0

IV. Downgrade Using the RUU

1. Download the Legend 1.13 RUU

Legend 1.13 RUU

2. With your phone plugged in still, right click the RUU and run as administrator (if you don’t have that option just double click it).

3. Follow the prompts to downgrade your phone. All done!

V. Root the Phone

1. Head to our How To Root the HTC Legend procedure immediately after finishing this procedure to continue.

126 responses to How To: Downgrade the HTC Legend to 1.31 So It Can Be Rooted

  1. Pleas Help!!

    i alos have this prob:

    Can someone help with this? Is isnt working for me either! And i also get the cr–rw— like everyone else, it says: Permission denied… I also get the boatloader fail!

    i testet with this: with Visionary+

    C:AndroidSDKtools>adb shell
    $ su
    su
    # /data/local/flash_image misc /data/local/misc1-2.img
    /data/local/flash_image misc /data/local/misc1-2.img
    /data/local/flash_image: not found
    # su
    su
    # su
    su
    # su
    su
    #
    C:AndroidSDKtools>

    why is “not found”???

  2. when i opened ruu, there is a error: ruu.. is not a valid win 32 version?!

  3. Downgraded successsfully, no major problems (except replacing the 1′s with 0′s in one step with the adb tools, but the solution was just further down the page). Thanks! Hope the rooting and upgrade go just as smoothly!

  4. Downgraded successsfully, no major problems (except replacing the 1′s with 0′s in one step with the adb tools, but the solution was just further down the page). Thanks! Hope the rooting and upgrade go just as smoothly!

  5. Hi, sorry for my bad english.

    I tryed do this post but i have a problem when I want to execute crackin.bat.
    An error :
    is updated.
    /dev/mtd/mtd0: Permission denied
    cr–rw—- 1 1001 2002 90, 0 Jan 22 19:12 /dev/mtd/mtd0
    error writing misc: Permission denied
    “Freeing links”
    rm failed for /data/DxDrm, Permission denied
    rm failed for /data/dontpanic, Permission denied

    Please help me thanks
    Polin42

  6. Hi, sorry for my bad english.

    I tryed do this post but i have a problem when I want to execute crackin.bat.
    An error :
    is updated.
    /dev/mtd/mtd0: Permission denied
    cr–rw—- 1 1001 2002 90, 0 Jan 22 19:12 /dev/mtd/mtd0
    error writing misc: Permission denied
    “Freeing links”
    rm failed for /data/DxDrm, Permission denied
    rm failed for /data/dontpanic, Permission denied

    Please help me thanks
    Polin42

  7. Ruu thinks my phone is not connected? I got the right code after I used crackin.bat and I have a made a goldcard?

  8. error 140? Is their a fix?

  9. /dev/mtd/mtd0: Permission denied
    cr–rw—- 1 1001 2002 90, 0 Feb 6 00:18 /dev/mtd/mtd0
    error writing misc: Permission denied

    i am getting this error repeatedly even i reset my phone to factory settings..tell me what should i do ..i have made gold card properly

  10. I got the right message after doing crackin.bat however when I open RUU it comes up with this error saying that an error occured while running the startup. Says to end all other applications… I have created the goldcard. I tried to downgrade with goldcard in phone and out of phone…. both dont work… please help.

  11. I get the following error message ‘adb’ is not recognised as an internal or external command operable program or batch file, it repeats this message aabout 12 times?????.

  12. EROR 131: CUSTOMER ID ERROR

    THE ROM UPDATE UTILITY CANNOT UPDATE YOUR ANDROID PHONE.
    PLEASE GET THE CORRECT ROM UPDATE UTILITY

    What is wrong and how I solve it?

    • Got the same error. Using HTC Sync 2.0.33 and RUU_Legend_HTC_WWE_1.31.405.5_R_Radio_47.26.35.04_7.05.35.26L_release_126592_signed.exe on a Bell brand HTC Legend.

      No solution as of yet.

      Anyone else have suggestions?

  13. I get Error [130]: Model ID Error. Any suggestions?

    • I’m going to _try_ to answer my own question. I was having trouble and kept getting the USB connection error. If while it was waiting for the update I ran the RUU again, then I would get the 130 error. Here are the things I changed to get it working:

      - Insert the gold card (IDK if that actually did anything, but it finally worked)
      - Upgrade the USB drivers for the phone (in windows 7)
      - Run the RUU, which failed on the USB error
      - Run RUU again after the usb error and it finally works (normally it would give the 130 error)

      • I got the Error 130 Model Id as well. I think it’s the goldcard — I repeated the goldcard steps and the image I got back was different from the first time I tried it. This time it worked — successful downgrade!

      • I got the Error 130 Model Id as well. I think it’s the goldcard — I repeated the goldcard steps and the image I got back was different from the first time I tried it. This time it worked — successful downgrade!

  14. My phone doesn’t reboot 5 times unless by saying “be patient” you mean “wait more than 10 minutes”. Also why are you telling me to make a gold card and then not explaining when I need to use it?

    • To explain further – I ran it and it ripped through all the commands in the batch file then rebooted once, and returned to my home screen (locked as usual). Then it did nothing. This time around, I’ve factory reset and now it is stuck on the third error line after “Freeing primary PERM linker”… I’m being patient…

      • OK, so after another factory reset and re-run, this is the output:

        C:AndroidSDKtools>crackin.bat
        “Copying tools”
        1897 KB/s (698452 bytes in 0.359s)
        1188 KB/s (76044 bytes in 0.062s)
        1780 KB/s (655360 bytes in 0.359s)
        “Freeing primary PERM linker”
        error: more than one device and emulator
        rm failed for /data/DxDrm/fuse/*, No such file or directory
        rm failed for /data/DxDrm/fuse, Is a directory
        “Freeing secondary PERM linker”
        rmdir failed for /data/DxDrm/fuse/, Not a directory
        rmdir failed for /data/DxDrm, Directory not empty
        link failed File exists
        error: more than one device and emulator
        “Rebooting to normal mode to unlock CHMOD links”
        error: more than one device and emulator x 8
        “Rebooting to normal mode to downgrade ROM”
        error: more than one device and emulator x 6
        “Freeing links”
        error: more than one device and emulator x 3
        C:AndroidSDKtools>

        Phone is booted. Nothing about permissions to /dev/mtd/mtd0

        • OK – finally got there – if you have issues, open the crackin.bat file in an editor and run each command from the cmd line individually. This will show where the errors are. Also, my phone reported “error: more than one device and emulator” because it had an OFFLINE version of my phone cached up. To fix this I had to adb kill-server multiple times and reconnect.

        • OK – finally got there – if you have issues, open the crackin.bat file in an editor and run each command from the cmd line individually. This will show where the errors are. Also, my phone reported “error: more than one device and emulator” because it had an OFFLINE version of my phone cached up. To fix this I had to adb kill-server multiple times and reconnect.

  15. The RUU at shipped-roms didnt work for me. kept returning an error everytime i tired to execute it. however, if you search “RUU_Legend_HTC_WWE_1.31.405.5_R_Radio_47.26.35.04_7.05.35.26L_release_126592_signed” in google, hotfile has one hosted that worked just fine.

  16. im so confused, i think i have managed to connect my phone to my computer because when I type adb devices, it is connected, but then when i run the RUU, it says Error 170, connection error.

    i already spent 10 hours + creating the goldcard and now i am stuck on this :(

  17. Question: Can i Downgrade my HTC Legend 2.2 (the software updated) build 3.20.xxxxx so i can root it?

  18. Reseting to factory settings doesn’t work for me, still get cr–rw—- 1 1001 2002 90, 0 Feb 6 00:18 /dev/mtd/mtd0

    any ideas?

  19. Had the same problem, the reason being that crackin.bat had not completed succesfully due to lack of access rights. I solved that by using Visionary+, and then grant su rights before doing all the steps in the script by hand.

    The steps were
    a) find the apk file for visionary+ and install that on the phone (using HTC Sync).
    b) open visionary+ on the phone, and select “temp root and boot” and select “temp root now”.
    c) open the crackin.bat in a text editor (or similar, where you can see the steps. Do not use notepad, it might not be able to show linebreaks, making it a mess to read).
    d) open a command prompt in the folder with the tools.
    e) execute the three first commands (the ones without adb shell) by typing them in the command prompt.
    f) when I got to the first adb shell command I typed
    – adb shell
    result: a $
    – su
    result: a #, and now I had root access as su (super user)
    g) then I typed the adb shell commands (without the “adb shell”) one by one. When I got to reboot I typed that, ignored the wait-for-device, and the repeated step f) to get sufficient rights again. Note that the “cat … ” command should be typed without the ” “.
    h) my result was not the full “crwxrwxrwx”, but I got “crwx…… ” which was sufficient for RUU to run afterwards.

    • I’ve tried that, I get to the su part and it tells me “permission denied” I’ve tried to just install the downgrade, I get an error (Error [131]: Customer ID Error), I’ve tried rebooting, resetting to factory settings and still nothing. My Gold card was made using the Gold Card Tools. I’m almost at the stage where I’ll get rid of the phone and get an iphone because I’m so sick of running out of space after a day or 2.

      • Did you let visionary finish temp rooting? (You know it is finished when it returns to your homescreen)

    • Kayce said on May 2, 2011

      I could not access as SU after my reboot, i nid to re-do the “temp root”
      What is my mistake?

    • I’ve been trying this all day, AGAIN.

      When I type in “su” tells me still “permission denied” I have installed visionary, I let it temp root and yes I wait for it to return to the home screen.

      The last one I tried, I just kept going after su “permission denied” and got to reboot, but it wouldn’t allow me to go further.

    •  Thanx korstom i followed your steps and now i am success to downgrade my legend :)

    • I’ve tried it several times, but it still doesn’t work…

      I am always getting the error:  Permission denied at f)
      I’ve been using VISIONary+, but it still doesn’t work!

      Please help me !

      Thanks and sorry for the bad English (Austrian :-) )

      • Hey again :)

        I got it :)
        After a long long time, I recognized that I probably should have inserted the ‘Goldcard’…

        Thanks a lot to all and have fun with your devices
        :)

    • Jam said on May 21, 2011

      Thanks to you, I sailed past the cr—- problem… I also got stuck at step f) but doing temp root once again got me through… Thanks again :)

    • Thanks to you, I sailed past the cr—- problem… I also got stuck at step f) but doing temp root once again got me through… Thanks again :)

    • wow !!

      this one is really help full tutorial..
      with a little bit more learn on google about the fungtion of comands..
      downgrade is done !! very cool …thnks before..nice share :)

    • what is step f

      • sorry i understand what step f is now
        but do you type only the commands with adb shell  but take out the adb shell part adb shell

    • Hi, I can do this up to the 
      adb shell “cat /data/local/busybox > /data/DxDrm/fuse”
      command. 
      I type in 
      cat /data/local/busybox > /data/DxDrm/fuse
      but then nothing happens, and as I type the next lines rm, ln, etc, there is no # symbol in front, and nothing happens when I type them, it just types it and then goes to the next line and this carries on as I type on.

      PLEASE HELP I DONT GET THIS CAT BIT!?!

    • Thank you Torsten! I’d tried every other method available to downgrade my Legend, but this was the only thing that worked. I’m using a Legend through Vodafone Australia, if that helps anyone.

      Be sure after every reboot to open Visionary+ and temp root, or adb won’t allow you to “su”. I still got a lot of errors with the data fusey stuff thingies, but I believe the command for them was all “rm” which my small amount of research says is “remove”, so that’s fine.

      Torsten’s little guide really should be appended to the end of the main guide. Like I said, I’ve tried everything I could find here, on Chirag’s guide, and on xda developers, and nothing else helped.

  20. i dont get this line “crwxrwxrwx” insted i get this one “cr- – rw – - -” and then in RUU i get the error that my phone isn’t connected ? Help please !

  21. I always get the “cr- – rw – - -” no mater what I do. I fix a new goldcard , factory reset the phone etc etc.
    I cant get it to work. Can anyone please help me?

  22. Error 170… Fail Tutorial….
    The RUU unable to connect my device…
    FAIL!

  23. error 170 at RUU. fail tutorial cant works…
    You are just playing prank on us? I Did it for 5 hours for nothing?
    ROFC

  24. I have tried every single step repeatedly… for the last 24 hours and have yet to get nothing out of it… when i use ruu… all i get is the 130 error… help please!!!!

  25.  Ok Guys, for all of you facing the CR– RW — Error, its really simple to fix it. I will be posting a full guide on how to fix it…

    • hopefully in the next few hours

      •  this is the link to the complete guide for downgrading. hope it helpshttp://forum.xda-developers.com/showthread.php?p=13813982#post13813982

        • you mind reposting the link? i can’t click it. Thanks! 

          •  Now, this site aint allowing me to post a link for some reason; you will need to search this exact title on Google: [GUIDE] HOW to downgrade HTC Legend 2.2 to 2.1 to enable root…Click the link then! : )

            • Thanks dude. Found it. Try it. but still doesn’t work. I got the customer id error after i ran the RUU. Any ideas why? 

              • i has the same problem…

              • Dez said on June 8, 2011

                Make sure your goldcard has been made correctly! I had this, but after a bit of research, found that when generating the goldcard, you should reverse the number in pairs, not overall… eg from 0123456789 to 8967452301 instead of 9876543210.

    • hopefully in the next few hours

  26.  I’ve come across so many errors while doing trying to root my HTC Legend.
    In this downgrade after installing VISIONary r13 or r14 I dont think it matters, but I used r13.

    After doing steps similar to this

    “3. even if you end up with the cr–rw—- download and install modaco visionairy apk

    4. temproot phone.

    5. in cmd, type adb shell, then ”su” and accept super user permissions on phone
    You should see a # <this means you have the permissions.

    6. in cmd, type: /data/local/flash_image misc /data/local/misc1-2.img"

    and getting permission denied on number 4 the su (super user), MAKE SURE to check your PHONE and ACCEPT.

    I also recieved the error 170 after opening the RUU program, (I found out this is to do with USB driver problems) download HTC SYNC install it and uninstall HTC Sync but leave the drivers installed, and that should be all good.

  27. ITS KEEPS SAYING 170 ERROR USB CONNECTION ERROR ?? NEED HELP!

  28. I got a problem! I bought the 2gb Kingston Micro Sd made it a gold card! Just works fine! But when i am trying to get tht number of step 8 it just say me : cr–rw—— etc! And no matter what i try it wont let me Downgrade i got Version 2.2! Hboot 1.01! Plz help anyone!
    Greets Sebastian

  29. I’ve been trying to downgrade my legend for a couple of hours now, but every time i ran the RUU i got a message saying there’s problem with the usb connection even though it’s connected. What should i do now?!

  30. Does anyone have a solution to the 140 error?