• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [how to]unlock,install recovery,and root with htcdev

scotty85

Extreme Android User
Jul 25, 2010
11,131
7,412
this is a device specific-thread to help you unlock,install a recovery,and root your HTC Inspire 4g/Desire HD(model ACE). this guide originated for the htc rezound, thus some of the names and references. however, all files and info are specially for the inspire/DHD.

first and foremost,htcdev is a PITA. it has limitations if you are a "hardcore" rom flasher/rooter/romer. while it may be fine for the folks that want to be completely stock and have root acces to delete some bloatware,and run root required apps,s-off is better,and worth the extra efforts to achieve,IMO.

for those of us that want complete freedom to mod our devices,htcdev is still a valuable,and a solid,reliable means of adding root acces for other exploits.

and now,on with the info!

the basic steps will be:
1)unlock with htcdev
2)temporarily or permanently flash a recovery
3)flash root files

before you start,go ahead and download these files:
-mini-adb.zip: mini-adb.zip
-ext 4 recovery for ACE: PD98IMG_ace_recovery_ext_4.zip
(MD5: PD98IMG_ace_recovery_ext_4.zip fc0f377f7d91ce5dc1f415f7bc72284d
)

-superuser files: for GB or ICS,use the latest superSU from this thread on xda (the download link is where is says: CWM / TWRP / MobileODIN installable ZIP : UPDATE-SuperSU-vx.xx.zip )
-go to HTCdev - Unlock Bootloader and register an account



1)unlock with htcdev
first thing you need is drivers for adb to see your phone. if you have htc sync installed,you should allready have drivers. if not,you can install htc sync,or install these modified htc drivers from revolutionary (driver mirror)

most guides simply say "follow the directions to unlock with htcdev" but im gonna go thru it with ya :) the mini-adb.zip file is all the files that htcdev is telling you to download and put into a folder,so allready this should be a lil easier ;)

1)prepair ADB
-unzip your mini-adb.zip file. this is native funtionality in windows 7. you otherwise may need a utility such as "7-zip" to extract,or unzip it. place the unzipped folder onto the root of your C drive on your PC(sorry, you mac guys will need to develop this for yourself,i dont have a mac). root means the top level,not inside any folders. so just copy and paste,or drag and drop the folder onto C with everything else that is there. you may want to rename it to "mini-adb_devicename" since youll be putting some device specific files in here. (directions from here forward will assume this folder to be named "mini-adb_vigor",as an example)
-open a command window. on windows 7,click the start bubble in the lower left and type "command" in the search box. xp i believe is similar or the same. doing this should open a small black command window.
-change to your mini-adb_vigor directory. type the following at the prompt in your cmd window:

cd c:\mini-adb_vigor

your command promt should change to "c:mini-adb_vigor>" provided you: 1)unzipped the miniadb zip 2)put the folder on your c drive 3)entered the name of the folder correctly ("mini-adb_vigor" in this case)

-now make sure usb debugging is checked in settings/apps/development,and plug your phone into your PC with a usb cable
-make sure your phone is being recognized- type:

adb devices

if your drivers are installed correctly,this should return your phones serial number. you should hear the "found device" noises when you plug your phone in. if it starts installing drivers,wait for it to finish before typing the adb devices command.

2)unlock using htcdev
-go to HTCdev - Unlock Bootloader and sign in to your account. chose your device from the "select your device bar"(or "other supported devices" if its not listed) and click the green "begin unlock bootloader" button underneath.
-click yes to procede,then read the warnings before checking the boxes and clicking yes to continue,as they are basically explaining that your warranty is now void,and any repairs that your phone needs that may have been a result of unlocking your bootloader and messing with your phones operating system may no longer be covered under mfgr warranty

*check your hboot screen. if you allready have an htc compatible hboot, then skip ahead to the next step,you dont need this.if you have a pink **locked** at the top of the hboot screen,then it is compatible with htcdev. if you dont have a compatible hboot,then download the RUU for the new hboot. right click it,and run as administrator. plug in your phone when prompted to. it will ugrade your hboot to the htcdev unlock compatible version.

-steps 1-4 are describing how to get your phone into bootloader mode and connect it to your PC,wich we have done above. ignore these steps and simply type in your cmd window:

adb reboot bootloader

it may take several seconds,but this command should boot your phone into the "fastboot" screen wich is white with a bunch of colored writing. once this happens,make sure your phone is still being seen in fastboot. type:

fastboot devices

again,this should return your phones serial number.

