HTC Desire 擷取Root許可權的方法
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 should 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 could flash stuff via the bootloader, you could flash an engineering bootloader, you could use kernel exploits - there were many ways of getting the low level access to your device that - in fairness - I think we as paying customers are entitled to. As time has progressed however, the manufacturers have made things harder and harder. The Desire is not a straightforward phone to root, for many 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 previously 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 would 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 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
- balls 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 in this post on MoDaCo. As well as donating to support the work that goes into all the various 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.
Reduced: 65% of original size [ 1104 x 899 ] - 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 / MIRROR DO NOT USE ON ORANGE
Chinese Input (HTC_CIME) - DOWNLOAD
Arabic Fonts (testing) - DOWNLOAD / MIRROR
Hebrew Fonts (testing) - DOWNLOAD / MIRROR
G2刷HTC sense後擷取ROOT方法
1.將USB串連設定為調試
這一步很關鍵,否則在以後的許可權賦予的介面會沒有(apply or deny的選項)我一開始沒成功就是這一步沒做!
開啟設定----應用程式----開發----usb調試選上,允許模仿位置選上 ok
2. 下載Android SDK
http://dl.google.com/android/android-sdk_r04-windows.zip(下載的檔案名稱為android-sdk-windows,大約22M)
下載以後可以解壓到任意位置,在c盤建立sdk檔案夾,將解壓檔案中的tools檔案夾拷貝至sdk (這時要確定tools中有adb.exe和fastboot.exe這兩個檔案)
下載superuser.zip (應該有兩個檔案su和superuser.apk,將這兩個檔案一併放入sdk中的tools檔案夾中)
superuser.zip
3.安裝USB debugging驅動
我用的是WIN7系統,電腦上已經裝了HTC SYNC軟體,所以驅動這一步就免去了,大家可以裝純驅動,或者和我一樣
4.擷取root
【這裡有一步省略的,不成功的可以加上這一步:順利關機,然後用將資料線和電腦相連,按著後退鍵(就是右下角的那個帶箭頭的,一直按著)再按開機鍵會進入bootloader(白色背景)。手機上會出現fastboot Usb(紅字),開啟windows的命令窗, 然後輸入命令 cd C:/sdk/tools
命令運行成功會顯示C:/sdk/tools>_
然後輸入命令 fastboot devices , 這時應該顯示成功安裝了驅動
繼續輸入命令 fastboot boot cm-hero-recovery.img ,(這一步必須把.img檔案拷貝到tools檔案夾內)img檔案在這裡下載
cm-hero-recovery.img.zip
成功的話你應該看到你的手機進入了recovery模式,然後再在recovery模式下寫入下面的命令】----------這一步對於已經有recovery的機子來說應該是多餘的吧
關機,資料線串連電腦,進入recovery模式(按房屋子+開機),sense都應該帶的有recovery吧,沒有的話自己裝
繼續在cmd中輸入命令(一行是一個命令,注意大小寫)
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
成功的話手機會自動重啟,這時候你的手機已經有root許可權了
重啟之後所有程式之中多了一個superuser perminssion的程式,這個程式是記錄被賦予許可權的程式的~
原帖地址:
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/
另:
http://www.blogsdna.com/9658/how-to-root-htc-desire-process-released.htm
中文的瞧這裡:
http://itbbs.pconline.com.cn/mobile/11156954.html