yashsingh1/xdaforums huggingface dataset:
[Desire HD General] ykdr-scott:
tried that still no joy

C:\>Adb push boot.img /data/local/tmp

adb server is out of date. killing...

* daemon started successfully *

787 KB/s (4194304 bytes in 5.203s)

C:\>adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img

8192+0 records in

8192+0 records out

4194304 bytes transferred in 0.623 secs (6732430 bytes/sec)

C:\>adb pull /data/local/tmp/boot.img

1202 KB/s (4194304 bytes in 3.406s)

C:\>adb push goldcard /data/local/tmp

42 KB/s (19240 bytes in 0.437s)

C:\>adb shell chmod 775 /data/local/tmp/goldcard

C:\>adb shell cat /sys/class/mmc_host/mmc2/mmc2:*/cid

0000004d532020201022900c3800c846

C:\>adb shell /data/local/tmp/goldcard -c 02544d534430324732ab62c18900846e -o

ata/local/goldcard.img

HTC android goldcard tool Copyright (C) 2011, Wayne D. Hoxsie Jr.

Original code by B. Kerler. Special thanks to ATTN1 and the XDA team.

Donations can be made to the Electronic Frontier Foundation:

http://www.eff.org/

or to B. Kerler:

http://psas.revskills.de/

C:\>adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1

/data/local/tmp/goldcard.img: cannot open for read: No such file or directory
[Desire HD General] scotty1223:
Need to see the rest of your session. Could be any of the following...

-downgrade failed,not on exploitable radio

-not on correct recovery

-need to reboot prior to entering the recovery

-maybe others

There are alot of small errors that can cause failure. I've prolly run thru it a dozen times
[Desire HD General] ykdr-scott:
no probem and thankyou. i have to go sleep been at it for hours i will start it from fresh tommorow and post the whole session for you. thanks for your help
[Desire HD General] scotty1223:
No prollem :)
[Desire HD General] scotty1223:
When you type that,it should boot you to a black screen with silver letters. This is RUU mode. Once you're on that screen,enter the fastboot flash zip firmware.zip command. You should see stuff flashing in the cmd window,and a green status bar on the phone.

---------- Post added at 03:33 AM ---------- Previous post was at 03:27 AM ----------

From the session above,you didn't downgrade. The flash failed basically because your goldcard still failed,and your cid isn't compatible with the downgrade firmware.

There is a copy of the session here that may help: http://androidforums.com/showthread.php?t=702100 It shows what outputs you can expect from each command. :)
[Desire HD General] scotty1223:
Error 41 or 42 indicate that you have not correctly made your gold card .
[Desire HD General] ykdr-scott:
During the goldcard process it don't say errors so I move onto next step.

How do I fix this :confused:

I'm pretty screwd because I made a backup of Roms but they faild to generate md5 sums everytime. My recovery seems to choose what roms it wants to flash. I think the whole process of rooting has gone wrong somewere on my phone. Deffo recovery mode issues. :mad:
[Desire HD General] scotty1223:
actually,you did have an error:

i had that same issue... for some reason i was unable to save,and refind,the gold card image in data/local/tmp,as per attn1's original instructions.

what i did was just store the image in data/local:

/data/local/tmp/goldcard -c <sd card cid above> -o /data/local/goldcard.img

and then:

dd if=/data/local/goldcard.img of=/dev/block/mmcblk1

if you took the first command from me,then the second from the guide here,that is likely the issue.use the above dd is you use my command for goldcard image- they are slightly different. if youre following the code here,just make sure youre cutting and pasting everything correctly,if you still have some unexplained errors,maybe try the guide on AF instead. they are basically the same,with a couple small tweeks,and a bit more instruction.
[Desire HD General] ykdr-scott:
Hey man its finnaly worked thanks to your help. Appreciate it man.

Can finnaly flash roms without fastbooting now.

Thankyou so much :thumbup::)

flashed 4ext recovery seems fine but trying to back up my rom hangs on "generating md5 sums..."
[Desire HD General] scotty1223:
looks like you are having the prollem described at the end of post #58... "adb shell" not granting superpuser permissions. you can try

adb shell su dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img

