yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] sfjuocekr:
Did you remove USB storage so your phone can see the contents of the sdcard?

What happens if you do this:

ls /sdcard/

ls /sdcard/DHD/
[Desire HD Android Development] superdaddy:
Only the 1st and 3rd match of the MD5 thingy....

What do I do to make the 1st and 2nd ones match???
[Desire HD Android Development] ttav:
Thanks for your guide.Everything ran smoothly:)
[Desire HD Android Development] superdaddy:
Just putting it here as on a new page. Please help.
[Desire HD Android Development] Howling Wolf:
Thank you very much, that's what I also needed for the S-OFF to work. Next is the ClockWork Mod and it will be complete :D
[Desire HD Android Development] sfjuocekr:
Please post output of:

cat /proc/version
[Desire HD Android Development] superdaddy:
How do i do this?? Sorry don't know how to ddo it.
[Desire HD Android Development] sfjuocekr:
Just type it into the terminal and report back with your kernel version. The last eight chars after - are relevant.
[Desire HD Android Development] superdaddy:
Linux version 2.6.32.21-gbe90714
[Desire HD Android Development] sfjuocekr:
Place this module into the DHD folder and use manually load it before running the hboot script (after backup):

insmod /sdcard/DHD/wp_gbe90714.ko
[Desire HD Android Development] superdaddy:
Entered iit just after backup and before hboot and got this:

insmod: init_module ' /sdcard/DHD/wp_gbe90714.ko' failed (Function not implemented)
[Desire HD Android Development] afrcom15:
That's fine, it's the error you should get so go ahead
[Desire HD Android Development] superdaddy:
Ok then thanks.

now both of the 2 are matching, do I just reboot now?!?!?!

and could someone provide a link of the benefits of me Rooting are as I have never rooted any of my previous android phones.
[Desire HD Android Development] afrcom15:
If they match then reboot.
[Desire HD Android Development] LeeDroid:
Has anyone attempted to flash an update.zip that includes a boot.img after flashing the engineering hboot? Seems there may be an issue with the partition table.

Failure at line #

write_raw_image boot.img failed

BOOT: not found

Installation aborted

Swiped from my LeeDrOiD loaded HTC Desire HD using my thumb....
[Desire HD Android Development] sfjuocekr:
I think that has todo with the recovery more than the bootloader, if the partition table was wrong it wouldn't boot after flashing.
[Desire HD Android Development] nickiberli:
If i decide to go back to stock, can I just flash the latest stock rom (via. RUU) and i have my warranty back?

Or are there problems with flashing another hboot?
[Desire HD Android Development] fotone:
I made the S-OFF!!

I restarted and it booted

How do I check that I actually installed h-boot?

Thanks
[Desire HD Android Development] jkoljo:
Go to bootloader and if it reads s-off, you are good :)
[Desire HD Android Development] sfjuocekr:
RUU restores everything back to stock.

Otherwise you can use the restore scripts to restore the backups made of the original HBOOT and recovery then flash a stock ROM.
[Desire HD Android Development] sfjuocekr:
Turn phone on with volume down pressed :)
[Desire HD Android Development] sfjuocekr:
Just noticed too that OTA updates fail for a friend of mine, will do some research on the matter.

I might have borked his recovery tho fidling about ><
[Desire HD Android Development] fotone:
Thank you very much :)
[Desire HD Android Development] ccombe:
hmm i dont seem to be getting the bootloader to show up when holding down the volume down button. not sure if I am doing it wrong or the s-off didn't so anything ...
[Desire HD Android Development] ttav:
Go to Settings: Applications and untick Fastboot.
[Desire HD Android Development] haruryu:
can someone tell me what S-Off is? what it stands for? i cant find anything about it :P

thanks in advance
[Desire HD Android Development] jkoljo:
This has been asked many times, I am sure the forum search will give you a result. Basically it allows you to flash stuff and removes write protection in the phone.
[Desire HD Android Development] redmongoose:
Thanks worked a treat :D
[Desire HD Android Development] nailmind:
You DIAMOND!!!!!!

Nice one sorted without any probs.

Cheers for your work
[Desire HD Android Development] sfjuocekr:
Going by the reduced amount of error reports I'm guessing v0.5 is working as intended.

Will remove the v0.4 dowload tomorrow probably as I had left it up as a fallback if v0.5 was a huge pain in the a**.
[Desire HD Android Development] Stanimir Komitov:
Hi again,

I'm still not able to adb remount...I cannot figure it out why. I've got permroot, I have the R1 DHD clockwork recovery, but somewho I still don't have full access to my phone...

