• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Sprint Hero HAS BEEN ROOTED@!

I'm pretty sure its completely rooted now...

Photo Courtesy of The_Miker:
root.png



To root the instructions are here: Post# 209
CDMA Hero Root status? - xda-developers
View Single Post - CDMA Hero Root status?

I am a serious Android Noob and reading through all this is proving quite difficult. I have a couple of questions:
1. Will rooting reset my phone to factory settings with the exception of my now having root access i.e. Will I have to do my scenes over and redo all settings, app DLs etc.
2. Is there a video or simple step by step posting for dummies of this anywhere? For example:
Step 1: Blah, blah, blah
Step 2: Blah, blah, blah
Step 3: etc.
3. Will this allow me to save apps to memory card?
 
I am a serious Android Noob and reading through all this is proving quite difficult. I have a couple of questions:
1. Will rooting reset my phone to factory settings with the exception of my now having root access i.e. Will I have to do my scenes over and redo all settings, app DLs etc.
2. Is there a video or simple step by step posting for dummies of this anywhere? For example:
Step 1: Blah, blah, blah
Step 2: Blah, blah, blah
Step 3: etc.
3. Will this allow me to save apps to memory card?

This how to is the one that I used as it was pretty simple step by step. I think I was one that was a little more to the point. The only thing this one and the one posted before this one are missing are the instructions on flashing the recovery image which is like the bootloader. That is what you use to backup/restore/flash roms to and from your phone. I have included that at the bottom...

http://androidforums.com/sprint-htc-hero/14814-sprint-hero-has-been-rooted.html#post90553

Also download http://www.androidspin.com/downloads...roc-v1.2.3.img (this is the recovery image aka bootloader) and place that into the same directory you extracted asroot2.

Now that your phone is officially rooted after the instructions in the link above, but we arent done yet though. Now you need to flash the recovery image. If you are still in adb shell type in exit until you are out. You should be in the directory where you extracted the recovery image. If not go there. Type in the following:

adb push recovery-RA-heroc-v1.2.3.img /sdcard/

Once that is done, type in adb shell (or sudo ./adb shell in ubuntu). If your command prompt is a dollar sign then type in su and press enter. If it is a pound sign you are good. Then type in the following:

adb shell flash_image recovery recovery-RA-heroc-v1.2.3.img

Once that is finished you are done. To reboot into recovery type in adb shell reboot recovery. You should reboot into recovery mode.

I had a little trouble on this last part so if you run into some issues check out the thread on xda and look for the section where people had problems installing the recovery image. How to root the CDMA Hero - xda-developers
 
Once that is done, type in adb shell (or sudo ./adb shell in ubuntu). If your command prompt is a dollar sign then type in su and press enter. If it is a pound sign you are good. Then type in the following:

adb shell flash_image recovery recovery-RA-heroc-v1.2.3.img
Quick clarification on that - if you're already in the shell (after typing ./adb shell), you do not need to prepend 'adb shell' to further commands. The progress should look something like this:

./adb push recovery-RA-heroc-v.1.2.3.img /sdcard/
./adb shell (<-- this connects you to your phone's shell)
$ su
# cd /sdcard
# flash_image recovery recovery-RA-heroc-v1.2.3.img
#

At that point the recovery image should be loaded. Power down your phone, power it up while holding the volume-down and power buttons, you should be at a screen showing you the little Android mascot on a skateboard.

From there hit the Home button to enter the recovery image you just loaded. (screenshot above)
 
which tutorial did you follow?

@imneveral0ne: I haven't tried the MoDaCo ROM actually - by the time the ROM was released I'd already made most of the changes manually, and I'm pretty happy with my current setup.

I'm more excited to see some of the OS replacement ROMs like Cyanogen's, and even more excited for someone to rom-up a 2.0 build :D

The next couple of weeks are going to be pretty exciting in phone geekland, at least for this phone geek.
 
Quick clarification on that - if you're already in the shell (after typing ./adb shell), you do not need to prepend 'adb shell' to further commands. The progress should look something like this:

./adb push recovery-RA-heroc-v.1.2.3.img /sdcard/
./adb shell (<-- this connects you to your phone's shell)
$ su
# cd /sdcard
# flash_image recovery recovery-RA-heroc-v1.2.3.img
#

At that point the recovery image should be loaded. Power down your phone, power it up while holding the volume-down and power buttons, you should be at a screen showing you the little Android mascot on a skateboard.

From there hit the Home button to enter the recovery image you just loaded. (screenshot above)

Thanks... that #cd /sdcard step missing is a life saver!!! I couldn't figure out why it kept saying not found.
 
This how to is the one that I used as it was pretty simple step by step. I think I was one that was a little more to the point. The only thing this one and the one posted before this one are missing are the instructions on flashing the recovery image which is like the bootloader. That is what you use to backup/restore/flash roms to and from your phone. I have included that at the bottom...

http://androidforums.com/sprint-htc-hero/14814-sprint-hero-has-been-rooted.html#post90553

Also download http://www.androidspin.com/downloads...roc-v1.2.3.img (this is the recovery image aka bootloader) and place that into the same directory you extracted asroot2.

Now that your phone is officially rooted after the instructions in the link above, but we arent done yet though. Now you need to flash the recovery image. If you are still in adb shell type in exit until you are out. You should be in the directory where you extracted the recovery image. If not go there. Type in the following:

adb push recovery-RA-heroc-v1.2.3.img /sdcard/

Once that is done, type in adb shell (or sudo ./adb shell in ubuntu). If your command prompt is a dollar sign then type in su and press enter. If it is a pound sign you are good. Then type in the following:

adb shell flash_image recovery recovery-RA-heroc-v1.2.3.img

Once that is finished you are done. To reboot into recovery type in adb shell reboot recovery. You should reboot into recovery mode.

I had a little trouble on this last part so if you run into some issues check out the thread on xda and look for the section where people had problems installing the recovery image. How to root the CDMA Hero - xda-developers

WOW! Thanks a lot for this. Confident and ready to go now.Couple quick questions:
1. Will I lose my scenes, settings and current apps?
2. What does flashing the ROM mean? Is that saving everything I currently have, Installing new firmware or both?
3. Upon completion can I save and run apps from the SD card?
 
WOW! Thanks a lot for this. Confident and ready to go now.Couple quick questions:
1. Will I lose my scenes, settings and current apps?

No, that's the great thing about this ROM, it keeps all your current settings/apps/contacts. It's like it installs it right over your current one.

2. What does flashing the ROM mean? Is that saving everything I currently have, Installing new firmware or both?

Before you do ANYTHING as far as changing anything on your phone after you root you should do a backup of your current ROM, so in case you mess anything up you can just restore it back as it was from your backup. Then you can Flash modaco's custom ROM and play with it. As stated above, it's like it installs right over your old rom but with a few added apps/features/tweeks.

3. Upon completion can I save and run apps from the SD card?

Yes, but I haven't done this part yet but will today. From what I understand, this ROM is basically already setup to allow you to do this. All you really have to do is install Apps2sd and it'll partition the SD for you or you can use the partition tool built into the recovery image aka bootloader to do it as well. Don't forget to backup the contents of your SD card if you don't want to lose anything since it'll wipe you SD card clean.

Hope this helps.
 
Flashing your ROM means overwriting the software on the phone with custom software. Doing this will usually erase all of your personal data and applications.

I think there's a lot of confusion floating around because there's really two flashing steps involved - flashing the 'recovery' software, and flashing the 'main' phone ROM. The Hero (as with other Android phones) actually has several partitions (sections) of ROM memory -

1) The recovery image (this is what the Anon_RA image overwrites) installs software which allows you to easily load in other ROMs, backup your current phone (Nandroid), or restore from backups. There are also other tools here for setting up your SD card to work with some of the custom ROMs more easily. Overwriting the recovery image does not erase your personal data or apps.

2) 'Main' phone ROM - ie, the software you see when your phone boots up normally. This is what the MoDaCo ROM and other custom software overwrites. Usually, overwriting this ROM memory will erase your data. This is why it's imperitive that you create a backup before flashing one of these images.

The MoDaCo ROM is 'special' in that it's a no-wipe ROM - which means theoretically it should not overwrite your apps or personal data. This ROM installs custom software over the top of the /system partition (where the operating system files are stored) without touching your /data partition (where all your apps are stored)

