yashsingh1/xdaforums huggingface dataset:
[Legend Android Development] wag3slav3:
Downgrade Success!

We have a good procedure to allow a downgrade via RUU, which then allows you to use the other root methods again.

Big thanks to Joeball88 for putting in the testing time with me to get the bumps all smoothed out, and for caska who had the epiphany that we should goldcard it before RUUing.

THE SCRIPTS HAVE BEEN UPDATED MANY TIMES! Please be sure to re-download the new hack4legend-v5.zip before you start if you a returning root seeker.

You will need adb access. Install the android sdk for your platform (macos, windows, linux) get it for your OS here.

If you don't know how to install the sdk, search xda, there are a ton of howtos for that.

*updated files to hack4legend-v5.zip @ 7-19-2010 11:35AM Central*

Preliminary things to do.

Download -

hack4legend-v5.zip

RUU 1.31 for Legend

Make a goldcard, these instructions work, but you have to change mmc1 to mmc0

Another goldcard method if the first doesn't work for some reason.

Get the Android SDK (skip if you have a working adb)

Have adb in your path, or move the files contained in hack4legend-v5.zip into your sdk/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 /tools/ directory. Type this at the prompt.

crackin.sh

or in Windows

crackin.bat

Your phone will reboot 5 times.

You WILL see several error messages.

Look for this line, if the crwxrwxrwx matches you are ready to downgrade

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

if it looks like this c---rw----

c---rw---- 1 1001 2002 90, 0 Jul 19 16:19 /dev/mtd/mtd0

You're not.

Power cycle your phone.

If you have trouble, clearing your phone to factory defaults may help.

Put your goldcard in.

You can now downgrade to RUU 1.31, run the RUU_Legend_HTC_WWE_1.31.405.5_R_Radio_47.26.35.04_7.05.35.26L_release_126592_signed.exe that you downloaded earlier.

After that you can follow the other root howto's for the Legend!

caska says this link is faster for the Legend root download.

If for any reason you want to put your old ROM id back in after you've ran crackin, but before you run RUU run uncrackin and it will reinstall your old ROM version number.

If you really love me and want to say thanks, donate some beer money.
[Legend Android Development] acid74:
(adb push ROM.zip /sdcard)

Sorry to bother,is the command above necesary ?
[Legend Android Development] Joeball88:
holy crap. trying this RIGHT NOW
[Legend Android Development] wag3slav3:
It saves a reboot if you're planning on installing a custom ROM.

So technically no.
[Legend Android Development] wag3slav3:
I already had to adjust the script. Be sure you use hack4legendv2.zip
[Legend Android Development] acid74:
Done that ,not working.....

sorry not tried with hack4legend v2.....will update soon.
[Legend Android Development] wag3slav3:
Great! Keep me posted. As I said above, the method for this is on the device, so it "SHOULD" work.
[Legend Android Development] Joeball88:
with the V1, I get

"Your phone is now rebooting in Rooted Recovery mode...

mtd: erase failure at 0x00000000 (I/O error)

mtd: erase failure at 0x00000000 (I/O error)

mtd: skipping write block at 0x00000000

..... etc....

error writing recovery: No space left on device

with the V2, I get:

c:\AndroidSDK\tools>runindos

1605 KB/s (3532800 bytes in 2.149s)

675 KB/s (76044 bytes in 0.110s)

Unable to chmod /sdcard/recovery.img: Operation not permitted

"Files copied and permissions set, rebooting HTC Andriod 2.1"

"Your phone will now reboot into normal mode, then reboot into recovery mode. I

f it does not reboot the second time, wait 10 minutes and manually reboot and be

gin again."

"Your phone is now rebooting in Rooted Recovery mode, do a backup and load your

ROMs"

error opening /sdcard/recovery.img: Permission denied
[Legend Android Development] wag3slav3:
Damn, the recovery device is a different location. Did it ever say anything about mtd mmcblk? I'm unlocking the wrong location for the flasher. Gimme a few minutes to find out which partition it wants.

You can help me out by dropping to an adb shell and doing a mount and pasting the results.

Also, if anyone has a linux box and wouldn't mind giving me an ssh shell to a legend on adb it would speed it up a bit.
[Legend Android Development] acid74:
With v2 hack i get this on the end. (Dont know how to copy the whole log)

error opening\sdcard\recovery.img: permission denied
[Legend Android Development] Joeball88:
Got a very different error msg with V2.

ADB Shell Mount Below:

c:\AndroidSDK\tools>adb shell

$ mount

mount

rootfs / rootfs ro 0 0

tmpfs /dev tmpfs rw,mode=755 0 0

devpts /dev/pts devpts rw,mode=600 0 0

proc /proc proc rw 0 0

sysfs /sys sysfs rw 0 0

tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0

none /dev/cpuctl cgroup rw,cpu 0 0

/dev/block/mtdblock3 /system yaffs2 ro 0 0

/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0

/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0

/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=

1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,s

hortname=mixed,utf8,errors=remount-ro 0 0

$
[Legend Android Development] wag3slav3:
can I get a dmesg too? If it's too long, pastebin.com it.
[Legend Android Development] casca:
I just wanna say to wag3slav3 thank you for trying to help all the forgotten Legend community!i'm following this closely as I'm returning home if you guys need assistance i'll be home in 30min.will do What i can to help
[Legend Android Development] Joeball88:
I posted the dmesg on pastebin:

http://pastebin.com/erj7Wzcn

but my cmd window wouldn't scroll to the very very top, (wierd) so I hope this is all of it.
[Legend Android Development] masterbalby:
adb push recovery.img /sdcard/

-> OK

adb push flash_image /data/local/

-> OK

adb shell chmod 777 /sdcard/recovery.img

adb shell chmod 777 /data/local/flash_image

-> OK

adb shell rm /data/local/rights/mid.txt

-> OK

adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt

-> OK

adb reboot

-> OK

adb wait-for-device

-> OK

adb shell /data/local/flash_image recovery /sdcard/recovery.img
[Legend Android Development] wag3slav3:
Can you try running it again with ln -s /dev/mtd/mtd0?
[Legend Android Development] desiibond:
after running the command and reboot, when I try 'adb shell /data/local/flash_image recovery /sdcard/recovery.img', error is

error writing recovery: Permission denied.
[Legend Android Development] wag3slav3:
Get busybox, adb push it to /data/local and do a

/data/local/busybox ls -al /dev/mt* for me.
[Legend Android Development] casca:
hey! what did I miss?! i'm here and ready for testing!
[Legend Android Development] Joeball88:
uh i get a permission denied. I used the adb shell, and the terminal emulator and both gave me permission denied. am I doin' it rite?
[Legend Android Development] wag3slav3:
I think a search would help you out. It's not going to be any easier for you if I type it here again than if you search and find it.
[Legend Android Development] wag3slav3:
Feel free to click on either of the two donate links on the bottom of the main post.
[Legend Android Development] willy0627:
I have the same problem to andyp17...

how to solve it？
[Legend Android Development] paviol:
I need help! Ive done everything. I downgraded thanks to you I wanted to root it again. I made a goldcard successfully went through step1-windows.bat also successfully. BUT step2-windows.bat

C:\legend>step2-windows.bat
Legend Root Step 2

Pushing required files to device...

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: device not found
error: device not found

Pushing update file to device sdcard - this may take a few minutes...

error: device not found
error: device not found

Now wipe and apply rootedupdate.zip from the recovery image menu.

error: device not found

also when I check adb devices it doesn't show the device (at recovery state)

any ideas?
[Legend Android Development] wag3slav3:
Other's have had that problem. For them it was that they needed to re-do their goldcard.
[Legend Android Development] wag3slav3:
Try the forum where the root is at. I'm just the downgrade guy.
[Legend Android Development] KaizenMobile:
It works!

(downgraded Bell Legend and then rooted using Paul's method)

Thank you very much!
[Legend Android Development] BesFen:
after you connect your legend to pc, wait until notification like usb flash disk appear in your pc, then do step 2.

if it still fail, search for the driver, i ever read it can be the usb driver isn't install in your pc. googling it.
[Legend Android Development] BesFen:
cd\ :to go to root HD

cd "folder name" :to go to the directory (without quote)

"drive": : to go to drive (without quote)

do it until you in tools directory
[Legend Android Development] andyp17:
Hello,

I tried to re-do my goldcard, but I got the same problem: Permission denied...

Any ideas??

thanks...
[Legend Android Development] whitetigerdk:
Run step 2 in either Linux or OS X..

I kept getting the same error when I tried to root my Legend..

After running Linux on my Laptop (Live version of Ubuntu) the second step went fine without any error - Tadaaaa.. Rooted :)
[Legend Android Development] andyp17:
What step 2 do you mean. For me it is even not possible to downgrade to 1.31. I got the error after typing "crackin.bat" in my command window...

