Please Log In or Register - it's FREE!

126 Pages V   1 2 3 > »   
Reply to this topicStart new topic
 14/Jun r6 riskfreeroot - HTC Desire rooting guide - now with HBOOT 0.80 and OS to 1.21 support
The Desire rooting poll
Did you use this guide to root your HTC Desire?
Yessireee and it's great! [ 921 ] ** [74.15%]
No because i'm too scared! [ 206 ] ** [16.59%]
No because it didn't work! [ 115 ] ** [9.26%]
Total Votes: 1242
Guests cannot vote 
Paul
post Apr 28 2010, 12:03
Post #1


It's My Party
Group Icon

Group: Admin Team
Posts: 27,380
Favorited Topics: 100
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



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.80 or below and ROM version 1.21.xxx.x or below (2 different downloads are available depending on your ROM version). 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.80 or below, this guide should work for you.

If you have a bootloader / OS newer than this, please visit this topic for details on how to downgrade.

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
The root process will NOT...
  • enable you to flash your device with a custom recovery image
  • 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. wink.gif

Pre-requisites

In order to complete this guide, you need the following...
  • a HTC Desire wink.gif
  • a computer running Windows (32 bit recommended, some users have reported issues with x64), OSX or Linux
  • 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) tongue.gif
Download

To be ready for the guide, download one of the following items...

- If you have a bootloader version 0.75.xxxx or below AND a current ROM of 1.15.xxx.x or below - DOWNLOAD (MediaFire) / MIRROR (ROMraid / CoBlitz) - MD5: 28dd5acc4104bb49bd4b292cc8e8437c

- ONLY if the above download is not suitable - if you have a bootloader version 0.80.xxxx or below AND a current ROM of 1.21.xxx.x or below - DOWNLOAD (MediaFire) / MIRROR (ROMraid / CoBlitz) - MD5: eb2ed5bca1334cacd70e4720f5b29960

Once you have this on your machine, you're ready to start! smile.gif

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.
  • Make your microSD card into a goldcard by following these instructions (it's a good idea to back up the contents of your card first!).
  • Unzip the file you downloaded to a directory, then open a command prompt / terminal window at that directory.
  • Copy the 'update.zip' file to your microSD. Do NOT rename it.
  • Turn off your HTC Desire, then turn it back on with the 'back' button held down. You'll see 'FASTBOOT' written on the screen in a red box. Connect the phone to the computer.
  • In the terminal window, enter either 'step1-windows.bat', './step1-mac.sh' or './step1-linux.sh' as appropriate.
  • Navigate to the 'BOOTLOADER' and then 'RECOVERY' option on the menu, using the volume buttons to move and the power button to select.
  • When a black screen appears with a red triangle, press and hold 'Volume Up' then tap 'Power'.
  • Your device should now be at the 'recovery' screen. Select the 'wipe data/factory reset' option, then select the option to 'Apply sdcard:update.zip'. This will take a little while, so go make a nice cup of tea. When the flash has finished, reboot, and you are DONE! smile.gif
Troubleshooting

If you have any issues with the root process, post below, and we'll do our best to help! smile.gif

Using a custom recovery image

You can access a custom recovery image by using fake-flash developed by myself and Koush.

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! smile.gif

P

Thanks to nilezon for his patched windows ADB binary and ChainsDD for his excellent new Superuser Permissions update.


--------------------
If you'd like to support MoDaCo, please consider signing up for a MoDaCo Ad Free or a MoDaCo Plus account - now accepting Google Checkout! New to MoDaCo Plus: Free LastPass Premium upgrade!

We're back on IRC! Come join use in #modaco on freenode! You can also follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Devices i'm currently working on releases for: Desire, Galaxy S, Streak
Devices currently paused and next in the queue: Nexus One, Legend
Devices currently on hold: Hero, Pulse, Wildfire
Devices I'm not currently working on: Anything not listed above

If you would like to donate, please click the 'Cancer Research' banner!
Go to the top of the page
 
+Quote Post
Paul
post Apr 28 2010, 13:03
Post #2


It's My Party
Group Icon

Group: Admin Team
Posts: 27,380
Favorited Topics: 100
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



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).

32.36.00.28U_4.06.00.02_2 Radio update - DOWNLOAD (ROMraid / CoBlitz) / MIRROR (ROMraid / Coral) / MIRROR (MediaFire) - DO NOT USE ON ORANGE
Go to the top of the page
 
+Quote Post
bcmobile
post Apr 28 2010, 13:18
Post #3


skitzandroid
Group Icon

Group: MoDaCo Plus
Posts: 46
Joined: 4th April 2010
From: Sydney, Australia
Member No.: 683,659

Device(s): HTC Desire, HTC TouchPro
Twitter: @skitzandroid



Howto looks good. All systems go?

I will give more feedback once I have gone through the full process.

Once again mate..... nice work!

Edit: I'll put together an Ubuntu VM appliance with all of the tools for the WIndows users.


This post has been edited by Paul: May 5 2010, 10:35


--------------------
_______________
skitzandroid
Go to the top of the page
 
+Quote Post
Paul
post Apr 28 2010, 13:40
Post #4


It's My Party
Group Icon

Group: Admin Team
Posts: 27,380
Favorited Topics: 100
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



I am working urgently to make it work on all Windows / OSX / Linux independently, rather than needing a specific one.

P
Go to the top of the page
 
+Quote Post
radshag
post Apr 28 2010, 14:20
Post #5


Newbie
Group Icon

Group: MoDaCo Plus
Posts: 17
Joined: 28th April 2010
Member No.: 694,903

Device(s): HTC Desire
Twitter: @radshag



Hey Paul,

I am very excited to get started on rooting my desire. I was wondering if I will be able to load other fonts such as Hebrew once I follow these instructions. I noticed you said I wouldn't have access to the /system partition in normal use mode. Is there another way?

Thanks,

Dov
Go to the top of the page
 
+Quote Post
The_IMF
post Apr 28 2010, 14:26
Post #6


Enthusiast
Group Icon

Group: MoDaCo Plus
Posts: 152
Joined: 11th November 2009
From: London
Member No.: 608,876

Device(s): HTC Hero, HTC Desire



Will attempt later tonight when I can download ubuntu.


This post has been edited by The_IMF: Apr 28 2010, 14:34
Go to the top of the page
 
+Quote Post
Paul
post Apr 28 2010, 14:35
Post #7


It's My Party
Group Icon

Group: Admin Team
Posts: 27,380
Favorited Topics: 100
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



QUOTE(radshag @ Apr 28 2010, 15:20) *
Hey Paul,

I am very excited to get started on rooting my desire. I was wondering if I will be able to load other fonts such as Hebrew once I follow these instructions. I noticed you said I wouldn't have access to the /system partition in normal use mode. Is there another way?

Thanks,

Dov

Yes, you'll load them on by running recovery and then doing 'adb shell mount /system' before pushing the files.

P
Go to the top of the page
 
+Quote Post
RcT_DK
post Apr 28 2010, 14:54
Post #8


n00b revenge
Group Icon

Group: MoDaCo Plus
Posts: 3
Joined: 27th April 2010
Member No.: 694,355

Device(s): HTC Desire
Twitter: @@RcT_DK



I will test in a couple of hours.
Go to the top of the page
 
+Quote Post
bcmobile
post Apr 28 2010, 15:33
Post #9


skitzandroid
Group Icon

Group: MoDaCo Plus
Posts: 46
Joined: 4th April 2010
From: Sydney, Australia
Member No.: 683,659

Device(s): HTC Desire, HTC TouchPro
Twitter: @skitzandroid



QUOTE(Paul @ Apr 28 2010, 23:40) *
I am working urgently to make it work on all Windows / OSX / Linux independently, rather than needing a specific one.

P


All working fine Paul. You are a champion.

bc@bc-xps:~$ adb shell
# su
#
Go to the top of the page
 
+Quote Post
Paul
post Apr 28 2010, 15:38
Post #10


It's My Party
Group Icon

Group: Admin Team
Posts: 27,380
Favorited Topics: 100
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



Post live!

P
Go to the top of the page
 
+Quote Post
simonk12
post Apr 28 2010, 15:41
Post #11


Newbie
Group Icon

Group: Posters
Posts: 40
Joined: 19th April 2007
Member No.: 248,583



sweet!
thanks Paul!
Go to the top of the page
 
+Quote Post
afiorillo
post Apr 28 2010, 15:52
Post #12


Diehard
Group Icon

Group: MoDaCo Ad Free
Posts: 441
Joined: 21st March 2005
From: Rome, IT
Member No.: 118,547

Device(s): HTC Desire w/ MCR r4 WIP
Twitter: @afiorillo



Great news! Going to root my Desire ASAP! wub.gif

(and my FriendFeed widget will thank me, I was screwing it up refreshing every second or so... biggrin.gif )
Go to the top of the page
 
+Quote Post
IrealiTY
post Apr 28 2010, 15:54
Post #13


Newbie
Group Icon

Group: MoDaCo Ad Free
Posts: 17
Joined: 4th January 2010
Member No.: 633,279

Device(s): Motorola Milestone
Twitter: @IrealiTY



Nice done mate, now please a 0.80 Version an I'll be happy :>
Go to the top of the page
 
+Quote Post
pascanu
post Apr 28 2010, 15:54
Post #14


Newbie
Group Icon

Group: Posters
Posts: 12
Joined: 6th January 2010
Member No.: 634,523

