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

How-To Root a Sprint Hero

Status
Not open for further replies.

ccapasso

Android Expert
Jan 12, 2010
1,127
278
Rooting Android 1.5 on the Sprint Hero

Rooting 2.1 can be found HERE

Manually rooting your phone:
This section will cover how to manually root your phone. Keep in mind there is a one-click method, but reading this is helpful and educational. You do not have to do it this way, but I suggest at least reading though it.


The following was taken from here:

Before We Begin, here is a video on doing this manually:

YouTube - How To Root The Sprint CDMA Hero



Step 1: Download the Android SDK from Android SDK | Android Developers The Windows file is called android-sdk_r4-windows.zip. Extract the files to your C: drive so that you now have the folder C:\android-sdk-windows

Step 2: Download the asroot2 exploit file from http://forum.xda-developers.com/atta...2&d=1257621154 Extract asroot2.zip to C:\android-sdk-windows\tools folder.

Step 3: Download the Hero recovery image from 4shared.com - online file sharing and storage - download recovery-RA-heroc-v1.5.2.img. Place this file in C:\android-sdk-windows\tools as well.

***NOTE*** If you are downloading the Recovery Image from the 4shared link above, there is a glitch in which it renames the file to recovery-RA-heroc-v152.img. If you download the file from that link, please be sure to rename your file to recovery-RA-heroc-v1.5.2.img
***NOTE***


Mirror for 1.5.2 Recovery Image

Step 4: Make sure USB Debugging is off by going to Settings>Applications>Development. Now connect the phone to your PC via USB cable.

Step 5: Mount your sdcard; Browse to the HTC Sync folder and install HTC Sync on your pc. After it is done installing unmount the sdcard then enable your USB debugging.

*Note* If the drivers you installed from HTC Sync do not work, you can alternatively download a program called PDAnet. This will not only allow you to tether your phone, but will also install the correct drivers for you as well. *Note* (This note is not part of the original tutorial)

Step 6: Open a command prompt by clicking the Start button and typing cmd into the search box and pressing enter or found under All Programs>Accessories.

Step 7: You will now enter a series of commands which I will place inside code boxes to indicate the entire command. You may copy and then paste them into the command prompt window by right clicking. Only enter one command at a time.
1:
Code:
Code:
cd C:\android-sdk-windows\tools
2:
Code:
Code:
adb devices
If you've been following this guide you will see your phone's serial number. If you get "device not found" error, you either need to make sure you the drivers were properly installed or make sure you enable USB debugging AFTER you connect the USB cable. Continue on once you get the proper phone serial output.
3:
Code:
Code:
adb push asroot2 /data/local/
4:
Code:
Code:
adb shell
5:
Code:
Code:
chmod 0755 /data/local/asroot2
6:
Code:
Code:
/data/local/asroot2 /system/bin/sh
You should see an output that says:
$ /data/local/asroot2 /system/bin/sh
[+] Using newer pope_inode_info layout
Opening: /proc/857/fd/3
SUCCESS: Enjoy the shell.
#
Now for a few last commands.
7:
Code:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
8:
Code:
Code:
cd /system/bin
9:
Code:
Code:
cat sh > su
10:
Code:
Code:
chmod 4755 su
You are now officially rooted. A few more steps and you will have flashed the recovery image.
11:
Code:
Code:
exit
12:
Code:
Code:
exit
13:
Code:
Code:
adb push recovery-RA-heroc-v1.5.2.img /sdcard
Pushing is equivalent of copy the file to the root of your sdcard. By the time you finished reading this it should be done. You'll know its done because the ouput will say something like transferred X bytes in X secs.
14:
Code:
Code:
adb shell reboot
This will cause the phone to restart automatically. Wait till it is fully booted to continue. (Also, make sure after your phone reboots that USB Debugging Is Still Enabled).
15:
Code:
Code:
adb shell
16:
Code:
Code:
su
17:
Code:
Code:
cd /sdcard/
18:
Code:
Code:
flash_image recovery recovery-RA-heroc-v1.5.2.img
FLASHING TO THE RECOVERY TAKES SEVERAL SECONDS-- BE PATIENT. ENTER THE NEXT COMMAND ONLY AFTER THE COMMAND PROMPT RETURNS TO THE # (ROOT SYMBOL).

19:
Code:
Code:
reboot recovery
Step 8: This is the last command; you may now close the cmd prompt. This will cause your phone to boot into recovery mode; it should take no longer than 30 secs. The third option on the list is "- Backup/Restore"; select it. Now, select the first option "- Nand backup". The phone will prompt you to press HOME to confirm which is want you want to do. The backup will begin. You will see the screen say, "Performing backup : .........." When done, the bottom of the screen will say "Backup complete!" and you will be given the menu options again. Go back to the main menu and select reboot system. Rebooting your phone after installing the new recovery image may take several minutes.

Step 9: Once your phone is fully booted, mount the sdcard. You will see a folder called "nandroid"; I highly recommend you copy this to your pc in case you lose your sdcard data or reformat it. Your phone is rooted, 100% backed up, and ready to install a custom rom if you wish!



Once you have read though all of the above, you may decide that manually rooting is something you would like to avoid. If that is the case, you can do the one-click/auto root option as described below:

One-Click/Auto root your phone:
There are several auto rooters out there, but I have found this one to work the best:
Fresh Pre-Kitchen 0.2

So what is it and how do you use it?
This is a Windows application that will allow you to root your phone very easily. It basically does all of the steps for you, that you would normally have to do manually. This program does require the .NET Framework, make sure you have it installed and if not, get it installed.
Please follow the instructions below:
***Note*** There is a new kitchen out which you can get here. I will be adding to the tutorial how to use this, but for now there are a few video tutorials there that show you how to use it. The concept is similar.***Note***

Step 1: Download Pre-Kitchen 0.2. Unzip the files/folders.

Step 2: Download the auto-root fix here. Unzip the file and replace your existing fresh-pre-kitchen.exe (the one you just unzipped above) with the one in this zip file. *Note* Make sure you close all copies of kitchen that you have open already before doing this. *Note*

Step 3: Plug your phone into your computer and make sure USB debugging is on. DO NOT Mount the SD Card!

Step 4: Double click the fresh-pre-kitchen.exe. This will start the program and you will see a window like so:
main02-300x135.png


As you hover your mouse over each icon, it tells you what each one does. There is a lot you can do with this program, but for now we are only going to look at the rooting portion of it. The very first thing you should do is click on the green Question Mark (?). This will bring up the following screen:
rootwarning.jpg


I suggest clicking yes to allow it to run a diagnostic check to make sure everything will work for you. This is a good way to double check that all is well and it doesn
 
  • Like
Reactions: evaldez89
Status
Not open for further replies.

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones