yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Spinstorm:
I am somewhat confused...

Do some DHDs come with S-OFF? so you don't have to flash an ENG HBOOT?

In which case all you need to do is install a custom recovery and flash a custom ROM?

Or does every phone have to have an ENG H-BOOT flashed with S-OFF... or am I totally confused? In which case maybe someone could explain as it is not awfully clear here...
[Desire HD Android Development] sfjuocekr:
There is no S-OFF shipped HBOOT.
[Desire HD Android Development] mupet0000:
Both sums match yes but I'm not confident to continue with these errors on the screen. If I'm to risk bricking my phone doing this, I just want to know what the errors are so I can continue.

You can see them in my picture I posted in my other post something like "insmod cant insert sdcard/dhd/wpx.ko fuction not implented".
[Desire HD Android Development] sfjuocekr:
Ok sorry, but you simply did NOT read what is said onscreen. That error is good, if you had learned to read you would have figured that yourself by now.
[Desire HD Android Development] otravapwi:
Despite what I have written mupet0000 user to continue, and obey the orders of the screen?
[Desire HD Android Development] haruryu:
ok im sorry, i post again.

last time i tried, it went all wrong so now i ask for sure again if i may continue

after using: sh /sdcard/DHD/hboot

d7dfadsfdsf77733ebofodfdof00033erfjdlke99 /sdcard/DHD/hboot_check.nb0

d7dfadsfdsf77733ebofodfdof00033erfjdlke99 <<CORRECT MD5

084023840jfladsjflkdsj89r89434348398jjj034 /sdcard/DHD/hboot_orig0.bin

can i continue?????

the first 2 are correct, i ask for sure again, because last time i did, all went wrong

nevermind :D it worked, Thanks for this thread. its weird. last time i did all the same, it didnt work. now it did!

thanks again!!!
[Desire HD Android Development] sfjuocekr:
Reading, comparing and matching are so complicated for the simple human mind :)

Nothing is weird, it works and weirdness is user error ;) It is stated on screen what is correct and what is not.
[Desire HD Android Development] haruryu:
yes, correct :) i just cant remember i did anything wrong, i think that is the weird part haha. but it works perfect now :) thnx
[Desire HD Android Development] NixZt0rm:
aftter sh /sdcard/DHD/backup i got "md5sum: cant open" but it says do not coninue if it says "do not match" so the question is can i continue?
[Desire HD Android Development] sfjuocekr:
Please download ShootMe from the market and make a screenshot to attach to your post.
[Desire HD Android Development] :
Hi sfjuocekr,

Just saw that you ask us (the other "trainers") to refrain from hosting/discussing in other forums. As you were the original creator I will gladly comply, have now updated my post/thread and will discontinue working on it.

So you can now expect a lot of german speaking user to start migrating here :):)

PS: You idea was gold with the scripts. Thanks again :)

http://www.android-hilfe.de/anleitu...-des-bootloaders-visionary-32.html#post762954
[Desire HD Android Development] karel2010:
I try to S-OFF my DHD (rooted with r12+) with your method but when I wrote the command : sh/sdcard/DHD/check, it appeared "not found"...

I've tough extracted the DHD file (v 0.4) at the root of the SD Card...

Any idea ?...
[Desire HD Android Development] sfjuocekr:
It's mainly because I want to be aware of the problems around my scripts. Since more guides started popping up on the net all those guide writers get the error reports instead of me. Not only does it limit me from finding flaws to correct instead also the wrong people are credited for the hard work of others. It's ok for people to guide people trough the process, but please direct questions here so I can do something about problems that arise instead of working around them. I grew quite tired of following multiple threads on multiple forums to hunt for errors since version 0.3, while barely anything was reported here and others are thanked for the quick fixes I made here...

So as of now I'll only respond to errors reported in this thread to safe myself the burden.
[Desire HD Android Development] sfjuocekr:
Please download version 0.6 from the first post and start from that.

Maybe you forgot to turn the phone back to charge only or forgot a space between sh and /?
[Desire HD Android Development] karel2010:
A space of course !...you're the best !!!...

Thanks a lot !
[Desire HD Android Development] :
sfjuocekr,

I have written numerous how-tos and guides myself, so I understand you primary intend with ensuring you capture all the issues :) No "boo" from my side, I agree with you and would have done the same.

