yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] madflava54:
Dang, Unrevoked method didn't work for me either. I got the "rooted" message, but no Superuser App message. The OTA update really messed me up.

Can someone direct me to a step by step guide to install teh RUU? Is that the only way I can start all over?

Sorry, I just realized it's only PRE-OTA for the HERO and both PRE and POST OTA for teh EVO.

I am really CONFUSED. Please someone help:

I checked for a firmware update to see if someone the OTA installed. It says no updates are found. However, my software number is 2.27.651.5, which I believe is PRE-OTA. The OTA is for 2.27.651.5. However, in the rooting guide, I don't get the Superuser App message or through the Unresolved method. What is going on here?
[Hero CDMA Android Development] revcp:
Take a look at posts 605 and 607. I had the exact same question and those posts did it for me.
[Hero CDMA Android Development] nfinitefx45:
the ruu should be able to restore your phone to before the update. just download and runn the exe on your computer. I would say to first reboot your phone then check to make sure usb debugging is on. then run the ruu it should do all the work for you. Just remember that after the phone reboots it will take 10-15 minutes for first boot.
[Hero CDMA Android Development] madflava54:
I get an Error [104]: BOOT LOADER VERSION ERROR

The ROM Update Utility cannot update your Android phone.

Please get the correct ROM Update Utility and try again.
[Hero CDMA Android Development] madflava54:
Also, to keep in mind, when I turned it off and hit Home plus Power, I got a Clear Storage message. I accidentally hit the wrong button and I think it cleared the storage. Is that why I am having all these problems?

There is still info on my SD card. I do have a backup file from when I followed this Guide. I just don't know how to load it.
[Hero CDMA Android Development] madflava54:
Nevermind. I fixed it!
[Hero CDMA Android Development] jmartinbsu:
OTA Update: cannot make it go away :\

I'm trying to disable the OTA updates.

I'm not having luck with the remounting step.

C:\AndroidRoot\android-sdk-windows\tools>adb remount

remount failed: Operation not permitted

I've tried to rename the otacerts.bak in adb shell too. This is what I get:

# mv otacerts.zip otacerts.bak

mv otacerts.zip otacerts.bak

failed on 'otacerts.zip' - Read-only file system

#

Help!
[Hero CDMA Android Development] tobiasly:
Ok maybe I'm not understanding how this all works but the reason we are able to root our 2.1 phones is that a security vulnerability exists. If Regaw and Unrevoked could use that to root the phone then what's to stop any other app maker from using the same exploit to do whatever they want?
[Hero CDMA Android Development] tobiasly:
Again, maybe I'm misunderstanding what's going on here, but the exploit that was used to gain root still exists after this procedure right? So any ol' app can gain root on my phone, just like the Unrevoked app?
[Hero CDMA Android Development] Las_Vegas:
Not true. The 'SuperUser Permissions' app prevents any program from gaining root access without you giving it permission from your phone's display. You even have to give yourself permission when you first try to adb the 'su' command.
[Hero CDMA Android Development] regaw_leinad:
They do not have the source code to our exploit.

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] PGRtoo:
First, thank you Regaw for the exploit and the great guide. I'm fairly computer savvy but I really had no idea what I was doing when I rooted my Hero, however I followed the guide like a good little robot and it worked like a charm first time. But after spending most of yesterday reading through many threads in this forum I do have a couple of questions:

Now that my phone is rooted, can I remove the unrevoked, recovery.img, and boot-patched.zip files from my SD card?

I'm ready to begin removing unwanted apps, but there's conflicting information in this (and other) threads about how to do that.

One method reads:

adb remount
adb shell
cd /system/app

The other method reads:

adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app

I used the first method to successfully access and view the contents of the /system/app folder right after I rooted but I haven't tried to rm any files yet. Can someone please explain the difference between these two methods? is one more appropriate than the other?

I'll probably have other questions down the road, but that will do it for me now. Thanks again [to the entire forum] for all the help.

Pete
[Hero CDMA Android Development] keyFob:
Hi, everyone. Excellent community - I'm glad to finally be a part of it after having ventured into the wonderful world of Android (first the Hero, now the EVO).

I have a question - now that I no longer need my Hero I'm looking to hand it off to either a friend or family member, or keep it around for emergencies. I currently have it rooted with Fresh 2.0d but would like to return it to "stock" with the official Sprint 2.1 update and still maintain root. ... which is why I'm in this thread (just in case - due to some of the glitches in 2.0d like the audio glitch).

If I understand correctly, I would actually install the official RUU (but use the one posted by regaw in post # 2 of this thread as the one he used to test the root method outlined) and then perform the rooting process in post 1?

Since I'm running 2.0d and am currently rooted, installing the RUU in post 2 would essentially un-root me? And then I root again? I was wondering if I understood this correctly. Thanks for everyone's input and all the time people have put into figuring this out (regaw & company!). :)
[Hero CDMA Android Development] dsMA:
factory resetting a rooted 2.1 hero

Hi Everyone

I updated to 2.1 and rooted my phone yesterday. While I was going through the setup process I was having problems with the syncing of my contacts (going to to people -> groups -> menu ONLY yields the options add group and delete group there is NO sync groups) My phone is syncing all 500 email contacts to my phone which is not what I want. A factory reset will remove my gmail account and allow me to add it again hopefully doing so will bring back the sync groups option (resetting over and over is usually the tactic I have done in the past when I have had problems with contact syncing)

My question is: being that I have rooted my phone what effect will a factory reset have on the now running rooted rom?
[Hero CDMA Android Development] Las_Vegas:
Yes; You can remove those files. They are only needed there for access during the process.

Both methods do the same thing. 'adb remount' is a post root shortcut for the mount command.

Prior than using the 'rm' command, I prefer to test the removal by renaming the app by using the 'mv' command.

mv <appname>.apk <appname>.bak

Then if it causes unforeseen problems, I can rename it back. If all works out, I can then remove the file.
[Hero CDMA Android Development] PGRtoo:
Thank you sir!

These root commands ... 'abd', 'rm', 'vm', and others ... are they specific to the Android OS or SDK or are they common commands for another OS or programming language? And where can I find a listing of the commands with a description of what they do?

I'm fairly computer savvy, but these commands are completely foreign to me and I suppose I should bring myself up to speed on them now that I've come over to the sunny side.

Pete (who's still reading lots of old posts)
[Hero CDMA Android Development] nfinitefx45:
These are linux commands, which is what android is built around

File Commands

__________________________________

ls – directory listing

ls -al – formatted listing with hidden files

cd dir - change directory to dir

cd – change to home

pwd – show current directory

mkdir dir – create a directory dir

rm file – delete file

rm -r dir – delete directory dir

rm -f file – force remove file

rm -rf dir – force remove directory dir *

cp file1 file2 – copy file1 to file2

cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it

doesn't exist

mv file1 file2 – rename or move file1 to file2

if file2 is an existing directory, moves file1 into

directory file2

ln -s file link – create symbolic link link to file

touch file – create or update file

cat > file – places standard input into file

___________________________________

Some commands as a reference
[Hero CDMA Android Development] nfinitefx45:
you wont want to do any OTA's as more then likely they will remove root. your best best would be to check here for an update.zip to be released that will give you the update without the loss of root.
[Hero CDMA Android Development] ptowsvc:
a big mahalo for the root!my sprint hero is unlocked for my carrier in Hawaii[mobi pcs].i don't receive my voice mail notification.would removing the sprint voice mail app help this problem?if so how do i remove it? rooted with fresh rom 2.1.2 sorry for the newbie question.::confused:
[Hero CDMA Android Development] Hippie459MN:
Rooted my Hero 2.1 a few days ago and so far so good. Thanks for the hard work everyone. :)
[Hero CDMA Android Development] xtrigit:
Anyone?

What did I miss?
[Hero CDMA Android Development] dinerroll:
First and foremost, thanks to all of the devs who worked on this, being a lowly BA, I know just enough about Linux to have severely damaged my phone without this forum.

My question concerns the RUU that regaw posted. I too was patient to not upgrade until 2.1 roms came out (running Fresh/Aloysius now) but I always want to make sure I can return to Sprint in the event something hardware related pops up.

If I use the RUU regaw posted (which I believe was the leaked one?) will the sprint techs be any the wiser? I guess it shouldn't matter anyway as if I'm returning the phone for service, ability to reroot wouldn't matter and I could just use an official RUU from htc, but I'm still curious. Thanks again for all of the work regaw and other devs!
[Hero CDMA Android Development] nfinitefx45:
Well the one's post on the first page by regaw and I are the official releases, so if you use that to reset your phone you are 100% safe. Just always remember to remove your sdcards from them as you will end up with no card at all.
[Hero CDMA Android Development] nstone20:
I have installed 2.27.651.6 without knowing that it will limit my ability to root it. So my question is there a way to root it yet or at least a way to downgrade back to the original 2.1 or 1.5?
[Hero CDMA Android Development] nfinitefx45:
Go to the first page 2nd post and download the ruu from there this will revert you back to .5 then you can follow the root process from the 1st post.
[Hero CDMA Android Development] nstone20:
Thanks. I guess I did not read into it that much. Also I just wanted to say you guys are great over here at xda, keep up the great work!!
[Hero CDMA Android Development] westona:
Anyone else have problems?

Everything worked great for me untill it asked me to find the superuser icon on my phone. I got all the noted feedback in the cmd prompt, but could not see the superuser app in the all programs menu. V1.5 rooted just fine. Is there some small detail I missed? Did anyone else try the root? Its hard to be a guinea pig when you are still new to the platform!!! Thanks In advance for the help!!!
[Hero CDMA Android Development] nfinitefx45:
try a reboot and see if it shows up, if not just go through the process again. it should show
[Hero CDMA Android Development] gobogblue:
Hey guys just wanted to say thanks for all the hard work.

Secondly, after rooting, is there a way to get app2sd without installing a custom rom? I just want to be able to move my apps off the phone.

Thanks
[Hero CDMA Android Development] johnnyphive:
Looking for this myself.

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] nfinitefx45:
ok we need two things to make this work, a new boot image that is set to start apps2sd on boot and the apps2sd install.

If you dont mind a little overclock without the use of an overclock app,then checkout this boot.img http://xdaforums.com/showpost.php?p=6620102&postcount=1 it has the apps2sd enabled already.

Get the 710 version runs fantastic on our phones then visit this post http://xdaforums.com/showpost.php?p=6620102&postcount=1 and manually install apps2sd.

After that you have a stock system with oveclock and apps2sd with out having to do anything else.

This is my current system, also do not use an overclocking app as they actually add lag while trying to adjust the settings, so without the app it justs jumps to 710 instantly on power up.

I am also working on an update.zip of the new .6 while retaining root, as there has been alot of talk about the fact that it does improve system performance.
[Hero CDMA Android Development] johnnyphive:
Both of your links point to the OC post....

I'm assuming you meant to point to this thread http://xdaforums.com/showthread.php?t=670087

If so following your instructions i get the following while trying to flash the a2sd package

E: Can't chown/mod /system/bin/fixa2sd

(No such file or directory)

E:Failure at line 4:

set_perm 0 0 0777 SYSTEM:bin/fixa2sd

Installation aborted.
[Hero CDMA Android Development] Mikedick:
I'd like to thank all those involved in making this very well done how-to and doing the R&D on all the files and info involved in this. This is my first time ever attempting any kind of mod on a phone, and this thread made it ridiculously painless. I've already removed several bloat progs from my stock 2.1 os even. Props to the site and the great people in it for spreading the knowledge. :)
[Hero CDMA Android Development] mrcharlesiv:
Well I'm getting a replacement phone from the speaker blowing... AGAIN! I'm so glad we have root now!
[Hero CDMA Android Development] bugmenever:
All hail Regaw!!!!!

That was huge bro! Thanks so much!!!!!!!
[Hero CDMA Android Development] slacker2k10:
Great Job!
[Hero CDMA Android Development] westona:
Still Not Working

I tried this many times and it still does not work.. The superuser permissions app never shows up in the list.
[Hero CDMA Android Development] punishment24:
Havin issues at the beginning