-click the green procede to step 5 bubble.
-steps 5-7 are telling you how to find the files and utilities inside your mini-adb folder. you have them,so ignore steps 5-7.
-click the green procede to step 8 bubble.
-heres where steps are important,steps 8-10 are telling you how to get your unlock token,and send it to htc. its phone specific(so they prolly know your serial number,meid,etc) so no,you cant use your buddys unlock token and not have htc know that youve unlocked your bootloader. ;) copy this line either from below,or from step 8,and paste it into the prompt in your cmd window. you have to right click to paste in cmd,you cannot control/v :

fastboot oem get_identifier_token

-after yuo hit enter,you will get a bunch of letters that are your identifier token. not much i can say,other than follow the directions in steps 9 and 10 to copy and submit your identifier token to HTC. make sure you get the characters as shown in the pic,with no extra lines or letters. note that you can also hit the "enter" key on your PC to copy,as well as right clicking.
-click the green submit button. wait patiently for an email containing your unlock code. (dont worry,it should come pretty fast :p )
-save the unlock_code.bin that htc sends you directly to your mini-adb folder(if your PC automatically downloads somewhere else,no biggie. just move the unlock code to mini-adb folder)
-click the link in your email to get the rest of the unlock instructions
-step 12 is where them magic happens :D copy from below,or from htc dev:

fastboot flash unlocktoken Unlock_code.bin

-youll see the purdy screen pictured in step 13. use the vol rocker to chose "yes unlock bootloader" and select it with the power button. your phone will reboot,performaing a factory data reset in the process. your data is gone,sorry :( this boot may take a bit longer than they normally do,dont freak out this is normal

as you can see,once the adb files are put in one place to download,its not hard to use,and the commands are pretty simple. below is what you will see in your command window,the red are my inputs.

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:UsersScott>[COLOR="Red"]cd c:\mini-adb_vigor[/COLOR]


c:mini-adb_vigor>[COLOR="red"]adb devices[/COLOR]
List of devices attached
HTxxxxxxxxxx    device


c:mini-adb_vigor>[COLOR="red"]adb reboot bootloader[/COLOR]

c:mini-adb_vigor>[COLOR="red"]fastboot devices[/COLOR]
HTxxxxxxxxxx    fastboot

c:mini-adb_vigor>[COLOR="red"]fastboot oem get_identifier_token[/COLOR]
                              ... INFO
INFO< Please cut following message >
INFO>
INFO2ADC7C0C0F1BAF92074BAE9B0035CB6A
INFO021839BFA7465CD0788664688DCCFDEA
INFO33A2FD2C96C7308DD3C57A517DBA8E14
INFO8048F98A9FEA06B8F2AD05D4D3497CFE
INFO6FCCC1DC4E31E0C6F54CEA18D9A80C82
INFO27C33E209D472E6C11753E9D7BCBCE6D
INFO90D9F226E827B6C26165A029B6F7DFF2
INFO63E382B4C82F9F6D866C01B9823ED1BC
INFO0EEFA859327E6B5AC4C24533C9DFA7AF
INFODBD70D55E4666B4B41828B76FFBD010C
INFO1B916E350EFF199EA5B096FF3337FE19
INFO40E6CA9E7F1DD5B33D8D4780DD775289
INFO953404686AEC4C3CB6F1BBB9DC69BA13
INFO8738C00DAFF280ECF02D0C7A66E13855
INFO1D756616732FF47915EAD551A6933E08
INFO10C541C7RD02C14991E83CC49FCA4B92
INFO>
OKAY [  0.069s]
finished. total time: 0.070s

c:mini-adb_vigor>[COLOR="red"]fastboot flash unlocktoken Unlock_code.bin[/COLOR]
  sending 'unlocktoken' (0 KB)... OKAY [  0.143s]
         writing 'unlocktoken'... INFOunlock token check successfully
OKAY [  0.011s]
finished. total time: 0.156s

c:mini-adb_vigor>

2)flash a recovery
if you want to run stock,do not permanently install your recovery. keeping the stock recovery on the phone will ensure that you recieve OTAs without a hitch,wich i know is important to alot of users. YES,the OTA will break root. its no big deal. one good thing about htcdev is that you will always be able to reroot after,simply by following steps 2 and 3 again to launch recovery,flash superser.

once youve either skipped past all the setup,or have re-set up and are ready to root,chose either of the following options to either permantly or termporarily install a recovery:

1)temporary recovery:
-move the recovery image file from the zip file you downloaded above and place it into the mini-adb folder. rename the image to "ace_recovery_ext_4"
-put the superuser zip file onto your phones sd card
-enable usb debugging once again,as above. open a cmd window,if its not still open from unlocking.
-if you had to re-open a cmd window,dont forget to change back to your mini-adb directory:

cd c:\mini-adb_vigor

-make sure youre connected by typing:

adb devices

-should return serial number
-check the md5 of your recovery image:

md5sums ace_recovery_ext_4.img

**make sure the resulting md5 matches 042e9fa838521592ec9224bfb27df52a
**

-boot to bootloader:

adb reboot bootloader

-check for connectivity:

fastboot devices

-should return serial number
-temporarily launch your recovery to phone memory:

fastboot boot ace_recovery_ext_4.img

-youll see a (really fast) green status bar on the top right as your PC sends the recovery to your phone. youll then see the HTC splash screen,then your recovery.

in your command window you will see(red are my inputs):
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:UsersScott>[COLOR="Red"]cd c:\mini-adb_vigor[/COLOR]

c:mini-adb_vigor>[COLOR="Red"]adb devices[/COLOR]
List of devices attached
HTxxxxxxxxxx    device


c:mini-adb_vigor>[COLOR="red"]md5sums recovery-ra-vigor-3.14-gnm.img[/COLOR]

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
Type md5sums -h for help

[Path] / filename                              MD5 sum
-------------------------------------------------------------------------------
[c:mini-adb_vigor]
recovery-ra-vigor-3.14-gnm.img                 915d5e3cb662076f36f3d6e54759e951

c:mini-adb_vigor>[COLOR="red"]adb reboot bootloader[/COLOR]

c:mini-adb_vigor>[COLOR="red"]fastboot devices[/COLOR]
HTxxxxxxxxxx    fastboot

c:mini-adb_vigor>[COLOR="red"]fastboot boot recovery-ra-vigor-3.14-gnm.img[/COLOR]
        downloading 'boot.img'... OKAY [  1.518s]
                       booting... OKAY [  0.005s]
finished. total time: 1.523s
2)permanently install your recovery
-move the recovery image file from the zip file you downloaded above and place it into the mini-adb folder. rename the image to "ace_recovery_ext_4"
-put the superuser zip file onto your phones sd card
-enable usb debugging once again,as above. open a cmd window,if its not still open from unlocking.
-if you had to re-open a cmd window,dont forget to change back to your mini-adb directory:

cd c:\mini-adb_vigor

-make sure youre connected by typing:

adb devices

-should return serial number
-check the md5 of your recovery image:

md5sums PD98IMG_ace_recovery_ext_4.img

**make sure the resulting md5 matches 042e9fa838521592ec9224bfb27df52a
**

-boot to bootloader:

adb reboot bootloader

-check for connectivity:

fastboot devices

-should return serial number
-permanently flash your recovery to phones recovery partition:

fastboot flash recovery ace_recovery_ext_4.img

-youll see a (really fast) green status bar on the top right as your PC sends the recovery to your phone,then a (really,really fast) red bar as it flashes it. amon ra is now permanently on your phone when you need it. be aware that you can no longer accept OTAs,unless you reinstall the stock recovery at some point before the next OTAs are pushed.
-to get to recovery,push the power button to select hboot. once in hboot wait for the green writing to flash and disapear,then select recovery.

*note that you can still launch recovery by using the command from scenario 1 above.
-youll then see the HTC splash screen,then your recovery.

and the code(again,red my inputs):
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:UsersScott>[COLOR="red"]cd c:\mini-adb_vigor[/COLOR]

c:mini-adb_vigor>[COLOR="red"]adb devices[/COLOR]
List of devices attached
HTxxxxxxxxxx    device


c:mini-adb_vigor>[COLOR="red"]md5sums recovery-ra-vigor-3.14-gnm.img[/COLOR]

MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
Type md5sums -h for help

[Path] / filename                              MD5 sum
-------------------------------------------------------------------------------
[c:mini-adb_vigor]
recovery-ra-vigor-3.14-gnm.img                 915d5e3cb662076f36f3d6e54759e951

c:mini-adb_vigor>[COLOR="red"]adb reboot bootloader[/COLOR]

c:mini-adb_vigor>[COLOR="red"]fastboot devices[/COLOR]
HTxxxxxxxxxx    fastboot

c:mini-adb_vigor>[COLOR="red"]fastboot flash recovery recovery-ra-vigor-3.14-gnm.img[/COLOR]
  sending 'recovery' (7074 KB)... OKAY [  1.659s]
            writing 'recovery'... OKAY [  5.179s]
finished. total time: 6.840s
3)flash superuser root files*
there is not much to explain with this one. if booted to recovery from above,use the recovery menu on your phone to:
-make a backup of your stock,unrooted rom. completely optional,but a very good idea,IMO.
-wipe cache
-wipe dalvik cache
-install zip from sd card(chose your superuser file)
-reboot

