yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] athanos:
I'm not sure if this will help you or not, but I found this with a simple Google search: http://android.modaco.com/content/htc-hero-hero-modaco-com/311768/openruu-for-linux-w-or-w-o-root/
[Hero CDMA Android Development] athanos:
When you type adb devices, is anything showing up? I think we need more information. If it does list your device, are you getting an error trying to go past that? If so, what is the error you get?
[Hero CDMA Android Development] nil2321:
i just don't c the superuser permission app in my app list so i don;t even get the blank screen the last thing on my cmd screen is the please wait it will only take 30 seconds and thats't
[Hero CDMA Android Development] herogirl:
At the very end when flashing the recovery I get mtd: read error at 0x00000000 <out of memory>

That repeats about 20 something times w/varying numbers after "0x" and then the # is at the bottom.

Everything else was going fine. =(
[Hero CDMA Android Development] letsroll:
first congrats on the guide it's very clear, but I'm having a problem, when I type adb devices this is what it shows : adb is not recognized as an internal or external command, operable program or batch file.

can somebody help me whit this ? thanks:confused:
[Hero CDMA Android Development] sekarpdkt:
Are you in command prompt? Can you share output of command dir
[Hero CDMA Android Development] letsroll:
yes I'm in command prompt and and sorry but I don't know that much off computer lingo so when u ask if I can share output of command dir please can u explain that in another way
[Hero CDMA Android Development] sekarpdkt:
You shall read first post carefully. It very clearly states that you need to type command in command prompt.

Cd c::\........

Have done that? All you need to do is follow the steps In first post word by word.

If you get an error stating command is not recognised . Either you have unzipped in a wrong directory or you have not issued cd command or you or not in command prompt.
[Hero CDMA Android Development] kellysa111:
The same thing happened to me so I went to the folder and figured out that the files were going to c:\Android-sdk-windows\tools\Android-sdk-windows\tools

Now, my problem is a couple of steps down at #6. I press enter and all i get is a $ for like 5 minutes. I know I didn't type anything wrong since I copied/pasted everything.

Edit: went back a couple of pages and found that for the adb shell command, Im suppose to press enter and then put in su. I do that, but get something along the lines of 'permission denied.' I went from the .6 that I had back to the .5 RUU

Edit #2: I figured out what was wrong. I was thinking that after pressing the enter key after typing adb shell in command number 6, I would be getting the C:\ thing. but we are suppose to just type in the next code after the $. After that, it was no problem. I know that some other people were going through the same thing as me. So, what you do is:

adb shell (press enter)

$ sh /sdcard/unrevoked (press enter)
[Hero CDMA Android Development] piranah:
you are my god. ive been fighting with this for a freakin day. thank you so much
[Hero CDMA Android Development] LilJay19:
Im wanting to root my phone, im kind of nerves. but my question is, when i root my phone and i dont do something right will it mess up my phone are it just wont be rooted?
[Hero CDMA Android Development] sekarpdkt:
If you follow first post nothing will go wrong. If something goes wrong you will be the first one. Whenever something went wrong forum is able help. Take the dive. If you want to get bit more confused, read the post in my signature.

Till now I never read post where phone was bricked while first time rooting using this procedure
[Hero CDMA Android Development] LilJay19:
Oh ok thanks, I'm going to do it just a little scared... I know a lot of stuff About computer so hopefully I have no problems
[Hero CDMA Android Development] starsnlaughter:
no superuser app

hello. i've verified i do not have the ota patch for 2.1, and i'm still not getting the SuperUser App. i had rooted before just fine using this method but then my usb connections weren't reading, so i performed a hard reset (when, later, i found out all i had to do was just restart my computer x_x).. but now it's not working.

any ideas?

Ummm. as i can be impatient when i want to do something "now" =)... i tried performing another hard reset and got the Android System Recovery Screen?? Am I still rooted & how do I get my SuperUser icon back?
[Hero CDMA Android Development] staticchmbr:
so this will reset all of my apps and such? i bought zenonia, and since it is protected, i cant save it to the sd... unless its rooted. the problem is that the save files for the game are stored to internal memory. is there any way to back this up before having to wipe the phone? i can redownload the app no problem.. i just want the save files to transfer
[Hero CDMA Android Development] Doormat81:
I have a problem when trying to downgrade 2.27.651.6 to 2.27.651.5. I've tried running the RUU (which takes a LONG time to load, by the way) but it sits at the "Verifying information on you Android phone. Please wait" message for 5-10 minutes then says it can't connect to my phone.

I have Sprint's CDMA HTC Hero with Android 2.1. Every guide I've found about downgrading makes absolutely NO mention of how your phone needs to be setup when you connect it to the PC.

I've tried it in "Charge Battery Only," and "HTC Sync" modes.

I've tried it with and without "USB Debugging" enabled.

I've tried using RUUs from different sources.

Same results. Anyone??
[Hero CDMA Android Development] roundaway:
Restart your computer. Make sure debugging is on, charge only, and then run the program. When the program "times-out" and says it can't connect, unplug the phone from the usb cable for about 15 seconds and plug back in. Restart the program. Weird but it worked for me.
[Hero CDMA Android Development] flam253:
it should be in charge only mode and with debugging enabled. try different usb ports or better yet, try a different computer.
[Hero CDMA Android Development] Doormat81:
Will give that a shot when I get home and report back. Thank you.
[Hero CDMA Android Development] mannoli1:
Getting an error!

I did everything just the way you posted Regaw but when I am trying to push the files to the sd card I am getting an error> it is saying it is a read only file. Can u help me with this so that I can finish rooting my Hero> thanks!
[Hero CDMA Android Development] ! twitty:
Hello, I am new here but managed to get through this root with no problems. Sorry if i sound like a moron but what is the point of it? My friend told me to do it and that it would increase the speed of my hero and what not. I guess i just expected to see something different and it looks the same as 2.1. Can anyone give a newbie some tips and pointers? TIA!
[Hero CDMA Android Development] sekarpdkt:
Check the post take control of you HTC Herp. Link is available in my signature. Hope it will help you.
[Hero CDMA Android Development] chuckw:
I tried, but . . .

I am totally new to this so please be gentle. I've tried following the instructions to the letter several times to no avail. When I type adb devices, I see my hero but when I enter the adb commands I get a list of adb options and no indication that the command had any effect. When I start the shell, the prompt is a $ sign rather than a # sign. In the shell when I enter sh /sdcard/unrevoked, I get a message that it cannot open /sdcard/unrevoked.

Any ideas?

I've installed HTC Sync and everything seems to install correctly as well.
[Hero CDMA Android Development] sekarpdkt:
Have you unmounted your SD card for copying data from pc. That might be the reason. Else send result of following commands

ls

cd /sdcard/

ls

It is lower case el and yes ie ls. Will list files in that directory.
[Hero CDMA Android Development] Jester123:
E:\android-sdk-windows\tools>adb devices

adb server is out of date. killing...

ADB server didn't ACK

* failed to start daemon *

error:

E:\android-sdk-windows\tools>

this is what I get when I do step 9, I searched through the post and found someone with same problem, but no solution just says fixed...

any help would be awesome

thank you
[Hero CDMA Android Development] sekarpdkt:
Check following

1. You have enabled USB debugging and charge only mode.

ie

Step 6: Make sure USB Debugging is ON (checked) on your Hero. Go to Settings > Applications > Development > and make sure it is checked.

Step 7: Plug your phone into the computer via USB, Make sure that the connection type in the Notification Pull-Down Bar is "Charge Only", not "Disk Drive" or else this won't work.

2. Ensure phone is connected and USB cable is good one

3. HTC Sync is installed and PC is rebooted once after installation
[Hero CDMA Android Development] rickyrecaro:
my question is are we trying to avoid the ota updates after dropping down to .5 and rooting? just did the method posted and it was simple and easy thank you
[Hero CDMA Android Development] guitardoc64:
Yes. The OTA updates will break root.
[Hero CDMA Android Development] rickyrecaro:
i get it now, but now i cant download apps from marketis it cause im not clearing the secruity check do i need to download everything via apk.?
[Hero CDMA Android Development] METHOD1911:
Can someone anyone help me I got a new phone from Sprint with the official 2.1 how do I downgrade to root I know I have to run the ruu but how do I do that do I flash it I'm lost
[Hero CDMA Android Development] punkr0csux:
This method worked great btw. Thanks for the information. Just one question. How do you boot into recovery? is there a series of button presses?
[Hero CDMA Android Development] sekarpdkt:
check this How to reboot into recovery mode
[Hero CDMA Android Development] sekarpdkt:
Check this http://xdaforums.com/showpost.php?p=7133915&postcount=802

First download exe file mentioned in second post first page of this thread. Ensure you have installed HTC sync. Connect phone with pc and execute exe in pc. Will flash .5. Then follow first post in first page.

You may need to use win xp. Not sure about Win7. It shall technically work.
[Hero CDMA Android Development] METHOD1911:
can someone please help me. im trying to run the ruu to go back to 1.5 im using windows 7. i keep getting version is compatable with windows 7 PLEASE HELP ME
[Hero CDMA Android Development] METHOD1911:
not compatable
[Hero CDMA Android Development] aintitfun:
PRL update

I am curious as to if the disabling the OTA's, which I did. Also means that I will NOT be able to do PRL updates through Settings>about phone>system update> PRL update, I would have to assume it does. I am very new to this and am running RegawMOD v2.1t rom. I believe my current PRL of 60668 is actually up to date for now, but I am concerned I will not be able to update in the future when I try to update it using the method above, I get a 1012 error. I have done some research on updating it manually through ##775# but nothing even pulls up when I type that into my dialer, also I was unsuccessful at getting sprint to give me my MSL #.

UPDATE: I have MSL # now but cant do anything with it because of problems stated above.
[Hero CDMA Android Development] andrewwd:
Windows 7 issue

Hey guys,

I am using Windows 7 and am not able to install the Andrioid SDK software... is there a method to go around this??? I have been trying to root my hero since the day I installed 2.1 :o (literally, I mean someone had to tell me that since I installed 2.1 there was nothing I could do with the phone anymore lol) please help!?
[Hero CDMA Android Development] superdragon976:
I tried rooting my phone last night everything is ok except the HTC-Sense for facebook is not syncing contacts... weird.
[Hero CDMA Android Development] DefineIndecline:
best root guide ever. thank you sooo much!
[Hero CDMA Android Development] Lowenski:
Works Perfect thanks for the advice at the .6 to .5 because I was having trouble with other rooting tutorials this is just perfect!
[Hero CDMA Android Development] LiquidSolstice:
Reflash the Sprint 2.27.651.5 RUU. Then do it again. It will work.
[Hero CDMA Android Development] PlagaDeRock:
I'm using windows 7 and have had android sdk on my comp for months now. Is it giving you an error?
[Hero CDMA Android Development] LiquidSolstice:
You're actually not supposed to "install" the SDK. You just put the folder into your C:\.

It's extremely important to remember that you need to take the folder INSIDE the zip and put it in the C:\ drive. If you don't do that, you won't find the ADB tools.
[Hero CDMA Android Development] PlagaDeRock:
Lol, its been forever since I put it on here its just always been there. I remember now, thats why I thought it was weird that he was having trouble installing it cause i never remembered installing anything.
[Hero CDMA Android Development] LiquidSolstice:
Heh, yeah. Probably best to make sure the newbie knows that. I'm sure he's hunting around for a setup file in the SDK, which he'll never find.

Once rooted, you're never un-rooted, unless you OTA Update or flash a stock ROM. I haven't needed to do this for a long time now.
[Hero CDMA Android Development] laughlinwes:
Worked like a charm!

Had to revert back to .5 as noted.

Thanks!
[Hero CDMA Android Development] cougarsean:
Hi guys, first of all thanks for all the help so far. Its been highly useful. I am still stuck in a dilemma though. I foolishly updated from 1.5 stock to 2.1 Sprint official RUU a few days ago and now I am clueless as to how to downgrade to 1.5 stock again.

I have rooted my current 2.1 using the methods described in the first page and I am down to .5... whats my next step? I've tried reading a lot of the stuff posted already but I don't understand if it's still possible to go back to the original 1.5 now that 2.1 has been rooted. Do I install a custom ROM first and then try to revert to 1.5 or is there a way for me reverse everything I did because of that ONE sprint update?
[Hero CDMA Android Development] sekarpdkt:
Why do you need to get down to 1.5? If your requirement is to root and get required benefit associated with root, 2.27.651.5 is what you require. If you are there already, just start following first post and root your phone.
[Hero CDMA Android Development] guitardoc64:
Why go back? There are far too many custom ROMS available. I'm currently using Nfinitefx45 stock -w-apps2sd and an overclock kernel. Flying along at 710 MHZ!!! Go back to stock? No way!!!
[Hero CDMA Android Development] enfurno:
So I was attempting this and found that I indeed needed to revert to the .5 software.