srry can someone help, when i pull up the cmd screen and after i type in the first two commands- cd C:\android-sdk-windows\tools - followed by adb devices - the seriel number does not show up, instead it tells me

'adb' is not recognized as an internal or external command, operable program or batch file.

i have debugged mode checked and on, and my phone is on charge only, please help :confused:
[Hero CDMA Android Development] lopantz:
Thank you

Rooted yesterday, working like charm. Thank you for your dedication and time.
[Hero CDMA Android Development] DonnieE:
Found out the hard way

If you downloaded the sdk 6 you have to move the files from inside the sdk folder to the tools folder you created when you extracted the other files. Just copy everything from the tools file in the sdk folder and paste into the seperate tools folder that should be right under the sdk folder.
[Hero CDMA Android Development] hatchguy06:
I have had mine blow twice and all they did was replace my speaker:(:(:(.. you lucky dog...lol
[Hero CDMA Android Development] punishment24:
Thanks ill have to try it when I get a chance, thanks for the reply

-------------------------------------

Sent via the XDA Tapat

alk App
[Hero CDMA Android Development] legasus233:
I get all the way to getting the unrevoked information in the command prompt, but then don't see the superuser permissions in the apps tray. When I type the next command, su, it says permission denied!! What did I do wrong?
[Hero CDMA Android Development] westona:
sorry legasus223, But its slightly good to hear someone is having the same exact problem as me... I am on my way to the sprint store to try to get my phone exchanged for one that has the 1.5 build on it. I realized that my phone has already took the OTA update. Look under Settings>about phone>software information. it probly says 2.1 update 1 for your firmware version. Rumor has it, this update 1 stops the rooting process. I am pretty this update also is what stopped my IMAP and Weather from updating automatically. (This is when I noticed these other consequences.) Other forums have claimed the exact same thing! Please let me know if you get passed it, as i probly will not succeed in getting a new phone.
[Hero CDMA Android Development] regaw_leinad:
I'm updating the first post with information in the beginning in big, bold, red letters.

If you don't see the Superuser Permissions app in the app tray after running the exploit, on your phone, go to

Settings > About Phone > Software information

If it says 2.27.651.

6

under "Build Number" (notice the bolded, underlined, italic 6), you need to run the RUU in the second post of this thread to revert to .5 first. Doing this WILL erase all of your data on your phone, so be sure to back up anything if you need to first.
[Hero CDMA Android Development] phonetec:
i think im gonna try this for fun, if i cant get root again, oh well, im getting a evo next month anyway
[Hero CDMA Android Development] regaw_leinad:
Don't worry :p I guarantee it will work
[Hero CDMA Android Development] phonetec:
worked like a charm, good stuff :D
[Hero CDMA Android Development] mb9999:
get get root access on my hero. Help Please!!!!!!

I have gon through and downloaded the sdk files and th eroot zip file and gone through all of the command steps. When I get to step 7 it does not give me the message that it is unpacking it gives me.

sh / sdcard/ unrevoked

$

I don't know what I could be doing wrong
[Hero CDMA Android Development] regaw_leinad:
I suggest you copy and paste the command from the post.

It's

sh /sdcard/unrevoked

Without a space between the /'s

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] westona:
I missed the RUU Concept. Working great now. Thanks Regaw
[Hero CDMA Android Development] PGRtoo:
Question:

I performed Regaw's root exploit and renamed my /otacerts.zip file to otacerts.zip.bak like suggested in the root instructions. My question is whether this will prevent me from performing the other system updates like my profile or the PRL?

Pete
[Hero CDMA Android Development] nfinitefx45:
no it shouldn't, I just did a new PRL myself without any issues
[Hero CDMA Android Development] timpetti:
Holy crap how easy is this!!!

The Sprint Hero is my first Android based phone and I can honestly say that at first I was disappointed by its performance. But after all the hard work these guys put into the ROOT of the 2.1 update, it is now becoming the powerhouse of a phone it was meant to be. The instructions on the first post were clear, concise, and EASY to follow. However, when running the exploit, you will not get the "command prompt" back. It will come up as a dollar or pound sign I believe and then you can enter the next command. It took me three tries before I discovered that part out. Now the phone is rooted and ready for development. I'll be sending some green stuff thru paypal for this one. Thansk again! Tim
[Hero CDMA Android Development] timpetti:
When you see that dollar sign "$" at the end of the code string, copy and paste the next command right next to it and hit "enter". that dollar sign is the "command prompt". It took me three tries to figure that one out.
[Hero CDMA Android Development] J-Bert:
I've been having alot of connectivity problems since I rooted the phone the night this was released. I can't connect to the internet, weather, etc. What gives?
[Hero CDMA Android Development] punishment24:
Alright ran into another problem, and thanks donnie for getting me through the last part. But now I'm at step 9 just after I get my phone serial number, the next command the and push unrevoked /sdcard after pressing enter it tells me

Cannot stat 'unrevoked' : no such file or directory

I'm srry for the questions and problems, my first root attempt.. but someone please help. Thank you

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] punishment24:
Or it tells me

failed to copy 'unrevoked' to '/sdcard/unrevoked': Permission denied

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] jonmical:
android market seemed to stop working

