yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] tehdarkknight:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
rm /system/xbin/su
rm /etc/passwd
rm /etc/group

Uninstall Superuser.apk then reboot, and you're set!
[Hero CDMA Android Development] Sh0wty:
I tried to do this step:

*NOTE*

The above steps DO NOT put a recovery on your phone, though it is VERY EASY.

Once you're rooted, install ROM Manager by Koushik Dutta from the Market. Open it up, click "Flash ClockworkMod Recovery".

Select your model (Hero CDMA), and hit Allow when the Superuser Prompt shows up.

I got "An error occured while attempting to run privelaged commands"

- I followed all the steps from the tutorial and it all worked as described and installed the 'SuperUsers' app..

Any help would be appreciated..
[Hero CDMA Android Development] CrashV2010:
When you get the recovery on from clockwork, shut phone off then get into recovery.. just to see if the recovery took...then throw on your rom, after you boot up and see if everything is working right then reboot into recovery again and flash away, sir.

That's right *****, Sprint Hero Mobile Froyo-ed up, sit down and eat it.
[Hero CDMA Android Development] sainthooligan:
No, when running the above "No such files or directory".... can still access su - any other ideas? other than a clean RUU? Perhaps setting remounting as read-only...

Anyhow, just noticed this was just updated:

http://xdaforums.com/showthread.php?t=803682

Unroot is now an option....thanks CLShortFuse...
[Hero CDMA Android Development] vlad0vlad0:
Same problem here, I was on .7 and the phone just rebooted on step 3 every time I tried running Easy Root. I had to downgrade to .5 and then this method worked.
[Hero CDMA Android Development] sainthooligan:
Not sure about that one, I know I used to do that in 1.5 do keep the appearance of stock when taking in for service.
[Hero CDMA Android Development] tehdarkknight:
Check /system/bin/su as well. Superuser may put su there instead of xbin.
[Hero CDMA Android Development] MJStephens:
Just one quick question before my wife will let me touch her phone...

This does NOT require a factory reset and does not cause you to lose apps, settings, correct?
[Hero CDMA Android Development] Jim M:
You will not lose anything on the phone or apps.

Thanks for this, I just got another Hero from a guy, he tried all kinds of ways to root it with the stock 2.31.651.7 and couldn't get it done. I found this and it's got root :)
[Hero CDMA Android Development] Bigfred123:
I have followed your instructions but when i click on the adb icon in the tools directory something comes up then immediately closes. I am new to this can anyone help? I think everthing is installed correctly but i am new to this this is my first day
[Hero CDMA Android Development] Bigfred123:
Also none of the applications in tools work. They open then immediately close also
[Hero CDMA Android Development] roach_clip:
everything worked great till I got to the following step:

it let me select Hero CDMA as my model but then it threw an error saying "An error occurred while flashing your recovery."

any ideas?
[Hero CDMA Android Development] nav41:
Help

I've done the exact steps.. but

i keep getting

adb server out of date.. killing..

* daemon started successfully *

(i read somewhere that i should try the universal sdk or the 1.5r sdk adb file, which i could not find)..

after going through step 6.

adb kill-server

adb start-server

adb shell

i keep getting $ sign.

what should i do.. I dont mind trying the onclick also but want to be sure if it will work for 2.31.651.7

help..!
[Hero CDMA Android Development] wkethman:
Restarting worked for me.
[Hero CDMA Android Development] enchained:
nice!

quick and easy!
[Hero CDMA Android Development] terry.thomas00:
need alot of help

ok i have currently been reading pretty much every thread on rooting the htc hero and trying to get an understanding on it, and i have tried that super click and that didn't work. i either got a message saying too many emulators or it said that the device was offline. now the build that i have is 2.31.651.7 cl258838 release-keys

now i haven't seen anyone type this yet so i don't know if that's the reason i can't root my phone or what, also i have 2.1 update 1 not sure if that makes a difference. any advice would help
[Hero CDMA Android Development] :
adb is to be run from a command prompt, not double clicked on. If you aren't familiar with using a 'shell', 'dos prompt', 'command line' or whatever people call it, then you might not want to use this method.

You can find the Windows command prompt under Start Menu | All Programs | Accessories | Command Prompt

or you can push Windows Key + R at the same time, then type cmd and hit enter.

Then you will have to manually navigate folders to where you extracted (installed) the Android SDK starter (place with tools).

Here is an example:

Say you have 'adb.exe' installed in C:\Users\BigFred123\Downloads\Android-whatever\tools (note: BigFred123 will be whatever username you log into your PC with).

From the command prompt one would type:

cd "c:\Users\BigFred123\Downloads\Android-whatever\tools"

then from the command prompt you will run the adb commands listed, i.e.

adb remount

adb shell

and so forth.

Again, if you are lost, then this method isn't for you. Or if you are stubborn and want to learn, trial and error works best.
[Hero CDMA Android Development] mbuchholz:
Any way to get intstructions for installing AmonRA recovery after root access? I prefer it to clockwork recovery, personally. I'm thinking about RUUing to stock .7 and then using your root method... but, I would want to use this recovery method.

Thanks,

mb
[Hero CDMA Android Development] bdcrim:
Trying to root my hero. I went through the instructions and had a failure on step 3. (page 1 of this post). I made several attempts and abandoned the root for now. I see that new files were created under the root directory on the phone. If I have to restart my phone for any reason, will the new files affect the normal boot process?
[Hero CDMA Android Development] hotaru:
install rom manager from the market, open it, scroll down to the bottom, and hit "Flash Alternate Recovery".
[Hero CDMA Android Development] bdcrim:
Still attempting step 3 and receive and adb shell error: device not found. Would I need to start fresh? If so, would I be overwriting existing data?
[Hero CDMA Android Development] scotttolman:
This is great!
[Hero CDMA Android Development] JohnnyStaff:
I'm having problems at the very begining, I open the comand promp and get into my android\tools directory but its not reading my device. it says device not found whend i try to push the rageagainstthecage, and when I do a adb devices it says list of devices than doesnt show any. how can I get it to see my device?
[Hero CDMA Android Development] ajderr2000:
Looks like it works for me, but when I try to verify that the root worked on the phone it doens't work.

During the root process, I can get to the shell with the "#" and not "$". When I try the "su" command from the terminal emulator on my Hero I get access denied and wireless teather does not work.

I am not getting any errors when running the root process as described in the OP.

Any ideas?

Thanks!
[Hero CDMA Android Development] ChuchoVS:
I'm getting something similar here, everything goes just fine, no errors, got the '#' where I can 'su', complete the stepts, got the superuser app and can see the permissions but cant get any root privileges, no rom manager, no titanium backup no tether... any help please? Regards !
[Hero CDMA Android Development] Igotsanevo4g:
Im a Evo user but ill soon be rooting my friends Hero that he just picked up. I couldn't talk him into the extra 10 a month for 4G on the Evo, his loss... Haha

Anything special i should know about before taking his phones root virginity? Just covering my ass here, dont wanna bork anything. Especially when its not mine.
[Hero CDMA Android Development] bsell10:
Thanks! Worked great. One more step, though?

So, everything in the instructions worked great. I'm glad I was able to find such easy instructions.

I have one request, though. I'm old hat at PC's, but new to the "rooting phone world" (I just never had the desire to learn until I got this free HTC Hero from Sprint) and I'm having trouble finding good roms, I guess.

All I'd like to do is enable tethering, install apps to the SD card, and remove crappy Sprint Apps.

I'm to the point where su and rom manger are in stalled and working properly. I just don't know where to go from here.

You all have already been such a big help, I hate to be a newb and ask. I'm just not sure where to get the cool stuff that makes all of this worth it.

Thanks in advance :D
[Hero CDMA Android Development] theimpaler747:
Use titanium backup from the market to uninstall system apps, download wireless tether for root users from the market, and last for A2SD I would hold off until you go to a custom rom :D
[Hero CDMA Android Development] bsell10:
WOW. More awesome advice! Those all work great! :D

Last question and I'll quit bugging everyone with 1st grade stuff.

How do I get a custom rom? :confused: I know, dumb newb, but I really don't know where to start. I normally wouldn't mess with a phone I paid for/under warranty, but that doesn't apply to this. ;)

From what I've read, it looks like froyo will allow A2SD natively. Is that correct? How would I go about installing froyo?

It seems like that's all I need to know - until gingerbread (?) comes out. :D
[Hero CDMA Android Development] theimpaler747:
That's correct: Go to the Cm 6.1.0 thread, download the rom and the gapps, and place them on the base of your sd card, no folder. Reboot into recovery by powering down and then holding home and end call. Then, make a nandroid, just incase. Do a full data/factory wipe (you will lose everything!) and flash the rom choosing the install zip from sd card option. Then flash the gapps the same way, but don't wipe. Reboot (first time will take about 15 min.) and set her up!!! :) Hope this helps, let me know if you need anything else and feel free to come to my CM6 Q&A thread :D
[Hero CDMA Android Development] boonxeven:
Thanks! Finally one that worked to root my phone! I appreciate you putting the work in, and also for writing it up so we could do it too!
[Hero CDMA Android Development] massia:
why all that when you can use one apk wich is universal undroot and it will root and unroot in one click ...

it does exactlly the same thing ;)
[Hero CDMA Android Development] jball5:
Released Nov 19th 2.32.651.2

Sprint released this statement

HTC Hero Maintenance Release 2.32.651.2

Fixes:

• Correct a non-customer impacting issue (device diagnostics)

• MMS issue with contact number format

• Updated Sprint Zone application

-----------

Has anyone updated to this maintenance release? I want to stay updated, but I don't want to loose the rooted functionality.
[Hero CDMA Android Development] Matches-Malone:
txtinman, I used this to root my CDMA Hero on ubuntu 10.10. Just make sure you have the adb commands set up properly from Android SDK in your PATH and run through these steps in the terminal. Works excellent.

Thanks to the tehdarkknight for the awesome instructions.
[Hero CDMA Android Development] hfelton:
Not 2.32.651.2

i updated... had never had root on this phone before... tried installing/running this rootkit/process... was unsuccessful... im not sure if the update would -remove- the root, but i believe that the update has closed the hole...

of course, i mightve done something incorrect in the running-of-it, but i doubt it... ive rooted other heros (altho not using -this- post)... i tried several rounds of attempts... however, i was using the latest 2.0.40 htc-sync originally - and maybe that caused an issue (altho i uninstalled it[sync] also)...

im happy to hear from others on their experiences tho... ymmv...

----- (took a nap and tried again) -----

eta - i finally got root working (user error) and the problem seemed to be due to the usb-debugging-setup... i definitely had had it on, but it needed to be 'cleaned out' and started fresh on the device... in particular, i followed the exact steps in superoneclick-v155-post under 10-17-2010 edit... after cleaning up the usb-debug, everything just worked (in particular, the one-click-method in vista), and im now a happy root-user...

thanx - and im gonna go donate now... :)
[Hero CDMA Android Development] xacxen:
Worked like a charm - many thanks!

I would like to add a couple of personal n00b notes.

1 - Enable USB debugging. Settings > Applications > Development. Check USB debugging.

2 - If you are using Vista or Windows 7, run command prompt as administrator.
[Hero CDMA Android Development] tailsthecat3:
i couldnt get the OTA update to work from a custom rom/recovery. i had to go official .7, then update OTA then you can root the new software using the .7 root method: http://xdaforums.com/showthread.php?t=804296

after i did that, i flashed nfinites stock .7 and my device retained the new baseband version and the new pri. id like to have the software version but this isnt bad either.
[Hero CDMA Android Development] hfelton:
Ok 2.32.651.2

im not sure about these details, but mine (from 2.32.651.2 stock to oneclick-root) are:

fw: 2.1-update1

bb: 2.42.02.10.29

kv: 2.6.29-ba77cf03 htc-kernel@and18-2 #1

bn: 2.32.651.2 CL282911 release-keys

sw: 2.32.651.2

bv: Webkit 3.1

pri: 2.65_003

prl: 60671

hth, h
[Hero CDMA Android Development] ccrosno:
Has anyone figured out how to permenantly root the new update 2.32.651.2? I know I can root it with this meathod (but if you boot, youloose root) and install .7 over top of it but I would like to have this version rooted without the .7 overlay. Any one?
[Hero CDMA Android Development] hfelton:
yes... yes, you will lose the root using the one-button-clicker-version, but...

have you looked at the longer-version-desciption of getting-root that starts this thread ? if not, then try the very first page... in particular, you will want to modify the instructions there in the following way...

1 - go to step-8 where you remount /system... do that...

2 - do the push and chmod of the su-binary into /system/xbin....

3 - skip the superuser.apk (im assuming it got installed earlier)

4 - add another remount of /system back to read-only [,ro]

