Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Full HTC Desire HD (sense 3.0/android 2.3.5) guide to root, S-OFF/Sim Unlock

OP androidmodd

4th April 2013, 09:51 PM   |  #1  
OP Member
Thanks Meter: 60
 
78 posts
Join Date:Joined: Apr 2011
Aahk2 is out please use that method instead, fully automated and much easier :

http://forum.xda-developers.com/show....php?t=2367322





Warning thanks to hacktrix2006:
Quote:
Originally Posted by hacktrix2006

Also before anyone continues make sure you run cat /proc/kmsg | grep 'mmc0:0001' If you have a M4G2DE EMMC stop do no use clockworkmod recovery or even try to root as you will fry your EMMC.

If you have SEM04G EMMC then your safe to continue.

If your using the PD98IMG.zip from the retired AAHK just remember its no longer support.

Personally i would use the firmware.zip file from the tutorial which is included in the http://tau.shadowchild.nl/files/ace-tools.zip its safer that way just remember to backup your boot.img as its important if you want to boot back into sense 3.0.

THIS GUIDE IS MAINLY this guide (http://tau.shadowchild.nl/attn1/?cat=6) SIMPLIFIED TO SOME EXTENT. with parts that werent included in the guide added to the guide and resources added to the ace-tools folder that would have to be downloaded separately.

PREFACE:

Download this and unzip it somewhere (reccommend C:\ root folder): http://www.multiupload.nl/MXW371YT87

Full HTC Desire HD guide to root, S-OFF/Sim Unlock



1.Unlock the bootloader at http://htcdev.com/bootloader/
2.Copy your Unlock_code.bin file that you got in the email to the ace-tools folder.

step 2.2: reboot into fastboot
step 2.3: execute in cmd-prompt "fastboot flash unlocktoken Unlock_code.bin"

3.Download rooted stock rom: http://www.multiupload.nl/20T9R21IGY
(link to rom thread: http://forum.xda-developers.com/show...t=rooted+stock )
step 3.2 Make a effen GOLDCARD!!!
3.3 copy the ROM zip file to your SD card.

4.Install recovery image:
Open cmd and type:
•cd (eg cd C:\ace-tools)
Ensure your phone is connected to your PC and then boot into bootloader, then navigate to fastboot.

In cmd:
•fastboot flash recovery recovery1.img

5.boot into recovery through bootloader and Install the ROM you placed on the SD card, (via install zip fileselect the rom zip)
6.Reboot the phone, ensure the rom is working fine and you have root access you can test this by turning on usb debugging then:
•Adb shell
•Su
You should see the $ turn into a #. If this happens, congrats you have root access.
Then type this:
•Exit
Then again:
•Exit
Then:
•Adb push boot.img /data/local/tmp
•adb shell
root
dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img
•adb pull /data/local/tmp/boot.img
•adb push goldcard /data/local/tmp
•adb shell
root
chmod 775 /data/local/tmp/goldcard
•adb shell
root
cat /sys/class/mmc_host/mmc2/mmc2:*/cid
take note of the string of numbers and letters that appear.
then:
•adb shell /data/local/tmp/goldcard -c -o /data/local/tmp/goldcard.img

•adb shell
root
dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
•adb push misc_version /data/local/tmp
•adb shell chmod 775 /data/local/tmp/misc_version
•adb shell /data/local/tmp/misc_version -s 1.11.111.1



7.If this is all fine boot into bootloader again.
From bootloader go to fastboot.
Go back to the cmd window on your PC from earlier, type in:
•Fastboot oem lock
Then type:
•fastboot oem rebootRUU
•fastboot flash zip firmware.zip
•fastboot reboot-bootloader
unlock the bootloader again using the Unlock_code.bin you got from HTC:
•fastboot flash unlocktoken Unlock_code.bin
then flash boot.img in ace-tools folder:
•fastboot flash boot boot.img
next:
•fastboot flash recovery recovery.img
8.boot to recovery again then:
•adb push gfree /tmp/
•adb shell chmod 775 /tmp/gfree
•adb shell /tmp/gfree -f
reboot to bootloader and you should see it says S-OFF at the top of the screen, if It does congrats your done.

VICTORY:

Click image for larger version

Name:	fr_494.jpg
Views:	4370
Size:	257.5 KB
ID:	1858622

I have also posted this over at modaco:
http://www.modaco.com/topic/361797-f...offsim-unlock/
Last edited by androidmodd; 7th January 2014 at 06:22 PM.
The Following 49 Users Say Thank You to androidmodd For This Useful Post: [ View ]
4th April 2013, 09:55 PM   |  #2  
Muikkuman's Avatar
Senior Member
Flag Växjö
Thanks Meter: 339
 
1,574 posts
Join Date:Joined: Oct 2011
More
Nice work
The Following User Says Thank You to Muikkuman For This Useful Post: [ View ]
4th April 2013, 09:56 PM   |  #3  
Senior Member
Thanks Meter: 1,611
 
3,797 posts
Join Date:Joined: Jul 2012
More
Report it with the little orange triangle.
4th April 2013, 09:59 PM   |  #4  
OP Member
Thanks Meter: 60
 
78 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by bananagranola

Report it with the little orange triangle.

updated first post again, opened thread in QandA section, thought it was more appropriate, ill leave it to the mods to decide which section it should be in, this thread is based on my experiences last night .
The Following User Says Thank You to androidmodd For This Useful Post: [ View ]
4th April 2013, 10:38 PM   |  #5  
OP Member
Thanks Meter: 60
 
78 posts
Join Date:Joined: Apr 2011
Step 3 reduced, to simpify method even further.
10th April 2013, 11:42 AM   |  #6  
vonski's Avatar
Member
Thanks Meter: 1
 
92 posts
Join Date:Joined: Sep 2006
More
Does not work for me... got bootloop after flashing ROM. Any ideas?
10th April 2013, 09:51 PM   |  #7  
Senior Member
Flag Melbourne
Thanks Meter: 447
 
1,458 posts
Join Date:Joined: Jan 2011
More
Guide worked for me!!!!!
Hi all, reporting back my experience with this guide...

Prior to using this guide, I was already HTCDEV unlocked, rooted and custom rom (SVHD V1.3.0)

I basically followed this guide with a few little needed changes.

1st I backed up my rom using 4ext recovery.

1. same
2. same
3. same

4. There was no file named "recovery1.img" in ace-tools, so I just flashed the "recovery.img" (If you already have custom recovery flashed, I don't think you need to do this step but I did it anyway).

5. Because I was already on custom rom with different kernel (boot.img) than stock (rooted) rom, before I reboot into recovery, I extracted boot.img from stock rooted zip downloaded from the link and flashed it from fastboot (if you don't do this your rom may not boot).

5a. reboot into recovery and flashed rom

6. there was a typo in the line
"• adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local /tmp/goldcard.img"
there is an extra space between local & /tmp/ at the end of line, the command line should read
• adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local/tmp/goldcard.img"

7. If this is all fine boot into bootloader again.
From bootloader go to fastboot.
Go back to the cmd window on your PC from earlier, type in:
• Fastboot oem lock<------ phone rebooted itself after this command so needed to go back to bootloader fastboot (I did a quick battery pull)
Then type:
• fastboot oem rebootRUU

everything else was good....

My Hboot screen is the same as OP screen shot.

I reflashed the 4ext recovery I previously had, then did a system restore of my backup and booted into SVHD with out a hitch.

I pretty sure that's all, I hope this helps.

Quote:
Originally Posted by androidmodd

I probably won't ever update this.

THIS GUIDE IS MAINLY this guide (http://tau.shadowchild.nl/attn1/?cat=6) SIMPLIFIED TO SOME EXTENT. with parts that werent included in the guide added to the guide and resources added to the ace-tools folder that would have to be downloaded separately.

PREFACE:

Download this and unzip it somewhere (reccommend C:\ root folder): http://www.multiupload.nl/MXW371YT87

Full HTC Desire HD guide to root, S-OFF/Sim Unlock



1. Unlock the bootloader at http://htcdev.com/bootloader/
2. Copy your Unlock_code.bin file that you got in the email to the ace-tools folder.

3. Download rooted stock rom: http://www.multiupload.nl/20T9R21IGY
(link to rom thread: http://forum.xda-developers.com/show...t=rooted+stock )
copy the ROM zip file to your SD card.

4. Install recovery image:
Open cmd and type:
• cd <the directory of the ace-tools folder> (eg cd C:\ace-tools)
Ensure your phone is connected to your PC and then boot into bootloader, then navigate to fastboot.

In cmd:
• fastboot recovery1.img
5. boot into recovery through bootloader and Install the ROM you placed on the SD card, (via install zip fileselect the rom zip)
6. Reboot the phone, ensure the rom is working fine and you have root access you can test this by turning on usb debugging then:
• Adb shell
• Su
You should see the $ turn into a #. If this happens, congrats you have root access.
Then type this:
• Exit
Then again:
• Exit
Then:
• Adb push boot.img /data/local/tmp
• adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img
• adb pull /data/local/tmp/boot.img
• adb push goldcard /data/local/tmp
• adb shell chmod 775 /data/local/tmp/goldcard
• adb shell cat /sys/class/mmc_host/mmc2/mmc2:*/cid
take note of the string of numbers and letters that appear.
then:
• adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local /tmp/goldcard.img
• adb shell dd if=/data/local/tmp/goldcard.img of=/dev/block/mmcblk1
• adb push misc_version /data/local/tmp
• adb shell chmod 775 /data/local/tmp/misc_version
• adb shell /data/local/tmp/misc_version -s 1.11.111.1



7. If this is all fine boot into bootloader again.
From bootloader go to fastboot.
Go back to the cmd window on your PC from earlier, type in:
• Fastboot oem lock
Then type:
• fastboot oem rebootRUU
• fastboot flash zip firmware.zip
• fastboot reboot-bootloader
unlock the bootloader again using the Unlock_code.bin you got from HTC:
• fastboot flash unlocktoken Unlock_code.bin
then flash boot.img in ace-tools folder:
• fastboot flash boot boot.img
next:
• fastboot flash recovery recovery.img
8. boot to recovery again then:
• adb push gfree /tmp/
• adb shell chmod 775 /tmp/gfree
• adb shell /tmp/gfree -f
reboot to bootloader and you should see it says S-OFF at the top of the screen, if It does congrats your done.

VICTORY:

Attachment 1858622

I have also posted this over at modaco:
http://www.modaco.com/topic/361797-f...offsim-unlock/

help me out if you feel like it by signing up to dropbox with my refferal link:
Always have your stuff when you need it with @Dropbox. Sign up for free! http://db.tt/G8qfL77X

The Following 4 Users Say Thank You to ranger4740 For This Useful Post: [ View ]
10th April 2013, 09:54 PM   |  #8  
OP Member
Thanks Meter: 60
 
78 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by ranger4740

Hi all, reporting back my experience with this guide...

Prior to using this guide, I was already HTCDEV unlocked, rooted and custom rom (SVHD V1.3.0)

I basically followed this guide with a few little needed changes.

1st I backed up my rom using 4ext recovery.

1. same
2. same
3. same

4. There was no file named "recovery1.img" in ace-tools, so I just flashed the "recovery.img" (If you already have custom recovery flashed, I don't think you need to do this step but I did it anyway).

5. Because I was already on custom rom with different kernel (boot.img) than stock (rooted) rom, before I reboot into recovery, I extracted boot.img from stock rooted zip downloaded from the link and flashed it from fastboot (if you don't do this your rom may not boot).

5a. reboot into recovery and flashed rom

6. there was a typo in the line
"•adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local /tmp/goldcard.img"
there is an extra space between local & /tmp/ at the end of line, the command line should read
•adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local/tmp/goldcard.img"

7.If this is all fine boot into bootloader again.
From bootloader go to fastboot.
Go back to the cmd window on your PC from earlier, type in:
•Fastboot oem lock<------ phone rebooted itself after this command so needed to go back to bootloader fastboot (I did a quick battery pull)
Then type:
•fastboot oem rebootRUU

everything else was good....

My Hboot screen is the same as OP screen shot.

I reflashed the 4ext recovery I previously had, then did a system restore of my backup and booted into SVHD with out a hitch.

I pretty sure that's all, I hope this helps.

Thanks, ill update first post again.
The Following 2 Users Say Thank You to androidmodd For This Useful Post: [ View ]
12th April 2013, 04:02 PM   |  #9  
Senior Member
Flag Melbourne
Thanks Meter: 447
 
1,458 posts
Join Date:Joined: Jan 2011
More
After using this unlock and S-off method, I have been able to update my radio using the PD98IMG.ZIP via bootloader. file found on this post http://forum.xda-developers.com/show...php?p=39412003

Sent from my HTC Desire HD using xda app-developers app
13th April 2013, 01:00 PM   |  #10  
Senior Member
Flag Melbourne
Thanks Meter: 447
 
1,458 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by vonski

Does not work for me... got bootloop after flashing ROM. Any ideas?

For your issue, you had already flashed custom Rom and boot.IMG before this guide? I think You need to flash the boot.IMG from the rom.

Sent from my HTC Desire HD using xda app-developers app

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes