yashsingh1/xdaforums huggingface dataset:
[Desire HD General] heopi:
Hello.

I have HTC Desire HD (a9191) with ROOT and S-ON. (DHD_WWE_3.12.405.1_STOCK_rooted_by_nitr00)

I want s-off and install miuiandroid_ace_3.10.18_MK_jb-4.2.rar

Information from FASTBOOT

*** UNLOCKED ***

ACe PVT SHIP S-ON RL

HBOOT - 2.00.0029

MICROP - 0438

RADIO- 26.14.52.27

eMMC-Boot

Dec 22 2011

What should I do first ?

I read this - http://xdaforums.com/showthread.php?t=2221039 but not all links working ...
[Desire HD General] Phiber2000:
Choose option 'h' in main menu to prepare the device. Followed by a factory reset in hboot. Then proceed as normal.
[Desire HD General] ronaldosmeq:
I have an HTC Desire HD and i think it's bricked. I can acces bootloader or recovery. I can't run RUUs even if i have supercid + s-off.... i get error 158. Can't flash from sd card... Any ideas? Could this be caused by the Hboot? I think i have a messed up one. It says ACE XB eng s-off..... I don't know what's with that "XB", it should say pvt or something like that...
[Desire HD General] Phiber2000:
I think, it's a bit offtopic - but why not...

The DHD is nearly unbrickable. If there's no hardware fault, it can be recovered by user without problems as long as hboot is intact.

Let's start:

First try to get fastboot access: Switch into fastboot mode, install drivers, connect usb and post output of "fastboot getvar all" (using adb toolkit) without serial and imei here. Sd card and sim have to be removed.

Phiber
[Desire HD General] marknoll:
Ronald is asking u cuz I mentioned you and that u could help

---------- Post added at 11:36 PM ---------- Previous post was at 11:35 PM ----------

He can't get fastboot unless he uses the aahk2. That's why he's posted in this thread

---------- Post added 24-06-2015 at 12:04 AM ---------- Previous post was 23-06-2015 at 11:36 PM ----------

@Phiber

Here's the op

http://xdaforums.com/showthread.php?t=3138581
[Desire HD General] ronaldosmeq:
I am sorry if it's a bit of topic but i don't think i have any more options. By the way, AAHK2 saved me a bit. I couldn't flash anything and i was stuck in a screen with HTC in the middle and 4 exclamation marks in corners. I managed to install TWRP 2.4 form AAHK2 and now the bootloader and the recovery works. I think that was an important step. Thank you!

Let's give it a try.

"fastboot getvar all" :

(bootloader) version: 0.5

(bootloader) version-bootloader: 0.85.0024

(bootloader) version-baseband: 24.00.00.25_M2

(bootloader) version-cpld: None

(bootloader) version-microp: 0138

(bootloader) version-main: 2.52.0.0

(bootloader) product: ace

(bootloader) platform: HBOOT-7230

(bootloader) modelid: PD9810000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-ae32a7eb

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

(bootloader) region-id: 1

I can upload a picture to show you how my bootloader looks.
[Desire HD General] Phiber2000:
Weird infos... Download "HTC WWE 3.12.405.1 with ROOT - GPS FIX(Radio: 12.65.60.29/26.14.04.28 M)" from OP. Extract twice and place the "hboot_7230_Ace_2.00.2728_110907.nb0" in the folder, containing your fastboot.exe. Then execute:

fastboot flash hboot hboot_7230_Ace_2.00.2728_110907.nb0

and start praying. If that worked, place the PD98IMG.zip of the downloaded file in the folder too and execute:

fastboot reboot-bootloader
fastboot flash zip PD98IMG.zip
fastboot reboot

If all worked, your DHD will be fine now. You should format your sd card and

not

insert it in the device before you did that.

Phiber
[Desire HD General] ronaldosmeq:
Will this work if i have no OS? System=0mb, data=0mb, cache=0mb, boot=4mb etc... It's ok? So no "fastboot oem rebootRUU" before i flash the files? I am thinking that i can't flash them from the actual bootloader, i have to be on fastboot mode or RUU mode... Also i have a locked bootloader now but i can unlock it via AAHK2. I don't really know which option should i chose: b or c... And one more thing, the sd card should stay out of the device untill i flash pd98img.zip?
[Desire HD General] Phiber2000:
You won't need to do anything other than I posted. There's no reason to run the aahk, too. [emoji6]

