HTC DesireHow to obtain the root permission
Read this whole topic-it contains a ton of useful information as well as the instructions and downloads!
Remember that if you use this guide, you do so entirely at your own risk!
Welcome to my guide on how to root the HTC Desire!
Compatibility
This guide will allow you to root your HTC Desire, provided it has a bootloader version of 0.75 or below. to check this, turn off your device, then turn it back on with the 'back' key held. on the second line in green text you will see hboot-and then a number. provided this is 0.75 or below, this Guide shoshould work for you.
O2 Germany devices are currently shipping with A 0.80 bootloader, and as such cannot be rooted using this guide at this time.
Desire rooting Protection
Back in the early days of Android, rooting was easy. you had several options-You cocould flash stuff via the bootloader, you cocould flash an engineering bootloader, you cocould use kernel exploits-there were ways of getting the low level access to your device that-in fairness-I think we as paying MERs are entitled. as time has progressed however, the manufacturers have made things harder and harder. the desire is not a straightforward phone to root, for processing reasons, including...
- A 'perfected bootloader 'That doesn' t allow flashing or booting of any images (even HTC signed ones)
- A ruu flash process that does not allow downgrading of the bootloader to earlier versions
- A kernel (that as yet does not have publicly available source) that as yet has no known exploits
- A new protection method previusly seen on the HTC tattoo that protects key partitions from having write access. Even with Su access, it is not possible to write to the boot, recovery or system partitions.
In reality, the options for rooting a device this secure are limited. even if a kernel exploit were found, the key partitions wocould still be unwritable, rendering su access useless. this was circumvented on the tattoo very cleverly, using a specific memory address from a confidential Qualcomm datasheet, however this information is not yet available for the Snapdragon chipset used in the desire (and indeed may never enter the public domain ).
And so the root process becomes a process of methodically probing every possible point of exposure on the device, looking for the slightest chink in the armour. I found one and we're re putting it to good use! The downside is that it's not as easy or as pretty as rooting a device that is actually designed to be accessible at the lowest level, such as the Nexus One.
Shame on you HTC for going to such unnecessary lengths (but that's another story for another day ).
What this root process provides and does not provide
The root process will...
- Flash your device with a new, generic 1.15.405.4 based Rom that has superuser access
- Show you how to enter the recovery image in future, allowing you to flash update zips
The root process will not...
- Enable you to flash your device with a custom recovery image that can be launched easily by just holding down the volume down button when powering on
- Enable you to have write access to the/system partition in normal use of the device
Both of these limitations are being worked on of course.
Pre-requisites
In order to complete this guide, you need the following...
- A htc Desire
- A PC
- A microUSB Cable
- A microSD card (to be made into a 'goldcard'-only necessary if your device is an operator supplied device)
- The downloads below
- Bils of steel (actually, I just made that up)
Download
To be ready for the guide, download the following items...
- The ISO image-download/mirror/torrent MD5: 854bdbb3c5898b15f92b5991204c9288
Once you have this on your machine, you're ready to start!
The Guide
Follow through these steps, one by one and at the end of it you'll have a rooted desire with the latest Rom.
Note: This process will wipe your device and there is currently no option to backup your device Rom before you start
.
Troubleshooting
If you have any issues with the root process, post below, and we'll do our best to help!
And finally!
If you wish to do so, you can express your appreciation by signing up to a modaco ad free or modaco plus account using PayPal or Google Checkout, as detailed inThis post on modaco. As well as donating to support the work that goes into all the varous modaco activites, you get cool stuff like free software (there's some great android stuff coming too !), An ad free modaco site and of course access to the modaco online kitchen. All signups are very much appreciated.
Enjoy!
P
Thanks to chainsdd for his excellent new superuser permissions update and amon_ra for the recovery image I butchered here.
CED: 65% of original size [1104x899]-click to view full image
Optional update zips
Apply this updates after rooting by copying to sdcard any applying from the recovery image (entered using the recovery-xxx.sh method ).
A2sd-temporarily offline
32.36.00.28u _ 4.06.00.02 _ 2 radio update (from Asia 1.19.707.6 update)-download/MirrorDo not use on orange
Chinese Input (htc_cime)-Download
Arabic fonts (testing)-download/Mirror
Hebrew fonts (testing)-download/Mirror
How to obtain the root address after HTC Sense is refreshed by G2
1. Set the USB connection to debug
This step is critical. Otherwise, the page granted with permissions will not be available (apply or deny options). If I fail at the beginning, this step is not done!
Open settings-Application-Development-USB debugging and allow the imitation location to be selected.
2. Download the android SDK
Http://dl.google.com/android/android-sdk_r04-windows.zip (the downloaded file name is Android-SDK-Windows, around 22 m)
After downloading, You can decompress the package to any location, create an SDK folder on drive C, and copy the tools folder in the decompressed file to the SDK (at this time, it must be confirmed that there are two files in tools: adb.exeand fastboot.exe)
Download superuser.zip (two files suand superuser.apk should be included in the tools folder of the SDK together)
Superuser.zip
3. Install the USB debugging driver
I am using Windows 7, and I have installed HTC Sync on my computer, so the driver step is no longer needed. You can install a pure driver, or just like me.
4. Get Root
[This step is omitted here. If it fails, you can add this step: Shut down normally, connect the data cable to the computer, and press the back key (that is, the arrow in the lower right corner, press) and then press the open key to enter the bootloader (white background ). Fastboot USB (Red Letter) appears on the phone. Open the windows command window and enter the command cd c:/SDK/tools.
C:/SDK/tools> _
Enter the command fastboot devices, and the driver is successfully installed.
Continue entering the command fastboot boot cm-hero-recovery.img (this step must copy the. imgfile to the Tools Folder) here to download the imgfile
Cm-hero-recovery.img.zip
If it succeeds, you should see that your mobile phone has entered the recovery mode, and then write the following command in the recovery mode] ---------- this step should be redundant for machines that already have recovery.
Shut down, connect the data cable to the computer, and enter the recovery mode (hold down the house + boot). The sense should contain recovery. If not, install it on your own.
Continue to enter the command in cmd (one line is a command, case sensitive)
C:/SDK/tools> _
ADB shell Mount/System
ADB push SU/system/bin/
ADB shell chmod 4755/system/bin/su
ADB push superuser.apk/system/APP/
ADB shell reboot
If the call succeeds, the phone restarts automatically. At this time, your phone has the root permission.
After the restart, a superuser perminssion program is added to all programs. This program records the programs that are granted permissions ~
Original post address:
Http://android.modaco.com/content/htc-desire-desire-modaco-com/307365/29-apr-r3-htc-desire-rooting-guide-now-with-new-improved-easier-root-method/
In addition:
Http://www.blogsdna.com/9658/how-to-root-htc-desire-process-released.htm
Chinese here:
Http://itbbs.pconline.com.cn/mobile/11156954.html