You can safely follow all the steps through flashing the 'recovery' image without harming your phone (in most cases, there is no guarantee). Once that is in place, you'll have the ability to create a backup image of your phone. This is the 'Nandroid v2.2 backup' option in the screenshot earlier in this thread. This will create a 'nandroid' folder on your SD card with images of the entire phone memory, including all your apps and preferences.
 
Im looking forward to sitting down & doing this. I know a lot of people like Sense, but I consider it bloatware & just want my Hero to run as smooth as possible.
 
Edit: Started working on this prior to previous post. Will leave here in case anybody needs it.


Success for fellow Dummy!!! :D

WARNING DO THIS AT YOUR OWN RISK!!!!

#1
First you need to download the Android SDK execute and copy the file it produces to your C: drive. It should be named similar to:android-sdk-windows-1.1_r1 You should download any android sdk I downloaded 2.0 but to make things easy rename the directory you copied to your c drive to: android-sdk-windows-1.1_r1

This way you can copy paste commands. If you don't do this please change your commands as appropriate!!!

#2
Then you need to install adb driver, I did this by installing pdanet, installs it for you automatically. Follow instructions.

PdaNet -- Use your Android as a USB Modem
Some people had success by installing HTC Sync. I did not.

#3
Download asroot file from here: xda-developers - View Single Post - CDMA Hero Root status?

Copy asroot file to your file to the tools directory:
C:\android-sdk-windows-1.1_r1\tools directory

#4
Then change your environment variables:

To do this right-click on "My Computer" and select Properties. Next select the Advanced tab(Advanced Settings in Vista) then select Environment Variables.

Click "New" under System Variables and add the following:

Variable: adb
Value: C:\android-sdk-windows-1.1_r1\tools


#5 Put your phone in usb debug mode if not already. Found under applications> development settings



#6
Let's test.

Running Command Prompt:

Windows XP: Select Start or Tap the Windows Key on your Keyboard, select "Run" and type "CMD" then hit "Enter".

Windows Vista/7: Select Start or Tap the Windows Key on your Keyboard, select the search box on the left and type "cmd" then hit "Enter".

Code:
Copy paste into command prompt: cd C:\android-sdk-windows-1.1_r1\tools <-- Tap Enter

You should be at:

C:\android-sdk-windows-1.1_r1\tools> <run your adb command here>
Ok, now that you know how to initiate an adb command let's try one shall we?


Remember, we are still in the command prompt and in the /tools folder within the android sdk....

Code:
C:\android-sdk-windows-1.1_r1> adb shell <--- Hit Enter
you should get a $ sign.


ok now we are going to root. close out current command promtpt and start a new one like in step previous step:

#7

Let's Root!

Windows XP: Select Start or Tap the Windows Key on your Keyboard, select "Run" and type "CMD" then hit "Enter".

Windows Vista/7: Select Start or Tap the Windows Key on your Keyboard, select the search box on the left and type "cmd" then hit "Enter".


Code:
Copy paste into command prompt: cd C:\android-sdk-windows-1.1_r1\tools <-- Tap Enter

Copy paste:
adb push asroot2 /data/local/

Copy paste:
adb shell chmod 0755 /data/local/asroot2

Copy paste:
adb shell

Copy paste:
/data/local/asroot2 /system/bin/sh


You should have seen the following lines progressively as you typed the previous commands:
$ /data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/857/fd/3
SUCCESS: Enjoy the shell.
#


# should indicate a successful root. Someone correct me if I'm wrong. Now copy paste the following lines individually:

copy paste:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

copy paste:
cd /system/bin

copy paste:
cat sh > su

copy paste:
chmod 4755 su


Close command prompt window.


#8
You should be fully rooted! If you'd like now google search for wifi tether. Download the HTC Version!!!


Start and test. It should work like a charm!!!!!!!!! :)