Phiber
[Desire HD General] ronaldosmeq:
I understand but if i don't think the device will "fastboot reboot-bootloader" so i have to do it manually then select fastboot and flash the pd98img.zip
[Desire HD General] Phiber2000:
Of course you have to be in fastboot mode before starting with the fastboot commands. Then the 'reboot-bootloader'-command will work, too.

It was self-evident for me - sorry for that. :eek:
[Desire HD General] ronaldosmeq:
So i couldn't flash the hboot:

sending 'hboot' (1024 KB)...

OKAY [ 0.194s]

writing 'hboot'...

FAILED (remote: not allowed)

I tried a fix before and i managed to flash a .zip hboot but that didn't fix the problem except for having a locked bootloader because at the beggining i couldn't see locked or unlocked on top...
[Desire HD General] Phiber2000:
Just try the rest of the commands.
[Desire HD General] ronaldosmeq:
PD98IMG.zip

sending 'zip' (332084 KB)...

OKAY [ 54.095s]

writing 'zip'...

FAILED (remote: not allowed)

finished. total time: 54.115s

It's like the bootloader doesn't want to flash anything.

I also have an update for hboot like this: PD9810000_Ace_Sense30_S_hboot_2.00.0029.exe

I think this is my fault, it's not the phone. A few minutes ago i could anything but without (remote not allowed) and i got different errors. So right now i need to figure out how to get rid of this remote:not allowed.
[Desire HD General] Phiber2000:
That's the next thing: Unlocking the device via HTCdev and repeating the steps.
[Desire HD General] ronaldosmeq:
Ok. I did that. Yeterday i couldn't run the command "fastboot oem get_identifier_token" but today worked! I will try to flash hboot again.

Edit: Again the same error... I unlocked it via htc dev - all other supported devices. It says UNLOCKED.

Anything left to do before i go to a repair center to ask them if the phone can be fixed? Maybe a JTAG will work...
[Desire HD General] Phiber2000:
That's a complete weird behavior of your hboot - S-Off devices should accept the zips and allow flashing specific partitions - no matter if there's a htcdev-unlock or not.

I want to have a look at it on my own remotely. If you want, contact me via PM with the city you come from and your local time window, when we could have the meeting. Download the PD98IMG-GB2.zip, too - I will need it.

Phiber
[Desire HD General] ronaldosmeq:
I unlocked the device via AAHK2 and now i get:

sending 'hboot' (1024 KB)...

OKAY [ 0.187s]

writing 'hboot'...

OKAY [ 0.359s]

finished. total time: 0.577s

I don't know how to check if it's succesful..

Edit 1: I am in RUU mode now:

sending 'zip' (332084 KB)...

OKAY [ 54.979s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) shift signature_size for header checking...

FAILED (remote: 32 header error)

finished. total time: 58.272s

Edit 2: Tried to run the RUU and now i get error 159 instead of 158. That was with unlocked bootloader. I will try with the lock one but i can lock it just if i flash a locked one in zip format.

Edit 3: So i think it's the hboot. With the locked one in zip format i get error 158. So right now i need to have a locked hboot but the right version. If only i can lock the one you gave me with "fastboot oem lock"... I found out that flashing the stock recovery might work for me and the command "fastboot oem lock" will work? I'll give it a shot.
[Desire HD General] marknoll:
U need to find out what your friend did to your device..this is nuts. Lol

---------- Post added at 12:01 PM ---------- Previous post was at 11:57 AM ----------

http://xdaforums.com/showthread.php?t=2772820
[Desire HD General] ronaldosmeq:
I don't know if i can find out anymore... First i need a way to relock this bootloader...
[Desire HD General] marknoll:
Fastboot oem lock
[Desire HD General] ronaldosmeq:
I installed a rom via TWRP but after HTC logo i get 5 vibrations and it goes off with the orange led on. After 2-3 days of reaserching and trying a lot of methods i decided to go to a phone service and they said that it should be ready next week. I will pay 22-23 euros if they succeed and 0 euros if the can't repair it. I doubt that they will fix it but i think that's my last chance.
[Desire HD General] marknoll:
Did u flash that rom with locked or unlocked bl? Hopefully u flashed boot.img if u were locked bl
[Desire HD General] ronaldosmeq:
Does it matters? I have s-off so that should work. Anyway i can't lock the bootloader via fastboot, i can just flash that locked bootloader from the thread you showed me (from shadow.....or how is it called). But i think it's not a good one..

I'll let it 1 week in the service and if they can't fix it then i'll try some risky methods by myself...
[Desire HD General] marknoll:
Um...u locked the BL via fastboot. I watched u..haha

---------- Post added at 06:49 PM ---------- Previous post was at 06:48 PM ----------

U can't flash a ROM right from the SD card with a locked BL...u have to flash ROM via recovery and boot.img via fastboot
[Desire HD General] ronaldosmeq:
I couldn't lock the bootloader downloaded from this thread...
[Desire HD General] strwdle:
Help needed urgently!

Hi everyone, I'm having so me problems running AAHK2. Turns out I need to downgrade. There are two errors that I encounter:

During the first recovery screen (red triangle) I get the error E: Can't open /cache/recovery/command

Then it says Successful! Rebooting by reason oem-000

although it still carries on and creates the Goldcard etc .I encounter this error after getting to the Hboot screen.

Loading..PD98DIAG.zip

No image!

Loading PD98DIAG.nbh

No image or wrong image!

Loading...PD98IMG.zip

Any help would be muchly appreciated. Thank you in advance you brilliant wizards!
[Desire HD General] ronaldosmeq:
First enter fastboot mode via hboot. If you have fasboot installed on your pc open a command window in that folder and run "fastboot getvar all". Find your "cidnum" and download the correct PD98IMG.zip for your cid from this site http://xdaforums.com/showthread.php?t=2193681. Make sure you rename it to PD98IMG.zip, format your sd card to fat32 and place the .zip file into it. Then insert the sd card into the phone and boot into bootloader(hboot).

If this doen't work, enter fastboot mode, open aahk2 fastboot.bat and select from 1 to 9 your PD98IMG downloaded previously. Remember, the zip file must be placed into the PD98IMG folder from aahk2 without being renamed. So leave it like it was when you downloaded it (ex: PD98IMG-GB2.zip). Confirm twice with "Y" and you should be good.

Tell us if it worked.
[Desire HD General] marknoll:
Is yours fixed yet?
[Desire HD General] ronaldosmeq:
I don't know yet. I'll have it in 3 days.
[Desire HD General] Phiber2000:
The hboot doesn't recognize the files on your sd card.

In most cases, it's just the wrong file system of the sd card. Mount it, format it with FAT32 (4KB sector size), safe remove, unmount. Then try again.

Everything else is already checked by the script.

Phiber
[Desire HD General] strwdle:
Exactly, so the previous reply to my problem is not really any use? AAHK2 checks the file before writing it onto the SD Card...so it's something to do with the SD Card not the file. I have already tried formating it once..but how doe I specify 4kb sector size? (Windows)
[Desire HD General] Phiber2000:
Exactly! The md5 checksum is verified before writing it to the sd card.

After mounting the sd card or connecting the card reader, choose "Format..." in the context menu of the drive. There you can choose capacity, file system and allocation unit size. The allocation unit size has to be set to 4kb or, if not available, to the lowest available value.

Previously this had always fixed this specific issue.

Phiber
[Desire HD General] strwdle:
EDIT and UPDATE: I found some software to format with 4kb allocation size and it still has the same errors! I've even tried a different SD Card. Argh!
[Desire HD General] Phiber2000:
That's the right next step. If that fails, we'll need a remote date. :)

I'm curious about it.

Phiber
[Desire HD General] strwdle:
Unfortunately I've had no joy. New SD Card, FAT32 4kb allocation size. Exactly the same problem :(
[Desire HD General] strwdle:
Thank You!

Can I just say a massive thanks to Phiber for talking me through my problematic AAKK2 issue. I've been online for years and never had such friendly help. A true human being! :D
[Desire HD General] sarvath:
help please, got stuck on script

Hi

Could you please help me with my DHD. I did read all the instructions 2x plus the whole thread...

I am a complete novice at this and it is all very confusing. I tried searching various methods but most are old threads with broken links etc so I thought I would give this a try as it seems to be still working.

My phone has never been tampered with before. I have the drivers installed, all the settings as required etc.

I would like to get a custom ROM with 4.0+ and get all the things unlocked.

Here is what happened:

I managed to get the script running and did the downgrade.

Now that I want to do the s-off etc etc the script stops at one stage and does nothing. I had nokia branded card yesterday so I thought that could be the reason. I went ahead and bought Sandisk card (and got it formatted to the smallest cluster size available) but the problem is the same.

Here is the log:

I must say I also had problems with donwgrading as few times it stopped on "checking PD98IMG.zip no image found" at some point I had a warning about bad card or whatever where the phone asked me if I want to format it - that did the trick and the downgrade went through ok.

I also have a problem with running fastbook getvar all - where most of the time it says waiting on device and honestly I don't know even when did I manage to get the details - must have been during one of the restarts or whatever.

can you please help? what should I do next to get this going or what other methods could I use?

many many thanks!
[Desire HD General] Phiber2000:
There is definitely something wrong with your connection.

Just try another cable and don't touch the device while processing!
[Desire HD General] sarvath:
works, many thanks!

thanks for a quick reply!

I tried on my laptop, where I installed drivers from xda and although there were some errors it went through and I managed to get the modified htc image as well so yay thanks very much for the script and support as well. I think the problem was with the drivers on my PC, now I re-installed them and it also works.

final question.

I downloaded a custom rom that I want to use, how do it flash it? I know, lame question but I am still a little lost.

do I use hboot for this or do I install some apk from the market?

thanks!!!
[Desire HD General] Phiber2000:
The AAHK2 flashed TWRP as custom recovery for you. You use that to flash custom ROMs and Gapps if needed.

Wipe system and data partition first, then install the custom ROM.

Phiber
[Desire HD General] sarvath:
:(

many thanks Phiber!

I got myself into a pickle... I flashed a ROM (one of xda forum ones but not the newest tho)

didn't like it so I thought of going back a step to the one from you

so I put the img on sd card and tried to access the hboot but when pressing the vol and power instead of the usual menu the phone vibrated couple of times, black screen with nothing on and started flashing orange led... not good...

I tried running your script again to get back to start but it stopped at unlocking and now the phone gets stuck on green logo on white and does not boot at all. still cannot get to the hboot... aaaaa.... I promise I'll get a stock rom and stop tampering with it cause obviously I don't know enough and shouldn't be touching this anymore.... could you please help me to get it to work again?

thanks and sorry for the hassle... eh...
[Desire HD General] Phiber2000:
Then you probably didn't use the recovery for flashing. That's bad - never do that!

Write a PM to me with your time zone and when you have time for recover.
[Desire HD General] sarvath:
thank you!

"another happy customer" :)

Thank you again Phiber for your assistance with getting my silly mistakes sorted! Phone works again and I learnt a lesson :)

For anyone interested in doing this...

I must say I spent a lot of time reading about unlocking this bloody phone few years back (gave up) and again few days ago and this is the best method I found, still not foolproof (me as and example above haha...) but Phiber helped a lot so I cannot recommend this and him enough, just stick to the instructions ;)

All the best!
[Desire HD General] Nasrudin78:
Hi all,

I have hboot 0.85.0024 with this specs:

When I use this tool with option "1" all seems correct, installed custom recovery, superSu, but still S-on!!

Then I applied these steps manually to get S-off :

without any success (error message with eMMC error). So, whats happenning here?

My bootloader seems to be LOCKED (no message in hboot screen) and S-on. hboot version untouched (0.85.0024)

Thx in advance!

Quote:
[Desire HD General] Phiber2000:
Choose option 'h' first, then retry.

When it'll be unsuccessful again, post the script output of option '1'.
[Desire HD General] Nasrudin78:
Ok, but first of all I shoud revert all changes. isn't it?

I mean, I flashed stock rom PD98IMG-GB4.zip (branded with Vodafone ES, currently is unbranded but still CID=VODAP304) and then invoked option "1" from aahk2. This turned out into stock ROM+custom recovery+root but with s-on.

So, Can I choose "h" with this configuration? or flashing again PD-GB4.zip (clean stock rom) and apply "h"?

Also, I remember that option "h" told me download PD-GB2.zip which is WWE (unbranded), will not create conflict with VODAP304? (Note: I have a goldcard)

Thx, I will post outputs.
[Desire HD General] Phiber2000:
You don't have to do that.

When this step would have been successful, there is no custom recovery or root. That's because you should try option 'h' first. Just to make sure, that there's no htc unlock.

You're right, that tries to flash the unbranded GB2 and does a relock. Conflicts can't happen, because the flash procedures always overwrite all main partitions.

If you have further problems, it may be useful to get live contact (IRC or remote session). Just send me a PM with your time zone and a meeting date proposal.

Phiber
[Desire HD General] Nasrudin78:
Just out of curiosity, what are the main differences btw PD98IMG-GB4.zip and GB2 ? What hboot version install each zip? Maybe my error was to choose option "1" instead of "h". But, as I told u:

I flashed GB4.zip (with goldcard installed) via fastboot oem rebootRUU and once installed I applied option "1" in aahk2...

So, you are telling me, that if I flash GB2.zip instead GB4 , the result will be the expected one? xddd . Ok, I'll try it and If I'm not succeed I'll send a PM.

Thx a lot...
[Desire HD General] Phiber2000:
Which one is flashed

doesn't matter

but since you've still a custom recovery remaining on the device, something's definitely wrong! :p

That's flashed only to get a compatible rom state to get the '1' working correctly. Because your device is branded, the PD4 is the only one which can be flashed. The other is used for relocking only. But: Read that info and forget it! ;)

Just try the 'h' once. Then you will never have to use this option again - it's just for

preparing

htcdev unlocked devices.

Phiber
[Desire HD General] Nasrudin78:
Yeah yeah, I know.I think it boils down to a little misunderstanding...

The problem is that I locked bootloader before flashing GB4.zip. So, I were 100% Stock before applying AAHK2.

Then I applied command "1". During this process appeared some errors (normal?) that I didn't remember now and when finished I obtained a Stock ROM + TWRP recovery + root but still S-on. (Neither, any message :"LOCK", "RELOCK", "UNLOCKED" in bootloader screen).

Tonight I'll re-try again and I'll post results.

Thx
[Desire HD General] Phiber2000:
Ah! Now all makes sense. :D

After the first run - the script did a

downgrade only

(and told you that).

Then you had to run the script again to let it do the *real* magic.

Maybe that's your "issue"... Have another try (maybe twice again) and report or post the output if it isn't successful.

Phiber
[Desire HD General] Nasrudin78:
Well, here I am again... xddd.

Same errors but this time with logs attached

I reverted changes and did a clean GB4.zip flash. (Stock 100%) -> Apply command "1"

Last flash freezes, so I unplugged cable after 30 minutes wating!

Then I rerun aahk2 again with "1" :

WTF!!! xddddd (connections are ok, because adb devices return ok, and goldcard is the same and untouched!!!)

FINAL system after two processes : Stock ROM, Custom recovery TWRP and root but S-ON!!

Any idea?

Thx man! gn
[Desire HD General] Phiber2000:
The radio downgrade fails, whyever - let's have a date... :)

Phiber
[Desire HD General] Nasrudin78:
Hahahhahaha. Ok, it's not necessary. I solved Phiber!!!

With GB4.zip flasshed , I accepted all available OTA's and then applied method "1" twice (One for downgrade, and the other for ENG BOOT). And finallly works 100%!!!

I think the problem was flashing GB4.zip in bootloader mode and then perform aahk2... The combination of GB4+OTA solved it!

Thx a lot, DANKE Phib!

cu
[Desire HD General] Phiber2000:
Great! And less work for me... :D
[Desire HD General] Jorellana:
Phiber... A silly question.

Do you think there will be any problems of using a Kingston 4GB SD card? If follows all the recommendations (lowest value, format). I just want to be sure this rooting process becomes succesful.

I'm a Latin American Android fan and I have rooted many devices... And this is the hardest one yet. None of the spanish-talking forums have named this tool (found only difficult procedures), thank God I found it here. If anything happens, I will report it here. Hope I can get out from the jail this phone after a long time... :silly:
[Desire HD General] Phiber2000:
I don't think so but can't guarantee that because Kingston won't be the real manufacturer. In this case (Kingston isn't known as brand with bad quality), I'd give it a try.

Phiber
[Desire HD General] Jorellana:
Phiber, I get this while downgrading process has finished:

What does "Main Version is older" means?

Edit: I'm running the AT&T version (3.20.502.52)
[Desire HD General] Phiber2000:
Post the full script output in a spoiler.