thanks
[Legend Android Development] casca:
I think your issue continues to be the GOLDCARD.

make a new one, following this thread http://android.modaco.com/content/software/308798/pc-application-goldcardtool/

it's the easiest method(and shortest!) known to man yet...

you can't miss it...then do the downgrade process.

IT WILL WORK!!

(unless it is a memory card issue! some are known NOT to work properly.If it fails, you might want to try with a different card)
[Legend Android Development] BesFen:
Make a new gold card, format your sd card first (Full format)
[Legend Android Development] andyp17:
OK, but there is one thing I don't understand: Why could this be an issue depending on the goldcard? I have to put the goldcard in my phone AFTER I do the "crackin.bat-step", haven't I? Or must I do the whole procedure with the goldcard in the phone from the beginning?
[Legend Android Development] casca:
you are right mate! our mistake! you should only need the goldcard when actually running the RUU with the 1.31 version...

there is something wrong...

Have you extracted the zip files to c:\android-sdk-windows\tools ?
[Legend Android Development] andyp17:
I have a working adb on my computer, so i haven't downloaded the sdk! Is it possible that I need a newer version of adb?
[Legend Android Development] Learners Lisence:
gold card

casca,

thank you soooo much for that link i manged to make my goldcard--its a success !!

now what ?:D
[Legend Android Development] casca:
lol! now root...lol and choose a rom...although there aren't that many...and not that good...lol

i'm seriously thinking of making my own based on the latest version...

gonna try and grab the best updates from all the roms i know and put it together in a single,stable one.

just got a find out to do this...my day only has 24Hours... damn...:p
[Legend Android Development] casca:
maybe...if you haven't got the proper installs...
[Legend Android Development] Learners Lisence:
pain

Sorry casca for being a pain in the neck...

first i have to downgrade- run the ruu given in the first post, then root it by the Unlocker site method and then load custom rom by unlocker site method ?

have i got it right ? :confused:
[Legend Android Development] casca:
yep :) that's it
[Legend Android Development] kastell:
really great, I'm super grateful you are the salvation. works great!.

saludos.
[Legend Android Development] ayrokid:
Would this work on HTC Dream?

Congratulations to all Legend users ! !

MAD Props to all the DEVs and Testers- Without you, there would be no fun in using Android.

I am HTC Dream user, I was wondering if this method would work on Dream? I installed 911 Update and now my phone is unrootable :( . I lost all the hopes until I read this (yn) :) ! !

Thanks :)
[Legend Android Development] casca:
I've learned 3 things with this:

1 - There is no such thing as uncrackable systems

2 - Never to install updates, as soon as they come out...

3 - There are some cool dev's/xda-users among us
[Legend Android Development] andyp17:
YEAHHH, I DID IT!!!

I have downloaded the new SDK and worked with the files in the tools-folder. And it worked. Seems that I had an old version of adb.

Thank you to this great forum and its members - you are wonderfull... :D

greetz... andy
[Legend Android Development] Joeball88:
Amen. Love this place. :D
[Legend Android Development] BesFen:
MOD... Pls STICKY IT...

If someone know where to request it, pls do it. I am forget the thread to request it.
[Legend Android Development] gyounut:
hi

i have a problem with the downgrade, i made a goldcard with die goldcard tool and hacked my legend with your how to it worked and shows the first line the right line in your how to

but if i want to install the older fw 1.31 it says after few minutes: Customer id error or somethink and it shows in the ruu that my actualy fw version is 1.02....

i made a goldcard with the tool, stick it in my legend and startet the phone to fastboot menu but it doesnt work already

has someone an idea? i need root :(

thanks!

i have an branded device with unbrandet fw ( the old owner made it ) with fw 2.03 at the moment
[Legend Android Development] casca:
if you done it exactly like the procedure, it has to work...

use this goldcard creation method and try downgrading again.

http://xdaforums.com/showthread.php?t=731424
[Legend Android Development] Learners Lisence:
Success Part 1

Thanks Mr Downgrade Guy ;), casca especially :),xda forums and others involved in this project.

I managed to get my adb thingy going and then downgraded my Legend with the RUU given. Im now on 1.31 !!

Now Part 2 ...wish me luck .....:eek:
[Legend Android Development] Learners Lisence:
DONE

Thanks again Guys,

Part 2 and 3 over.

I decided to go for modacos rom as I still dont know how to partition my sd card yet. I couldnt figure out why DJrom was available in two separate downloads. Looking forward to casca's rom of course....