I was able to put new OC kernel, then to install the new wifi module.

However, when i tried now flashing LeeDroid custom rom, I was cut off in terminal when i tried to place the wifi module for the OC kernel. When I tried to mount I got "Permissions denied". I don't know what to do. Any help will be appreciated.
[Desire HD Android Development] sfjuocekr:
How do you mean cut of in terminal? As if it disconnected?

I think something might be wrong with adb on your phone then possibly. edit: Adb is probably not running as root on the phone btw.

Could you double check the bootloader if it reads S-OFF?
[Desire HD Android Development] Stanimir Komitov:
I mean I don't get adb permissions in terminal.

I also think that adb does not run with root, but the phone is rooted...I've removed system apps and have such that get root access to the phone.

How can I check if bootloader reads S-OFF?

edit: I'm not able to S-OFF now even with v.05. Output is attached.

I'm with OC kernel, does this make difference?

I even can't S-OFF with the guide using gscript, it ran successful before though.
[Desire HD Android Development] sfjuocekr:
You can boot up your phone with volume down pressed to get into bootloader.

Did you try to flash the new ROM using one of the ClockWorkMod releases? You can flash one trough fastboot which you can select at the bootloader ;) You will need the Android SDK for windows or fastboot binariry for linux or mac from HTC developer center. Google can help you find it.
[Desire HD Android Development] sfjuocekr:
Btw take note of the screenshot you made, all MD5 sums are the same which means you already have the correct bootloader.

Flash one of the ClockWorkMods available and flash tyour ROM trough that.
[Desire HD Android Development] Stanimir Komitov:
I have already the CWM and the new ROM flashed through that. It affects all ROMs that I flash. Android SDK is on my pc and for all of the ROMs I get this failure:

c:\Android SDK\adb remount

* daemon not running. starting it now on port 5037*

* daemon started successfully *

remount failed: Operation not permitted
[Desire HD Android Development] Birba:
Restore to original

Hello

I successfully rooted the device, flashed s-off hboot and flashed paul's recovery! Thanks for you guide.

Then i made a nandroid backup and after that i flashed leedroid's custom rom.

What would the right steps to go back to original? Is that right:

1. Restore Nandroid backup

2. Restore recovery with fastboot

3. Start the device and from terminal emulator run: su /sdcard/DHD/restore-hboot

4. Undo permroot in visionary

5. Run factory reset

Thanks
[Desire HD Android Development] Howling Wolf:
How to remove the write protection ?

Hello,

everything is ok, my DHD is permrooted and S-OFF, but the only thing I can't seem to find is how to actually remove the write protection in the phone ?
[Desire HD Android Development] PaY87:
You can also check my documentation of rooting a Desire, I just add some images and I am explainen some point more in detail:

http://android.jpameli.de/2010/11/18/rooting-your-desire-hd-and-flashing-a-custom-bootloader/

:)
[Desire HD Android Development] sfjuocekr:
Please do not host the DHD files from me elsewhere, link to this thread instead. It helps with versioning and bug fixes that are made.
[Desire HD Android Development] sfjuocekr:
What do you see when you do adb shell?

$

or

#

If it's the first adb is not running as root and you will have to remount the partition yourself:

mount -o remount,rw /system

Not sure if you also have to give it the partition location on the DHD, don't have one at hand to test.
[Desire HD Android Development] sfjuocekr:
Yes or run a RUU update.

And it's:

su

sh .........
[Desire HD Android Development] Birba:
At what point can the RUU be run?

Or will it replace hboot and recovery?
[Desire HD Android Development] sfjuocekr:
RUU restores everything iirc.
[Desire HD Android Development] j2kquest:
Thanks

couple hours spent reading through the forum

2 minutes to complete the whole process..........

S-off'd and have a custom recovery flashed....downloading MCR R1 now.....Thank you
[Desire HD Android Development] sfjuocekr:
You're welcome.
[Desire HD Android Development] no1male:
Just need official clockwork mod now :)
[Desire HD Android Development] haruryu:
When I use the terminal, and start with: SU

i get: permission denied.

i cant use the SH command then i get lots of Permission denied.

Why?

i did download and extract dhd o.5 and VISIONary. rtfm says to install visionary but i do not know how and with what... i

a little help would make me happy :P

thnx in advance
[Desire HD Android Development] sfjuocekr:
Errrrr.

Anyway open the .apk on your phone with a file manager it will ask to install. That is one of the most basic tasks....
[Desire HD Android Development] haruryu:
the only file i can find is superuser.apk

correct?
[Desire HD Android Development] sfjuocekr:
No you should have visionairy apk.
[Desire HD Android Development] haruryu:
weird :S

i dont have it :S
[Desire HD Android Development] sfjuocekr:
Then you failed on the instructions :p

Download it with the browser on your phone and click the download when it is done.
[Desire HD Android Development] haruryu:
Thank you... yes i did it wrong. i downloaded with my pc. :)

thanks again. !!!
[Desire HD Android Development] Klarato:
Hey mate,

Been humming and harring about rooting my DHD as well as turning s-off as there are so many danger posts haha. Although i must say thanks to your script this was nearly as easy as doing my N1!!

Thanks for all your hard work!

-Klara
[Desire HD Android Development] pinn___________:
Hi,

I followed the instructions via terminal and did the first 3 instructions ( I think)

What happened then is that i get an error message up saying android.process.acore as stopped unexpectedly"

So am I screwed or can I power off?

Thanks
[Desire HD Android Development] pinn___________:
Bumping as really need help asap as phone is unusable in its current state....

Ta
[Desire HD Android Development] haruryu:
is it ok that after i used: /sdcard/DHD/backup

that the MD5 is the same but the first SUM filesnames : ... /../../hboot_orig0.bin is not the same as the second /../../hboot_orig1.bin?

( example )

954ae8493849023849028498230ce034803 /sdcard/DHD/hboot_orig0.bin

954ae8493849023849028498230ce034803 /sdcard/DHD/hboot_orig1.bin

is this ok?

but the rest is the same, (the whole code of MD5 SUM is the same)

can i continue?

or must both be hboot_orig0.bin?

thnx in advance
[Desire HD Android Development] sfjuocekr:
So the terminal crashed?

Can you start it again?
[Desire HD Android Development] sfjuocekr:
It shows you the sums and filenames, so yes out is fine the sums match.
[Desire HD Android Development] pinn___________:
no, terminal didnt crash as far as i know - its still open and i can write in it (briefly) between crash messages
[Desire HD Android Development] sfjuocekr:
So it's still open it should show you some output, at what step were you?
[Desire HD Android Development] pinn___________:
Actually the whole phone seemed to crash once after turning screen back on and output is no longer there on terminal emu.

I'm pretty sure its the third - but could confirm if you could post the command
[Desire HD Android Development] haruryu:
i think i got a problem

i did al the steps correctly, after, sh /sdcard/DHD/hboot

the first 2 sums were the same, the third was different.

is said it would be safe to restart. i did, now i cant go in to the bootloader and when the phone starts. it gives many errors on the proces com.android.phone.

i cant put my pin in to be able to call.

what could i possibly done wrong? is this phone bricked now?
[Desire HD Android Development] pinn___________:
^^ sounds the same as mine, but I havnt tried a reboot yet- too scared too :/
[Desire HD Android Development] sfjuocekr:
If the first two sums match you are safe to reboot, it also tells you onscreen.

The crashes are caused by something else, usually a reboot fixes this or a factory reset.

If hboot wasn't flashed correctly you would have a phone that didn't power on. So I guess that you can't enter bootloader because fastboot is still on under settings > applications. Rebooting with volume down pressed seems to work too and otherwise with adb:

adb reboot-bootloader

But you need the Android SDK for that.
[Desire HD Android Development] sfjuocekr:
Just start over at:

su

sh /sdcard/DHD/check
[Desire HD Android Development] haruryu:
thnx for the info. i think you are right. flashing the hboot didnt work. i was able (with very much difficulty) to get back to terminal and do:

sh /sdcard/DHD/restore_hboot

everything went well. but after reboot all went wrong again. so i turned off. placed out the battery, waited 10 seconds. placed back, it all worked again. my htc works now. i think the battery refreshed it all.

update:

I can get in my phone, call again, and do whatever i want.

but i cannot get anymore in the bootloader. not with volume down. i think the bootloader is damaged. anyway to fix this?
[Desire HD Android Development] pinn___________:
Wish I had read this before your previous post as just restarted - all seems well though. Will try as you suggested now.

Thanks

Ok , after at the second step I get md5sum can't open hboot_orig* no such file or dir

ANy ideas?
[Desire HD Android Development] sfjuocekr:
You need to turn off fastboot settings > applications > uncheck fastboot. Then turn off phone and power on with volume down button pressed.
[Desire HD Android Development] sfjuocekr:
Not sure how the backup script can throw that error as the lines before that creates the backup...