or just use the android forum guide,wich pulls the adb shell commands out and just enters the shell,runs commands,then exits. its a little more typing/copy-pasing,but you can see that the commands that need superuser access are executed at a #> prompt
[Desire HD General] markyboyWATP:
Hi guys, was wondering if anyone would be kind enough to help me.

I get to step 4 ok, when i open CMD and type in C:\ace-tools, i then type in fastboot recovery1.img, then i get the following error :

C:\ace-tools>fastboot boot recovery1.img

'fastboot' is not recognized as an internal or external command,

operable program or batch file.

Would anyone be kind enough to try and help me?

Thanks in advance

Mark
[Desire HD General] androidmodd:
1 is there a folder called ace-tools in your C drive.

2 on your phone did you go to boot loader--->fast boot?
[Desire HD General] Steam.:
now that you're here, you might want to edit the 1st post cause you have an extra space in this command

the bit between local and tmp at the bolded part.

---------- Post added at 10:01 PM ---------- Previous post was at 10:00 PM ----------

try fastboot.exe boot recovery1.img
[Desire HD General] markyboyWATP:
Hi there thanks for the reply

Yes there is a folder on my C drive called ace-tools

Yes on my phone i am in FASTBOOT, i know this becuase on my phone it says in red FASTBOOT USB

Thanks for the help, much appreciated

Mark

---------- Post added at 09:15 PM ---------- Previous post was at 09:13 PM ----------

Thanks very much, this seems to have worked so far :)

Will see how it goes from here.

Thanks again mate

Mark
[Desire HD General] androidmodd:
Read the end part of steams post above.

Also steam I updated the first post, if there's anything else I should add on there or edit please tell me :)

Thanks.
[Desire HD General] Steam.:
but now you left this bit out: <string of numbers and letters should go here>

people won't know where to paste the strings that come up.
[Desire HD General] markyboyWATP:
Thanks i got it.

Unfortunatly i am having another problem now.

I can boot into CMW recovery, but when i go to choose ZIp from SD card i am getting an error

The error i am receiving is E: Cant mount /sdcard/

Any more help would again be appreciated.

Thanks

Mark
[Desire HD General] androidmodd:
Done, don't know how that got omitted but done.
[Desire HD General] markyboyWATP:
Ignore my previous post :o

Very sorry but i made a NOOB error lol, i for got to insert my SD card into the phone lol

You would think after flashing dozens of ROMs on my Wildfire i wouldnt have done this lol

Mark
[Desire HD General] hacktrix2006:
Thanks OP for putting the heads up from me but really no need for thanks it should be common knowledge by now that If your phone was pre-installed with Gingerbread it was not safe to use it. As most phone with froyo seemed to of had the buggy EMMC chip in it. I say that as the phone i got came with 2.3.5 GB and that had the none bugged EMMC chip.

Also the AAHK is no longer supported and people should bare that in mind if you do not know what your dealing with or you prob the EMMC you have and its the dreaded one do not continue its purely that simple.
[Desire HD General] markyboyWATP:
I have managed to get to this stage ok.

I installed the ROM through CWM recovery and turned on USB debugging.

When i was turning on USB debugging i had a look through my apps and seen that i have the Superuser App.

Unfortunately when i run the above i have no success.

I get the following error message.

Any help would be much appreciated.

Thanks

Mark
[Desire HD General] MisterMonitor:
Which bootloader sould i download from http://htcdev.com/bootloader/ if neither one of listed in htcdev.com matches my carrier ?
[Desire HD General] hacktrix2006:
yep use hboot for the carrier of the phone.
[Desire HD General] alfi07:
Help please

AFter messing with the unlocking bootloader. I now with s-off +recovery but the device cant boot normally :you see the white htc screen than it go blank.I can reach fast boot or recovery,but the computer doesnt recognise the device.and the divece doesnt recognise the sd card.

please help.

the device is not mine.

alfi
[Desire HD General] hacktrix2006:
Do you get errors about cache or anything like that. Are you able to format system boot data without errors?

If you get error you may have bricked the phone. Have you tried flashing a ruu back to the phone yet?
[Desire HD General] alfi07:
Thanks

When i am on recovery i get errors with all the options.What can be done?
[Desire HD General] hacktrix2006:
That my friend is a emmc brick. Which means you need to send it to a place to repair the EMMC and j-tag the firmware back onto it after.

