GET THE APP:  CURRENTLY HOT:   Android Fire TV Fire TV Forums HTC One M8 Moto 360

How to gain root access on your HTC Hero

fastboot-inageIt seems these days many mobile phone owners are learning just how valuable gaining root access on their phone can be. Rooting your phone is the difference between having the same phone others have and having a phone that allows you to change various aspects such as icon, fonts and many more.

Gaining root access also opens the ability to have homebrew apps and other utilities that usually prove more useful than those commonly available. For others it is knowing that you have all the control. There are now instructions on how to go about rooting your Android-powered HTC Hero. See below for complete instructions and remember to do this at your own risk.

  1. Download:
    1. http://developer.android.com/sdk/download.html?v=android-sdk-windows-1.5_r3.zip
    2. http://rapidshare.de/files/47972320/orange-htc-hero-uk-boot.img-28-july-2009.zip.html
  2. Install HTC Sync from your HTC device
    1. Connect device to computer using USB cable.
    2. Mount the SD card from the HTC Alerts Menu (Drag from the top of the screen).
    3. Install the sync application from the newly discovered drive in Windows.
  3. Extract the two zip files into some folder (separate folders for each zip).
  4. Go to the Android SDK folder and open the tools folder.
  5. Copy the two files from the boot image zip (1.b) into the tools folder:
    1. boot.img.insecure
    2. boot.img
  6. Shutdown the phone.
  7. Press and hold the back key and power on the phone.
    This is get you into the fastboot screen (the white screen with three androids at the bottom).


  8. Connect the phone to the USB cable if it’s unplugged.
  9. On Windows, open cmd.exe (Start -> Run -> cmd.exe -> Enter):
    1. Change the directory to the tools directory you’ve created earlier.
2.                  Run fastboot.exe boot boot.img.insecure from within the tools directory.

Output:

downloading 'boot.img'... OKAY
 booting... OKAY
    1. Now your device will start from the given image with root access.
  1. Gain root access:
    1. In the phone’s alerts menu, click HTC Sync. This will popup the HTC Sync tool in Windows. Ignore it!
2.                 In cmd type: adb.exe shell

