yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] edufur:
Wow... how did it work all the way up to that point? And why is it that somewhere I thought I read that this was the working method for .6??

Strange.
[Hero CDMA Android Development] regaw_leinad:
You had to have reverted to .5 to be able to get the #

the flash_image binary is included in the sh script you run in the beginning on the phone. So is busybox and a few other things. But, that only happens AFTER root is achieved. And this doesn't work on .6 because the file that was exploited in .5 was one of the things that Sprint took out of the .6 build when it was released.

Do you have the superuser app?

... i guess you'd have to to get the #. Dang. well, search the forum for the flash_image binary, and mount system as rw, then push it to system/bin. then navigate to /system/bin in the shell, and try the command again. Let me know if that works.
[Hero CDMA Android Development] fallonjp:
So I'm installing the SDK so I can revert back to .5 and it's taking quite a while. I'm assuming I'm doing something wrong, or too much. This is my current log while Installing Archives, do I need to be doing all of this? If not, what should I be doing to get me on my way to rooting using this method?

Thanks for the help!

Downloading SDK Platform Android 2.2, API 8, revision 2

Installing SDK Platform Android 2.2, API 8, revision 2

Installed SDK Platform Android 2.2, API 8, revision 2

Downloading Samples for SDK API 8, revision 1

Installing Samples for SDK API 8, revision 1

Installed Samples for SDK API 8, revision 1

Downloading SDK Platform Android 2.1, API 7, revision 2

Installing SDK Platform Android 2.1, API 7, revision 2

Installed SDK Platform Android 2.1, API 7, revision 2

Downloading Samples for SDK API 7, revision 1

Installing Samples for SDK API 7, revision 1

Installed Samples for SDK API 7, revision 1

Downloading SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)

Installing SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)

Installed SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)

Downloading SDK Platform Android 2.0, API 5, revision 1 (Obsolete)

Installing SDK Platform Android 2.0, API 5, revision 1 (Obsolete)

Failed to rename directory C:\Documents and Settings\Admin\android-sdk-windows\temp\PlatformPackage.new01 to C:\Documents and Settings\Admin\android-sdk-windows\platforms\android-5

Installed SDK Platform Android 2.0, API 5, revision 1 (Obsolete)

Downloading SDK Platform Android 1.6, API 4, revision 3

Installing SDK Platform Android 1.6, API 4, revision 3

Installed SDK Platform Android 1.6, API 4, revision 3

Downloading SDK Platform Android 1.5, API 3, revision 4

Installing SDK Platform Android 1.5, API 3, revision 4

Installed SDK Platform Android 1.5, API 3, revision 4

Downloading SDK Platform Android 1.1, API 2, revision 1 (Obsolete)

Installing SDK Platform Android 1.1, API 2, revision 1 (Obsolete)

Installed SDK Platform Android 1.1, API 2, revision 1 (Obsolete)

Downloading Market Licensing package, revision 1

Installing Market Licensing package, revision 1

Installed Market Licensing package, revision 1

Downloading Documentation for Android SDK, API 8, revision 1

Installing Documentation for Android SDK, API 8, revision 1
[Hero CDMA Android Development] regaw_leinad:
Nope just download the RUU in the second post here, and run it on your computer w/ your phone plugged in. It will reset your device to exactly how it came from the factory. (deletes all user data) but it will revert to .5 then you can follow my rooting guide :)
[Hero CDMA Android Development] fallonjp:
Thanks for the help. One more question and then hopefully I'm good to go. Once I revert back to .5 will I lose downloaded apps like Shapewriter which are no longer in the market and my Swype beta? Thanks again!
[Hero CDMA Android Development] Gorguts:
Thanks guys, already downgraded and ADB'd but I mod for others so great news.
[Hero CDMA Android Development] nc_carol:
pardon my newbie-ness, but I'm stuck

I'm trying to root, my sprint htc hero 2.27.651.6. I do fine up to the flash_image recovery/ sdcard/recovery.img

I then get

flash_image: not found

I know the recovery.img is on the sdcard in the sdcard directory. I can't figure out what's wrong.

Thanks for any assistance.

Carol
[Hero CDMA Android Development] regaw_leinad:
Please read the entire first post before posting questions. The big red writing at the very top of the first post answers your question. You can NOT root the .6 release because that is the patched release that was put out the day after my exploit. You can revert to .5 using the RUU in the second post.
[Hero CDMA Android Development] regaw_leinad:
Yes, my suggestion is to make a few folders on your c: drive.

so you have

C:\Data\app

C:\Data\app-private

make the Data folder and the app/app-private folders inside of data.

adb pull /data/app C:\Data\app
adb pull /data/app-private C:\Data\app-private

that will backup your downloaded programs to your computer. it will not save settings or anything, but the apks will be saved.
[Hero CDMA Android Development] kjjjjshab:
Finally got around to rooting... THANKS to all that made it possible.

One comment: the recovery provided is out of date (1.5.2) which would be ok, except for the fact that the updated version 1.6.2 changelog has the following:

"New unyaffs binary patched by Koushik Dutta and Packetlss to fix the "losing root"-issue and incorrect file-time after a Nandroid restore

New dump_image binary (by Brainaid) patched by Packetlss to fix the "bad blocks"- Nandroid restore issue."

Those issues look significant enough to warrant including the new version. Thanks.
[Hero CDMA Android Development] regaw_leinad:
Thank you for letting me know. However, in the process of finding root, I was having trouble getting the newest version flashed onto it's partition, along with a few of my testers. I never had any problems flashing the 1.5.2 recovery to it's partition and neither did any of my testers. I wanted to make this guide as error free as possible, so I decided to include 1.5.2. There is, however, in the guide, a link to the 1.6.2 recovery.
[Hero CDMA Android Development] LiquidSolstice:
Quick question Regaw, how would I go about updating the SuperUser Perms app? I know that Froyo appears to have a much much newer one than this.

Sure, this one gets the job done, but you know us ROM junkies, gotta have the latest ;D
[Hero CDMA Android Development] Parsonat0r:
Good method. I just recently tried the uni-androot app & it worked great, Got my Hero rooted & running Buufed Custom rom on 2.1 XD
[Hero CDMA Android Development] clutch_08:
i have a question guys hopefully you guys can help me out.

i keep on getting stuck right after i but in reboot recovery.

it wont go in to it. it stays stuck at the green and white htc.
[Hero CDMA Android Development] XCP:
I'm Stuck.

I'm using a Mac - and got through to getting the super user applicaiton. I type in the 'su' command, and I'm prompted for a password.

Any ideas?
[Hero CDMA Android Development] b0ricua:
Used this guide to perfection on my girlfriends Hero. Awesome stuff!
[Hero CDMA Android Development] regaw_leinad:
Yeah, you couldn't have typed ./adb shell yet because when you type su right in terminal, it asks for the su password. That was you trying to su your computer, not your phone.
[Hero CDMA Android Development] robinscrest:
I just downloaded the RUU link to my computer to reset my hero to the .5 version. Now when I try to install the link it told me that it didn't recognize the program that it used to download. So I deleted it and saved it to my desktop. Now when I try to open the link I get the following message:

>SetupNew\Setup.cpp(140)

PAPP:

PVENDOR:

PGUID:

$

WindowsXPservicePack3

IEVersion: 8.0.6001.1870.2

HELP???? Now what
[Hero CDMA Android Development] LiquidSolstice:
I would try it on another computer. It sounds to me like you've either got some sort of malware that's messing with executable privileges, or you have an extremely aggressive internet security app.
[Hero CDMA Android Development] regaw_leinad:
I'm not sure you are doing it right though... It looks like you tried to run it on your phone or something..

Download the RUU in the second post again, and double click it on your computer when your phone is plugged in via USB.
[Hero CDMA Android Development] hollis_bollis:
um so how do i root to ...5 from ...6 on my Hero, i'm so lost ... :(
[Hero CDMA Android Development] regaw_leinad:
use the RUU in post 2 to revert to .5 and follow the directions WORD FOR WORD.
[Hero CDMA Android Development] iluvguns:
ok im getting ready to run the ruu to revert back to .5

but im confused in this quote. id like to be able to save my shapewriter app, but this makes no sense to me:confused:
[Hero CDMA Android Development] iluvguns:
ok im slowing figuring this out i have the sdk moved to c drive but when i try and do the "adb pull" it says it pulled 0 files and skipped 0 files

C:\android-sdk-windows\tools>adb pull /data/app C:\Data\app

pull: building file list...

0 files pulled. 0 files skipped.

C:\android-sdk-windows\tools>

eta: when use astro to look at my data folder it shows nothing in it:confused:
[Hero CDMA Android Development] bomix:
awesome Guide

Coming from the EVO this was more steps but was very easy to root you guys ROCK no problems at all
[Hero CDMA Android Development] clutch_08:
i have a question I rooted my phone with the 1 click root app. so my phone is rooted. do i still have to flash the boot patched
[Hero CDMA Android Development] shadow_93:
i have a problem at step 3 entering in the codes

it says "failed to copy 'unrevoked' to '/sd/unrevoked' : Permission denied"

what do i do????

sorry for writing in the wrong spot..
[Hero CDMA Android Development] shadow_93:
help please
[Hero CDMA Android Development] regaw_leinad:
it's

adb push unrevoked /sdcard

not /sd

yes if you want full adb shell root
[Hero CDMA Android Development] JazzNeurotic:
Help!

Got through most of the steps. Got to seeing UNREVOKED in my Cmd prompt. Didn't see the SuperUser app in my app list and when i typed su, the next step, i was told Permission denied.

again, help? :-D
[Hero CDMA Android Development] regaw_leinad:
You like Jazz? mee too lol

check the red type in the first sentence of the first post.
[Hero CDMA Android Development] LiquidSolstice:
You need to be on *.5, not *.6, which is in the first post.
[Hero CDMA Android Development] JazzNeurotic:
Shiiit, my build number is /completely/ different. It sounds silly now, but i have a Non-Spring CDMA Hero and was hoping this would work for it, and appearantly it isn't even in the same ballpark.

Thanks anyway, guys. I'll keep poking around.
[Hero CDMA Android Development] regaw_leinad:
Try this one

http://xdaforums.com/showthread.php?t=753910
[Hero CDMA Android Development] baileyedition:
feeling like an idiot...

First off, your how to root instructions were absolutely awesome...I was able to root with no problems whatsoever. Thank you so much. I wanted to root initially for two simple reasons...get rid of useless factory apps and get titanium backup.

When i rooted (months ago) i also applied your disable ota updates code. Now I'm trying to figure out how to unroot. I dont really want to but i use handcent which has been great until now but is force closing everytime i try to send a pic. I've searched until eyes are buggy but cant find a fix. As the problem began after rooting i thought i would unroot and see if that fixed it.

I've been reading the numerous posts on how to unroot and many say its as simple as running an update but cant find anyone who claims to have applied the disable ota updates.

I truly hate to bother you with such a request as im sure your sick of this but can you tell me how to unroot after applying the disable ota updates code (baileyedition bows in shame)

I tried to run ruu and it couldnt see device.
[Hero CDMA Android Development] LiquidSolstice:
Press and hold Volume UP while turning on the phone to enter Fastboot mode, and run the stock RUU again.
[Hero CDMA Android Development] baileyedition:
Thank you for the super quick response, first go at this gave me error 120 saying battery was lower than 30 percent although battery is at 100 percent trying again.
[Hero CDMA Android Development] LiquidSolstice:
What source did you use to download the RUU from? Also, it might be your computer as well, just odd quirks here and there. Experiment around, because using the stock RUU is one of the best and most complete ways of ensuring a proper stock-reset unrooting.
[Hero CDMA Android Development] baileyedition:
second go worked, damn cant believe it was that easy, what a noob, h4x to you. Should i worry about have the 1.47 image instead of the 1.41 if ever returning to store? just read some talking about this in other posts may not apply.
[Hero CDMA Android Development] LiquidSolstice:
No problem.

I highly doubt they will check that. If they ask, if you're using the official Sprint RUU, all you have to say is that you upgraded from 1.6 by following the instructions on the website.
[Hero CDMA Android Development] baileyedition:
You rock dude! Thank you so much for both you patience and you brilliance.
[Hero CDMA Android Development] baileyedition:
Have you ever heard of the handcent issue i was talking about. I only use it because it auto compresses our 5 mp photos and allows us to send them through mms which is very conveniant. Im not opposed to using another program but I hate when i cant figure things out. I have no idea why all of the sudden it would be force closing everytime i try to send a pic. It didnt do it with text just pictures. Rooting was the only thing i did different but cant see how that should have affected it. I will be testing it in the next few min and will post result here only so that there is a recored of its success or failure.
[Hero CDMA Android Development] LiquidSolstice:
Aye. Regaw wrote the rooting guide, all the brilliance goes to him. I just enjoy helping other people out with the understanding that you'll pass on what you've learned to another new member :)
[Hero CDMA Android Development] baileyedition:
will do. did you see the post about the handcent issue. bottom of page 103 of this thread.
[Hero CDMA Android Development] LiquidSolstice:
Wish I could help, but the default messaging app has always sufficed for me (including MMS). I have no idea what Handcent may/may not be doing. I suppose the most generic solution to that would be to uninstall it and reinstall it.
[Hero CDMA Android Development] nfinitefx45:
This may be due to it exceeding 1 meg in size there is a way to split messages in handcent so that they wont fail or cause a fc. other option is to go into recover adn wipe dalvik and wait for reboot it will take between 5 to 10 minutes adn see if that fixes it
[Hero CDMA Android Development] baileyedition:
I tried the 1 meg size limit which was the default. No luck there. I did not try the dalvik wipe, I'm currently reloading all apps including handcent after unrooting the phone. One thing i noticed right away was the weather animations and info work as they should now which were interemittent at best after root. I'm almost through downoading of apps and will be testing handcent and posting result. Thanks for the insight.
[Hero CDMA Android Development] baileyedition:
Tried the uninstall and reinstall, removing antivirus even heard of some claiming titanium backup was the cause of some issues with certain apps and although its the main reason i rooted in the first place i tried removing it as well...none of these worked. Its seems lots of ppl with different phones have had some issues similiar to this but not exactly.

Default messaging app wont send 5 megapixel photos ( by that i meant it wont auto compress them for you and allow send. Have to lower the quality of photo and then whats the point of having 5mp. For some the camera isnt a big part of their use, for me its a major part, for both work and play.
[Hero CDMA Android Development] baileyedition:
Ok it worked! Compressed and sent with no force close. So I guess its possible handcent has issues with rooted phone. Would love for more ppl to verify this. I wonder if we should move this talk about the handcent issue to its own thread. Then we could see if others with issue could correct with the dalvik wipe mentioned and other possible solutions. Another forum brought up by a google search prior to my unrooting mentioned clearing the cache. A few ppl were having force close issues after a specific number of messages sent (50 to 500) I dont think they were rooted though and their issues were not mms specific.

Either way un rooting fixed my handcent issue and weather info and animations. Sux i had to loose root to do this but as i true noob i guess this is probably safer in the long run. Will play with this more when i can afford to upgrade to evo and wont care if i brick the phone learning all of this.

Thanks again for all the help guys.
[Hero CDMA Android Development] pandahatch:
alright i downloaded hero root, htc sync, and sdk. So here is my question is this the correct location if I unzipped hero root into the tools folder of sdk? :

\Users\us\Downloads\android-sdk_r06-windows\android-sdk-windows

the reason I ask is because I don't know if the command prompts are in unison with the names of the locations.
[Hero CDMA Android Development] cricketman24:
Can someone link me to the other recovery image? My phone gets stuck at that white/green htc screen...
[Hero CDMA Android Development] sekarpdkt:
You will find it after step 10 in first post...

or

here is the link

http://www.4shared.com/file/gnYG8CJk/recovery.html
[Hero CDMA Android Development] LLWesMan:
Problem!

I've reached this step:

You should now see

# flash_image recovery /sdcard/recovery.img

flash_image recovery /sdcard/recovery.img

#

This means it was a successful flash.

But I'm seeing an additional line:

# flash_image recovery /sdcard/recovery.img

flash_image recovery /sdcard/recovery.img

mtd: not writing bad block at 0x00320000

#

What should I do now!? Is it safe to move on to the next step?
[Hero CDMA Android Development] demass430:
lost

whats up yo i am rooting my girlfriends htc hero and she has the patch update on it. I downloaded the .5, but im completely oblivious as to how to revert her phone back to .5 any help would be appreciated!~!!!!
[Hero CDMA Android Development] regaw_leinad:
Run the RUU on your computer with the phone plugged in.
[Hero CDMA Android Development] demass430:
thanks man
[Hero CDMA Android Development] demass430:
wait does the phone have to be in disk drive mode
[Hero CDMA Android Development] regaw_leinad:
no, just plug it in, charge only
[Hero CDMA Android Development] pandahatch:
???? can anyone assist me with this please?
[Hero CDMA Android Development] LiquidSolstice:
No.

C:\Windows\android-sdk-windows\ is the proper path. The Android sdk zip is a bit confusing like this. The name of the ZIP itself is android-sdk_r06-windows.zip, but the folder that you want is INSIDE the zip, and that folder is called android-sdk-windows.

If you're using WinRAR, don't do the usual method of Extract to [prenamed folder]. Open it first, and then click and drag android-sdk-windows (the folder) out of the zip, and move that zip into C:\Windows\android-sdk-windows\.

Again, there's no requirement that thsi is where it should be, but if you want to follow the guide command for command, this is where you want it.
[Hero CDMA Android Development] pandahatch:
I have no clue what WinRAR even is i think I just right clicked and unzipped...how do I get it undone so I can drag and drop? When i unzipped sdk thats how the file saved automatically under that name then I just exstracted the hero root to the sdk tools(which is all mixed up now name wise)...should I start over from scratch?

*****EDIT****

I may have had it right...i copied the folder name you typed put it in my search bar and saw the folder so i clicked it and double clicked tools this is the list I have under tools that i copied could you verify that all neccesary items are there?

jet

lib

adb

adbwinapi.dll

adbwinusbapi.dll

android

apkbuilder

boot-patched (zipped folder icon next to it)

ddms

dmtracedump

draw9patch

emulator

emulator_notice

etc1tool

fastboot

hierarchyviewer

hprof-conv

layoutopt

mksdcard

notice

recovery.img

source.properties

sqlite3

traceview

unrevoked

zipalign

Sorry I had to actually type those out so capitalization on several folder names was left out...is that correct so far?
[Hero CDMA Android Development] LiquidSolstice:
Although I know you took the time to type all that out, I think the best solution would be to download the sdk over again.

1. The downloaded file will have the name android-sdk_r06-windows.zip

2. Double click on it to open the zip.

3. Inside, there is a folder called android-sdk-windows.

4. Copy that folder as is into C:\Windows

5. Now, the path that contains all the folders and files should be this: C:\Windows\android-sdk-windows.

6. The path of where the root files need to go is inside C:\Windows\android-sdk-windows\tools

Now, follow the rooting guide and you should be fine. Remember, you don't "install" the sdk. You don't need to.

It may interest you to know that there is no real requirement on where the sdk folder needs to go. The problem is that all the commands in the rooting guide are written assuming that the sdk folder is in the C:\Windows folder. If you didn't put the sdk in that folder, you would have to modify each and every command to match up with where YOU put the sdk, which is a pain. That's why it's set up this way.
[Hero CDMA Android Development] TonyMontana357:
I need some HELP!!!! My phone has the 2.27.651.6 software build and it is giving me the blues!!! I try to use the RUU to get back to .5 and it gives me a error 170usb connection error!!! I had to replace my last hero which was rooted w/ ZEN. I don't why this seems so difficult? Any help would be APPRECIATED!!!
[Hero CDMA Android Development] LiquidSolstice:
Shut the phone fully off. Press and hold Volume UP while turning the phone on. It will enter Fastboot mode. Run the RUU while it is in this mode.
[Hero CDMA Android Development] simko.k:
help

please help me , i downloaded 0.5 and pluged my phone but while i was updating it told me " update fail " what should i do ???

it says " ERROR 130: model id error " help plz

NOTE: my build number is this " 3.32.405.2 CL191507 release-keys "
[Hero CDMA Android Development] pandahatch:
Alright I am at a different computer now (my mothers lol) and I am going to download the hero root htc sync and sdk. when you say copy that folder to "C:\Windows" how exactly do I do that or do I save that under that name? sorry to be so ignorant but I appreciate the help. and those files I typed out I believe they should be all that is in the tools file ive just saved it under a different path/location. could some1 verify that those are the contents that should be in the tools folder once the hero root is extracted
[Hero CDMA Android Development] nmoreman:
And I also need help - This guide has been fantastic, I have tried to follow another, but have made progress to SuperUsers Permission

I am being denied. I have Hero upgraded to 227.651.6, read part of the problems, reloaded. I went to second part (I think) of instructions to download what I think is appropriate but did not work when I tried it.

I am SO close,:confused: can someone give me the info to where I am going wrong to not get the SuperUsers tab on phone????
[Hero CDMA Android Development] nmoreman:
I reread everything, redownloading .5 and will try that, go thru all steps.

I will advise if I need more help, or hopefully it worked>
[Hero CDMA Android Development] Onethirtytwo:
I have the same problem.
[Hero CDMA Android Development] erik13722:
can someone help me n tell me what i did wrong....i did everything and the dissabled the ota updates n now i cant use data(internet). plz help asap
[Hero CDMA Android Development] erik13722:
just kidding guys...i had to turn my internet off n back on and it works, sorry. this method is flawless!!!!!! btw