However, "in-closing", just to comment on "wrong people credited" as someone could interpret this as me stealing your "thunder" - I started my thread when you issued the inital version, where I credited you for the initial idea, edited the script to remove recovery, added a couple of checks myself and since then have used my modified version going forward with my extensive thread/how-to/noob guide. I have spent numerous days and nights preventing users to brick their phone and I am sure none of the users that I spervised/coached ever had the need to come here as they were not supported by me. So I think this is a little different to simply mirroring your thread :)

In the beginning, I simply saw the need for more checks and a more rigorous tutorial to prevent potential bricks. As you know, the concept and method has not changed since the intial version of the wpthis module (feels like years ago:)

Once the correct wpthis module is loaded via insmod (function not implemented) and the system is r/w capable, the BL is flashed. Either manually (as I did on the day when s-off was possible via wpthis and hexediting the module) or, more user friendly, via a script with failsafe methods and recovery possibilities.

99.9% of the issues were related to visionary not providing the correct module (as you realised hence you added the module yourselve) or users simply not being able to root properly, either due to inexperience/lack of knowledge or because visionary didn't work correctly). I think you are doing a great job in continuing to improve the script to make it even more user friendly and removing the No.1 cause of errors - visionary - and seeing that you give great support here as well - I am very happy and can rest assured that the german forum users will find all the help they need here!!

Thumbs up!!
[Desire HD Android Development] sfjuocekr:
It's because of you I have left out flashing recovery and made it optional :) I don't feel you stole away the "thunder", but posts some people have made are plain silly. Whereas I helped them in the respective thread then thanking the OP for his efforts, the main reason why people should be linked to the original thread instead.

Also the very first version posted was a rather quick telephone edited script to flash a few phones myself.

But to me it was just an annoyance to refresh the page and seeing no error reports, but instead found them in the other threads. This had greatly todo with most users not being able to read instructions properly.

The main problem before I want to start automating it all is the if statements not working and I need to find some people who are suffering this problem to help me out. Basically I need someone who had this problem to make a nandroid of his used rom directly after flashing hboot and recovery. I'm only in need of the system and boot image's you can leave the rest away like data.img.
[Desire HD Android Development] seether:
Everything went like silk ! Thank you !
[Desire HD Android Development] crypticc:
sfjuocekr 5 EURO heading your way. Can you share with me link to donate with the three people you credited in your OP pls. (the original rooters) Ta
[Desire HD Android Development] sfjuocekr:
Paul is from Modaco, you can donate there for making VISIONairy.

The other two I can't recall their donate links right now, but when I wake up and read this on pc I'll check the forums here or irc.

edit: added link to MoDaCo and adwinp for the very first thread :)
[Desire HD Android Development] Jompet:
karel2010	I try to S-OFF my DHD (rooted with r12+) with your method but when I wrote the command : sh/sdcard/DHD/check, it appeared "not found"...

I've tough extracted the DHD file (v 0.4) at the root of the SD Card...

Any idea ?...

I have the same problem.

Is whatever the 'check' thing is there in the latest release?

I'm not missing any spaces or anything like that. There are only two folders there.

CONFUSED!
[Desire HD Android Development] sfjuocekr:
Yes indeed there are two folders now as is stated in the RTFM to rename DHD-smart to DHD.
[Desire HD Android Development] Jompet:
Ooops!

I'm so sorry. I should have ReadTheF*****Manual! PROPERLY!

n00b error.

Thank you for your help!
[Desire HD Android Development] sfjuocekr:
No problem, I've called it RTFM for a reason :p
[Desire HD Android Development] crypticc:
Job done. Cheers. Adding references to your own page definite plus. Much appreciated.

Funnily enough spent more money on Android in micro-purchases, than I ever did on Atari, PC, PS3 or whatever. Anyone else?
[Desire HD Android Development] zelkinp:
Hey guys, I've just completed rooting my DHD but can't seem to set r/w permissions for /system. I have tried setting the r/w permissions via Terminal Emulator, adb shell and the clockwork mod recovery (Currently set to 'mount' and if I change to unmount and reboot it will set back to mount).

Every time I enter into Root Explorer it will be set as r/w until I move into the /system folder where it will switch to r/o and the 'Mount R/W' tab doesn't switch it.

Can anyone tell me what I might be missing?

It's set to S-OFF and everything went ok during the root process, I just want to get rid of the bloatware apps.

Thanks for any help.
[Desire HD Android Development] Draghkar:
Hi this is the errors I'm getting any help would be appreciated

$ export PATH=/data/local/bin:$PATH

$sh /sdcard/DHD/check

df4fd77f44993eb05a4732210d2eddc6 /sdcard/DHD/hboot_eng.nb0

df4fd77f44993eb05a4732210d2eddc6 << CORRECT MD5

If the above MD5 sums do not match ... DO NOT CONTINUE!!!

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': Operation not permitted

If you get this error:

insmod: init_module '/sdcard/DHD/wpx.ko' failed (Function not implemented)

or

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

This means the module worked ;)

You can now continue with:

sh /sdcard/DHD/backup

$sh /sdcard/DHD/backup

dd: can't open '/dev/block/mmcblk0p18': Permission denied

dd: can't open '/dev/block/mmcblk0p18': Permission denied

dd: can't open '/dev/block/mmcblk0p21': Permission denied

dd: can't open '/dev/block/mmcblk0p21': Permission denied

md5sum: can't open '/sdcard/DHD/*.bin': No such file or directory

Backup made!

md5sum: can't open '/sdcard/DHD/hboot_orig*': No such file or directory

DO NOT CONTINUE IF THE ABOVE MD5 SUMS DO NOT MATCH

SOMETHING IS HORRIBLY WRONG IF THEY DO NOT MATCH

YOUR PHONE WILL LIKELY BE BRICKED IF YOU DO CONTINUE

YOU HAVE BEEN WARNED!!!

Please continue as follows to flash the bootloader and get S-OFF (HBOOT):

sh /sdcard/DHD/hboot

$
[Desire HD Android Development] afrcom15:
It doesn't seem that you have root access, have you used VISIONary to root the phone?
[Desire HD Android Development] Draghkar:
Yes it installed and ran com_modaco_visionaryplus_r14.apk Set system r/w after root then temp rooted and then permrooted and it reboot and i loaded android teminal emulator and typed su and got # so i installed the DHD folder in root of sd card and this is what i got when i typed those commands in Android terminal emulator
[Desire HD Android Development] afrcom15:
OK in terminal emulator did you type 'su' before you ran the check command?
[Desire HD Android Development] Draghkar:
Problem solved, looks like VISIONary r14 permroot didnt work first time around i only had temp root not sure how this works event though it rebooted after permroot first time i typed su in terminal i had # but i just typed again and access denied so i rebooted and ran VISIONary again and the scripts ran fine.

Thanks afrcom15 looks like i stuffed up somewhere along the way now lets see if i can get through the rest of it without making a pain of myself.
[Desire HD Android Development] zexbig:
Open script with notepad on your pc and type command by command in terminal on Your DHD

http://cookedroms.com
[Desire HD Android Development] sfjuocekr:
Sorry but you failed yourself, look at the first line you wrote... You skipped elevating to superuser all together...
[Desire HD Android Development] sfjuocekr:
If you are able to manually remount rw and it changes back to ro, it seems like something is switching it back?

You can also remove programs with TitaniumBackup, but remounting rw should not switch back automatically.
[Desire HD Android Development] patriotaus:
I have just successfully rooted and S-Off'd my new DHD. I was so afraid doing this i thought i was going to brick it with all the warnings. Maybe you should have an assurance like "If you follow this guide exactly there is no reason your phone should be bricked".

Is there a way we can check if S-Off worked? other then just try to install a custom rom?

Anyway, just wanted to give me thanks, THANK YOU
[Desire HD Android Development] sfjuocekr:
We havent yet had problems reported of bricks indeed, but there are still those 0.01% possible bad block situations where something might go wrong.
[Desire HD Android Development] Mr.Kakarot:
I went from a total noob to just following instructions.... and it all seemed to work, thanks to all you folks out there, for all the hard work!

The only thing I messed up on a couple of times... was switching it back to charge only!
[Desire HD Android Development] aNight:
hi guys

i have problem as shown

i need help please because i become crazy now loool :confused: :

export PATH=/data/local/bin:$PATH

$ sh /sdcard/DHD/check

df4fd77f44993eb05a4732210d2eddc6 /sdcard/DHD/hboot_eng.nb0

df4fd77f44993eb05a4732210d2eddc6 << CORRECT MD5

If the above MD5 sums do not match ... DO NOT CONTINUE!!!

Something went wrong with the download or extracting this archive!

Making kernel module for version:

gf3f553d

Testing kernel module:

insmod: can't insert '/sdcard/DHD/wpx.ko': Operation not permitted

If you get this error:

insmod: init_module '/sdcard/DHD/wpx.ko' failed (Function not implemented)

or

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

This means the module worked ;)

You can now continue with:

sh /sdcard/DHD/backup

$ sh /sdcard/DHD/BACKUP

dd: can't open '/dev/block/mmcblk0p18': Permission denied

dd: can't open '/dev/block/mmcblk0p18': Permission denied

dd: can't open '/dev/block/mmcblk0p21': Permission denied

dd: can't open '/dev/block/mmcblk0p21': Permission denied

md5sum: can't open '/sdcard/DHD/*.bin': No such file or directory

Backup made!

md5sum: can't open '/sdcard/DHD/hboot_orig*': No such file or directory

DO NOT CONTINUE IF THE ABOVE MD5 SUMS DO NOT MATCH

SOMETHING IS HORRIBLY WRONG IF THEY DO NOT MATCH

YOUR PHONE WILL LIKELY BE BRICKED IF YOU DO CONTINUE

YOU HAVE BEEN WARNED!!!

Please continue as follows to flash the bootloader and get S-OFF (HBOOT):

sh /sdcard/DHD/hboot

$ SH /SDCARD/DHD/HBOOT

SH: permission denied

$ sh /sdcard/DHD/hboot

insmod: can't insert '/sdcard/DHD/wpx.ko': Operation not permitted

If you get this error:

insmod: init_module '/sdcard/DHD/wpx.ko' failed (Function not implemented)

or

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

This means the module worked ;)

dd: can't open '/dev/block/mmcblk0p18': Permission denied

dd: can't open '/dev/block/mmcblk0p18': Permission denied

md5sum: can't open '/sdcard/DHD/hboot_check.nb0': No such file or directory

df4fd77f44993eb05a4732210d2eddc6 << CORRECT MD5

md5sum: can't open '/sdcard/DHD/hboot_orig0.bin': No such file or directory

If the first and second MD5 sums match, it went correct and you are safe to reboot!

If the first and third MD5 sums match, it failed writing but this is NOT fatal and still safe to reboot!

IF THE FIRST MD5 SUM DOES NOT MATCH EITHER SECOND OR THIRD

DO NOT TURN OFF YOUR PHONE!!!

IF YOU DO YOUR PHONE WILL BE BRICKED!!!

But this should not happen, if it does happen seek help on the forums!

If the flash went correct you can now reboot and install a custom recovery trough fastboot.

$
[Desire HD Android Development] afrcom15:
You do not have root access, have you run VISIONary?
[Desire HD Android Development] aNight:
i do have root access super user as visionary +

and i test it with adfree

but i don't knew where is the problem
[Desire HD Android Development] afrcom15:
in terminal emulator type 'su' before anything else, superuser will ask you to allow it, do so. The symbol $ should change to #
[Desire HD Android Development] prank1:
I used your script as part of a tutorial, just wanted to say it worked flawlessly and was really straight forward...

Just so you know, my Desire HD was from the third batch (latest, only arrived in the UK on the 25th November) that HTC have supplied the UK with, and everything (including clockwork mod and custom roms) work fine, so HTC have not patched any exploits so far.

Keep up the good work!
[Desire HD Android Development] Shoggy:
Great work! Had no problems. The process looks more difficult than it really is :)
[Desire HD Android Development] sfjuocekr:
User error.

You didn't start with:

su

sh /sdcard/DHD/check
[Desire HD Android Development] Limerick_fr:
busybox I/O error

Hi all,

First of all, I don't understand what I'm doing :o

I just follow some instructions to try to come back to HTC ROM as I have a branded ROM from French provider (SFR).

Then I was trying "to HBoot" after installing Visionary 12 and Titanium Backup.

For the check, MD5 is correct but just above I have a line saying busybox I/O error.

But as it was saying MD5 was correct, I tried to backup.

Then I had 4 or 5 lines saying access denied (with something about busybox).

So I stopped here, but I don't know if I've done something which needs to be corrected (is it dangerous to reboot), or if there's nothing too wrong.

And by the way, what should I do to go further.

Thanks to you,

Lim
[Desire HD Android Development] jagabongo:
Okay now my Device is also S-OFF Permroot etc.

So if my device goes broken and i have to send it to the manufacturer is it possible to set all back to normal ?
[Desire HD Android Development] afrcom15:
If you have to send it back make sure you have this splash screen
[Desire HD Android Development] liam08:
I have got as far as sh /sdcard/DHD/hboot

I've run the script and the MD5 is exactly the same as quoted earlier in this thread except it has an extra 0 on the end. I know this is wrong, but what are my options?
[Desire HD Android Development] sfjuocekr:
I take it the MD5 sum is matching but the filename ends with a zero? Other wise I'd made a typo somewhere, the MD5 sum can't have an extra zero if the rest matches.
[Desire HD Android Development] sfjuocekr:
Yes you can with a RUU or do it manual.
[Desire HD Android Development] sfjuocekr:
You need to become root first, before using the script type:

su
[Desire HD Android Development] liam08:
My god I am a thick twat. It was the .nbo file extension. LOL! I was ****ting a brick then.

Phew.
[Desire HD Android Development] liam08:
Everything is spot on now. Rooted, S-OFF'd and Clockwork Modded. So happy.
[Desire HD Android Development] lolish3k:
Phone is rooted S-OFF is on

I run this backup script what exacly does it do?

i run sucessfuly dunno where to go from here. i want to be able to backup and install defrent roms and be able to restore the phone to normal state.

I downloaded Rom Manager installed this Clockwork thingy when i run the backup on the manager it comes with red triangle and just sits there.

Skickat från min HTC
[Desire HD Android Development] raecarter82:
Hi I'm having this error any ideas?
[Desire HD Android Development] darrenjdoc:
If you have the phone for less than 28 days CPW should give you a brand new handset. I got mine through mobiles.co.uk who are owned by CPW and i read somewhere in the contract if you are having problems with the handset they will replace it with a new one.
[Desire HD Android Development] javacoffer:
Excuse me! I am a new user of DHD. And I want to set S-off with your method. But just as you said, I can't Reboot my phone, if the Hboot MD5Sums do not match. Then what shall I do? Run the scripts again ?
[Desire HD Android Development] mousey_:
Thyrus how do you know which /dev/block/mmcblk relates to which part of the ROM? If there is a list somewhere could you link to it if possible?

Regards

Mouse
[Desire HD Android Development] jkoljo:
Yes, you will either have to download the hboot again or try flashing it again, depending on which MD5 is incorrect.
[Desire HD Android Development] mikecoffee:
Even experieced users get sweaty palms playing around with S-OFF, most people unless they are experienced should be fine with just root, if you don't how to check if a file you've downloaded is the correct on and is intact, i kinda think you shouldn't be doing this, or if you want to do it find a old G1 or hero on the cheap and learn on that.

Bricking a DHD could be expensive! and also crys of oh my i've FU my desire cause me to roll my eyes, saying that even experienced users brick phones some times but the community seems more forgiving and willing to help, as we normally can work out why and if its actually bricked.

But noobs, trying to help every noob that "bricks" there phone from inexperience can get grating, we should set up a irc channel #helpi'mnoobi'vebrickedmyphone and script it tee hee
[Desire HD Android Development] no1male:
Guessing best think is to perma root and then wait for a recovery, which I doubt will be far off
[Desire HD Android Development] El_Nino9:
don't flash recovery like that

i beg all of you, specially the OPs of all the guides not to flash recovery like that

once you have s-off why would you? flash it using fastboot ffs...:eek: its the easiest way and the least dangerous method!!!!
[Desire HD Android Development] sfjuocekr:
First off sorry for being gone all day.

The recovery included is a simple patch to make the recovery not check signatures, in fact it is the exact same as posted in other guides/threads in this forum.

As for the fallback I should add add a script to restore HBOOT and recovery asap indeed and separate the HBOOT/recovery parts too.

For the file not found issues, these should not happen and I'm not sure what went wrong there either. Did you run trough ADB or trough a terminal on your phone? Because I think that if you are doing it trough ADB the shell might be looking for the wrong path, but I have no clue why that would happen. Or maybe you did not double check how you extracted the archive, there should be a directory called DHD in the

root of your SD card with a few files in it ... not another DHD directory!

Now for people with different MD5 sums, the correct MD5 sum for HBOOT is DF4FD77F44993EB05A4732210D2EDDC6

Please if the MD5 sums do not match, open up adb shell, su and cd to /sdcard/DHD

Check md5 sums like this:

md5sum hboot_eng.nb0

It should match up with DF4FD77F44993EB05A4732210D2EDDC6 if it doesn't something went wrong with your download or the HBOOT got corrupted while extracting.

You can dd back the backup of HBOOT and recovery quite easily if it went wrong and gave you wrong MD5sums.

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

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

Check if the backup HBOOT matches the original ...

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

md5sum /sdcard/hboot_orig.bin

md5sum /sdcard/hboot_check.bin

The extensions do not matter at all, I just used .bin as its easy to md5sum *.bin