Now when I attempt to run the RUU update it never boots into the bootloader mode and the RUU fails. Is this due to the fact that I have enable adb or something?

Update -

The error that I am getting is "ERRO [171]: USB CONNECTION ERROR"

The RUU runs fine until it is booting into the bootloader, the phone then hangs on the htc loading screen and about 80 seconds later the RUU install software reports this error.

Anyway to get around this issue? I'm coming up with nothing and even google is failing me at this point.

Trying this for a second time now..

"The workaround looks like;

Install HTC-sync

Connect the phone with the cable with the pc

Select on the dropdown-screen : sync

Then run the RUU*******.exe on youre PC and follow the steps on youre screen."
[Hero CDMA Android Development] enfurno:
So I did some digging and I found this.

"I left the phone hung at the HTC screen, then I unplugged the USB cable and exited the app. I restarted the app in Windows XP SP3 compatibility mode, and then plugged the cable back in. It ran flawlessly, and I'm now on .5."

Apparently the issue is with Windows 7... go figure.. So far so good, the update is running properly and I should be back on .5 in a few moments.

Edit: Success!
[Hero CDMA Android Development] Aut0botK1lla:
quick question. My hero is on

fw 1.5

software 1.56.651.2

can i update to the 2.1 posted on the the second post. or do i have to go through the 2.27.651.6 update first then downgrade it to 2.27.651.5.

thanks..

noob to this,
[Hero CDMA Android Development] Volknochi:
Okay, this isn't working for me. Every time I try to push the file over, I do NOT get the screen that it says I should get. I am pressed for time and can't go searching for an answer. Can someone tell me what I'm doing wrong?

And, I do have the downloaded .ZIP file and put it in the correct folder.

FW Version: 1.5

SW Version: 1.56.651.2

Build #: Gumbo ROM 1.5c

C:\Users\Volknochi>cd C:\android-sdk-windows\tools

C:\android-sdk-windows\tools>adb devices
List of devices attached
HT01DHF02325 device

C:\android-sdk-windows\tools>adb push unrevoked /sdcard
1411 KB/s (439327 bytes in 0.304s)

C:\android-sdk-windows\tools>adb push recovery.img /sdcard
1518 KB/s (3356672 bytes in 2.159s)

C:\android-sdk-windows\tools>adb push boot-patched.zip /sdcard
1306 KB/s (2279194 bytes in 1.704s)

C:\android-sdk-windows\tools>adb shell
# sh /sdcard/unrevoked
sh /sdcard/unrevoked
Unpacking, please wait...

chmod: /data/DxDrm/unrevoked.952: No such file or directory
/sdcard/unrevoked: /data/DxDrm/unrevoked.952: not found
rm: cannot remove '/data/DxDrm/unrevoked.952': No such file or directory
#
[Hero CDMA Android Development] LiquidSolstice:
What you also could have done was fully shut the phone off, press and hold Volume UP and Press the power button to put it in Fastboot Mode. Then, connect it and run the RUU.
[Hero CDMA Android Development] sekarpdkt:
No need to go to 2.27.651.6.

Directly go to 2.27.651.5 using the links available in second post. Once upgraded to 2.27.651.5 follow first post for enabling root.
[Hero CDMA Android Development] sekarpdkt:
You need to upgrade to 2.27.651.5 before rooting. Follow second post for upgrading to 2.27.651.5.
[Hero CDMA Android Development] Aut0botK1lla:
ok i did everything, seem to all have gone right.. except on the last part about blocking the ota updates.. the first two steps went right n when i type the last one:

mv /system/etc/security/otacerts.zip /system/etc/security/otacerts.zip.bak

and hit Enter all i see is the # icon..

then i noticed that i put one space between otacerts.zip and /system ..

did i do it right or do i have to redo these last three steps?

thanks for the guide
[Hero CDMA Android Development] sekarpdkt:
You have done it correctly
[Hero CDMA Android Development] mfish125:
So I tried to run both of these RUUs and got the same error both times. It kept saying that the USB cable was not connected, even though the phone was displaying that it was. What do I do?
[Hero CDMA Android Development] stridle:
RUU downgrade problems

