How To: Root Your Sprint HTC Hero

There is now a faster method to root using a new FlashRec app! Click here for the new procedure!

How To Root Your Sprint Hero in One Click!

!UPDATE 12.01.09: If you went to the above procedure and it did not work for you, please use the procedure below.

Finally there is root access for the Sprint Hero! Here is a quick How To for everyone.

Thanks Zinx (
Thanks Geoff!
Thanks XDA-Developers (as always!)!
Thanks JManley69 for brining the procedure from Sprint Community!
Thanks Sprint Community!

I. Before You Begin

You need to be able to access the phone via ADB.

Follow this procedure to get ADB setup on your Hero.
How To Setup ADB/Install USB Drivers

If you have Windows 7 you can follow this procedure if the above one does not work to setup ADB:
How To Setup ADB in Windows 7

II. Root the CDMA Hero

1. Download the following file and then unzip it.


2. Take the unzipped file and save it into the Tools folder of your AndroidSDK.

3. Plug your phone in via USB and do NOT mount the SD card.

4. Open the Command Prompt and type the following (hitting enter at the end of every line):

cd AndroidSDK\Tools\
adb devices

And make sure your phone’s serial number pops up (if not redo section I).

5. Then type:

adb push asroot2 /data/local/
adb shell chmod 0755 /data/local/asroot2
adb shell
/data/local/asroot2 /system/bin/sh

6. Then type:

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su
chmod 4775 su

All Done! You now have root access! Try to download a root program from the Market and see if it works 🙂

III. Flash a Custom Recovery Image (Optional. Only necessary for Flashing Custom ROMs)

1. After you have confirmed you have root access, you can flash a recovery image so you can flash custom ROMs.

2. Use this procedure to flash the Hero Recovery Image of your choice to the phone.

How To Flash a Recovery Image

!UPDATE 12.01.09 – Sprint Hero Users – Flash THIS recovery image in the above procedure

Post if it works! Thanks!

Reported Issues:


252 thoughts on “How To: Root Your Sprint HTC Hero”

  1. Very nice. Returned mine yesterday. I doubt root access will create the physical keyboard that I think I really wanted.

    But it is very nice, congratulations to all.

  2. Tried it on my droid. The asroot2 does not work.

    $ /data/local/asroot2 /system/bin/sh
    /data/local/asroot2 /system/bin/sh
    [1] Killed /data/local/asroot2 /system/bin/sh

    1. I had this problem on HTC Hero w/ Android 2.1. It usually indicates that this particular exploit doesn’t work or has been patched.

  3. question. I can get to:

    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    cd /system/bin
    cat sh > su
    chmod 4775 su

    when i get to the cat sh > su I get a prompt saying “cannot create su: read-only file system. Am i doing something wrong??

  4. Nice. Worked like a charm. Ive been trying to build a kern. mod for a few weeks and this will help a ton. I love linux.

  5. UnknownProjects

    Same thing as above has been said to be stated on the samsung moment, It would be nice if people with experience in rooting could figure out the problem with the moment/cliq…

    i am sure the moment should be easier because it is just a stock build of android with the cdma adjustments, i would really like my moment to be rooted but the xda-developers only swerve towards HTC devices sooo probably no luck from them…

    1. Durhamite,

      There definitely is (considering the nature of the steps, you should be able to undo them by going backwards essentially), but I’ll do that procedure and video later in the week.

  6. Thank you TheUnlockr.
    I’d definitely return my Sprint Hero now.
    ’cause this sucker is rooted…haha. Be sure to look for Sense on XDA ported to Droid!
    Droid (better hardware, physical keyboard, Adroid 2.0 (today, now!)), here i come…

  7. So I did the root for the sprint HTC Hero and nothing at all I did the install for the USB drivers and got the serial number pop up with no problem so I did the rest of the steps and this is what I get.


    C:\>cd AndroidSDK\Tools\

    C:\AndroidSDK\tools>adb devices
    List of devices attached
    HT99GHF00595 device

    C:\AndroidSDK\tools>adb push asroot2 /data/local/
    320 KB/s (74512 bytes in 0.227s)

    C:\AndroidSDK\tools>adb shell chmod 0755 /data/local/asroot2

    C:\AndroidSDK\tools>adb shell
    $ /data/local/asroot2 /system/bin/sh
    /data/local/asroot2 /system/bin/sh
    [+] Using newer pipe_inode_info layout
    Opening: /proc/2357/fd/3
    SUCCESS: Enjoy the shell.
    # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    # cd /system/bin
    cd /system/bin
    # cat sh > su
    cat sh > su
    # chmod 4775 su
    chmod 4775 su

    does nothing at all am I missing something or what.



  8. keep getting damn read only error i tried the 1.5 and 1.6 the same fucking thing. frustrating everyone esle shit works exept mine.

  9. listn to anyone having the read only error the problem is that u have to htc syn you phone i did it and i stop getting the error i have the htc sync program so what i made sure is that the phone was sync with the htc sync program and it should work like mine. if it does let me know.Thank U

  10. Tried this on my HTC Eris (Verizon) using Android SDK 1.5R1. When I get to step 6:
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

    I get the following error message:
    “mount: Operation not permitted”

    Anyone get this to work on the HTC Eris?


    1. Bill,

      Describe your issue a little better in the tech support forums and well be glad to help, like how many of the steps did you complete, did you get any errors while going, etc.
      And this way we dont clog up the comments.

  11. Works awsomely, Been trying everything and today has been the greatest day every. rooted 3 devices today. all successful and all htc hero sprint.
    Thank You again

  12. Please help… Can’t get by this step, always says ‘Not Found’

    5. Then type:

    adb push asroot2 /data/local/
    adb shell chmod 0755 /data/local/asroot2
    adb shell
    /data/local/asroot2 /system/bin/sh

    any hints????

  13. Trying this on the Eris… Cant locate serial on cmd. Uninstalled usb drivers.. when reconnecting, it just puts “HTC Android Phone USB Device” on. Not ADB Composite device.

    Any ideas?

  14. Fixed original issue… Didn’t have USB Debug on (idiot i know).

    However when doing “/data/local/asroot2 /system/bin/sh” i got:

    /data/local/asroot2 /system/bin/sh
    /data/local/asroot2: permission denied

  15. Guys,
    I am running XP with a Sprint Hero and it would not load up the ADB driver at all. I had to download it from the web and install it manually from device manager. But first, windows would not even ask for the adb driver unless I plugged in the usb cable to the phone, and selected HTC Sync. Only then would I see the listing in device manager with the yellow question mark telling you that there was an error loading the driver. I then loaded the driver I found at this site:

    Good luck.

  16. after i have uninstalled the htc drivers, and then plug it back in everything downloads except the ADB. will you please help with this?

  17. imm stuck at step 5 it keeps saying
    $ /data/local/asroot2 /system/bin/sh not found
    what am i doing wrong ive tried both version 1.5 and 1.6 can some one plsss help thanks in advance

  18. I did download lots of apps from the market that needed root to use them and every time I try to install one it says you need root to use.

  19. will not work on the cliq. doesn’t allow anything after step 6. bummer. i don’t think the cliq will ever be rooted. it’s being overshadowed very quickly 🙁

  20. ive been trying to root a t-mobile hero in the uk for a few days now and nothing is happening its just not lettin me root will following this guide root my hero

  21. I worked for me now I guess forget all I said about it not working it does not I just restarted my phone 3 times and now it works

  22. Not only did the root work for my Sprint Hero. I was able to teather as a wireless access point. GREAT! Now when 2.0 comes out with sense Im sure that Sprint will somehow disable it 🙂

    1. Blindsense,

      Doesnt matter if they do 🙂 Once we have this and have the RUU to downgrade you to 1.6 again you can do this process and then use a custom ROM with 2.0 instead of the official one. All the benefits and still have root 🙂

    1. Thecatbywas,

      No way 🙂 Why would we ever get rid of Sense UI 🙂
      All rooting does is give you full permission in the phone, this allows you to do things that the phone didnt let you do before (like Wifi Tether) and that is it. Doesn’t remove anything.

      Good luck!

  23. i have got verizon’s HTC Eris with Android 1.5.
    i have followed the steps and i am getting the following massage in step 6:

    $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount: Operation not permitted

    am i missing something?

    1. Moshe,

      This process may not work for the Eris, we are having everyone with an Eris try it though and post their error, just like you did 🙂
      Can you check something? Is the Eris running Android 1.6 or 1.5? Goto Settings then About phone and look and let us know.

  24. Hey, glad to see you’re getting use out of the asroot2 program that I ported to Android from Ingo Molnar’s exploit.
    The original (non-mirror, but it’s identical to your mirrored versions) is at and is available as part of “FlashRec”, and the source is available in the “flashrec” project on Google Code.

    1. Hey again Zinx!

      I was wondering who was behind this program. I will put the link to your site instead of the mirror we have, thanks for letting me know.
      Hey and if you have any other programs come out send me an email using the Contact Us Send Us Tips form on this site so I can post them with credit to you in the first place 🙂

      Actually working on a new section of the site, would you mind sending me an email using the Contact Us form ASAP, I would like to talk to you about it.

  25. i am trying to follow the process on the HTC Eris device.
    why am i getting this massage:

    $ /data/local/asroot2 /system/bin/sh
    /data/local/asroot2 /system/bin/sh
    [1] Killed /data/local/asroot2 /system/bin/sh

  26. I used SDK 1.5 and 1.6 in the dame file folder because it would not work before with just 1.5.
    My brother just got an HTC HERO also and was able to root it right away so now I will do the same to my wifes phone so she has root also.

    Thanks for all the help keep up the good work


  27. Unlockr…

    Sweet! And it worked like a charm! Having fun exploring & learning from you guys… I’m officially a fan. Thnx.

  28. Yeah… I spoke too soon…

    Wasn’t able to use apps that require root.

    When I went back through the process, I get similar errors as reported earlier:

    c:\androidSDK\tools\adb shell
    $ /data/local/asroot2 /system/bin/sh
    /data/local/asroot2 /system/bin/sh
    /data/local/asroot2: permission denied

    I am using SDK 1.5… the debugging toggle is on.


    1. im getting the same thing and im getting that its not read able im running 2.1 on my cellular south htc hero

  29. hey unlockr is there anyway you can make a video or atleast a set of instructions of how to get google navigation on the g1 or mytouch thanx in advance

  30. Took me about…oh…all day, but it worked. For those who get the ‘Not Found’ error after (/data/local/asroot2 /system/bin/sh), you have to pay close attention to everything, there are alot of spaces.

  31. I cant get the drivers to install, i have tried to install manually but when i go to the usb folder and select it, i get a error saying no drivers in folder. Please help!

  32. TheUnlockr,
    I followed your instructions to the letter once before the video and again after with no errors. I installed 3 different Root Required programs and all 3 seemed to install OK but none do what they are supposed to do. Is there a command line I can type to know for sure if I have done this correctly? Or maybe I have to do something else to run these programs as SU? The main one I’m hoping to get working is “Wireless Tether 1.6 HTC” which I got here: I installed the first one for ver 1.6 and 1.5. Any help would be greatly appreciated 😉 Tec186

  33. after i type in the push asroot2, I keep getting permission denied? What am I doing wrong? I also have the dollar sign before it if that helps any

  34. is there anyway i can root my hero using a mac? also, sort of a noobie question, but what exactly does rooting your phone do?

  35. I’m up to the 5th step, the very 1st step (adb push asroot2 /data/local/), but it just paupauses on me forever. It doesn’t freez up, I can clos the screen and restart the proceses, and just another long pause again. Please help, I don’t want 2 return my phphone, but its giving me too of a head ach..

  36. I’m getting the same problem two steps down where you would put adb shell, and supposedly a $ sign comes out afterward but it just freezes up.. it just pauses…

  37. I think i was successful doing this, now at the end it says : All Done! You now have root access! Try to download a root program from the Market and see if it works… Now how do i verify if i was really successful at it and how do i download a root program from the market?

    Thansk unlkr

  38. I’ve seen this question about doing this via mac asked a few times, any answer would be great. Some of us are new to the android side, any beginners guide to rooting available?

    1. Kyle,

      As with a lot of hacking, programming etc. most instructions are meant for Windows. Either use boot camp or borrow a friend’s Windows computer to do these procedures (you only need it for the initial procedures then you can do most things on the phone itself from then on).
      Other than that, you can try this procedure on your Mac, download the SDK for Mac from Google and then use the built in Terminal app for Mac instead, but again if you can find a Windows comp to use, just use that for now.

  39. If i happen to screw it up somehow and can’t turn my phone on anymore, does factory reset fix the problem? Or am I screwed?

  40. Anybody knows of a easy step by step on how to install the Apps to Sd Card application? Any help would be great. Also an easy Step by step on how to backup so i ca install a rom on the phone .. thanks.

  41. Also i do think i rooted the phone because i just finished uninstalling the Sprint Bloatware apps, and Im guessing i could’ve not done that without my device being rooted. Its great the phone is running allot faster its snappier..

  42. I don’t know if I was successful at rooting my Hero or not… Last line I got was

    I installed a screen capture app and it required root for it to work and it worked on mine, but im confused because I cant delete files that are on the phone, i only have Read permissions. Would I need to do everything from the PC? IF so, how? thanks 😀

  43. Hi I want to know if I root my Sprint HTC Hero can I have my app on my sd card instead of my internal memory and if so how do I do it

  44. I have successfully rooted and got wifi tether working but I am looking to get apps2sd working without installing a custom rom. anybody get this going without installing a rom first?

  45. Did not work on HTC Tattoo on Orange UK.
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount: Operation not permitted
    $ cd /system/bin
    cd /system/bin
    $ cat sh>su
    cat sh>su
    cannot create su: read-only file system

  46. hey im new to this..i got an sprint htc hero.. now its company unlocked.. but its the cdma version.. which means no sim card involved.. now i brought it with me to india.. how do i use this? do i goto my local companies who have cdma services? has any1 else been able to run any other network aside from sprint on SPRINT HTC HERO.. please help.. im really mind fucked ryt now.. thanks..

  47. I see a lot of people having problems following the instructions – I assume from the feedback its because they are entering in the wrong code like I tried to do untill I realized that its displayed a littel tricky but is correct..

    do not type “adb shell” _enter_

    type adb shell _space_
    and then
    /data/local/asroot2 _space_
    and then

    this will resolve the people that get the $ and stay paused

  48. I had rooted my Sprint HTC Hero and it was working wonderfully. Then I went and updated my firmware. Now my root apps no longer work and I couldn’t re-root. Anyone with advise for me?

    1. Manny,

      That updates only purpose was to block our rooting exploit hence why you lost root access. You should never update your phone if you want to keep root access. So you need to find the Sprint RUU and use it to downgrade back to the original firmware and reroot Im going to do a video on this tomorrow.

  49. I tried rooting for the first time post firmware update and I got stuck at the very end where it says:

    cat sh > su

    I get the error: cannot create su: read-only file system.

    Is there anything I can do about this? At the xda forums a lot of people are saying they have re-rooted post update. Are they doing it using a different technique? Or what? Or am I doing this wrong? I’ve never rooted before, so I may just be doing it wrong. Can anyone help?


    1. Alex,

      You would most likely have to downgrade using the original Sprint RUU and then root the phone.
      Do you have a link to where they are saying they rerooted and how and Ill be happy to check it out and post.

  50. After step 5 I get:

    Opening: /proc/14482/fd/3
    SUCCESS: Enjoy the shell.

    Then the cursor thing is blinking after the # but I can’t type anything like the keyboard is disabled. I have gotten the same result on two different computers, help?

  51. Hey! Thanks for the reply! I actually rooted using your technique (not the one click root) but the regular root technique for sprint’s htc hero on your page! Thanks so much! My only thing is, now I followed your steps to flash a recovery image…and once I did that, when I hold Power and Home to boot into that green screen, I get stuck on the HTC logo. The phone freezes there, and I have to pull out the battery. Any advice? This is my first time rooting and flashing recovery so I may have done something wrong, but I followed all of your instructions and got the results you said I would…just I can’t boot into the “green screen” to check if it flashed. I also don’t know how the heck to do a Nandroid back up. Any help would be much appreciated! Thanks so much!


  52. Hey Unlockr…I found out what the problem is…you guys have people flashing a Hero recovery image, but it’s not the right image…people need to use the heroc (with the letter “c” at the end) in order for the phone to actually boot up in recovery mode. That’s because it is the Hero CDMA version…so ya…i got everything working now…but thanks for your great site and all your help! (PS: Your normal root method works fine even post Sprint Update). God bless!


  53. Hi i’m new in all this 3g cells and Droids stuff, so i have some basic questions.. what is root your phone and why people tells me that i have to do it, (i want it by the way, sounds fun)… what is a ROM, why there are so many? Does ROM stands for READ ONLY MEMORY? should i back up my phone before root it if so, how i can back it up???
    Thanks and sorry for so many questions

    1. Dithel Bless,

      Rooting your phone is similar to jailbreaking if you are familiar with the iPhone. It is the process of giving us root access command and the ability to basically tell the phone what to do without the restrictions Google, HTC, or Motorola etc have put on the phone.
      ROM definitely stands for Read Only Memory you got it 🙂 But more importantly the ROM is the part of the phones memory that holds the Operating System and native apps etc (which is normally Read Only but since we have root access we can tell the phone to replace it with our own custom ROM.
      The number of ROMs are because of the number of developers out there (thank god for them lol) and they all add their own performance and aestetic tweeks to their own ROMs so its up to you which you prefer.
      The other main benefit to rooting is that some apps need root access to control things that are normally blocked, for example, WiFi Tethering.
      You can easily back up your phone after flashing the recovery image, you just boot up and click backup and save the backup to your computer and you are all set.

      Hope that helps 🙂

  54. So simple. I thank all that are literate in the development of this for being able to provide people like me, who are not literate in phone debugging and development, the ability to root our Heros in such a simple procedure. Very grateful.

  55. After step 5 I get
    Opening: /proc/14482/fd/3
    SUCCESS: Enjoy the shell.
    but it won’t let me proceed with step 6. It wont let me type at all. Any ideas?

  56. Unlockr, Thanks for the good work. Alex, You were right you can root even with the Sprint firmware update. I just had to reinstall my drivers and it worked. Now about recovery image. Do you recommend doing it and what exactly would be the benefit? Thanks again!

  57. UnLockr

    Just want to confirm something. Once we root and load a custom recovery image do you still suggest flashing to the newest MoDaCo Rom as discussed here: The article is from september, I’m running the most recent Official HERO (v 1.56.651.2) and I don’t know if the information still applies or if HTC already took care of the issue. Also, since i’m running this version is there anything special i need to know before rooting or loading recovery image?

  58. Hey All

    Just finished rooting my phone and loading RA’s custom recovery image and wanted to share my results and step by step procedures (the final instructions are mixed among the posts but I wanted to share in one spot):


    1) follow instructions for adb install above EXCEPT if you are running windows 7 (which I am). If running win7 follow skip steps 4 and 5 in ADB setup and instead follow instructions here: once you get that stuff installed continue with step 6 on adb setup
    2) follow theUNLOCKR’s very clear and concise instructions above for Step II: on this page. It’s very simple and took me less than 3 minutes to get root
    3) download the “heroc recovery image” it MUST be that image as that is for Sprint CDMA phones. you can find it here:
    click on the link that says (mirror)
    4) follow unLOCKR’s instructions for “How to Flash a Recovery Image” located above in section III: Flash a Recovery Image
    5) smile and enjoy a rooted sprint hero with recovery image.

    theUNLOCKR — hope you don’t think i’m stepping on your toes, just wanted to list out step by step how I ended up having to do it to save some other users some time ready through all the replies. you guys have the best instructions out there!!!

    1. LoserBaby,

      Not stepping on toes at all 🙂 We love when you guys contribute! Ill incorporate your updated steps into the procedure so its easier for others. Thanks!

  59. I have followed all the steps with out flaw, have flashed the custom recovery file successfully, but when I try to access the root in a file explorer it says that i dont have privileges. my question is, is there a way to check permissions in adb shell? when I type root it says access denied any ideas how to check that we have root privileges in the command prompt?

  60. Alright, I would hate to say this if it has been said, but this worked even after the sprint firmware was updated. Glad I still have root and don’t have to roll back. Build number 1.56.651.2 cl85027

    thanks for all the hard work. keep on keeping on, our hardware is ours let’s keep it that way!

  61. the recovery image u gaves us need to be rename just take off the “c” from the hero n that should work, i was wondering y when i reboot it it did not went to recovery mood n then i found that recover image has a miss slell…

  62. FINALLY!!!

    I was using an outdated recovery, but I finally got past the HTC logo when booting into the recovery. I used the method given by LoserBaby above. And the file he pointed out.

    My next question… Now that I have root and I’ve made my Nand backup, what do I do? I want to put on modaco so I can use tether. Is there a how to for this somewhere? Also, what does making this backup do for me? If something bad happens to my phone do I reboot into the recovery and then do the Nand Restore?

    Thanks for your help!

    1. RD,

      Thanks glad it worked! Would you mind linking to this procedure for anyone that wants a different procedure to follow as well from your blog, if it helped you.
      Nice blog by the way!

    1. Jerry,

      You need to make sure that the SDK is saved on the C: drive (not in any subfolders) and that you renamed it to AndroidSDK. Then make sure that when you click on it you can see the Tools folder DIRECTLY inside.

      If they cant find the path, then it is in the wrong place or named incorrectly.

  63. Hey, I seem to be having the same issue that Chris and Cpatt3n were having above. asroot2 seems to run just fine, but no communication with the shell it establishes seems to take place. After running it, the program doesn’t seem to accept input and there is no local echo, any commands seem to queued until the program terminates.

    I’m running Vista, and my adb drivers at least -seem- to be working in every other way, but I can’t figure this being anything but a driver issue. Anybody happen to have a solution? Cpatt3n seems to have responded to the Windows 7 fix indicating that it worked, but he also said he managed to brick a phone the first time around.

  64. Just commenting again to clarify that I managed to solve my “problem” shortly after I posted here simply by going into a continuous shell (that is, typing “adb shell” by itself without suffixing it immediately with a command) then completing the tail end of step 5 and moving on to step 6.

  65. mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    cd /system/bin
    cat sh > su

    when i get to the cat sh > su I get a prompt saying “cannot create su: read-only file system but I moved file asroot2 into tools folder inside androidSDK folder. A previous member found an answer to this in the forum section but I was not able to find it sorry, would really appreciate help.

    using Windows XP

    1. Well, for the problem “cannot create su: read-only file system” after cat sh > su, it is maybe very simple :
      the solution is to verify you write the first command correctly.

      mount -o remount,rw -t yaffs2[space]/dev/block/mtdblock3[space]/system, for sure.
      If you forget the space between yaffs2 and /dev, you will have this message error “cannot create su: read-only file system”.

      It’s a little bit silly, but it was the case for me. (I can’t tell you how much time it took me, it’s a shame).
      And I became root with my HTC Dream, do you believe it ?


      1. thats not the case for the rest of us…it just wont recognize correct and permit us from continueing from that step and foward…still have no clue to do a completed ROOT process..

  66. im tryn to root my lil bros phone wow haha this is crazy i dont wanna brick his phone im stuck at cat sh > su all it keeps sayn is read only file sys can someone help

  67. when i get to

    adb shell /data/local/asroot2 /system/bin/sh

    then hit enter i get

    [1} killed /data/local/asroo…

    any ideas? sprint htc hero

  68. So will any of these methods work on a brand new (arriving today 🙂 ), Droid Eris? If so which one, seems there are alot of differernt instructions here….

    1. Crosby,

      Unfortunately, no 🙁 Something about the Verizon version. BUT there is no harm in trying and letting us know if it gets past flashing the recovery screem (worst comes to worst it will just error and say you cant continue).

  69. Hmm.. So what advantages does having the phone rooted have above it not being rooted. Perhaps Ill need to changed providers, as i dont really like Verizon anyhow. I can still get all the freeware apps and such Im assuming. Im so tired of paying verizon for everything and having to try to find ways around downloading ringtones/etc. 🙂

  70. If I were to root my Sprint Hero what Roms are available to put on it? Has anyone gotten 2.1 to run on a hero or at least 2.0?

    Just curious… and looking for help more than anything, I have never done this and do not want to brick my phone.

  71. Hey Unlockr,
    I’m currently having a problem right now with step 6. When I get down, everything’s good and gravy until I put in “adb shell /data/local/asroot2 /system/bin/sh” it just says
    “SUCCESS: Enjoy your shell.
    # _”

    After that, like others said before me, the cursor just blinks and blinks. Any solution? I’ve also tried putting a / after /system/bin/sh and that got me a fresh line but the mount line didn’t work.

    Any solutions?

  72. I am stuck at the # as well on my Sprint HTC hero and I hope I haven’t missed a solution but need some help too. Thanks for any tips you can give the guys stuck at #!

  73. First off thanks a bunch just rooted in mins. Just tryin to help if u can’t get past cd androidsdk\tools then open sdk it says on the top sdk location. Copy an paste that in the command prompt as cd (….paste…)\tools\

  74. My step-dad’s Sprint Hero was rooted by this method. He wanted to root it just for the wifi tether. The wifi tether opens but when a computer connects it says “no internet connection” on the computer. Also, the phone’s battery gets drained without even using it. it’s draining too fast. i have a mytouch and i used the one click method and my wifi tether works just fine. Please help.

    1. Jordan,

      I would try reformatting the card, wiping data and reloading the ROM (if you have one). OR I would try to look for an upated version of the WiFi Tether for Sprint Hero file (they make different ones for each phone now so your MyTouch one probably wont work on the Hero).

    1. Carol,

      You are thinking of unlocking not rooting. You would need to unlock the phone to use Metro PCS (and with CDMA phones like Sprint and Metro, you would need a local person to actually flash the phone with Metro settings by plugging in the phone).

  75. Thanks TheUnlockr,
    How about to unroot it? Is it like as easy as rooting it? or should i load a custom recovery image and then put a custom rom? if so, where would I be able to get roms for the Sprint Hero? Thanks again. And sorry for the inconvenience

  76. HELP – please. I’m trying to root my sprint hero, using “better terminal emulator” since I only run power-pc macs, and can’t have the bridge program.
    I have placed the su program “asroot2” into ‘sdcard’. Two issues come to mind.
    1- the “sh” already exists in /system/bin (so the cat sh > su may not be possible unless I rename sh, cat sh(asroot2) > su, then put old sh back)
    2- the volume is read only.

    I have not tried the remount -rw yet, but suspect $ won’t have priveldges to do so.
    Can I execute asroot2 , changing my mode, then continue? Does someone know if this would work? Can I get a listing of asroot2?
    Am I even on the right track?

  77. im having a problem rooting my htc hero it says cannot create su and unable to chmod su could u please help me out on wat i need to do to fix that maybe yahoo message me at twinz4eva2000

  78. adb push asroot2 /data/local/
    adb shell chmod 0755 /data/local/asroot2
    adb shell
    /data/local/asroot2 /system/bin/sh

    im getting a no such file or directory please help me i got the serial number though

  79. I am getting /data/local/asroot2/system/bin/sh: not found. It did find my serial number and went through the rest of the steps up until this process. Please help.

  80. I got it figured out. There is a space after the 0755 in the step that you have to do.

    adb shell chmod 0755 /data/local/asroot2

    then a space between asroot2 and the /system.

    /data/local/asroot2 /system/bin/sh

    if you don’t have spaces in those two spots in won’t work. Once the spaces were added it went through a breeze.

  81. Everything worked like a charm on my Sprint HTC Hero. Rooted without a hitch and to prove it, I now have the WiFi tether app working (it requires root) – I’ve wanted that forever.

    I can’t believe it but it’s finally happened. Thank you to everyone who had anything to do with coming up with this rooting process.

  82. Bruce "Bad Luck" Ly

    For some reason my internet connection is not allowing me to download the Android SDK file kit… I was wondering if it is possible that somebody could actually send it to me through my email account?

  83. I went through the steps successfully on my Sprint HTC Hero but have a couple questions:

    1. How can I test root access, do you know of a market app that would go to root?

    2. Do apps now reside and run from root or just reside there?

    Thank you

  84. I followed the procedure to root my HTC Hero from Sprint. I believe it worked, the last message I got in cmd was #
    So after that you say to download a root program. I have no idea what that is or how to get it? So, I still don’t really know if it worked or not.

  85. question. I can get to:

    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    cd /system/bin
    cat sh > su
    chmod 4775 su

    when i get to the cat sh > su I get a prompt saying “cannot create su: read-only file system. Am i doing something wrong??
    sorry i just saw the “post in forum disclaimer”?!?!?!?
    where is the dissclaimer I cant find it and not sure what Im looking for, I know Im sooo close I can almost taste it


  86. Bruce "Bad Luck" Ly

    I have gone through all the required steps all the way till the last step, which is step 6.

    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    cd /system/bin
    cat sh > su
    chmod 4775 su

    When I typed each of those commands in, it seems as if the commands are just getting mirrored back to me. Would that mean the commands went through?

    I also noticed you have informed another person to type SU at the end of the command?

    I’m not even sure if I did everything correctly.

  87. Having some major problems when dealing with step 6:
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    cd /system/bin
    cat sh > su
    chmod 4775 su

    I see a lot of people have also been having problems with this step but the questions are not very well worded and usually not enough information is given. The exact problem i am having is when i get to the first line:
    “mount -o remount,rw -t yaffs2 /dev/block/mtdblock3”

    I receive the message in command prompt:

    “mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount: Operation not permitted”

    From that point on everything i type in is an error message to the last line of Step 6.

    The other two errors i receive are:

    1. Typed: “$ cat sh > su”
    Received: “cannot create su: read-only file system”

    2. Typed: “chmod 4775 su”
    Received: “Unable to chmod su: No such file or directory”

    The errors of course came in that order.

    If anyone else has had this problem and knows how to fix it or just knows how to fix it i would greatly appreciate your help.

  88. I forgot to mention I am using the HTC hero
    Firmware version 1.5
    Baseband version
    Kernel version 2.6.27-6bc66721
    Build Number 1.44.557.2 cL81721
    Software Version 1.44.557.2

  89. Same issue here..
    Got through the “mount”

    I enter, “cat sh > su” and get error message:

    “cannot create su: read-only file system”

    any help?

  90. Jonathan, when i enter this:

    “..mtdblock3 /system”

    I get your error message,

    When I enter this:


    it works..

    But im still stuck on my error

  91. Is it possible to just gain root access temporarily to remove unwanted system apps? I don’t wish to keep my device rooted past removal.

  92. Rooted and flashed with RA rom. Works like a charm with the exception that convert ext2 to convert ext3 says :Error : Run upgrade_fs via console

  93. I have an HTC Hero from Sprint, and I want to try flashing a custom ROM, but I’m wondering first, if I do it and it get’s messed up, how can I flash the original ROM that shipped with the unit?

  94. When I got to step 6 all it did was echo what I typed so I thought I did something wrong until I tested it out by downloading Terminal Emulator from the market and typing su and got # back. So I guess I’m rooted after all! Thanks TheUnlokr!

  95. Can someone PLEASE tell me how to get past that pesky “#” at the end of Step 5??? I’m completely unable to move onto Step 6 b/c of it. The cursor flashes and I can’t input any characters.


  96. I have a problem, im running android 2.1 htc hero sprint. and i get a error on step 6 says “operation not permitted”
    how do i go about fixing this?

    im trying to tether my phone i have the app im not willing to pay 30 bucks so i wanna root. please tell me what im doing wrong?
    all adk is done like how it was said here.

    anyone? thank you

  97. I just updated my hero to 2.1 at the sprint store, but it sucks! Will this work on my phone with the new 2.1 rom?

  98. having trouble getting root access on my sprint hero android 2.1, I just want root access to download root apps, can anyone help me.

    on step 5 I type in everything correctly and get a file not found message.

    What am I missing? plz help me out
    p.s. step by step instructions would be nice im a newbie on android

  99. With Android 2.1 on the Sprint Hero it does not appear to work:

    c:\AndroidSDK\tools>adb push asroot2 /data/local
    755 KB/s (74512 bytes in 0.096s)

    c:\AndroidSDK\tools>adb shell chmod 0755 /data/local/asroot2

    c:\AndroidSDK\tools>adb shell
    $ /data/local/asroot2 /system/bin/sh
    /data/local/asroot2 /system/bin/sh
    [1] Killed /data/local/asroot2 /system/bin/sh
    $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount: Operation not permitted
    $ cd /system/bin
    cd /system/bin
    $ cat sh > su
    cat sh > su
    cannot create su: read-only file system

  100. I get that same “Mount: Operation Not Permited” Thing. Android 2.1 Sprint HTC Hero. Everything works before that it does that [1] Killed thing idk if its supposed to do that, it’d be nice if the walkthrough gave whats supposed to showup you know? if you have a fix my email is::: ty in advance!

  101. i have the same problem. cant get passed after entering

    adb shell chmod 0755 /data/local/asroot2

    Is the $ supposed to be there after entering adb push?

    i then get a [1]Killed.. sigh.. please help.

  102. Hi,

    This has probably been asked numerous times, but will rooting the phone wipe out any data on the phone? I’m talking about contacts, text messages, etc., not the SD card.


  103. i have same proble , i can go to step 5 fine then an error, i have try everything, amons ra inage, root 2, flashrec wiz everything ,,,,,
    heres my htc info…..thanks
    htc hero
    firmware ver.
    2.1-update 1

    baseband version

    kernell version
    htc-kernel@and 18-2 #1

    build number
    2.41.556.1 cl200014 release-keys

    software number

    browser ver.
    webkit 3.1

    pri ver.

    prl ver.

  104. $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount: Operation not permitted

    can anyone help with this as I too get this and then everything else doesnt work


  105. James – how did you get past this bit?

    $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount: Operation not permitted

  106. i got problem after step 5.
    when i am going to do step 6:
    #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    it i showing me lke that:
    /data/local/asroot2 /system/bin/sh
    [1] Killed /data/local/asroot2 /system/bin/sh
    $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mount: Operation not permitted

    so please anyone help me…
    i am waiting for answer..

  107. I’m having the same problem as tenknoboy. When I begin step 6 i get the same “Operation not permitted” message. Additionally when I try using using su to get permissions I get “permission denied” when typing su

    Does anyone have an idea of how to proceed?

  108. When i get to this part –
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    I get an error that says ‘mount’ is not recognized as an internal or external command, operable program or batch file. What do i do???

  109. i cant download root2.. it takes me to a website and asks for log in information which i do not have.. help.. i want to root my hero

  110. when i do the sdk devices nothing happens whats wrong??????

    c:\cd AndroidSDK\tools\
    c:\AndroidSDK\tools>adb devices
    list of devices attached

    this is what happens when i get here

  111. hi trying to root my hero and everything goes well until i get to cat sh>su then i get a message showing cannot create su: read- file only system. please help me with this issue. thanks alot

  112. Will This allow me to use this phone on the verizon network?I really would hate to get rid of this phone since its way better than the Motorola devour i ended up getting

  113. when i try to install my drivers for the hero, my computer gives me a window that says ” cannot install device drivers, please put in disc for you ADB device to continue”… i have no disc for it

  114. i have the htc hero with 2.1,,,,,,,how do i get live wallpapers, is there a way to make my phone work with other service providers, such as boost moble, att, verision, sprint has very crappy service were i live an verision is excellent, paid to much for my phone , , , , can any one help…..first timer here…not very techy

  115. Please click on Wireless 101 at the top of the site, then Android 101 and then click on Android 101: Rooting, Jailbreaking, and Unlocking and it’ll answer all of that and more.

  116. Thebenjamins247

    I had just tried to use to root command prompts, but on the beginning of step 6 it says for me operation not permitted…How do I get pass this?

  117. I had just tried to use to root command prompts, but on the beginning of step 6 it says for me operation not permitted…How do I get pass this?

  118. after the first line in step 6(mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system), the response back was “mount: Operation not permitted”
    I tried to continue with the next lines but each one had an error. What should I do now?

  119. Kinsey Sheppard

     i get as far down as to put { cat sh > su } into the command prompt but it keeps saying “cannot create su: read-only file system” what should i do to get around it?

  120. Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:UsersMost Wanted>cd/
    C:>cd AndroidSDK/tools/
    C:AndroidSDKtools>adb devicesList of devices attachedHT045HF00115    device
    C:AndroidSDKtools>adb push asroot2 /data/local/970 KB/s (74512 bytes in 0.075s)
    C:AndroidSDKtools>adb shell chmod 0755 /data/local/asroot2
    C:AndroidSDKtools>adb shell$ /data/local/asroot /system/bin/sh/data/local/asroot /system/bin/sh/data/local/asroot: not found$ /data/local/asroot2 /system/bin/sh/data/local/asroot2 /system/bin/sh[1]   Killed                  /data/local/asroot2 /system/bin/sh$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /systemmount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /systemmount: Operation not permitted$ cd /system/bincd /system/bin$ cat sh > sucat sh > sucannot create su: read-only file system$ chmod 4775 suchmod 4775 suUnable to chmod su: No such file or directory$

  121. this website is spam it completely overrode my spyware settings allowing ads to pop up and continuios frozed my computer. do not trust it!

  122. sooo anyone with a Hero post 2.1 = No Root For You? is this the consensus? =(
    can’t wait for Sprint’s iPhone… although Sprint sucks swampass here on the west coast so maybe I’m waiting for nothing. *sigh*

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.