I cannot seem to be able to connect to the Net.....with 1.32 i never had to configure settings for it. It got detected automatically. So I wonder what I have to do now....

Thanks.
[Legend Android Development] Joeball88:
I found that I had to enter my APN settings manually... search for your provider's APN information (Telus in my case) and enter it under

settings>Wireless & networks>Mobile Networks>APN

Then create a new one, and make sure to save and select it.

Cheers!
[Legend Android Development] Learners Lisence:
many many thanks

Thanks Joeball88, i learnt something new with APN settings.

Thanks also to wag3slav3 for the first post.
[Legend Android Development] bobstar_fr:
Hello,

Fist i am in 1.32 (Vodaphone)

and no success to downgrade with your method.

I upgrade in 2.03.....(RUU_Legend_HTC_WWE_2.03.405.3_Radio_47.39.35.09_7.08.35.21_release_130330_signed.exe) with Goldcard.

Now i am in 2.03

My legeng reboot 5 time after your process.

I see several error messages...

But i do not see

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

Where can i see this message?

I am with XP pro SP3 and last AndroidSDK pack.

My GoldCard is ok and the downgrade to 1.31 do not work. (it work finely to upgrade to 2.03)

- Is the SIM card must be in the phone for your downgrade method.

- Where is my fault.

Regards.
[Legend Android Development] Learners Lisence:
For me also there was no such line in the black window.

cmd in window didnt work. so i went into C:\android-sdk-windows\tools and clicked on crackin.bat There were error messages and my phone rebooted 4-5 times. then i read the last line which said '...ready to downgrade' at which point i clicked on the ruu given and it got flashed. im using windows XP 32 sp 2.
[Legend Android Development] alexhtclegend:
I ran the crackin.bat and successfully got the "crwxrwxrwx 1 1001 2002 90, 0 Jul 19 16:19 /dev/mtd/mtd0". However, when I try to downgrade I get an error saying "error [131]: customer id error". I have made a goldcard using a 2gb kingston card, and I've even tried re-doing this, carefully following all the steps. What could be going wrong?

I'm on a Vodafone UK, 1.32.xxxx etc ROM, in case that matters.
[Legend Android Development] wag3slav3:
The custom ID error is a goldcard error.
[Legend Android Development] alexhtclegend:
Thanks, I'll try making another goldcard. I know the Kingston 2gb card works, however I'm not sure that I formatted it correctly.
[Legend Android Development] bobstar_fr:
Hello,

I can't downgrade, i search why....

I have a goldcard (1Gb) create under 1.32 to upgrade to 2.03. (Upgrade is ok => good goldcard for this upgrade task).

Is necessary to create a new goldcard (1Gb) under 2.03 to downgrade to 1.31

Regards.
[Legend Android Development] alexhtclegend:
I'm 99% certain I've created the goldcard correctly, but I still get the same error! Do I have to upgrade from 1.32 to 2.03 before I downgrade? Thanks.
[Legend Android Development] Quanny2000:
Even though you've created it properly, some cards for some odd unknown reason will not accept the role of being a gold card (even though you've actually properly made the goldcard)

Only thing is to keep trying different physical micro sd cards... mine worked using a 2GB Sandisk, but my 4GB Kingston wouldnt work...

I have a funny feeling the HD micro sd cards are the culprit of not working properly...
[Legend Android Development] alexhtclegend:
But I'm using the 2gb Kingston card which came with the phone, specifically recommended on many sites for creating goldcards! You could still be right though, it just seems odd that I've got the only 2gb Kingston card which doesn't work :/
[Legend Android Development] AllWin:
For me worked only 1 of 3 MicroSD cards (1Gb "no name" - no, 2Gb Kingston - no, 8Gb SanDisk -yes). Also, i had to create the gold card manually as Gold Card Tool didn't worked for me by some reason. Just try all possible ways of creating Gold Card...
[Legend Android Development] alexhtclegend:
Thanks for that, I wrongly thought the 2gb Kingston was guaranteed to work. I will buy another card asap and try again!
[Legend Android Development] bobstar_fr:
Hello,

Where you see "crwxrwxrwx 1 1001 2002 90, 0 Jul 19 16:19 /dev/mtd/mtd0", On the PC windows command or on the Screen phone?

I never seen this line...

Sorry for my bad english...

Regards.
[Legend Android Development] acid74:
"Where you see "crwxrwxrwx 1 1001 2002 90"