Output:
#

    1. From the prompt you got (#) run the following command to mount the phone’s file system in RW mode:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
  1. Add su command to your Phone
    1. Run the the following commands in the shell (#) – Run each command separately (don’t just copy-paste all the lines!):
1.                         cat /system/bin/sh > /system/bin/su
2.                         chmod 4755 /system/bin/su
12.       Reboot the phone by typing reboot in the shell (#).
  1. The phone will restart and load the original Android ROM.
  2. Enjoy the your Rooted Device

Continue reading on the HTC Hero forums, see the specs, or find news and reviews.




  • solid

    will this method work on a g1? What is htc sync?

  • jimbolocks

    will this restore the original untampered UI instead of the HTC Sense? if so is there a way of rooting which allows you to keep the new UI

  • str4vag

    i don’t think rooting will take away your HTC Sense.
    can’t confirm though.

  • Peder

    Rooting shouldent remove anything, all it does is give you the “rights” to do anything with whats on your phone. Edit files, delete files.

  • professordes

    This leaves the UI (and everything else) intact – I have just done it with an Orange UK Hero. As Peder noted, you’re just changing the
    /system filesystem to be read/write (and giving yourself an su command).

  • otto888

    Thanks! Now I can get a HERO with root!

  • Kristian

    Followed the instructions, still can’t do sh*t. Is there any way to verify I got root? Tried Quick Boot from Market, and pTerminal. Quick boot just freezes, pTerminal gives me “not permited” when executing reboot.

  • Tom

    Is it correct to think this would be completely reversible?
    Is there a way to keep (copy) the original boot.images before doing this? Thanks for guide, and help.

  • radi8tor

    After rooting is done, you’ll have SU privileges always, or you should do the process again to have SU priv? Sorry for this noob question, but linux/unix is a bit far from me.

  • EkiThump

    OK its done over a week ago but still can get the Blue tooth to send or Receive Files no matter what I try
    any comments !!

  • professordes

    What is different about the boot.img.insecure compared with the built in boot ROM on the Hero, especially with regard to user and permissions?

    I’m asking because when I boot off boot.img.insecure I can run one of the patched dropbear ssh server binaries which people have made for the G1 and ssh into the phone quite happily.

    When I boot normally off the phone ROM I can start dropbear OK, but the ssh login dies with an error message:

    exit after auth (root): couldn’t change user as non-root
    Connection to 192.168.2.31 closed

  • Ted Smith

    Hopefully somone knows the answers to -

    Can applications be written to run on this phone and thew phone set so the app runs automatically when the phone is switched on?

    Is a real GPS included or does it find where it is by triangulation of transmitter towers and does this cost every time you look to see where you are?

  • simon

    will this image work with t-mobile uk hero as this is a orange image?

  • Gauthana Smith-Rivers

    Hi, I have a T-Mobile G2 (aka HTC Hero). I followed the instructions as said, and it works fine! The only problem is that for those of you working on Windows 7 RTM or Beta(which won’t be many), you have to use a PC which has Vista/XP instead for HTC Sync to work.

    Thanks for the guide

  • Lee

    Great guide, thanks!

    Thanks also to Gauthana Smith-Rivers, I have a UK G2 and use Win7 RC1 so you answered both questions I was going to ask. Now to find a Vista/XP PC I can borrow :)

  • alex

    I’ve bought the HTC Hero outright rather than on a contract. Does this mean I already have root on the device? (I can’t find a terminal app that works with the softkeys in order to check) I have an option in the settings to allow me to install non-market .apk’s and have installed some…

  • Mike Doe

    For those having problems with drivers on windows 7, this page has a link to the vista drivers (both x86 and x64) which will work with windows 7.
    http://gadgets.softpedia.com/news/How-To-Solve-HTC-Hero-Sync-Problem-in-Windows-7-4442-01.html

  • Mark

    Works perfect on White Non-Contract HTC Hero bought from Expansys UK.

    Cheers!

  • Kaivalagi

    Worked the first time, now I have updated my ROM I get:

    > fastboot boot boot.img.insecure
    downloading ‘boot.img’… FAILED (remote: not allow)

    I am running a HTC Hero (sim-free – white) and have just updated to the latest ROM image fromthe HTC site

  • JDara

    Kaivalagi, this might help:
    http://android.modaco.com/content/htc-hero-hero-modaco-com/292396/if-you-flashed-the-2-73-ruu-and-got-the-new-hboot/
    I haven’t tried it myself yet! But I’ll let you know how it goes when I do.

  • Luke

    Any idea if this will work on the Sprint Hero?

  • Skaif

    How do i know if this has worked? i followed all the instructions and the phone booted up same as it always does…no real difference…is there any test i can do?
    Thanks in advance

  • Jamie

    To get to the fastboot, you have to hold down the VOLUME DOWN button while booting. Then, you get a menu that says
    HBOOT
    FastBoot Mode
    Simlock
    Recovery

    However, when you press VOLUME UP, and try to boot from the PC, you get “downloading ‘boot.img’… FAILED (remote: not allow)”
    I guess this is because of something called “perfected SPL”? or something? (I’m new too).

    My Hero (Sprint) reports: HBOOT-1.41.0000 (HERO20000)

  • Jamie

    I guess my gt and lt got messed up in that last message… The menu is:
    <VOL UP> FastBoot Mode
    <BACK> Simlock
    <Home> Recovery

  • Nick Peden

    Any instructions for the US version of the HERO for Sprint?

  • tipz

    Will rooting my hero also sim unlock it?

  • http://www.waargaatditover.nl vlip

    and howto gain root access on linux?

  • Maruthi

    Guys I am trying this process on my outright purchased Hero. My phone screen reads: FASTBOOT USB. but when I run fastboot on the PC, it just says for ever and nothing happens. What am I missing? My PC is windows XP and I have been able to do HTC sync already.

  • Maruthi

    My previous comment got clipped because of angle brackets i used in that message. It says forever: WAITING FOR DEVICE on the command prompt on windows

  • Maruthi

    I got thru the “waiting for device” problem by following instructions here: http://developer.android.com/sdk/win-usb.html#XPFreshInstall to install the USB driver. But now I see “downloading ‘boot.img’… FAILED (remote: not allow)”
    Any idea anyone?

  • Titanite

    Will the future update of Android 2.0 Eclair to the HTC Hero affect the rooted device? I’m afraid that if I unroot my device I won’t be able to upgrade to Eclair once it’s released! :(

    Is it true that all our devices are rooted and therefore we see different apps in the Marketplace?

  • newdroidman

    Can someone please answer maruthi’s question? I am having the same issue.

  • Allus

    I’m also having the same “FAILED (remote: not allow)” problem. Is this just a result of different Sprint firmware? Or possibly the new Hero?

  • David

    remote: not allowed issue here too … now my battery looks like it’s fried too arrgghh!

  • stefano

    Hey, i’ve got a problem at step 9: the output is just staying “downloading ‘boot.img’…” What could I be doing wrong? Maybe this will help finding the anwser: Downloaded the files, made to separate folders for both files on my computer (or do i have to put them on my gphone?). I copy pasted the boot.img files to the tools folder. Sync is also installed on my computer. I followed all the steps as mentioned but the output is just staying “downloading ‘boot.img’…” Am i doing something wrong?

    Excuse my english, 15 year old dutch guy:)

    l8r

  • lostinheromadness

    why will noone answer that stupid question we all want to know how! i cant get past the ‘not allow’ and on top of that i have never seen the recovery screen it just locks up. someone please help! i dont know what to do about it and it will bug me until i do find out. i have searched all over the net with no results. potterleo1233@gmail.com any answers are greatly appreciated.
    -caleb

  • Karaviro
  • swtric

    I have a sprint HTC hero, will rooting void my warranty?

  • jonnywil

    The boot image link isn’t working. Does anyone have another link that works please? Thanks very much.

  • sneeker

    Heres a link to the rom image as the original rapidshare doesnt work..

    http://larstobi.blogspot.com/2009/08/rooting-htc-hero.html

  • sneeker

    Right, Also, run the command prompt as administrator, otherwise it comes up with an error, mines now saying dowloading boot.img, whereas before it was just coming up with and error….

  • The Kraut…

    Noob… I know I know… but will it screw with my service???

  • Tetsuo

    HI all,is anybody still helping in this chain?

    I am facing the same problems. “FAILED (remote: not allow)” problem. Is this just a result of different firmware as I had updated on HTC website but I cant gain superuser access now no matter what methods I am using.e.g. fastboot, adb, Superuser.

    Thanks..

  • demon

    why can i not get file 2????? i want to root my flippin hero somebody help