If you look in the DHD folder do you see hboot_orig0.bin and hboot_orig1.bin? I'm guessing user error.
[Desire HD Android Development] pinn___________:
nope, neither files are there :?

Just repeated thee steps and checksums match at first cmd but I get the same error at the second step and
[Desire HD Android Development] sfjuocekr:
If the bootloader is damaged the MD5 sums would have been different and your phone was likely to not boot at all.

Why did you decide to restore it when it was already flashed correctly?
[Desire HD Android Development] sfjuocekr:
busybox dd if=/dev/block/mmcblk0p18 of=/sdcard/DHD/hboot_orig0.bin

busybox dd if=/dev/block/mmcblk0p18 of=/sdcard/DHD/hboot_orig1.bin

busybox dd if=/dev/block/mmcblk0p21 of=/sdcard/DHD/recovery_orig0.bin

busybox dd if=/dev/block/mmcblk0p21 of=/sdcard/DHD/recovery_orig1.bin

busybox md5sum /sdcard/DHD/*.bin > /sdcard/DHD/MD5sums_orig.txt

This is the actual backup step.

Did you make the DHD folder with capitals? There must be something wrong if the above doesn't generate the files needed... Please make a screenshot with ShootMe from the market.
[Desire HD Android Development] pinn___________:
I extracted and then copied your folder as is, so the structure is the same.

Will post back in a min
[Desire HD Android Development] Nick_Hrh:
I have permarooted my devices so now im thinking about doing s-off. My question is how many has this worked for without any problems?

Thanks
[Desire HD Android Development] sfjuocekr:
Thanks for reporting as you see it gives an error before the md5sum.

I have yet to figure out why it fails at the if statement there, so either go back a few pages and download the 0.4 release and see if that works out for you or wait for me to fix the problem. It doesn't happen on the DHD I'm testing on so if you could post a screenshot of the about phone screen? I'm only interested in the bottom part where versions are shown.
[Desire HD Android Development] sfjuocekr:
Files have been downloaded over a thousand times since initial release, amount of proper brick reports zero so far.

If there are any problems it's probably an error with the script before any harm is done.
[Desire HD Android Development] Nick_Hrh:
Thanks for the answer.

Will report back after im done :D

Edit: Ok all done worked like charm.

Thanks for the great work on hacks and exploits
[Desire HD Android Development] pinn___________:
Hmmm, I don't see the error to tell the truth - what are you referring to?

I'll try the other version as you say and post back.

ta
[Desire HD Android Development] haruryu:
I thought it was damaged so i restored. Because i couldn't get in to bootloader. Now i still cant
[Desire HD Android Development] pinn___________:
get the following error now, and yes it is in the root and with CAPS
[Desire HD Android Development] sfjuocekr:
Have you turned off fastboot?
[Desire HD Android Development] amjad_2020:
Thank you so much :D
[Desire HD Android Development] sfjuocekr:
There is no error in that screenshot...
[Desire HD Android Development] sfjuocekr:
First line after sh /sdcard/DHD/backup:

[: not found

Looks like an error to me and it actually is, I'll RUU the DHD of a friend of mine to that version to see what goes wrong with if statements. If anyone knows already please let me know, the if statements are supposed to work in their current form :s
[Desire HD Android Development] haruryu:
Thnx it worked. You r good! Thank u so much. I hope it is save to try again. Will i be able to set CPU to 1.22 ghz if i flash recovery instead of hboot?
[Desire HD Android Development] sfjuocekr:
You can follow the guides on how to get a custom recovery.

Basically it governs updating to a custom recovery CWM, from Paul for example, trough fastboot and installing the needed kernel.
[Desire HD Android Development] haruryu:
Thnx for all the help sfjuocekr! Ill try later again.
[Desire HD Android Development] pinn___________:
ahh,,I thought where it said "something went wrong with the download..."

I'll try the next step then.

Thanks for your continued help

---update---

sorry to be a pain in the ass but could you check the screenshot and see whether all has gone as should?

ta

----final update--

read carefully through and all the checksums did seem to match so rebooted and followed all the others steps and is sorted now.

Thanks for your patience and support!!
[Desire HD Android Development] sfjuocekr:
It's better to use the dumb version included in the v0.6 I put together as a temporary fix. The 0.4 version can give some other errors if the VISIONairy+ kernel module doesn't work.
[Desire HD Android Development] crypticc:
ran visionary r14...ran script... first check...backup....sweaty palms...hboot (more because it was my wife's new phone).... WORKED!

things I checked and triplicate checked. md5sum of original downloads on PC and on sdcard. disabled fastboot. and did plain vanilla reboot before doing any reboot recovery or bootloader. ensured setcpu or visionary temproot weren't set to run as default.

Thanks everyone who contributed to this. I'll be sending some shots to those who seem most involved.
[Desire HD Android Development] Nick_Hrh:
Maybe a dumb question, but I can uninstall visionary after all this is done and working??
[Desire HD Android Development] fishslaughter:
Won't flash custom roms

After following this and installing ClockworkMod REcovery v2.5.1.2 it won't flash custom roms.. What might be the issue?

Edit: I got it working, there was something wrong with the permissions so using the "Fix permissions" option in advanced fixed it :-)
[Desire HD Android Development] sfjuocekr:
Yes you can, if you permrooted.
[Desire HD Android Development] Nick_Hrh:
Ok, thanks
[Desire HD Android Development] eozen81:
@sfjuocekr,

Wonderful thread, awesome details, appreciate the way that you want people to understand some concepts here, even though my DHD has not arrived yet I nearly catch everything so far.

Just a friendly advise, people are easier to get learnt via some screen shots, maybe you can record a "how to" video or share some screenshots for steps when you have got time (If you have got of course lol).

Again, thanks so much.
[Desire HD Android Development] boutch3r:
Hi everyone, Im attempting to s-off my DHD.

Here's what the terminal tell me :

Something went wrong with the download or extracting this archive!

Making kernel module for version:

g66cfb7a

Testing kernel module:

insmod: can't insert '/sdcard/DHD/wpx.ko' : Function not implemented

Then the instruction tell me that if I got this error : "blabla" or "the one above" it means the module worked and I can continue.

The MD5 sum match, but is it normal the archive can't be extracted ?

Anyway thank you for this thread !
[Desire HD Android Development] mupet0000:
Same error but different kernel module version! The two MD5 sums at the top match though, I don't understand what is wrong. I press Home on my device it keeps crashing the process acore has stopped unexpectedly!! What happens if i reboot!!!!
[Desire HD Android Development] sfjuocekr:
Please both of you read what is written on screen. It tells you that if both sums do not match something went wrong with the download.

I you are suffering crashes it's likely to be solved after turning off the phone and or flicking the battery.

You are still safe to reboot if you didn't get to the hboot part yet.
[Desire HD Android Development] sfjuocekr:
The while process of flashing the bootloader is as simple as writing three commands as root into the terminal. If I make screenshot people still wouldn't read and the screenshots would be outdated with every version.
[Desire HD Android Development] eozen81:
You are right, maybe my advise would be more helpful for complicated steps like in the root/S-Off/Recovery thread.
[Desire HD Android Development] sfjuocekr:
I doubt that screenshots will help much. Rooting is basically three taps on your screen, if someone needs screenshots for that he must not be able to read his screen?

For the bootloader part the assumption is made you know your way around with adb, linux sh/bash, fastboot and being able to compare match by eye (governs reading too).

For the recovery part you only need some basic google skills, the android sdk and some form of basic cmd(DOS), sh and/or bash knowledge.

If I were to make screenshots of that what would people do wrong next? Bring up errors like recovery file sizes do not match those in the screenshot?

It also doesn't help with helping people if they don't know what is or was done in the case something does go wrong.
[Desire HD Android Development] afrcom15:
Strange!!!!!!!!!!!!!!!

Anyone noticed this:

If the phone is powered down (not hibernation) and the charger is plugged in after, the phone will go into recovery without any help from the power button. It happens on all the custom roms I've tried so I'm thinking it's either an hboot issue with the ENG boot or the CWR we are using.

Thoughts anyone???????????
[Desire HD Android Development] Nick_Hrh:
Yeah, happend to me also
[Desire HD Android Development] mupet0000:
Restarting my phone was fine, it says "Something went wrong with the download or extracting this archive" just after warning if the MD5's are not correct to not continue.

Probably easier to show a picture so here:

http://i18.photobucket.com/albums/b134/mupet0000/20112010557.jpg

I don't understand what I did wrong, the zip file from the first post in this thread is where I got the files, the zip is fine and the files I extracted are fine, the phone is perma rooted. Any ideas? (I blocked out the codes just because I'm not sure if they are phone specific or whatever, the MD5's at the top DO match though).
[Desire HD Android Development] sfjuocekr:
If both sums match you can continue, nothing went wrong except probably for my writing.