Sunday, December 2, 2012

Rooting your HTC Desire Z

the first thing you should know is that i am NOT, in any kind of way, responsible for what you are doing.

 If you're still reading, probably you ignored the red text above and just wanna root, well, I gotta tell you:


so don't be a lazy person and double check if you really want to root.

now let's go on.

Downgrading from 2.3.3 (Gingerbread) to 2.2 (Froyo):

If you didn't understand the title of this section... well... Google it!

Gingerbread (GB) is android 2.3.3 which is the latest stock android for the HTC Desire Z (DZ/Vision/G2)
Froyo is the lower version (2.2)

Froyo allows you to root, Gingerbread broke this. So you have to downgrade to Froyo if you want to root.

If you have a 1.XX firmware go HERE
If you have a 2.XX firmware go HERE

Necessary files are at the bottom of THIS screen, don't scroll up or down, just look at the bottom, when you see the Necessary files section, download all of them.

Now plug your phone to your PC, choose charge only.
In Settings go to "Applications -> Development" and check the "USB debugging" option.

Now assuming you setup adb correctly, open up cmd and do these commands: (don't type the $ sign)

$ adb push psneuter /data/local/tmp/
$ adb push gfree /data/local/tmp/
$ adb push busybox /data/local/tmp/
$ adb push hboot-eng.img /data/local/tmp/
$ adb push root_psn /data/local/tmp/
$ adb push su /sdcard/
$ adb push Superuser.apk /sdcard/
$ adb shell chmod 755 /data/local/tmp/*

$ adb push recovery-clockwork.img /data/local/tmp/recovery.img

$ adb shell /data/local/tmp/psneuter
$ adb shell

# cd /data/local/tmp
# ./gfree -f -b hboot-eng.img -y recovery.img
# ./root_psn
# sync

As it is very important that the hboot was installed correctly gfree calculates md5sums of the partition. It will calculate the following 3 checksums

  • md5sum #1 - checksum of partition 18 before the installation
  • md5sum #2 - checksum of the hboot image that should be installed
  • md5sum #3 - checksum of partition 18 after the installation
gfree will check the md5sums and give you a proper success or error message. The messages are explained in detail at gfree-wiki
The messages that you want to see are either:
md5sum #1 == md5sum #2 - the hboot image is already installed -> skipping installation
md5sum #3 == md5sum #2 - the hboot image was successfully installed -> OK!
If you get a different error message you should run for help at #G2ROOT on Freenode.
  • If you got one of the two success messages described above -> You are fine, Reboot your phone by executing the following command in the root shell (indicated by the #):
# reboot

Download from (md5sum 8e3535fd720d19fa0aec4eb711b897c4)
Unzip to a place on your PC.
Open a terminal (or command window) on your PC and change the current directory to where the files are on your PC and execute these commands:
$ adb push gfree_verify /data/local/tmp
$ adb shell chmod 755 /data/local/tmp/gfree_verify
$ adb shell
In this shell:
Remark: When you run su for the first time in the adb shell make sure the the screen of the phone is unlocked. Because when you enter the command the Superuser app will show up and ask you if you want to grant superuser access to app Unknown (2000).
Check the Remember check box and click allow.
$ su
# cd /data/local/tmp
# stop ril-daemon
# ./gfree_verify
You should see the following output:
gfree verify_cid returned: 
@CID: 11111111


gfree verify_secu_flag returned: 
@secu_flag: 0


gfree verify_simlock returned: 

Start the interface layer again (IN THE ADB SHELL ON YOUR PC):
# start ril-daemon

Did it work? Here's what you're looking for:
@CID: 11111111 <--- this response means you have superCID!
@SIMLOCK= 00 <--- this means your simlock is off.
@secu_flag: 0 <--- this means your radio is S-OFF.

That's it, you're DZ is now rooted.
thanks to THIS guide.

No comments:

Post a Comment