[Hero CDMA Android Development] Hamspiced:
Alright,

A couple things to add to this guide, for the complete noob, as I can try to explain it a little more clear.

This should be done prior to doing anything within the guide.

First, connect your phone to your computer and mount your sd card. This can be done by connecting the usb cable, then on your phone, drop down the menu and chose, connect to p.c., Mount SD card. Make a folder and backup your entire sd card to this folder. Once done, delete everything off the card. if you don't, you will run into format and partitions errors later in the guide.

Eject the sd card on the computer, and end usb sharing on the phone. remove the USB cable from the computer.

Next, on the phone Go to Settings > Applications > Development>USB Debugging

Make sure that USB debugging is NOT CHECKED. If its checked later in the guide you will run into errors pushing the files onto the phone.

At this point you can start the guide from the beginning, under the main heading Root Hero [MAC]

I am running OSX 10.6.2 so i ran into a couple of issues.

Next. Under the part where you have to create the .bash file. This file should be saved in your user folder.

/Users/USERNAME where USERNAME is the name of your user account.

For instance my User account is Hamspiced so my user folder is:

/Users/Hamspiced/

when saving the file, uncheck "if no extension is provided, use .txt".

Next, I couldn't copy paste the code because it wasn't parsed properly. This is what i had to do.

And this should be a direct copy paste into terminal. If you don't know how to access terminal click the spyglass in the upper right hand of the screen, and type in terminal. then you should be able to directly copy paste this text.

cd /Applications/AndroidSDK/tools

./adb push asroot2 /data/local

./adb shell chmod 0755 /data/local/asroot2

./adb shell

/data/local/asroot2 /system/bin/sh

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

cd /system/bin

cat sh > su

chmod 4775 su

exit

exit

As stated you should have root access on the phone. you can verify this by downloading Terminal emulator from the Market, then running the app. Once inside the app if you hold Menu, you should bring up the onscreen keyboard. if you type in "su" (stands for super user) it will change the prompt from $ to #. If yours does not change, start over, something went wrong. If it did change then you can proceed to the next part of this guide.

Next the guide is trying to put the recovery Image to your phone. This doesnt restore your phone, it just puts the recovery portion to it, and it allows you to do all the cool things to your phone, like allow you to create backups, restore backups, and load customs roms.

again i ran into issues with parsing the correct format so these are copy pastes from terminal.

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

./adb shell

su

flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img

exit

exit

adb shell reboot recovery

If you get an access denied error pushing the recovery image, its because you had debugging turned on prior to connecting your phone to the computer. it must be off, then turned on once the phone is connected.

This will result in headaches, and endless google searching with no results.

Follow the rest of the guide regarding the Nandroid backup this backs up the entire phone settings. you want to save the raw phone backup as well as the backup after you load the rom. both are incredibly important!

Prepare SD Card for Apps2sd….

If when you checked Disk Utility and your SD card didnt partition properly follow these steps.

You must erase everything on your sd card for these steps to work. I ran into errors creating the partition. What i had to do was in the recovery mode chose factory recovery. when the phone restarted i had to go to Settings>Security>Factory Data Reset.

This restored EVERYTHING. THe phone, Sd Card, Etc. Everything was lost, however since in the begining, we made a backup of the SD card, and then we made a backup of our phone, we are fine.

Restart the phone in recovery mode once this finishes and restarts. (Hold Home and Power to turn on)

Next chose Part SD: fat32+ext2+swap this will partition the card properly. Then choose restart phone.

Once the phone restarts, we have to go through the normal steps that we did once we first received the phone for its first bootup. connect it to the computer, transfer over the Nandroid backup that should be saved from the first time you saved it on your phone. then restart the phone again in recovery mode.

Now you need to restore the nandroid backup. since you transferred it over, its the only nandroid backup there is, it will restore the phones origional settings. from here you can load the official MoDaCO rom fine on the SD card that is now formatted properly.

These are about all the issues and resolutions i ran into. Hopefully it helps someone else.