*congratulations,youre rooted :D

*special notes i know that the link for superuser says the best way to install superSU is to download from the market. it is refering to rooted devices ALLREADY RUNNING SUPER SU.

an extremely common error is to not follow the above directions to flash the zip file in recovery,but to attempt to download and and install from the market.

THIS WILL NOT WORK

you will need to download the newest superSU from the thread as i describeb in the download section,and use the recovery menus to flash it.

*hope it helps,holler if you have questions :)

donate to my device fund :)
 
if you are considering staying s on,and are interested in flashing roms,please read this to get an idea why staying s on is a PITA:
http://androidforums.com/rezound-all-things-root/587430-s-want-flash-roms-read.html

booting the recovery while s on does not seem to work for ace modles,so in order to flash roms while s on,youll need to follow these directions: http://androidforums.com/rezound-all-things-root/499172-how-manually-flash-roms.html#post3933400

the above threads are in the rezound forum,but the info applies,you will just need to use an ace specific recovery image when following the basic directions.

in a nutshell,staying s-on means you will need to manually install a matching boot image every time you wish to flash a new rom,or restore an old backup

if you followed the above guide,and flashed a rom without using fastboot to install the boot image,this is why your phone will not boot past the splash screen.

becasue of this handicap,you must always have a PC involved when you want to flash a new rom. id highly recomend becoming s off for a number of reasons,not the least of wich is that rom flashing is tremendously easier. as long as you are able to use caution what you flash and why,and use an md5 summer to check the integrity of your downloaded files,IMO s-off is better. use this guide if you wish to become s off: http://androidforums.com/desire-hd-...-s-off-simunlock-supercid-inspire-4g-dhd.html
 
Upvote 0
if youre having trouble getting to the "downloads" page in the htcdev directions,here are some mirrors:

1)for WWE build 3.12.405.1:
.exe file:
http://www.mediafire.com/download.php?vcn23nbb3c1ir5y
.zip file:
http://www.mediafire.com/download.php?4ut33ad6332ywvi

2)for ATT inspire build 2.47.502.7
.exe file:
http://www.mediafire.com/?fsfyz2csbyhq3b9
.zip file:
http://www.mediafire.com/?bbcvkmfxj3wpj0c



____________________________________________________________________________________
.exe files are installed by running as admin on your PC

.zip files are installed from the sd card in hboot,or as an RUU from fastboot
 
Upvote 0
Thanks for this Scotty. Might give it a try when I get chance. So just to clarify, provided I follow the steps above, I should be rooted and be able to install ICS or JB ?

correct. if you just unlock the bootloader,and stay s on,rom flashing is a little more complex,but it still technically possible. im working on an s off support thread as well :)
 
  • Like
Reactions: sam214 and ral
Upvote 0
Hi, this was the easiest method I've seen to unlock and root, and it worked like a charm, so thanks!

I tried to flash 2 ROMS using the fastboot boot procedure (I'm still S-ON), but on reboot, they hang on the splash screen. The ROMs that I tried were cm-JellyTime_42_R7 and cm-10.1-20130322-UNOFFICIAL-ace.

Any pointers on what the problem is? Thanks in advance for helping out a noob!

Edit - Some info from the bootloader screen
ACE PVT SHIP S-ON RL
HBOOT-2.00.0029
MICROP-0438
RADIO-26.14.04.28_M
eMMC-boot
Dec 22 2011, 14:28:19

Do I need to do the old firmware patch I saw in the Rezound thread?
 
Upvote 0
since you have tried to flash 2 AOSP roms,sounds like the kernel is not flashing. if you have been fastboot booting the recovery,it could be that this just does not work with the DHD is it does with the rezound,and most other modern phones. this is not unheard of,it doesnt work on my htc flyer,either.

you will need to manually flash the boot image,if you wish to stay s on.

the basic outline is this:
-place boot image into adb/fastboot folder
-place rom on sd card
-boot to recovery
-make a backup of a good working rom! you may need it
-wipe cache,dalvik cache,data/factory reset
-flash new rom
-use a recovery option to boot to bootloader(or power off,and back on into hboot,then fastboot).
-plug into pc
-flash boot image:
fastboot flash boot boot.img
(assuming the boot image to be named "boot.img")
-reboot
fastboot reboot

there is a guide in the rezound forum: http://androidforums.com/rezound-all-things-root/499172-how-manually-flash-roms.html#post3933400 that should help you manually flash the boot image.

thanks for the heads up on this,ill chenge the post above to reflect it.

edit: to answer your last question,no,you dont need the old firmware patch. that is speifically for the rezound to run ICS roms on older GB firmware. DHD roms are different,as they are designed with the DHDs firmware partition layout in mind :)
 
Upvote 0
I have tons of questions regarding rooting my htc desire hd... It's my first time rooting and I don't know shit about it... i was hoping to get personal help by someone who knows how it works and who has succesfully rooted his/her device.



*edit: I've tried OneClickRoot; failed several times.
also tried aahk (manually downloaded PD98IMG.zip); failed.
Just wanted to let you know I have done some research... i just can't seem to figure it out...
 
Upvote 0
I have tons of questions regarding rooting my htc desire hd... It's my first time rooting and I don't know shit about it... i was hoping to get personal help by someone who knows how it works and who has succesfully rooted his/her device.



*edit: I've tried OneClickRoot; failed several times.
also tried aahk (manually downloaded PD98IMG.zip); failed.
Just wanted to let you know I have done some research... i just can't seem to figure it out...

the directions in the OP have been created with users like you in mind. just read thru it all,ask any questions,download files and get organized. then slowly and carefully follow the steps.

i really cannot explain it in any more detail than the OP in this thread :)
 
  • Like
Reactions: FleaLEE
Upvote 0
My current version of hboot = 2.00.0027..

Now is this one compatible? and if not, which one is compatible and where can i find it and how do i have to install it

Do you have a big pink unlocked at the top of the white bootloader screen? The other possibility is that you have the phone in hboot,and not fastboot
 
  • Like
Reactions: sam214
Upvote 0
Fastboot was disabled @ settings/energy, could this
be the problem?

No. This is not the problem. That setting should be disabled. If you do not have a big pink locked or unlocked at the top of your screen, then you do not have a correct hboot.

Once you have the correct hboot,you will need to be in fastboot on the phone.fastboot and hboot look very similar. The correct screen will say fastboot USB in red at the top when plugged in
 
  • Like
Reactions: sam214
Upvote 0
No. This is not the problem. That setting should be disabled. If you do not have a big pink locked or unlocked at the top of your screen, then you do not have a correct hboot.

Once you have the correct hboot,you will need to be in fastboot on the phone.fastboot and hboot look very similar. The correct screen will say fastboot USB in red at the top when plugged in

i can't find any hboot download @htcdev (might've missed it, went through it plenty times tho)
ima go search a compatible one...
 
Upvote 0
i see why your confused. i tried the process,and it takes you directly to step one,skipping over the downloads. i messed with it a few minutes,and finally got an error message
The website encountered an error while retrieving http://www.htcdev.com/bootloader/ruu-downloads. It may be down for maintenance or configured incorrectly.

you might give it some time and see if the downloads page returns,or try a few times going to that link.

sorry for the short answers,im at work,atm
 
Upvote 0
meh idk what im doing wrong and it annoys me as ****.
've been trying to get this to work for like 3 straight days (excl. 1 full night) without any success... the only advantage i gathered till now is that i know a lot more about certain things regarding rooting my device...

well,we know exactly what youre doing wrong. youre trying to unlock a bootloader that does not have that option. ;)

sorry youre having issues and becoming fustrated. as i mentioned a couple posts up,the htcdev site should have taken you to a screen to download the compatible hboot before it took you to the actual directions,so its not your fault things are not working out wuite how there supposed to. must be a glitch of some sort with htcdev,or possibly they are updating or maintaining the page.

once you have the correct bootloader,the rest of the process should flow pretty smoothly.

ive still got the download page open on my PC. what part of the world are you in,and who is your carrier? also,what is the build number in about phone? it should be in this format: x.xx.xxx.x

if we can figure out your carrier and region,i maybe could download the correct bootloader for you,and/or link you directly to its download.
 
Upvote 0
well,we know exactly what youre doing wrong. youre trying to unlock a bootloader that does not have that option. ;)

sorry youre having issues and becoming fustrated. as i mentioned a couple posts up,the htcdev site should have taken you to a screen to download the compatible hboot before it took you to the actual directions,so its not your fault things are not working out wuite how there supposed to. must be a glitch of some sort with htcdev,or possibly they are updating or maintaining the page.

once you have the correct bootloader,the rest of the process should flow pretty smoothly.

ive still got the download page open on my PC. what part of the world are you in,and who is your carrier? also,what is the build number in about phone? it should be in this format: x.xx.xxx.x

if we can figure out your carrier and region,i maybe could download the correct bootloader for you,and/or link you directly to its download.


My carrier is Vodafone, I live in the netherlands, europe.

My build number is 3.12.405.2.

thanks for all your support so far!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones