[G2 and Desire Z Android Development] g4rb4g3:
First thanks to everybody who made it possible to root our great devices.

THIS WILL WIPE YOUR DEVICE, BACKUP EVERYTHING BEFORE DOING THIS!

Polish translation by trzype

If you don't know how to use adb/fastboot don't do this. Use the search function and google and learn how to use them. If you know everything about them come back. I made a pretty nice tutorial, many people used it already with success. But I won't add anything like "go to startmenu and type..."

If your INFOCID is NOT one of these you need to make a goldcard to downgrade!

HTC__001

HTC__032

HTC__E11

HTC__203

HTC__Y13

HTC__102

HTC__405

HTC__304

HTC__A07

HTC__N34

HTC__J15

check with:

adb reboot bootloader
fastboot oem boot

Here is a great guide how to make a goldcard, follow the first part and come back here then.

Get theses 3 files:

https://github.com/tmzt/g2root-kmod/raw/scotty2/scotty2/psneuter/psneuter (right click > save as...)

https://rapidshare.com/files/1884723844/PC10IMG.zip

https://rapidshare.com/files/948281832/root.zip

Since this uses some security holes to gain root privileges on your phone some antivirus programs on your pc might warn you that this contains a virus. Thats not the case!

Extract misc_version_01.zip (only misc_version is needed)

Get the PC10IMG.zip from here or download the full RUU from here.

If you already downloaded the 1.34 RUU somewhere else you can skip this step.

adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell

Check if you have the '#' sign instead of the '$'

If you see the '#' sign you got root!

/data/local/tmp/misc_version -s 1.33.405.5
exit

If you have downloaded the 1.34.405.5_PC10IMG.zip copy it to you SD-Card and rename it to PC10IMG.zip.

If you downloaded the full RUU or had it already execute the exe file (mine is called RUU_Vision_HTC_WWE_1.34.405.5_Radio_12.28b.60.140e_26.03.02.26_M_release_155556_signed.exe), start explorer and type %temp% in the adress bar.

Look in all the folders starting with a { sign and also in the sub directories if it also starts with a { sign, in one of the subdirectories there should be a rom.zip file with 298.442.206 bytes and the MD5 sum 2ff42897cd27e0db425a2cf36c8bd078.

Copy this rom.zip to your SD-Card on the phone and rename it to PC10IMG.zip

adb reboot bootloader

(or turn your phone of and on again while holding the trackbad).

Wait till the phone is in bootloader mode (white screen should look like this but with other infos http://www.brutzelstube.de/wp-content/uploads/2010/09/hboot.jpg)

Select bootloader (vol +/- buttons for navigation and power button for select).

Wait for the phone to scan the sdcard, once it's done it will ask you if you want to start the update. Confirm it and wait till it's done. Reboot with powerbutton when asked.

After the reboot check for version informations, it should show this:

Enable USB-Debugging on your phone

Extract root.zip

adb install AndroidTerm.apk
adb push busybox /data/local/tmp/
adb push gfree /data/local/tmp/
adb push rage /data/local/tmp
adb push root /data/local/tmp/
adb shell chmod 0755 /data/local/tmp/*
adb push su /sdcard/
adb push Superuser.apk /sdcard/

Start the Terminal app on your phone and type:

/data/local/tmp/rage

Wait until you see the message "Forked #### childs.", reset Terminal (menu > Reset Term). The Terminal app will close, launch it again. It will force close, launch it again.

You should see the magic '#' sign again.

Next type in the terminal

/data/local/tmp/gfree -f

, this will turn Security off (S-OFF), remove SIM Lock and set CID to 11111111.

Last step in terminal app on your phone is to execute these commands.

/data/local/tmp/root
sync

This will root your phone. It's possible that you get an error message "mkdir: /system/xbin already exists", don't worry everything should be ok.

After that restart your phone.

Now get ROM Manager and install the recovery image from there. If you are happy with the 1.34 software everything is done here, if not you can flash anything you want now.