How to root HTC Desire
Why root? I want to use some advanced features like DroidWall(frontend for iptables), Titanium Backup, OpenVPN, so I need root.
We are going to get root on HTC Desire GSM and to install following things:
- ROM - VillainRom 1.0
- S-OFF - Alpharev
- Recovery - Amon RA 2.0.0
We are using following software on PC:
- OS Linux
- VirtualBox
Get root
Download unrevoked3 recovery flash tool. Unpack and start it
tar xfz reflash.tar.gz chmod +x reflash ./reflash
Switch on the “usb debugging” on your device: “Settings→Applications→Development→USB debugging”. Connect your mobile to PC via USB and follow the instructions of unrevoked3 recovery.
You should get root and clockworksmod recovery image installed on your mobile.
S-OFF
HTC has implemented security flag, so every image (recovery, rom) will be checked for HTC signature. We want to flash Amon RA Recovery, so we need to switch it off (S-OFF).
Download this boot iso with Alpharev. Burn it and boot your PC from this image or use VirtualBox with USB tunneling. Follow the instructions and you will get S-OFF on your device.
If everything was Ok you've got a new alpharev splash image. To flash the original HTC splash you need fastboot(download) and original splash(download). Save both in the same folder. Power off your mobile, connect it to PC and boot it to fastboot “power+back”. Flash the splash:
unzip fastboot.zip chmod +x fastboot ./fastboot flash splash1 desire_stock_splash1.img
Amon-RA Recovery
Why not the ClockworkdMod recovery? Amon-RA has more features. Download the Amon-RA Desire Recovery 2.0.0 and save it in the same fodler with fastboot. Power off your mobile, connect it to PC and boot it to fastboot “power+back”. Flash the recovery:
./fastboot flash recovery recovery-RA-desire-v2.0.0.img
VillainROM
Download VillainRom for Desire save it on the SD card, boot into recovery and flash it.
Discussion