I keep getting a Error code 131 customer id, when I try to run the RUU. I am running 2.39.591.1 if that makes a difference. Thanks in advance for the help!
[Hero CDMA Android Development] enfurno:
Check the page before this one where I posted the fix for that error.
[Hero CDMA Android Development] Aut0botK1lla:
So I noticed my battery dies pretty fast now. Doesn't charge fully, had it plugged in for a few hrs n the notifacation light was red. Never did it changed to green. Is this a bug? Anybody have similar issue? When I went to see how far the battery bar was charged the last part wasn't charging.
[Hero CDMA Android Development] mfish125:
Thanks enfurno!
[Hero CDMA Android Development] m1kraus:
hero root

I am trying to root my sprint hero and I am stuck at step 8. It goes great to the section where it says I am supposed to see the superuser app on my phone and on the computer type in su. Once I type in su it gives me the error access denied. Has anyone else experienced this, and how do I get past it?

Mike
[Hero CDMA Android Development] enfurno:
Did you open the superuser app? It should say ready for SU at that point..
[Hero CDMA Android Development] m1kraus:
the superuser app is not on my phone.
[Hero CDMA Android Development] m1kraus:
root hero

After 3 hours and much investigation I finally got it done.
[Hero CDMA Android Development] ianatch:
need help with cmd line

I get up to this:

c:\android-sdk-windows\tools>sh /sdcard/unrevoked

'sh' is not recognized as an internal or external command...

Any suggestions? Thanks!
[Hero CDMA Android Development] LiquidSolstice:
You forgot to type "adb shell" first. You'll see a shell prompt inside the command prompt that will look like this:

#

#

Then type sh /sdcard/unrevoked.
[Hero CDMA Android Development] guitardoc64:
I have a strange issue. I'm rooted, su app and all. I'm running Nfinite's stock apps to sd. Yet apps that require root say that I'm not. I have looked for answers, and found nothing. Any helps or ideas?
[Hero CDMA Android Development] ianatch:
Thanks, Liquid!

That worked and I got through unpacking "unrevoked" however the SuperUser program doesn't seem to have loaded on my phone. After unrevoked completed, I receive the following:

"Please wait. This will take up to 30 seconds.

$"

Any ideas? Sorry, I'm new to Android. Thanks!
[Hero CDMA Android Development] regaw_leinad:
Well, for one, you are already rooted lol

This guide is for if you have a stock phone and want to gain control of it. You are already running a custom ROM and have the # show up in the shell (# = root)
[Hero CDMA Android Development] Aut0botK1lla:
Thanks for the guide. One question when I try to flash a Rom i get an error, 'wipe data dalvik-cache' through adb when I try to wipe it through recovery. Any ideas why it says that.

ok, do i have to wipe data factory reset then the dalvkit-cache?

i was doing dalvkit-cache only
[Hero CDMA Android Development] regaw_leinad:
Well, that is a known bug for Amon_RA's recovery, that even when it says that, it still clears the cache.

And yes, you need to wipe data as well, which removes all user data from your phone.

and if you want to wipe dalvik from adb, do this from recovery:

adb shell[FONT=monospace]
[/FONT]mount /data[FONT=monospace]
[/FONT]rm -rf /data/dalvik-cache/*
[Hero CDMA Android Development] LiquidSolstice:
A lot of people seem to have this issue. What you'll need to do is reflash the Sprint RUU, and follow the rooting instructions again. It will work :)

Download the RUU in Regaw's 2nd post of this thread (this: http://www.4shared.com/file/2uQunBaV/RUU_Hero_C_Sprint_2276515_R_si.html)

Run the RUU, let it boot up fully. (Doesn't matter if you enter in the Google creds in the start or not, you're going to be blowing it away for a custom ROM anyway)

Once it does, follow the rooting guide again. We're not sure why this happens, but this is the only way I've found to fix the issue with Superuser Permissions not showing up on the phone.

A bit more patience, friend, you're almost there! :D
[Hero CDMA Android Development] raiderep:
Just got a Hero today and found this quite useful and easy to do, once I got my bearings with the XDA app. Now I'm tethered and lovin it...thanx!
[Hero CDMA Android Development] Robbob1125:
I followed the steps, rooted the phone, got the SU icon and everything seemed fine.

Now I have apps that need root and I get messages saying I don't have root access.

When I was installing other roms to find one I liked I did delete your files from my SD card.

Could that cause this problem? Should I be leaving them on the SD card after rooting?

Thank-you
[Hero CDMA Android Development] guitardoc64:
No. I had the same issue, figured it out today. Check your super user app and see if it is the 2.2 version. If it is I am 99% sure if you google up the 2.1 version and flash that it will be all good. Worked for me at least.