CDMA Hero rooted

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
Wanted to post a follow here. Rooted, flashed recovery and then flashed mocado rom. Results:

Don't use version 1.0, use 1.1 (unless you can use adb shell pretty well to partition and mkdir)
apps2sd works flawlessly
wifi tether still works great for me, and reports say everyone who had issues no longer have any.
All sprint apps are in the rom, so you wont lose anything. you can remove after via adb shell if you want.
Wavesecure seems to lock the dialer. IMO don't flash it over the rom.
SSH server is sweet.
 

702DROID

Well-known member
Nov 7, 2009
196
8
0
Visit site
Completely possible. I know it won't work on Cell South's Hero. When I go back into the office tomorrow I will be trying it on the Eris as well. For now, it's all speculation on my end.

It appears that the particualr stack bug could have been patched by HTC after the first run of devices.



Don't be sorry. What you will need to do is:
1. Have your phone set up the way you like it as far as apps etc go.
2. Back up your entire SD card somewhere.
3. Follow my instructions near the top to get root, and check as I described using a terminal app.
4. Then using adb push the RA recovery image to your sdcard.
5. adb shell flash_image on the recovery. This will reboot you to the RA recovery console.
6. Run a full nandroid backup
7. Run the fat32/swap/ext2 script from the recovery image.
8. DL mocado's rom
9. Extract and place on sd card
10. Boot into recovery and flash it.


I know all that looks scary. Go through up to step 3. Once you get there I'll either point you to a tutorial to flash the RA recovery, or walk you through it. Then we tackle the mocado rom.

The important steps - BACKUP YOUR SD CARD and RUN NANDROID BACKUP AS SOON AS ITS INSTALLED. That makes it easy to get right back where you were just in case.

ok im up to step three dont know how to do nandroid backup or flash tutorial would be nice ...so i just down load the core download from here [CDMA] 08/11 1.1 - MoDaCo Custom ROM Core featuring Wavesecure - Android @ MoDaCo and ill wait for more info
 

Ukyo

Well-known member
Oct 13, 2009
96
0
0
Visit site
I can't get the device to connect... I'm always getting a device not found error, even though I have not mounted the storage...
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
ok im up to step three dont know how to do nandroid backup or flash tutorial would be nice ...so i just down load the core download from here [CDMA] 08/11 1.1 - MoDaCo Custom ROM Core featuring Wavesecure - Android @ MoDaCo and ill wait for more info

Download
http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-heroc-v1.2.3.img
and place it in your /AndroidSDK/tools directory.

Open the console in the AndroidSDK/tools dir and type:
adb push recovery-RA-heroc-v1.2.3.img /sdcard/
then type:
adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img


When it's all done type:
adb shell reboot recovery


The phone will reboot and you'll see the recovery screen. Use your trackball and select nandroid backup. Executeit by clicking the trackball.

Now Backup your sd card again. You can enable and disable mass storage right from the recovery screen. Make sure you disable mass storage when you're done.

Download [CDMA] 08/11 1.1 - MoDaCo Custom ROM Core featuring Wavesecure - Android @ MoDaCo

Just the base 1.1 recovery image. The wavesecure is not only flakey, it sends mms messages from overseas and they arent free :eek:

Now in recovery select to set up a fat32+ext+swap on your sd card. This will take a few seconds and IT WILL ERASE YOUR SD CARD!

Enable mass storage again and copy everything back to your sd card, as well as the mocado rom zip you downloaded. Disable mass storage.

From the recovery screen select Apply SD card:choose zip. Select the mocado zip you copied over. Wait a few minutes.

When it comes back, you will need to go to the market and uninstall/reinstall all of your apps, one at a time. this is because they have been all transferred to the sd card. Congrats.


If anything goes wrong - pull battery and replace. Hold home button, then press and release power button. You will boot into recovery. From there select restore nandroid backup and you will be right back where you started, apps and all.

Good luck!
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
I can't get the device to connect... I'm always getting a device not found error, even though I have not mounted the storage...

You will have to make sure the drivers are installed.

Download the driver ZIP file http://dl.google.com/android/android_usb_windows.zip
and unzip it.
Connect your Android device via USB. When the Found New Hardware Wizard appears, you'll be asked if you'd like Windows Update to search for software, select No, not this time and click Next.
Select Install from a list or specified location and click Next.
Select Search for the best driver in these locations. Browse and select the unzipped file.
Click Finish. You're all set.
 

702DROID

Well-known member
Nov 7, 2009
196
8
0
Visit site
Download
http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-heroc-v1.2.3.img
and place it in your /AndroidSDK/tools directory.

Open the console in the AndroidSDK/tools dir and type:
adb push recovery-RA-heroc-v1.2.3.img /sdcard/
then type:
adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img


When it's all done type:
adb shell reboot recovery


The phone will reboot and you'll see the recovery screen. Use your trackball and select nandroid backup. Executeit by clicking the trackball.

Now Backup your sd card again. You can enable and disable mass storage right from the recovery screen. Make sure you disable mass storage when you're done.

Download [CDMA] 08/11 1.1 - MoDaCo Custom ROM Core featuring Wavesecure - Android @ MoDaCo

Just the base 1.1 recovery image. The wavesecure is not only flakey, it sends mms messages from overseas and they arent free :eek:

Now in recovery select to set up a fat32+ext+swap on your sd card. This will take a few seconds and IT WILL ERASE YOUR SD CARD!

Enable mass storage again and copy everything back to your sd card, as well as the mocado rom zip you downloaded. Disable mass storage.

From the recovery screen select Apply SD card:choose zip. Select the mocado zip you copied over. Wait a few minutes.

When it comes back, you will need to go to the market and uninstall/reinstall all of your apps, one at a time. this is because they have been all transferred to the sd card. Congrats.


If anything goes wrong - pull battery and replace. Hold home button, then press and release power button. You will boot into recovery. From there select restore nandroid backup and you will be right back where you started, apps and all.

Good luck!



thanks for the step by step once again but when i get to adb shell reboot recovery the phone restarts but only brings me up a triangle with a ! in the middle of it and thats where im at now
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
1. try removing the sd card and issue the reboot recovery command
2. Try unplugging from the pc, shut down and reboot while holding home key.


When you tpyed in
adb push recovery-RA-heroc-v1.2.3.img /sdcard/
did you get any errors? Did it repeat the command and give you the # prompt?

Same with
adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img
 

702DROID

Well-known member
Nov 7, 2009
196
8
0
Visit site
1. try removing the sd card and issue the reboot recovery command
2. Try unplugging from the pc, shut down and reboot while holding home key.


When you tpyed in
adb push recovery-RA-heroc-v1.2.3.img /sdcard/
did you get any errors? Did it repeat the command and give you the # prompt?

Same with
adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img



ok when i did the push command it gave me 1698 kb's (3352576 bytes in 1.928s)
then when i did the shell flash it gave me error writing recovery permission denied
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
Try this -
Restart phone
Plug in to the pc
Open dos prompt in the androidSDK/tools dir
type in adb shell

If your dos prompt looks like $, type in su and see that it changes to #
when it says # type
cd /sdcard/
ls -a

if you get an error post it. You should get a list of everything in that directory. If there's no errors type:
flash_image recovery recovery-RA-heroc-v1.2.3.img

if you get an error post it. If not type
reboot recovery

If no error, proceed to backing up your phone and SD again. If you get an error, post it. Notice these commands are a little different than before.
 

702DROID

Well-known member
Nov 7, 2009
196
8
0
Visit site
Try this -
Restart phone
Plug in to the pc
Open dos prompt in the androidSDK/tools dir
type in adb shell

If your dos prompt looks like $, type in su and see that it changes to #
when it says # type
cd /sdcard/
ls -a