that should do it... assuming your paths and such are all working, you should have a 'sticky' root... i do... the one-click method did not seem to be doing the push into xbin correctly even if it said it did... and i personally do not want to leave /system mounted rw after this modication (hence my step-4 above)...

btw - once all this is accomplished correctly, then you will actually get the message from the .apk asking permission from the external adb shell from the computer to get 'su' in the future... i had been using a local android-market-terminal-app and was able to get-su but was losing it on reboot until i did the above...

gl and hth, h.

eta: i have found that the sprint-download for htc-2.32... keeps occurring if you ask it to... normally, once the download happens once, it 'remembers' it, but not this time afaict... correction: it just took awhile (reboot?) for systems to 'realize' i was uptodate...
[Hero CDMA Android Development] TheTitanX:
Thanks, hfelton. Worked perfectly for me. :)
[Hero CDMA Android Development] sfrench5:
GODSEND

Let me just say thank you for finally allowing me to get some sleep WORKED LIKE A CHARM
[Hero CDMA Android Development] iahawks:
So if I have this straight to root the version 2.32.651.2 do the following:

Follow the steps on page one of this thread

Then finish this by doing Hfeltons 1,2,3,4.

If not could you please provide link to 1 click method?

thanks
[Hero CDMA Android Development] hfelton:
uhm - not quite... -i- was not able to follow the steps on pg 1 of this thread... for some reason, i could never get a solid-root-shell-prompt (#) after step-3... if -you- are getting step-3 to work correctly, then just follow the guide on pg 1 and im sure that step-8 will need to be done in its entirety... the only thing id add (to step-8) is to remount with read-only (ro) at the end...

for -me- (and for possibly others due to the .32 update), i had to use something else to get initial-root. in particular, i used the one-click (ms-windows) method that is listed in this other thread: http://xdaforums.com/showthread.php?t=803682...

unfortunately, even tho it -claims- to give you full-root-forever (or partial-root), i could only get an up-to-reboot-root...

thus, i used one-click (forever-version, which installs superuser.apk) and was fine for awhile... in fact, if i had not powered-down and/or rebooted, i would never have realized i needed to do anything else...

hopefully, this makes some kind of sense... either follow pg-1 (if it works for you), or do the one-click (from other thread) and add the 1-2-3-4 afterwards... note: you will prolly want to follow pg-1 first anyway because it (pg-1) sets up all the computer-system and adb-push stuff that you will need later... thus, try pg-1 first... if it works - great... if you just want a root that is good till next-reboot, then use the one-click (forever) version...

gl, h.

ps - i have no idea why i could not get pg-1 to work for me, since i think that the one-click system is doing the same thing... so, ymmv... :D
[Hero CDMA Android Development] VoodooJeezy:
"Automatic update failed"

I'm on the HTC Hero for Sprint, and I just rooted my phone and everything. I go to the superuser app, and they ask me to update. I say yes, and a few seconds later, I see a box that says "Automatic update failed" in the title, and "An error occurred and su was not updated. A zip file (su-2.3.1-bin-signed.zip) has been placed on your sdcard, please reboot into recovery mode and flash it to update your su binary." What am I supposed to do?! And will somebody help me to get the Apps2SD ROM onto my phone, and working? Thanks.

--VoodooJeezy
[Hero CDMA Android Development] hfelton:
wellp - it sounds like youve 'lost' root somehow... first, try NOT updating your superusr apk... can you do anything that requires root ?

the process of updating by 'going into recovery' and 'running a zip' is a little beyond what you currently have so far...

if you want to get to a new rom (apps2sd), then you will need to learn some more (like 'what is recovery' and 'how to add/change roms')... first, id suggest you just make sure that you have a solid root and know what it is that you have... this (knowing what/how root works) will allow you to go the the next steps easier...

the reason i say this is because, if you know what root is - then you will understand that there is a way to unzip the file on your sdcard and update the su (like the update tried-to) manually... it (manual) is not as 'easy' as just going into recovery and running the zip tho...

im sorry i cannot walk you thru all this by hand... i did not have these same issues... (and im not interested in apps2sd for now) gl, h.

gl, h.
[Hero CDMA Android Development] ahreno:
I just tried this on a HTC Hero i just got today. It's updated to .7.

Everything seemed to work just fine, no errors along the way. I ran titanium backup and it says i dont have root. I also tried to flash clockworkmod recovery in ROM manager and it wouldn't work either saying there was an error.

Can anyone help me at all?

I should note that on my first time doing (I did it twice) this I mistyped this line:

as

but then typed it correctly
[Hero CDMA Android Development] hfelton:
from pg-1, on 'how-to-check-for-root':

6. Test that it worked:

adb kill-server
adb start-server
adb shell

7. If you see a $, it DID NOT work, execute the exploit again. (Step 3)

8. If you see a #, it WORKED, continue:

THAT is the bottom line - do you have root ? (are you getting a '#'?)

if you are, then you should be able to proceed with whatever you need to do... if not, then you will always run into errors and need to redo things until you do (have root)...

unfortunately, i have not used titanium-backup (but presumably theres a thread discussing it somewhere)... THIS thread is really designed to make sure that you can get 'root'... and the acid-test of root is if you can get a hash-prompt...

gl, h.
[Hero CDMA Android Development] uwololli:
Update from Sprint?

This worked wonderfully, but now there is an update available from Sprint. Have any root users tried updating?

I'm a little nervous to try it myself. :( I really don't want a brick for Xmas....
[Hero CDMA Android Development] hotaru:
yes. there's an updated rooted rom here.

i haven't used it, but a number of people are saying performance is worse with the new update than with 2.31.651.7.
[Hero CDMA Android Development] moos3:
I just followed the steps, and now when i try to connect to the shell i get this

08:37:28 crunch:[~/android/tools] $ ./adb shell
error: insufficient permissions for device

08:37:24 crunch:[~/android/tools] $ ./adb devices
List of devices attached
????????????	no permissions

How do i past this

Its a brand new hero running 2.31.651.7 it got the update ota when we first turn the thing on.
[Hero CDMA Android Development] I7IZI:
you have to run ./adb as su

ie. sudo ./adb [command-you-wish-run]
[Hero CDMA Android Development] I7IZI:
Flawless

Worked perfectly on the recent sprint ruu 2.32.651.2 update.

Now to start flashing the goodies and removing the crap.

Thanx a million to the developers!!!
[Hero CDMA Android Development] beholder121:
where is adb.exe?

I can't find adb.exe under tools or anywhere else. I tried reinstalling the SDK a couple of times. What am I doing wrong? I can't apply the commend because it can't find the file.
[Hero CDMA Android Development] PMGRANDS:
From My Personal Experience, Universal Androot Is The Way To Go If You Want To "ROOT" Your Hero! Easy/Simple/Quick!!
[Hero CDMA Android Development] Philosophocles:
I ran the cmd prompt followed all instructions to a t and after running the exploit I get a $ so I follow the steps and run the exploit again and then get a # immediately following that my phone reboots and when I check to see if the root has worked it either comes back $ or adb can not find the device...any suggestions?

I am running 2.32.651.2 so presumable that could be the problem. If that is the case what am I to do flash to an older build? (problem there being that my phone does not connect to HTC sync)

...I could really use some help haha.
[Hero CDMA Android Development] steveopolis:
I was wondering if you will do a youtube video for the novice's, like me, so that we don't mess up, thanks.
[Hero CDMA Android Development] sige:
Works great for me yeahh... thanks.. :D
[Hero CDMA Android Development] jckeyser:
I am on a Mac and I cannot get the # to show up after the exploit.

Mac-10.6.5

Android Build- the .2 update.
[Hero CDMA Android Development] CP_android:
So, I was actually surprised when I read this and knew right off the bat I could help with something. I ran into this problem myself, so here's what I did.

Follow the steps to get back to .7 Here (Post # 9). No RUU, no Sync, no nothin. (note: you will lose all you stuff on your phone, guess there always is a draw back)

Then follow the Easy Root steps.

There ya have it, your rooted. And you keep your root.

I think I deserve a cookie.
[Hero CDMA Android Development] kwg8t7:
Let's hope this solves my issues with the 2.1 root... :confused:
[Hero CDMA Android Development] kwg8t7:
This fixed it. Thanks all.
[Hero CDMA Android Development] jclem76:
Thank you!!! I tried three or four things before this and was literally ready to smash my phone to pieces but this worked like a champ first try!
[Hero CDMA Android Development] busta5o4:
I have a CDMA HTC Hero

Software #: 2.32.651.2

I had my phone rooted only once before way back when... and while trying to do it again I am confused by this guide with terms like

Android SDK installed and working.

(I have an android-sdk folder and I extracted the attached zip but I'm lost on where to go from there)

any help please?