[G2 and Desire Z Android Development] hispeedworm:
Update 5 July 2011 : G2 users feeling like going back to G2 eng-Hboot from Dz eng-hboot (unity and doubleshot users) check out post number 2

hello everyone ....

im writing this thread as i could not find and adequate information on the wiki page about how to restore stock hboot on desire Z after installing ENG-hboot if you want to... after reading a million threads and asking alot of senior developers and mods over here i came to a working solution..... many of you might know it already but this guide is for people who are new to desire Z and this information is not present in Desire Z wiki......

WARNING​

THE FILE (HBOOT) I AM POSTING IS SPECIFIC FOR DESIRE Z WHICH WAS FACTORY UNLOCKED AND CAME WITH STOCK 1.34.405.5 ROM AND ONLY USE THIS HBOOT FILE AND THIS METHOD EXACTLY IF YOUR S-OFF WITH GFREE ASWELL WITH ENG-HBOOT INSTALLED..... IF ONLY ENG-HBOOT INSTALLED YOU SHOULD S-OFF VIA GFREE THAN USE THIS GUIDE....IF YOU DIDNT HAVE FACTORY UNLOCKED DESIRE WITH 1.34.405.5 ROM READ SECOND PART OF MY POST FIRST...... YOU HAVE BEEN WARNED AND IM NOT RESPONSIBLE IF TURN YOUR DEVICE INTO A BRICK....

STEPS:

(do a nandroid before starting incase you need to restore if phone gets stuck on htc screen after this procedure)

1. Download this zip and extract stock hboot file (1.34.405.5 stock hboot for desire z) and copy to your fastboot/adb folder ....

2. Verify its md5sum of the hboot*.nb0 (md5sum is of the hboot file not zip file) file with this

md5sum = 613ddd077d65d51259795c02ccc2023d

3. Then, from your computer go to command prompt and than go into your fastboot/adb folder

adb push hboot_7230_Vision_HEP_0.85.0005_101011.nb0 /data/local

4. After the file is pushed to the phone verify its md5sum on phone (being extra careful here) using this command:

first write in command prompt

adbshell

and let adb deamon start...... you should see a $ or # depending on whether

you have super user permissions or not....now write

md5sum /data/local/hboot_7230_Vision_HEP_0.85.0005_101011.nb0

and it should show up something like this

md5sum /data/local/hboot_7230_Vision_HEP_0.85.0005_101011.nb0

613ddd077d65d51259795c02ccc2023d /data/local/hboot_7230_Vision_HEP_0.85.0005_101011.nb0

5. This next step is CRUCIAL. You must make sure that you are writing to the proper partition here or you could brick your phone. To be absolutely clear- the partition is mmcblk(zero)p(one)(eight) I'd recommend using an adb shell from your computer (with root privileges: just unlock your phone, run 'su' in adb shell, a window will pop up in your phone asking you to allow it to run, check for it to remember, then allow, the prompt in adb shell will change to '#') for the following command, as it will permit you to copy/paste it: ( if your already seeing # than you already have superuser permissions in adbshell)

dd if=/data/local/hboot_7230_Vision_HEP_0.85.0005_101011.nb0 of=/dev/block/mmcblk0p18

That should do it. You can verify that you have the Stock HBOOT by restarting the phone into the bootloader it should say

something like "VISION PVT S-OFF" and the "ENG" would be gone......

RETURNING TO STOCK HBOOT PART 2​

If you dont have the factory unlocked desire z and your phone didnt come with 1.34.405.5 rom out of the box dont use the HBOOT file i posted.

But you can use this method for returning to stock hboot.

STEPS:

1. For that you download the RUU file specific for your phone from the sticky stock roms section.....

2. open the RUU*.exe file and while its open find the temp folder and locate the folder rom.zip.....

cant find the rom.zip????? use this Guide... it helped me find my rom.zip on my windows 7 :)

3. open it with any zip explorer (for some reason my windows 7 was not opening this rom.zip file saying it is invalid i used winrar instead)

4. extract all files to some folder and go there to find the file named something like this.....

hboot_7230_Vision_HEP_0.85.0005_101011.nb0 (your file might have different numbers in the end but its name will start with hboot)

5. generate its MD5sum (there are many md5sum generators online use any you want)

6. than use my guide posted above and use your extracted hboot*.nb0 file and using the name of your file rather than what i posted in commands above.....

Credits go to our forum mod steviewevie for helping me out in restoring my stock hboot and getting rid of eng hboot....

and also to vision wiki .... most of the commands and text i used here are from the eng hboot wiki section ......