Thank you for the following guide. I copied heavily from it to apply it here:
[HOW-TO] ADB for Dummies(How-To Learner's Guide) - xda-developers

Where do we get the download for 2.0? I was only able to find this: Android 1.6 NDK, Release 1 | Android Developers which is 1.6 and nothing higher?
 
Flashing your ROM means overwriting the software on the phone with custom software. Doing this will usually erase all of your personal data and applications.

I think there's a lot of confusion floating around because there's really two flashing steps involved - flashing the 'recovery' software, and flashing the 'main' phone ROM. The Hero (as with other Android phones) actually has several partitions (sections) of ROM memory -

1) The recovery image (this is what the Anon_RA image overwrites) installs software which allows you to easily load in other ROMs, backup your current phone (Nandroid), or restore from backups. There are also other tools here for setting up your SD card to work with some of the custom ROMs more easily. Overwriting the recovery image does not erase your personal data or apps.

2) 'Main' phone ROM - ie, the software you see when your phone boots up normally. This is what the MoDaCo ROM and other custom software overwrites. Usually, overwriting this ROM memory will erase your data. This is why it's imperitive that you create a backup before flashing one of these images.

The MoDaCo ROM is 'special' in that it's a no-wipe ROM - which means theoretically it should not overwrite your apps or personal data. This ROM installs custom software over the top of the /system partition (where the operating system files are stored) without touching your /data partition (where all your apps are stored)

You can safely follow all the steps through flashing the 'recovery' image without harming your phone (in most cases, there is no guarantee). Once that is in place, you'll have the ability to create a backup image of your phone. This is the 'Nandroid v2.2 backup' option in the screenshot earlier in this thread. This will create a 'nandroid' folder on your SD card with images of the entire phone memory, including all your apps and preferences.

where do we get nandroid v2.2 from?
 
thank you elguapo76 I got my phone rooted thanks to your how to and im a total noob to this! I also installed the teather app but cannot get online also.
 
Ok, I rooted. It appeared to be successful. I did everything but Flash recovery image. I want to do that but I am unsure of how to do the backup before doing so, please assist.

Additionally, how do I delete stock apps?:eek:

You'll want to install the recovery image, you'll be able to do a Nandroid backup after that. The recovery image will not remove any data on your phone. Note that I'm *not* talking about the MoDaCo ROM, but specifically the recovery image that QuiQNeZZ linked a couple of posts up.

Deleting stock apps basically consists of removing the .apk and .odex files for those applications. There are several guides on xda-developers that outline how to do this. You definitely want to make a backup *before* doing so, as it's easy to freak out your phone (or possibly brick it) by removing the wrong apps or files.

Once you've got the recovery image flashed and you've made a backup, see this XDA thread for how to remove stock apps:

How to remove Stocks, Nascar and other useless apps... - xda-developers
 
You'll want to install the recovery image, you'll be able to do a Nandroid backup after that. The recovery image will not remove any data on your phone. Note that I'm *not* talking about the MoDaCo ROM, but specifically the recovery image that QuiQNeZZ linked a couple of posts up.

Deleting stock apps basically consists of removing the .apk and .odex files for those applications. There are several guides on xda-developers that outline how to do this. You definitely want to make a backup *before* doing so, as it's easy to freak out your phone (or possibly brick it) by removing the wrong apps or files.

Once you've got the recovery image flashed and you've made a backup, see this XDA thread for how to remove stock apps:

How to remove Stocks, Nascar and other useless apps... - xda-developers

Thank you Pking and QuiQNeZZ for all your help :D!!! Can't wait to get those stock apps removed.

I'm almost there. I did flash but I am unable to do a Nandroid backup. I get an message that says "Backup not performed" or something to that effect. I have 96MB remaining on a 2GB micro SD card. Could it be a space issue? Also, once I've done a succesful backup. How do I get the MoDaCo ROM on my phone?
 
Thank you Pking and QuiQNeZZ for all your help :D!!! Can't wait to get those stock apps removed.

I'm almost there. I did flash but I am unable to do a Nandroid backup. I get an message that says "Backup not performed" or something to that effect. I have 96MB remaining on a 2GB micro SD card. Could it be a space issue? Also, once I've done a succesful backup. How do I get the MoDaCo ROM on my phone?

Yes it is a space issue . It need let say 150mb free to be safe
 
My nandroid backups are closer to ~215mb, but I had a few apps installed. The /system image is about 150mb alone, so I'd say at least 250mb is a safer bet.

Probably the easiest thing to do is move all your SD card data off to a folder on your PC, do a Nandroid backup on the empty card, copy that to your PC and then copy back everything that was on the card originally when you're done playing.
 
Back
Top Bottom