Wednesday, March 9, 2016

Complete Guide to Root, Downgrade and Upgrade HTC Desire Z

A link for all the necessary files in a platform-tools folder.zip:
Sorry, this forum doesn't allow me to submit direct links.

h.t.t.p.w.w.w. http://ift.tt/2244PHC

Unzip and put the platform-tools folder on your C drive.

A part of this guide was made by steven-liesenborgs I have used that to make an all in one guide.

1. Create Temproot:

Go to start – windows accessories – open the command prompt. Connect the USB cable to your phone and connect to your pc (!! Make sure USB debugging is turned on your HTC and if asked for only charging or mass storage choose only charging!!) Now go back to the command prompt and type: (press enter after each line,)

cd c:\platform-tools
adb devices


Normally you will now see numbers and letters meaning your device is connected and recognized.

Type: (in windows 10 you can select and use ctrl-c ctrl-v)

adb push fre3vo /data/local/tmp
adb shell
chmod 777 /data/local/tmp/fre3vo
/data/local/tmp/fre3vo -debug -start FAA90000 -end FFFFFFFF


Now you get normally something like the following lines (this may take 2 min)

Buffer offset: 00000000
Buffer size: 8192

Scanning region fb7b0000…
Scanning region fb8a0000…
Scanning region fb990000…
Scanning region fba90000…
Potential exploit area found at address fbb4d600:a00.
Exploiting device…

I f it Works you will see that $ has dissapeared, otherwise try one of the next lines below (!!restart your mobile for each attempt!!)

/data/local/tmp/fre3vo -debug -start 10000000 -end 1FFFFFFFF
/data/local/tmp/fre3vo -debug -start 20000000 -end 2FFFFFFF
/data/local/tmp/fre3vo -debug -start 30000000 -end 3FFFFFFF
/data/local/tmp/fre3vo -debug -start F0000000 -end FFFFFFFF
/data/local/tmp/fre3vo -debug -start E0000000 -end EFFFFFFF


When $ has dissapeared type:

adb shell

Now you will see # instead off $ which means succes. Now type:

exit

2. Change version to downgrade and get superCID and Goldcard

Type:

adb push misc_version /data/local/tmp/misc_version
adb push flashgc /data/local/tmp/flashgc
adb shell chmod 777 /data/local/tmp/*
adb shell
cd /data/local/tmp
./misc_version -s 1.00.000.0

Now you get:

–set_version set. VERSION will be changed to:1.00.000.0
Patching and backing up partition 17…

Then type:

./flashgc

(!! In case of an error message like below, check if you did select charge only in settings menu !!)

Error opening backup file.

If everything worked type:

sync

You can check if everything is fine, type:

dd if=/dev/block/mmcblk0p17 bs=1 skip=160count=10

1.00.000.010+0 records in
10+0 records out
10 bytes transferred in 0.001 secs (10000 bytes/sec)

BACK-UP everything now

3. Temp root and backup

Type:

Exit
adb push su /data/local/tmp/
adb push busybox /data/local/tmp/
adb push fixsu.sh /data/local/tmp/
adb install SuperUser.apk
adb shell chmod 755 /data/local/tmp/fixsu.sh
adb shell/data/local/tmp/fixsu.sh

Backup your data with a backup program on your phone, Rom Manager, Titanium Backup of My backup root for instance.

4. Downgrade to Froyo:

You will need a Rom which you can find following link below :
(There is a rom included the platform-tools.zip from Dropbox, renamed to PC10IMG.zip ready to use, continue to 4a at once) Remember, this is a shipped EU rom, if you need another you can download and find it at same domain from link below or h.t.t..p androidruu.com

h.t.t.p http://ift.tt/1py7U4W

RUU_Vision_HTC_WWE_1.34.405.5_Radio_12.28b.60.140e _26.03.02.26_M_release_155556_signed.exe

Download this .exe and activate it as administrator wait till you the first screen, don't do anything just leave it there.

Click on Start>Run and type %temp%. Then click OK. Look for the newest folder in the temp folder. Double-click on it. (Appdata/local files/temp from user administrator) Open the last folder made (organize!) it will have a name like {4AD69632-45A1-41DE-} Search in that directory for a rom which the update utility did create there. Copy the rom to the platform-tools folder. Close the HTC Android Rom Update Utility, you don't need it anymore. Change the name of the rom in PC10IMG.zip. Be aware if you can see extensions or not and you didn't create a .zip.zip file. Check it with right click on it and see properties.

4a

Now copy the PC10IMG.zip to the root of SD card. Take off the USB cable and check in phone your settings, charge only, USB and accept software 3thparty. Restart the Desire. For some reason this goes smoother as turning power off. When the screen goes dark push volume down and power button at same time till you get in the boot menu. Click power button one time and the HTC will search for a file, and start to check the PC10IMG.zip. This will take 1 or two minutes . Now you get a choice to upgrade yes or no select yes with the Volume up or down button and activate the choice with the power button. You HTC will now downgrade to Froyo Android 2.2 firmware 1.34.405.5.

5. Root and Superuser to upgrade

Every file you need is already included in the platform-tools.zip from Dropbox

Source: .h.t.t.p.w.w.w. http://ift.tt/2244SmX

Connect the HTC Desire Z to the computer via USB.
Make sure USB debugging is enabled on the HTC Desire Z by checking Settings » Applications » Development » USB debugging.
On the computer, go back to command prompt an type:

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


NOTE: You will drop out of the shell after this command to platform-tools folder, type:

adb shell
cd /data/local/tmp
./gfree -f -b hboot-eng.img -y recovery.img

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
The messages that you what to see are either/or
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 then DO NOT REBOOT. Check everything again and try again
If gfree worked correctly continue with, type:

./root_psn
sync
reboot

The HTC Desire Z is now rooted with S-OFF, the Engineering HBoot & the ClockworkMod Recovery.

6. Install a new Rom

This is a tricky part since most roms will just fail to install, at least on shipped models, the roms from Guhl99 (XDA Forums)do the job. There is an interesting part to these roms also, which I Like. You really should check his work out.
In case you prefer a Cyanogenmod version 10.1 Guhl99 made one also you can find it via XDA forums, in the platform-tools folder there is a working Cyanogenmod 10.1 cm-10.1-20140309-UNOFFICIAL-vision.zip in case you don't like spoofing. If you do like it, check out Guhl99 his work which you should do anyway in case of HTC Desire 7.

In your platform-tools folder select AndromadusAOSP4.2-vision-pff-16062013.zip an AOS Android4.2.2 and gapps-jb-20130301-signed.zip (they are already present in the platform-tools.zip from Dropbox)

Copy them to the root of your SD card, download Rom Manager from link below and install it:
If you can't download it because your SD is occupied release the USB cable from your phone.

h.t.t.p.w.w.w. http://ift.tt/1py7Ula

Open Rom Manager, select Recovery Setup and activate the 2th ClockworkMod option, select as option the 3x version. Go back and select now the 1th ClockworkMod option and activate it to flash, it will ask for permission which you grant. Now Clockworkmod has root acces as Superuser. Go back to main menu from Rom Manager and select Fix Permissions. Now, check if everything in your Phone settings is still correct. Charge only, USB debugging, allow unknow installs etc. Take the USB cable out of your Phone. In Rom Manager menu select Reboot to Recovery and activate it, no need to push buttons this time the HTC wil go to Rom Manager bootmenu automatic by restart after showing the HTC start screen first.

7. Rom Manager Bootmenu

Another part which need some attention to proceed. In this menu the Volume up and down button are used to scroll. The power button is used to get to out of a submenu. The Photo button, on right lower side is used to activate the selection. With this knowledge in mind it is easy to navigate and delete Factory Settings, then Cache and under advanced menu the Dalvik Cache. Return to main menu pressing the Power button and select install zip from SD. Select ROMAndromadusAOSP4.2-vision-pff-16062013.zip and activate it with Photo button. The Desire will now install AOS Android 4.2.2. When it is finished select Install a zip from SD again and this time select gapps-jb-20130301-signed.zip and install it. When ready select reboot in Rom Manager and the HTC will restart, which will take some minutes, and it will run now on Android 4.2.2. Connect the HTC to USB Cable and copy the 3 files from platform-tools/PFF folder to your SD. Use a file manager on your HTC to search and install them to play with spoofing.

Now you are ready: This rare quality phone with qwerty keyboard will be at your service for some years more.


from xda-developers http://ift.tt/2244SDb
via IFTTT

No comments:

Post a Comment