Hi guys...GREAT root....worked like a charm. One question, after successfully rooting my Sprint/Hero I was not able to sign into the "market". I signed in with my credentials I used before rooting and it and it said it could not establish connection with google servers, then it tried to connect via wifi and said the same. I have access to the internet via both the 3g connection and wifi. Am I missing some simple issue OR does rooting mean you cannot get access to the Android Market?

HELP!!!!
[Hero CDMA Android Development] DonnieE:
Should be easy

I believe yu already have the .6 update installed. You have to start over with the .5 update from the second post. Onceyou have done that the rooting can start. Also make sure everything you are pushing is in the second tools folder since that is where you are working from.
[Hero CDMA Android Development] punishment24:
Thnks for the reply, and i checked my phone software, it says .5

Sigh, guess my phone don't wanna b rooted lol

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] nfinitefx45:
do you have usb debuggin on? nad if that doesnt work just mount your sdcard adn copy it that way
[Hero CDMA Android Development] punishment24:
Yes debug is on, which files do I place on the SD card?

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] Jus10o:
Did you try to restart the phone?

And you put the

unrevoked

recovery.img

boot-patched.zip

Whatever says "adb push" to "sdcard" is what you put on your sdcard. Make sure you DONT PUT IT IN A FOLDER. It should be on the root of your sdcard.

After you mount your sdcard and put the files on there manual. Make sure you unmount the sdcard and its charging only.
[Hero CDMA Android Development] sombionix:
I was trying to root a hero today and had to roll it back to .5. I tried using this RUU and kept getting a connection error or low battery error. The USB cable was connected and the phone was detected in ADB, and the battery was fully charged. Any suggestions? Am I doing something wrong? I ran this exe. as admin.
[Hero CDMA Android Development] regaw_leinad:
make sure you put the 3 files from the hero-root.zip into the sdk tools folder.
[Hero CDMA Android Development] LaurieBBoutte:
New and stuck - please help

Hi all,

Please be gentle. I am new to all this and searched but either missed it or I am the only one to not get past this. I am getting stuck on the adb shell command. Everything else worked GREAT, no problems at all. I waited about 5 minutes with just the $ sign. I pulled the phone off the usb cable and powered it off then back on. I redid the adb device and received the serial number again. When I run the adb push unrevoked /sdcard, I receive 1381KB/s <0 bytes in 439327.000s> boot-patched.zip received 1053KB/s <0 bytes in 2279194.002s>. I did verify that boot-patched.zip was on my sdcard and it is there. The sdcard has over 14G available. Any hints?

Please do not be too rough on me. ;-)
[Hero CDMA Android Development] LaurieBBoutte:
Well, I may be okay....

I pressed enter and received another $ prompt. I decided to try it continue and it was all good. I just saw the big UNREVOKED! Thanks and hopefully I can figure out what to do to wireless tether after I get it rooted. I was going to stick with the original sprint rom, I like the tv and am admittedly a big chicken.

Update----

Found the wireless tether for root in the market. It worked great. Thank you for such a great tutorial. All of you are fantastic.