You'll see it on the CMD terminal,...

By the way i have sucesfully downgraded than rooted two times allready but somehow my custom recovery fails to install from update.zip I tried the clockwork rec from rom manager too,that one fails also.Anyone with same problems??
[Legend Android Development] AllWin:
You should see it in the CMD (Windows command prompt). Also, you should run "cracking.bat" from CMD, not just by clicking on it, only then you'll see all output. If you'll launch "crackin.bat" by clicking it - CMD window will dissapear faster then you'll read something in there. Good luck.
[Legend Android Development] Learners Lisence:
i dont know why but when i typed crackin .bat in the cmd window i got stuck at--

crackin.bat is not recognized as an internal or external command operable program or batch file
[Legend Android Development] AllWin:
OK, put your android sdk on drive C:\ and extract hack4legend-v5.zip in tools directory, then type in CMD following commands:

CD C:\android-sdk_r06-windows\tools

crackin.bat

Then CMD window won't disappear and you'll be able to see if you have this line:

crwxrwxrwx 1 1001 2002 90, 0 Jul 19 16:19 /dev/mtd/mtd0
[Legend Android Development] ch33syguy:
Someone sticky this thread.
[Legend Android Development] sservati:
I have a Bell HTC Legend.

I want to downgrade and root it using the method in XDA Forum. Will this process and Rooting cause any problem for the Bell Lock on my phone? Will it still work fine with Bell after this process?

And also after rooting which rom you suggest me to flash?
[Legend Android Development] fearthefox:
I have a bell Legend as well, the only thing you will have to do is on the bell support site seach hsdpa settings and enter them in the apn section. You will also need to setup the mms for the phone. After that you are good to go. As for ROM haven't tried any yet.
[Legend Android Development] dobbo30:
its a bit noobish but if i follow all these steps will it work correctly? just for conformation and is there any risks of messing up my legend? :S
[Legend Android Development] casca:
there is always risk...

imagine you have a power failure...for example...what's that?you have a UPS!?

it will be juice drained shortly and bam....you're phone's dead :)

lol, i'm just messing with you... there is always a risk when doing this sort of stuff mate.that's why everyone posts at first topic "do it at your own risk", but if you analyse the amount of bricked legends after doing what is written in the topic, you'll find out =0

so...i think it proves it's a 99% secure AND 100% TESTED method.
[Legend Android Development] dobbo30:
but the problem is i kind of understand his guide but casca could you kind of simplify it and break it down for me like step1,step2,step3,etc and include details that you did that werent in the guide like wen i should hav my goldcard in when the phone needs to be plugged in and stuff like that? :) would be greatly appreciated thanks cus i really want to root my legend really badly and this seems like the only way since paul isnt doing many updates :P
[Legend Android Development] casca:
Dude, on the first post of this topic you have everything really well explained,trust me...just follow it by the book.
[Legend Android Development] dobbo30:
ok thanks for the advice im pretty sure on how to do it but just one thing to ask u

if something crashes in the middle of this process will my legend be bricked? :P
[Legend Android Development] casca:
If it crashes,simply remove the battery,and start doing it again.

But why the heck would it crash?!just do it man...You will feel ridiculous in the end :)
[Legend Android Development] dobbo30:
when i type in crackin.bat i just get:

error: device not found

error: device not found

error: device not found

error: device not found

error: device not found

"Freeing primary PERM linker"

error: device not found

error: device not found

error: device not found
[Legend Android Development] chinmoykanjilal:
Root works like a breeze

The root works like a breeze. Thanks for the awesomeness. Love you guys. If any of you need my two cents worth of advice, feel free to send PM or post a reply or contact me on twitter @ckandroid. Thank you guys. I will donate once I get my payment for this month. Great job.
[Legend Android Development] link2009:
I have been trying this method for the whole day but I have had no success.

I managed to downgrade to 1.31 but I cannot run step1-windows.

I keep getting FAILED <remote: 41 model id check fail> and now trying to re-apply the RUU downgrade will yield the same error.

Running Windows 7 64-bit with a Bell HTC Legend.
[Legend Android Development] dobbo30:
the update(downgrade) to 1.31 is sooo annoying ive tried it on 4 different pc' already and it gets to the bit where it says remember it will take 10 mins and then 2 mins in it says "could not perform update check that the device is plugged in properly"
[Legend Android Development] casca:
check your drivers before the error at device manager
[Legend Android Development] dobbo30:
yep ive got all the drivers just get usb connection error 171