if you get an error post it. You should get a list of everything in that directory. If there's no errors type:
flash_image recovery recovery-RA-heroc-v1.2.3.img

if you get an error post it. If not type
reboot recovery

If no error, proceed to backing up your phone and SD again. If you get an error, post it. Notice these commands are a little different than before.

ok got to the flash_image recovery recovery-RA-heroc-v1.2.3.img and it gave me

mtd: read error at 0x00000000 (out of memory)
mtd: read error at 0x00020000 (out of memory)
mtd: read error at 0x00040000 (out of memory)
mtd: read error at 0x00060000 (out of memory)
mtd: read error at 0x00080000 (out of memory)
#
 

jbacdc

New member
Nov 8, 2009
2
0
0
Visit site
Did it work for your Eris?

So were you able to root your Eris following these steps?
Thanks.

Completely possible. I know it won't work on Cell South's Hero. When I go back into the office tomorrow I will be trying it on the Eris as well. For now, it's all speculation on my end.

It appears that the particualr stack bug could have been patched by HTC after the first run of devices.



Don't be sorry. What you will need to do is:
1. Have your phone set up the way you like it as far as apps etc go.
2. Back up your entire SD card somewhere.
3. Follow my instructions near the top to get root, and check as I described using a terminal app.
4. Then using adb push the RA recovery image to your sdcard.
5. adb shell flash_image on the recovery. This will reboot you to the RA recovery console.
6. Run a full nandroid backup
7. Run the fat32/swap/ext2 script from the recovery image.
8. DL mocado's rom
9. Extract and place on sd card
10. Boot into recovery and flash it.


I know all that looks scary. Go through up to step 3. Once you get there I'll either point you to a tutorial to flash the RA recovery, or walk you through it. Then we tackle the mocado rom.

The important steps - BACKUP YOUR SD CARD and RUN NANDROID BACKUP AS SOON AS ITS INSTALLED. That makes it easy to get right back where you were just in case.
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
ok got to the flash_image recovery recovery-RA-heroc-v1.2.3.img and it gave me

mtd: read error at 0x00000000 (out of memory)
mtd: read error at 0x00020000 (out of memory)
mtd: read error at 0x00040000 (out of memory)
mtd: read error at 0x00060000 (out of memory)
mtd: read error at 0x00080000 (out of memory)
#

Do you have a terminal app installed?

If so open it and type this in
su

cd /sdcard/

ls -a

And tell me the result. Sounds like the file didn't get moved or the file is corrupt.

So were you able to root your Eris following these steps?
Thanks.

No I wasn't. But today didn't turn out to be very productive on the fun stuff :) I only got to play with it for a little bit. I plan on trying again tomorrow, but I think out of the box this won't work for Eris. We'll see.
 

702DROID

Well-known member
Nov 7, 2009
196
8
0
Visit site
Do you have a terminal app installed?

If so open it and type this in
su

cd /sdcard/

ls -a

ok here is what i got

tfs4_160.ess
music
.footprints
albumthumbs
media
dcim
filestore
emailcache
.mail
others
$mmdevice.dat
rosie.scroll
.bookmark_thumb1
download
espeak-data
handcent
.ringtonetrimmer
com.handcent.nextsms-2.9.4.stack
.imusicdata
imusic
adobe
reware
tmp
agilefusion
recovery-RA-heroc-v1.2.3.img
#
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
OK. you need to disconnect, enable USB debug mode on the phone and reboot both the phone and your computer.

To Enable USB debug:
menu--->settings---->applications--->development--->check enable usb debugging.

We probably should have checked that first :p

After that, try it again.
 

702DROID

Well-known member
Nov 7, 2009
196
8
0
Visit site
OK. you need to disconnect, enable USB debug mode on the phone and reboot both the phone and your computer.

To Enable USB debug:
menu--->settings---->applications--->development--->check enable usb debugging.

We probably should have checked that first :p

