How To Root the Sprint HTC Hero and Samsung Behold 2
Posted by Tamour Khan on Tuesday, November 24, 2009
Under: Android
HTC Hero
First you need to download the Android SDK. It may sound confusing but it's not. There are tools in here that we need. You can get it from http://developer.android.com/sdk/index.html. This is a modular SDK and all the tools we need are in this download. Once downloaded you just need to extract it in a directory of choice.
The next thing you need to download is asroot2. This is a script that was developed that runs an exploit in Android's linux that allows your to run root. The link for that is here: http://forum.xda-developers.com/atta...2&d=1257621154. Unzip that file and place it in a directory of your choice. Also download http://www.androidspin.com/downloads...roc-v1.2.3.img and place that into the same directory you extracted asroot2.
You have to first install the driver for the phone. When Windows asks you for the drivers, direct Windows to the directory you extracted the SDK into. You should see a folder called usb_driver. If you are running the 32 bit version of Windows select the x86 folder. If you are using a 64 bit version then select the x64 folder. Then select the android_usb.inf file. This should install the drivers.
If running XP or lower you will need to go to the start menu and click run, then you enter cmd and press enter. If Vista or higher you will press the start button and type cmd and press enter. When you are at the command prompt you cd to the directory you extracted the sdk into. Then cd into the tools directory. Then execute the following commands:
adb push /directory_you_placed_asroot2/asroot2 /data/local/
adb shell
chmod 0755 /data/local/asroot2
/data/local/asroot2 /system/bin/sh
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su
chmod 4755 su
Now your phone is officially rooted! 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!
Samsung Behold 2
As with the Hero, the first thing you need to do is download the Android SDK. It may seem a confusing but it's not. There are tools in here that we need. You can get it from http://developer.android.com/sdk/index.html. This is a modular SDK and all the tools we need are in this download. Once downloaded you just need to extract it in a directory of choice.
Download this file: http://www.4shared.com/file/148564303/bf9be869/try3.html
Press Windows+R, type in cmd.
Then do:
cd <Directory where try3 is>
adb push try3 /data/local
adb shell chmod 0755 /data/local/try3
adb shell
./data/local/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
cat /system/bin/sh > /system/bin/su
chmod 04755 /system/bin/su
exit
exit
And thats all! Hooray
First you need to download the Android SDK. It may sound confusing but it's not. There are tools in here that we need. You can get it from http://developer.android.com/sdk/index.html. This is a modular SDK and all the tools we need are in this download. Once downloaded you just need to extract it in a directory of choice.
The next thing you need to download is asroot2. This is a script that was developed that runs an exploit in Android's linux that allows your to run root. The link for that is here: http://forum.xda-developers.com/atta...2&d=1257621154. Unzip that file and place it in a directory of your choice. Also download http://www.androidspin.com/downloads...roc-v1.2.3.img and place that into the same directory you extracted asroot2.
You have to first install the driver for the phone. When Windows asks you for the drivers, direct Windows to the directory you extracted the SDK into. You should see a folder called usb_driver. If you are running the 32 bit version of Windows select the x86 folder. If you are using a 64 bit version then select the x64 folder. Then select the android_usb.inf file. This should install the drivers.
If running XP or lower you will need to go to the start menu and click run, then you enter cmd and press enter. If Vista or higher you will press the start button and type cmd and press enter. When you are at the command prompt you cd to the directory you extracted the sdk into. Then cd into the tools directory. Then execute the following commands:
adb push /directory_you_placed_asroot2/asroot2 /data/local/
adb shell
chmod 0755 /data/local/asroot2
/data/local/asroot2 /system/bin/sh
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su
chmod 4755 su
Now your phone is officially rooted! 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!
Samsung Behold 2
As with the Hero, the first thing you need to do is download the Android SDK. It may seem a confusing but it's not. There are tools in here that we need. You can get it from http://developer.android.com/sdk/index.html. This is a modular SDK and all the tools we need are in this download. Once downloaded you just need to extract it in a directory of choice.
Download this file: http://www.4shared.com/file/148564303/bf9be869/try3.html
Press Windows+R, type in cmd.
Then do:
cd <Directory where try3 is>
adb push try3 /data/local
adb shell chmod 0755 /data/local/try3
adb shell
./data/local/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
cat /system/bin/sh > /system/bin/su
chmod 04755 /system/bin/su
exit
exit
And thats all! Hooray
In : Android
Tags: "root phone" "rooted phone" "root htc hero" "root samsung behold 2"