Device(s): G1, Magic, Archos5IT, Desire



Before I jump in: I assume this will void the warranty. How do we return to "stock"? Just flash a normal RUU? Can they tell this device was rooted?
Go to the top of the page
 
+Quote Post
evilgeenius
post Apr 28 2010, 15:56
Post #15


Newbie
Group Icon

Group: MoDaCo Ad Free
Posts: 3
Joined: 28th April 2010
Member No.: 694,854

Device(s): Desire



"This process will wipe your device and there is currently no option to backup your device ROM before you start."

So does this mean that once you flash your desire you'll never be able to go back to the original Sense UI?

Go to the top of the page
 
+Quote Post
xTc is loVe
post Apr 28 2010, 15:58
Post #16


Enthusiast
Group Icon

Group: MoDaCo Ad Free
Posts: 174
Joined: 21st January 2010
Member No.: 643,847

Device(s): HTC Hero



I need a Windows machine only?Pr Do i need Linux it a live cd , too? I mean are there both OS needed? Sry for my englisch.....

Thanks for root......
Go to the top of the page
 
+Quote Post
Karolis
post Apr 28 2010, 15:58
Post #17


Newbie
Group Icon

Group: MoDaCo Plus
Posts: 40
Joined: 31st March 2010
Member No.: 681,803

Device(s): HTC Desire
Twitter: @KarlPoe



I'm not an Android n00b, but here comes a fairly n00bish question: what's the advantage of having root at this point besides just the fact of having it? If I can't write to /system, that means I can't use most of the root apps, including wireless tether, adfree android, etc.

Is that right?
Go to the top of the page
 
+Quote Post
nekromantik
post Apr 28 2010, 16:00
Post #18


Regular
Group Icon

Group: Posters
Posts: 102
Joined: 4th April 2010
From: Bristol
Member No.: 683,784

Device(s): HTC Desire
Twitter: @Nekromantik09



I think il wait for the Ubuntu VM from bcmobile.
Cheers paul and bcmobile
Go to the top of the page
 
+Quote Post
Paul
post Apr 28 2010, 16:00
Post #19


It's My Party
Group Icon

Group: Admin Team
Posts: 27,380
Favorited Topics: 100
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



Tether, adfree android et al don't need system write access. In fact, nothing does.

This ROM includes Sense of course.

If you can get hold of a standard RUU for your operator, you can flash back to stock, if not you can easily flash back to generic stock.

P
Go to the top of the page
 
+Quote Post
mardox
post Apr 28 2010, 16:00
Post #20


Newbie
Group Icon

Group: MoDaCo Ad Free
Posts: 35
Joined: 28th April 2010
Member No.: 694,870

Device(s): HTC Desire
Twitter: @emilsjolander



This being my first android device im pretty new to this but tried to read up on things. I was just wondering if it is possible as of now to flash nexus one roms onto the desire? i have just seen alot of people speculating about this but no definate no or yes answer because of there being no method to root before this.

Thx!
Go to the top of the page
 
+Quote Post

126 Pages V   1 2 3 > » 
Reply to this topicStart new topic

Collapse

Similar Topics

  Topic Replies Topic Starter Views Last Action
No new [Wallpaper] HTC Sense LiveWallpaper For [FROYO 2.2]
Sense wallpaper for 2.2
22 death1246 4,129 Yesterday, 22:07
Last post by: death1246
No New Posts Desire - can't upgrade after Root
1 badhorsey 120 Yesterday, 21:01
Last post by: badhorsey
No new Topic has attachments24/Aug r8 - MoDaCo Custom ROM for HTC Desire with Online Kitchen (2.2 / Froyo)
548 Paul 41,927 Yesterday, 22:41
Last post by: tinnef
No new Dell customer service warning if your over 28 days with your Streak
16 Dogmann55 840 Yesterday, 23:14
Last post by: yosemite-sam
No New Posts Anyone working on us cellular htc desire root???
4 azazell32 153 Yesterday, 22:37
Last post by: IEFtm
No New Posts SMSMyFile service and client now free for all Android users!
0 migsoft_dev 19 Yesterday, 22:25
Last post by: migsoft_dev

9 User(s) are reading this topic (9 Guests and 0 Anonymous Users)
0 Members:

 


RSS hit counter Lo-Fi Version Time is now: 3rd September 2010 - 00:18

Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!

ActiveKitten | Binaryfish | Conduits | DeveloperOne | eSoft Interactive | FTouchSL | Inesoft | LastPass

Lingvosoft | monocube | OmegaOne | Omnisoft | Opera Software | Resco | SBSH | Splashdata

Sprite Software | Syncdata | Teksoft | Titanium Backup | VITO | WalkingHotSpot | WebIS | z4soft

Would your company like to become a 'Plus Partner'? Click Here to contact us!