After that, try it again.

debug is enabled i rest both the phone and my comp and now when i try to adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img i get error writing recovery permision denied
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
debug is enabled i rest both the phone and my comp and now when i try to adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img i get error writing recovery permision denied

Make sure you try su first. If you see $ instead of # it's not going to work
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
I'm completely out of ideas. Somewhere you're missing something, or you have a bad download. All I can say is

redownload the recovery image, copy it over onto your sd card
Plug the phone in, then open your console in the sdk dir and try adb shell.
If it shows root, try
flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img
if that errors try
su
cd /sdcard/
ls

look at the output. Make sure the part in bold matches what the name of your file is when you try this:
flash_image recovery recovery-RA-heroc-v1.2.3.img


And I stumbled across this -

YouTube - How To Root CDMA HTC Hero and install a custom recovery image

I'm not giving up on ya, but I'm out for the night. Good Luck!

*edit
One last thing. He doesn't mention it in the video, but pay attention to the prompt in your console.
_ means you're in dos
$ means you're in adb shell
# means you're root in adb shell

if you're already IN the adb shell, any command that starts with adb xxxxx you don't type. For example
adb push file.zip .......

would be:
push file.zip
 
Last edited:

702DROID

Well-known member
Nov 7, 2009
196
8
0
Visit site
I'm completely out of ideas. Somewhere you're missing something, or you have a bad download. All I can say is

redownload the recovery image, copy it over onto your sd card
Plug the phone in, then open your console in the sdk dir and try adb shell.
If it shows root, try
flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img
if that errors try
su
cd /sdcard/
ls

look at the output. Make sure the part in bold matches what the name of your file is when you try this:
flash_image recovery recovery-RA-heroc-v1.2.3.img


And I stumbled across this -

YouTube - How To Root CDMA HTC Hero and install a custom recovery image

I'm not giving up on ya, but I'm out for the night. Good Luck!

*edit
One last thing. He doesn't mention it in the video, but pay attention to the prompt in your console.
_ means you're in dos
$ means you're in adb shell
# means you're root in adb shell

if you're already IN the adb shell, any command that starts with adb xxxxx you don't type. For example
adb push file.zip .......

would be:
push file.zip

i got it finnaly but one more question do i have to download appstosd from the market(if so what one do you recomend) im not seeing it in the list of stuff on there i did get wifi tether woking already im doing this from my hero and laptop:D
 

Jerry Hildenbrand

Space Cowboy
Staff member
Oct 11, 2009
5,567
2,792
113
Visit site
i got it finnaly but one more question do i have to download appstosd from the market(if so what one do you recomend) im not seeing it in the list of stuff on there i did get wifi tether woking already im doing this from my hero and laptop:D

EXCELLENT.

For apps2sd I really recommend installing Mocado's 1.1 ROM. Some folks say apps2sd from the market worked, here it just ate sd cards like they were candy.

Have you installed mocados rom or partioned your sd card for apps2sd yet?
Be happy to help you with this last bit, just need to know where you are in the process so far.

If you are going to use mocado for apps2sd:
Reboot back into recovery
Preform a nandroid backup
Reboot phone
Plug in to pc and back up entire sd card again. It's gonna get wiped.
leave phone plugged in, reboot into recovery.
run the format sd card with fat32+swap+ext script from the recovery image.
When it's done, enable mass storage mode in recovery image and copy everything back to your sd card.
In the root folder of your sd card, copy the mocado 1.1 rom.
On phone, in recovery mode select to Apply SD card:choose zip
select the mocado 1.1 rom

When it's all done reboot. You will have to go to the market app and uninstall/reinstall each app one at a time to fix the links, as they are now on the sd card.

If at any time you get errors, you can boot into recovery and select to restore from your nandroid backup to get where you were.
 

Forum statistics

Threads
938,821
Messages
6,891,243
Members
3,156,410
Latest member
lucaspierref