Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
LeeDroid
Old
(Last edited by LeeDroid; 10th February 2011 at 01:21 AM.) Reason: title update
#1  
LeeDroid's Avatar
Recognized Developer - OP
Thanks Meter 11427
Posts: 12,450
Join Date: Jan 2007
Location: Darlington

 
DONATE TO ME
Thumbs up Rooting the HTC Hero/G2..(success)

If you have a 2.73+ rom with the latest hboot you will need to follow This Post to boot the recovery image

1) restart into bootloader (switch on holding the back button)

2) Extract the latest GSM Hero recovery IMG into your android SDK/tools folder

(For SDK & CMD help reffer to Post 3 "The Basics" )

3) Download Superuser.zip and extract the contents to your SDK/tools folder.

4) Plug in USB

5) open a CMD prompt from the tools directory and type the following command> fastboot boot recovery-RA-hero-v1.5.2.img
(you should now enter a recovery console on the handset)

NOW PERFORM A NANDROID BACKUP from the recovery menu, once completre, continue..

6)then type the following commands in CMD exactly as they are here, hitting enter for a new line.

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

Congratulations you now have root access..

Download "Root Boot" from the app store (this will only work if you have root!)

Step 6 modified thanks to ENLIGHTENER, cheers, su whitelist working nicely now..

Recovery image updated to recovery-RA-hero-v1.5.2.img , thanks to Amon_RA

Please be carefull! I accept no liability!



FYI, To unroot you will have to either restore an earlier backup or flash a stock rom..... (reccomend the new official HTC Update via RUU to do a full reset)
Android Rom & Kernel Developer
HTC Desire, Desire HD, Sensation, EVO 3D, Flyer, One S & The One X
And yes.. I have them all, I only work on devices I can test on (perks of my job )

If you like my work and appreciate the 1000's of hours i have put in, please consider a small donation


Donate Via >> << Many Thanks

Please be aware, if you select the market option, Google take 30%


Follow me Twitter:@LeeDrOiD or LeeDrOiD ROMs on Facebook | To view my kernel source, visit @GitHub.com: LeeDroid-
Lee Bailey, Android ROM & Kernel developer!
 
gaabrysz
Old
#2  
Senior Member
Thanks Meter 27
Posts: 265
Join Date: Dec 2007
OK i have a stupid question as i'm new to all that android thing. Where is the sdk folder? How do i open CMD? Maby u could do a tutorial for totaly new guys on *how to root your HERO* ??

Thanks
 
LeeDroid
Old
(Last edited by LeeDroid; 16th December 2009 at 10:34 AM.) Reason: questions answered
#3  
LeeDroid's Avatar
Recognized Developer - OP
Thanks Meter 11427
Posts: 12,450
Join Date: Jan 2007
Location: Darlington

 
DONATE TO ME
Talking The Basics

Quote:
Originally Posted by gaabrysz View Post
OK i have a stupid question as i'm new to all that android thing. Where is the sdk folder? How do i open CMD? Maby u could do a tutorial for totaly new guys on *how to root your HERO* ??

Thanks
1) you need to download the android software development kit from Here and extract it to yourhard drive.

2) (check) fastboot and adb should be located in the tools folder.

3) in tools right click>new>shortcut when asked enter CMD.exe

4) right click on cmd.exe shortcut, go to properties and clear the "start in" box.

job done, follow as above.

*Edit*

FYI

Verify you have root, go to app store> download Root Booter and test its functions if this works, you have root!

The G2 is the HTC Hero on T-Mobile.

The SDK includes all the drivers needed.

once you have booted the img via fastboot you should enter a recovery console, at this point you need to follow the instructions exactly as typed for adb,

I am running windows 7 Ultimate, should be the same for all windows platforms,

Cheers
__________________
Android Rom & Kernel Developer
HTC Desire, Desire HD, Sensation, EVO 3D, Flyer, One S & The One X
And yes.. I have them all, I only work on devices I can test on (perks of my job )

If you like my work and appreciate the 1000's of hours i have put in, please consider a small donation


Donate Via >> << Many Thanks

Please be aware, if you select the market option, Google take 30%


Follow me Twitter:@LeeDrOiD or LeeDrOiD ROMs on Facebook | To view my kernel source, visit @GitHub.com: LeeDroid-
Lee Bailey, Android ROM & Kernel developer!
 