It means you had the dodgy EMMC chip.

So look for a EMMC replacement with jtag service mate if it still within warrenty you can try to get HTC to replace it.
[Desire HD General] ale29-09:
Hi, can I install another ROM instead of the stock rooted when i get the first recovery? Thanks

Sorry for my bad english

Sent from Tapatalk 4
[Desire HD General] pontypool:
Guide seems to be non working, the issue with Su saying permission denied seems common. Also some of the commands are wrong, like fastboot recovery1.img is supposed to be fastboot boot recovery1.img

I got to this stage..

n cmd:

• fastboot recovery1.img

5. boot into recovery through bootloader and Install the ROM you placed on the SD card, (via install zip fileselect the rom zip)

6. Reboot the phone, ensure the rom is working fine and you have root access you can test this by turning on usb debugging then:

• Adb shell

• Su

but it's saying permission denied like everyone else.

Now could anyone please tell me what i can do from here to correctly root/ s off my phone
[Desire HD General] Steam.:
run the commands in the recovery you're supposed to boot
[Desire HD General] pontypool:
But I am following exactly the guide? what recovery am I supposed to load? the commands are saying permission denied. ? i dont understand what i can be doing wrong when im following the instructions exact.
[Desire HD General] scotty1223:
i think youre getting ahead of things. if im understanding correctly, hes having issue with superuser access in the recomended rom to to fflash at the very beginning of the process.

verify at what point youre having issue. i dont follow this thread real close,so i dont know what prollems "everyone else" is having.

show your entire cmd window from start to point you stop becasue of errors,and im sure we can figure it out.

the basic concept is solid,and does work.

-flash exploitable radio

-flash old recovery with froyo kernel so gfree will work

-run gfree to s-off,simunlock,supercid
[Desire HD General] ranger4740:
I think it's ment to be fastboot flash recovery recovery1.img not fastboot recovery1.img as that step is to install custom recovery, how ever there is no recovery1.img in the downloaded package so I just used the file name recovery.img instead.
[Desire HD General] pontypool:
1. Unlock the bootloader at http://htcdev.com/bootloader/

2. Copy your Unlock_code.bin file that you got in the email to the ace-tools folder.

Done No problems here, got my email and used it to unlock the phone, verified it was unlocked at the bootloader menu

3. Download rooted stock rom: http://www.multiupload.nl/20T9R21IGY

(link to rom thread: http://xdaforums.com/show...t=rooted+stock )

copy the ROM zip file to your SD card.

Done. Placed the rom in my sd card unzipped

4. Install recovery image:

Open cmd and type:

• cd <the directory of the ace-tools folder> (eg cd C:\ace-tools)

Ensure your phone is connected to your PC and then boot into bootloader, then navigate to fastboot.

In cmd:

• fastboot recovery1.img

5. boot into recovery through bootloader and Install the ROM you placed on the SD card, (via install zip fileselect the rom zip)

No problem up until this point, entered recovery mode on my mobile and installed from the sd card, watched until it completed the process.

confirmed it was installed when i rebooted the phone and the software version from "about phone" indicates the rooted rom is installed.

6. Reboot the phone, ensure the rom is working fine and you have root access you can test this by turning on usb debugging then:

• Adb shell

• Su

You should see the $ turn into a #. If this happens, congrats you have root access.

Followed until I had to enter Su but it said permission denied.
[Desire HD General] scotty1223:
so you are having a simple issue with superuser. biggest error with this is the simple fact that you need to have your phone awake,and be watching it when you enter su , as you may need to grant adb access. most folks dont realize this,and thus dont see the superuser popup on the phone. when you dont ok root access on the phone,you get the permission denied error in cmd.

failing that,you can try replacing superuser in that rom with superSU from this thread: http://xdaforums.com/showthread.php?t=1538053

the download link is about halfway down the page and labled UPDATE-SuperSU-v1.41.zip. no,you cannot just install it from the play store. flash that zip in recovery.
[Desire HD General] quasar12:
Had issues with unlocking the bootloader. Running "fastboot oem get_identifier_token" returned me "Command Error" even though I had the correct version of the RUU.

Here are the steps I found somewhere else to solve the issue!

1. Download the RUU for your phone and get the rom.zip from it

A. Run the RUU. For example, you want to update your Desire HD with RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1_Radio_12.65.6 0.29_26.14.04.28_M_release_225512_signed.exe. Run this file and wait till extract (you'll see a bar going from left to right) and after that leave it as it is (don't click next or don't close the program)

B. Go to your PC temp folder. For win7 its C:\Users\<user name>\AppData\Local\Temp and for winXP its C:\Documents and Settings\<user name>\Local Settings\Temp and look for the last created folder. Open that.

C. You'll get a rom.zip file there. Copy it to desktop or other suitable place. Now you can close the RUU program.

2. Rename the rom.zip file to PD98IMG.zip

FYI, You've to rename it according to your phone model number. Look for the model number in the serial sticker under battery. For Desire HD its PD98100, for Wildfire S its PG76100 etc. Take first four letter from this model number and then add IMG.

B. Now put this renamed file to a microSD card.

3. Update the ROM

A. Insert the card to microSD slot of the phone.

B. Power on the phone in HBOOT mode with microSD inserted. For most HTC android phones you have to press VolDown then Power to go to HBOOT mode. Wait for a while, phone will read the zip file and will ask you for update confirmaton. Read the screen instruction and press required button.

C. Update will start. Be patient and wait till being finished.
[Desire HD General] Hakem:
I am s-off finally!

Thank you very much.:good::good::good:
[Desire HD General] pontypool:
you mean "install sd card update" from the recovery menu in bootloader. Or install from sdcard zip?? which one?
[Desire HD General] quasar12:
Thanks for the instructions, I managed to S-OFF my device!.

Everything worked perfectly me until the root, although I did get some trouble unlocking the bootloader, as per my earlier message.

After that I had issues with all the commands quoted below, simply because the rooted RUU didn't give root permissions by default, thereby causing "permission denied" errors.

For all instructions starting with "adb shell" that I quoted below, I manually typed adb shell, followed by root to gain root access. I then executed the command.

E.g. for the line: •adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img I did the following:

adb shell

root

dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img
[Desire HD General] scotty1223:
install from sd card
[Desire HD General] f_enzo:
I have a question: If I change HBOOT on another than 2.00.0029, my bootloader will be unlocked?

Because inscription in left corner (***unlocked***) disapperd if I changed HBOOT.
[Desire HD General] scotty1223:
your phone has a flag,similar to the radio secure flag,that tells the hboot wether it is locked or unlocked. if you change to an older hboot,it is not looking for the flag,and not displaying the bootloader status. however,the flag is still holding the same value. when you change back to a compatible hboot,it will display "unlocked" again.

while on an older hboot,you dont have the eng commands available when on an unlocked,newer hboot. i personally just run stock,newest,unlocked hboots,but a nice alternative is the patched hboot provided by hyuh and attn1. there is no real advantage to running an old hboot,unless you want to run an old rom that requires it.

in newer phones,the lock status is tracked in mmcblk0p3 with these values:

00 00 00 00 locked

HTCU unlocked

HTCL relocked

im not sure if the values are the same for older,s2 devices,or where the flag is located(obvious guess would be p7 but i dont see anything there)

if anyone finds the flag location or values,please pm me or post them up! :)
[Desire HD General] tfd1978:
I have a DHD from AT&T ( HBOOT - 2.00.0030 and RADIO - 26.17.14.11_M ) I tried the whole proccess and eventhough I did't get s-off, I don't' really care about that right now. The phone works, but I have no sound on the speaker, on outgoing calls, incoming calls, the microphone doesn't work, no ringtones or other sounds work. I really want to know how to get it back to stock and leave it like that.

PLEASE if someone can help me get it back to stock!!!
[Desire HD General] pontypool:
Can anyone just delete this guide and replace it with a working non incorrect version? as it's just causing confusion for many people.

fastboot recovery1.img should be fastboot boot recovery1.img

Now why that has never been corrected I will never understand, maybe it's supposed to be common knowledge?

and also when I got to the step where you type adbshell and then Su it says permission denied? but why... up until then i have followed every step exact. i have an unlocked bootloader, and installed the mod... why is it that nobody can tell me what is wrong here ?? answer: guide is crap
[Desire HD General] Hakem:
Guide is very good. I'm s-off. Follow every step. And be patient.
[Desire HD General] xOverkill:
i dont understand, what should i do when i'm having permision denied after adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img ?
[Desire HD General] scotty1223:
you just need to run an ruu. the sound issues issues are typical with some devices and older firmware. for att youll need 3.20.502.52

you will need to relock the bootloader to run a full,signed ruu.

ive left this link before,but apparently when folks have prollems they dont search the thread ;)

you are welcome to use this guide: http://androidforums.com/desire-hd-...-s-off-simunlock-supercid-inspire-4g-dhd.html not saying the OP's guide is bad,just that there are finishing up and back to stock sections on AF,and i support that thread.
[Desire HD General] wangzhuoyu:
Hi, when I try to do step 6, the command was denied. Do you know how to deal with that? Thanks. It has been HTCDev unlocked.

C:\android-adb>adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img

adb server is out of date. killing...

* daemon started successfully *

/dev/block/mmcblk0p22: cannot open for read: Permission denied
[Desire HD General] SuperMechaCow:
When I use this command:

adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local/tmp/goldcard.img

I always get this:

/sbin/sh: /data/local/tmp/goldcard: not found

Unless I forget to chmod it. Then it just says permission denied.

I've also tried it with 777 instead of 757.
[Desire HD General] androidmodd:
Thought I'd post this nice PM that I received about this guide here:

[EDIT]: the title was "Please die for making such a bad guide"
[Desire HD General] Steam.:
I have to say though, your guide is missing a key point; su binary.I've had like 30 runins with superuser not working as it should, e.g adb shell commands don't work, but basic su access works.Point is, add in your guide for people to run superuser first, and go to info and tap to update the binary, note with huge ass letters that they need to have internet access first.Reboot after this and then begin the guide.
[Desire HD General] Infiltrator2K:
Help Please

Guys, I'm getting the "c:\ace-tools>adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img

/dev/block/mmcblk0p22: cannot open for read: Permission denied" error :/ After reading the posts I now believe this to be a superuser issue. I've spent hours trying to s-off my daughter's HTC Desire HD and I really don't want to waste any more time on it as I work away all week so time is precious when I'm at home.

I don't wish to be spoon fed information - I've read and Googled as much as I can, and I've even read the 'effen manual' when I unsuccessfully tried to use the AAHK, as well as the author's blog explaining why he pulled its support. I understand people's frustration with others who don't read he manuals properly etc., which is why I'm explaining that I've done my fair share of reading, but with that said can someone please simply explain what I have to do to get past the "permission denied" error so I've not got to waste yet more endless hours on this

I've 'not' noticed the phone prompt me to allow Adb superuser status. I know the phone's rooted and everything has gone smoothly up to adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img command. Can someone please help what I have to type and do to get past this hurdle. I really don't want to give up on this when I've spent so much time on it.

Many thanks

Ian
[Desire HD General] Steam.:
Try adb shell su,if that doesnt work enter just adb shell,type su , press enter and then enter the dd command
[Desire HD General] Infiltrator2K:
Thanks for the reply. Luckily I'm home tonight so I'll give it a go. I'll definitely let you know if it works to express my gratitude ;)

Cheers

Ian
[Desire HD General] Infiltrator2K:
Thank you, all done. I will say though that it's a long winded process and a hell of a steep learning curve for people like me. I've only ever hacked my Sensation, and that was using Revolution's tools. I did use the su command, although I was also using the adb shell, where as I should have left it out and continued the command starting with "dd" on that particular line. I had the su command several times during the process whenever I received the "permission denied" error.

Overall, to follow that guide you really do need to know adb and fastboot as the guide is seriously not friendly to noobs and definitely shouldn't be seen as being a step-by-step guide.

Thank you for your help. It was much appreciated.

Cheers

Ian
[Desire HD General] Steam.:
Yeah even this guide isn't that simplified as this kind of errors can pop up.Mostly like I said it was superuser issues, while on the other hand flashing that stock rom on a separate DHD root worked just fine and all commands too.Glad you got it sorted.