gaabrysz
Old
#4  
Senior Member
Thanks Meter 27
Posts: 265
Join Date: Dec 2007
Thank you
Oh and one more question. Do i loose any data doing this??
 
LeeDroid
Old
(Last edited by LeeDroid; 16th December 2009 at 10:46 AM.)
#5  
LeeDroid's Avatar
Recognized Developer - OP
Thanks Meter 11427
Posts: 12,450
Join Date: Jan 2007
Location: Darlington

 
DONATE TO ME
Quote:
Originally Posted by gaabrysz View Post
Thank you
Oh and one more question. Do i loose any data doing this??
No, you will not loose anything but be sure to do a Nandroid incase you need to go back to "Stock"
Android Rom & Kernel Developer
HTC Desire, Desire HD, Sensation, EVO 3D, Flyer, One S & The One X
And yes.. I have them all, I only work on devices I can test on (perks of my job )

If you like my work and appreciate the 1000's of hours i have put in, please consider a small donation


Donate Via >> << Many Thanks

Please be aware, if you select the market option, Google take 30%


Follow me Twitter:@LeeDrOiD or LeeDrOiD ROMs on Facebook | To view my kernel source, visit @GitHub.com: LeeDroid-
Lee Bailey, Android ROM & Kernel developer!
 
MrHorus
Old
#6  
Member
Thanks Meter 1
Posts: 39
Join Date: Nov 2006
I've followed the process and I never ran into any problems, but I'm new to Android having previously owned Win Mobile phones and now an iPhone.

I got my G2 today on a contract upgrade just so that I could play around with it and try some development work.

Now that I have followed the process, how do I verify that I now have root?

Is there anything I can do to test?
 
jul644
Old
(Last edited by jul644; 2nd August 2009 at 09:14 PM.)
#7  
jul644's Avatar
Recognized Contributor
Thanks Meter 200
Posts: 952
Join Date: Jul 2009
Location: London Ontario
Quote:
Originally Posted by MrHorus View Post
I've followed the process and I never ran into any problems, but I'm new to Android having previously owned Win Mobile phones and now an iPhone.

I got my G2 today on a contract upgrade just so that I could play around with it and try some development work.

Now that I have followed the process, how do I verify that I now have root?

Is there anything I can do to test?
Use a program that requires root access.
HTC Touch Pro-->HTC Touch Pro 2-->HTC Desire-->HTC Legend-->Acer Luiquid E-->Nexus One-->SE X10-->HTC HD2-->Nexus One-->HTC Hero-->LG Optimus 7-->HTC Incredible S-->HTC Sensation 4G-->Motorola Razor V3-->Nokia 2610-->SE X10-->HTC Wildfire S-->HTC Desire Z-->HTC Incredible S-->HTC Sensation 4G-->HTC Raider-->HTC EVO 3D-->HTC Incredible S-->Xperia Arc-->HTC Amaze-->HTC Evo 3D-->IPhone 4-->HTC Evo 3D-->Xperia Play-->HTC Raider-->Nokia 920-Matte Black
Drop Box Referral, give 500 MB to me and get 500 MB for you ---> http://db.tt/o00MBOW
AdrianK Old
#8  
Guest
Thanks Meter
Posts: n/a
Quote:
Originally Posted by MrHorus View Post
I've followed the process and I never ran into any problems, but I'm new to Android having previously owned Win Mobile phones and now an iPhone.

I got my G2 today on a contract upgrade just so that I could play around with it and try some development work.

Now that I have followed the process, how do I verify that I now have root?

Is there anything I can do to test?
If by G2 you mean HTC Magic/Sapphire rather than HTC Hero you're in the wrong place...
 
gaabrysz
Old
#9  
Senior Member
Thanks Meter 27
Posts: 265
Join Date: Dec 2007
OK i have a problem when i do this:
4) open CMD prompt use> fastboot boot cm-hero-recovery.img

the phone reboots and then you have to do "adb shell" but when i do that it says "error: device not found", what now??
 
maikie
Old
#10  
Member
Thanks Meter 0
Posts: 38
Join Date: Oct 2008
Just tried it and it works sweet... Took all of 5 minutes... Awesome work thank you

I now have root access on my Hero

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more