yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] dametzg:
When I try to flash the recovery rom, I get the following:

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

mtd: erase failure at 0x00000000 (I/O error)

mtd: erase failure at 0x00000000 (I/O error)

mtd: skipping write block at 0x00000000

mtd: erase failure at 0x00000000 (I/O error)

mtd: erase failure at 0x00000000 (I/O error)

mtd: skipping write block at 0x00000000

Anyone know what could be going on there? I don't see anyone else in the thread with that error. I tried rebooting everything and it still does the same thing.
[Hero CDMA Android Development] VoXHTC:
Reboot both you phone and your comp and it should be fixed. I had to same thing happen to me. No worries. Even though I was when I saw this message.. lol
[Hero CDMA Android Development] aaron130:
I am rooted I believe and I just did this part cuz I was stuck at flashing the recovery image and this is what i got. I this ok? (Im new to android)

mtd:skipping write block at 0x00180000 but I kept getting (out of memory) Do i need to install a bigger sd card??
[Hero CDMA Android Development] dametzg:
I rebooted both and it still keeps giving me that same error. Any other suggestions?
[Hero CDMA Android Development] aaron130:
I checked my sd card and the recovery image is there but after I flashewd it kept going through all these #s followed by(out of memory), Is this ok? and then when I rebooted my phone and pressed home I was at the boot screen but didnt see a recovery mode.
[Hero CDMA Android Development] dametzg:
Did you already try rebooting your phone and computer, and then trying to flash again? I guess that worked for a few others.
[Hero CDMA Android Development] dametzg:
Ok, I booted my phone into recovery mode and it lists things like Nandroid v2.2 backup and Nandroid v2.2 restore, along with other stuff. Does that mean it actually did work even though I got those "mtd: erase failure at 0x00000000 (I/O error)" messages?
[Hero CDMA Android Development] aaron130:
When I boot my phone I dont get those options. Im in boot mode and It basically says erase data? How do u know if your actually rooted? Should I try rooting again maybe?
[Hero CDMA Android Development] QuiQNeZZ:
In the Market, download a terminal. I recommend Terminal Emulator. Open it, click and hold menu until OSK comes up. Type in su, and see if $ changes to #. If so, congrats. You're root. Close the term app. If not, you did something wrong. Start over.
[Hero CDMA Android Development] QuiQNeZZ:
Yes, that's the recovery image file. Make a backup first before you do anything in case you mess anything up from here moving forward you can just restore back to that.
[Hero CDMA Android Development] Treefallingquietly:
I downloaded the SDK from the link on the first post, extracted to its folder. There isn't a USB_Driver directory in there. What am I missing?

The only thing in the x86 directory is swt.jar
[Hero CDMA Android Development] Orangeandblue302:
x3..if you get the (out of memory) a reboot will help.

Also you can flash through terminal (better terminal is what i used) which i found much easier.
[Hero CDMA Android Development] aaron130:
Thanks im gonna try it. Everything seemed to work but when i try to flash the recovery I reboot pressing home and theres a few options about clearing space but I cant even move the curser. I have to take the battery out and reboot regular. When U flash that revovery what happens? I hit enter and nothing happened, It just said what I had typed.
[Hero CDMA Android Development] aaron130:
Ok I downloaded that app and pressed menu till the keyboard came up, put in su and pressed enter and the # symbol replaced the $, so Im root right? Now can someone help me flash Modacos new CDMA Rom? What do I do? Im so used to flashing windows roms, I have nooo clue about android.
[Hero CDMA Android Development] thecodemonk:
The thread for modaco's CDMA ROM should tell you the steps needed (for some reason xda takes forever to load each page for me)
[Hero CDMA Android Development] Bradart:
after i did all these steps, when it rebooted i got a cavalcade of force quits immediately and now my radio isn't turning on. Any ideas?
[Hero CDMA Android Development] aaron130:
I am Rooted I checked but I cant for the life of me boot in recovery mode. HELP PLEaSE!!! When I hold home and press power it powers up then goes to a blank screen. When I hold power and home it goes to what looks like boot loader but all it says is CLEARSTORAGE

Delete all user data?

<ACTION> Yes

<SEND> No

Can someone help??
[Hero CDMA Android Development] thecodemonk:
I'm starting to think it's most hero's that do this.

What I did was volume Down+power button...then from that menu I hit the home button (it says recovery)
[Hero CDMA Android Development] ElAguila:
I very new to android so forgive my "newbishness". I have a question about starting this thing. I am running windows 7 x64. When I got my phone I installed the htc sync software. I had to manully install the adb driver. When I connect my phone to the usb, it doesn't search for the driver so I am assuming that I am okay on the windows driver part. When I connect the phone, do I need to mount the sd card so it is read as a usb drive or just leave alone like I would if I was going to sync it? What size does the sd card needs to be in order to peform a nandroid backup? Does the card need to be blank. Sorry for all of the questions but I just got my sd card filled with my multimedia and documents and I don't want to lose that. I have another card if I have to put it in I can. Thanks for the help. I would like to get this rooted and nuke the sprint crapware. Definitely not like unlocking my winmo phones.;)
[Hero CDMA Android Development] Orangeandblue302:
did you turn on ADB debugging?

you have to format your card to fat32 so all data will be erased, either save it to your pc an/or use the other card if you are able to format it.
[Hero CDMA Android Development] thecodemonk:
1.) You can use "adb push" to put things on without mounting...or if you're more of a GUI guy, you can mount it and drag-and-drop.

2.) The SD card that came with it should be fine so long as it's not completely full (it's got to hold the nandroid backup and temporarily be able to hold the recovery image).

3.) You shouldn't have to worry about losing things on your SD card (just don't click any of the "Wipe SD" options when booted into recovery mode).

Orange, I didn't have to format the sdcard...are you talking about it needing to be done for apps2sd?
[Hero CDMA Android Development] ElAguila:
Where do you enable adb debug. If it is the same thing as debug mode when usb is connected then yes I have that checked. I have an empty 8GB card that I can use that is already formatted with fat32. I am only looking to root it for now and get rid of crapware. I am not looking to prep it for apps2sd yet.
[Hero CDMA Android Development] Orangeandblue302:
yep, should have mentioned that. I kind of assumed he was going to be using apps2sd but you know what they say about assuming...
[Hero CDMA Android Development] Orangeandblue302:
go to applications < development < check enable. you probably have it set up.

i made the mistake of not checking it in the beginning and was getting frustrated. Something so simple that i missed lol.
[Hero CDMA Android Development] ElAguila:
Thanks for the info. Sorry I mentioned things piecemeal. I will give this a try when I get home tomorrow.
[Hero CDMA Android Development] Nanan00:
A pic is worth 1000 words so they say, so well heres 3k words worth of confusion.

Help?
[Hero CDMA Android Development] thecodemonk:
No sweat...sounds like you're ready either way. The 8GB is more than enough (I loaded the images and got my nandroid backup all on the 2GB card that came with the phone...and I didn't even wipe any of the default stuff off of there!)
[Hero CDMA Android Development] thecodemonk:
Did you double check the output of adb devices? My phone doesn't hook up unless I hit the "HTC Sync" button on it...

Alternatively, if you just mount the sdcard, you can just drag and drop the file onto the sdcard. ;)
[Hero CDMA Android Development] thacounty:
Same problem, any info?
[Hero CDMA Android Development] Nanan00:
I put the .img onto the sd card root / and this is the result of trying to run the flash.
[Hero CDMA Android Development] thecodemonk:
Try the following:

adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.2.3.img
[Hero CDMA Android Development] Nanan00:
Um well it didn't give me an error but then again it seems like nothing happened.

In a bout of frustration I rebooted both my computer and phone, guess what, it worked right off...
[Hero CDMA Android Development] thecodemonk:
No error should mean it worked (I'm afraid I'm going off of head knowledge at this point...I flashed the rom using flashrec: http://zenthought.org/content/project/flashrec )
[Hero CDMA Android Development] Orangeandblue302:
do you have the directory open that you saved your recovery image to? I didnt have that error that you are getting but i had a different one until i opened the directory. hope that helps.

are you saving the .img to your SD and skipping placing the recovery image file in your SDK tools?
[Hero CDMA Android Development] killabee44:
I also ran into problems and was able to finish with the above quote. Thanks chuckriczko for all your help. Much appreciated!
[Hero CDMA Android Development] aaron130:
Ok I found how to boot in recovery,thx to the guy a few pages back, press volume down and power, then home for recovery. But when i do this it stays stuck on the HTC screen. Also I dont see ANYWHERE where to nandroid backup. Help anyone PLEASE???
[Hero CDMA Android Development] forty01:
You're Nandroid Back Up is once you get into the Flash Recovery Mode. You will then have many various options and Nandroid BackUp and Recover is there. I haven't tried going in that route. I used my laptop, command module, and typed reboot recovery in SU or if you are seeing the # in the command module/equivalent to DOS :) Good Luck.
[Hero CDMA Android Development] aaron130:
I cant get in recovery to save my life!! Someone PLEASE help?? I KNOW i am rooted, I took this screen shot and u cant do it without being rootedThe only way I can even FIND recovery is pressing Vol down and power, not home and power. And when I boot in recovery it just stays on the HTC screen and does nothing. Any help??
[Hero CDMA Android Development] thacounty:
Thanks to all. I finally got it! You guys are incredible!!
[Hero CDMA Android Development] brian2220:
i am having a hard time rooting my sprint htc hero

the stuff that ajones7279 posted is not enough from me as i have only had a mac and android phone a few weeks and don't know very much

i would be grateful if some one could give me detailed info on how to root my hero on a mac

thank you :)
[Hero CDMA Android Development] aaron130:
OK I need SERIOUS help!! Ive got my phone rooted,no problem. B ut the booting in recovery IS NOT working no matter what I try. I press volume dome and power and then home for recovery and all it does is either stays on the HTC Screen or shows the HTC sreen for a minute then just shuts off. Can someone PLEASE help me! Ive already got the screenshot app working so I KNOW Im rooted and it worked fine but I cant for the life of me get to the screen where it shows nandroid backup and all that stuff no matter what I do!! PLEASEEE HELP this is driving me insane!!! Im losing hair by the second over here!! LOL
[Hero CDMA Android Development] ajones7279:
Boot normally and try to reflash the recovery image.
[Hero CDMA Android Development] Merckle:
Ok I followed the steps. But when I went to do the recovery img. I got a Phone and a Yellow triangle?

Anything>
[Hero CDMA Android Development] aaron130:
I actually have about 5 times now,lol. the SAME THING keeps happening, Im about ready to PAY someone to fix this for me thats how bad its driving me nuts,lol. And Ill be up till I get this working thats how I am, I see a few days being awake in my near future. Lol
[Hero CDMA Android Development] ajones7279:
Sounds like you still have the stock recovery image on there. Try to reflash the custom one. http://rapidshare.com/files/303797523/recovery-RA-heroc-v1.2.3.img

Hmmm...well are you sure you're flashing the right one? I only had the hanging problem when I tried to flash the recovery from the GSM Hero. Try it again, with the link I posted. If that doesn't work, Idk.
[Hero CDMA Android Development] Treefallingquietly:
The SDK I downloaded from the link does not have this directory. Do I have to use the SDKsetup and download a module?

EDIT: btw, I downloaded the windows SDK. I am wondering if the folder exists in the mac/linux SDKs only?
[Hero CDMA Android Development] flipzmode:
Everything worked great for me. I had rooted a couple of days ago and now have the recovery partition on there and working fine. Thanks a lot.

I have my nandroid backup... now it's time to have some fun. :)
[Hero CDMA Android Development] pazignac:
I cannot get my device to connect PLEASE Help I have extracted all files and I cannot for the life of me find the .inf file for the drivers. When I run adb it just says damon cannot connect please help I am running 32 bit windows 7
[Hero CDMA Android Development] sknnypete:
after﻿ i type in "chmod 0755 /data/local/asroot2"

i got permission denied is that right?
[Hero CDMA Android Development] Treefallingquietly:
Well well well.

After poking around I went back the SDK link and right below the tools package is a separate Windows usb drivers module

http://developer.android.com/sdk/win-usb.html

I am guessing we need this for windows machines.
[Hero CDMA Android Development] tstack77:
error: device not found

I already installed the correct driver when I first got the hero so I could mount the sd card. So I simply skipped trying to install the driver in the sdk, but now I'm getting an error that the 'device not found'

The phone is mounted and I can explore the sd card without issue. What am I missing?

C:\hero\android-sdk-windows\tools>adb push c:/hero/asroot2/asroot2 /data/local/

adb server is out of date. killing...

* daemon started successfully *

error: device not found

EDIT: Figured it out, on your phone, click Settings > Applications > Development and make sure USB Debugging is on. Then do NOT mount the sd card, just plug the ****er in.
[Hero CDMA Android Development] a2k:
:-( I'm having the exact same issue!
[Hero CDMA Android Development] jealous cow:
Same phone, same problem.

I hope we get some movement on the Eris soon.
[Hero CDMA Android Development] goku14238:
Did you run the CMD promt with admin rights?
[Hero CDMA Android Development] johnsongrantr:
settings>application settings>Development>USB debugging

check box.

unplug/plugin usb

try agian
[Hero CDMA Android Development] a2k:
THANK YOU! THANK YOU! THANK YOU! THAT DID IT!!!!!! ...I'll stop shouting now
[Hero CDMA Android Development] azntiger:
So, I found QuiQNeZZ's instructions (HERE) allowed me to get the furthest in my effort to root, but the last step I'm having an issue.

Concerning the last step "chmod 4755 su" the command prompt should close, however, it did not for me. I just keep getting # on the next line.

Thank you so much!

C:\android-sdk-windows-1.1_r1\tools>adb push asroot2 /data/local/
* daemon not running. starting it now *
* daemon started successfully *
782 KB/s (74512 bytes in 0.093s)

C:\android-sdk-windows-1.1_r1\tools>
C:\android-sdk-windows-1.1_r1\tools>adb shell chmod 0755 /data/local/asroot2

C:\android-sdk-windows-1.1_r1\tools>adb shell
$ /data/local/asroot2 /system/bin/sh
/data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/6572/fd/3
SUCCESS: Enjoy the shell.
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/bin
cd /system/bin
# cat sh > su
cat sh > su
# chmod 4755 su
chmod 4755 su
[Hero CDMA Android Development] Orangeandblue302:
if you didnt get an error you should be ok to proceed with the recovery image step, you just have to exit out to get back to shell.
[Hero CDMA Android Development] johnsongrantr:
# = root

to make sure you have root.... reboot the phone, then adb shell into your phone agian it should be

"$" = user

then if you type in "su" = substitute user it should come back with # = root

$ su
# pwned
command not found
#

congrats.. you has u some root
[Hero CDMA Android Development] bklynfire:
My phone is rooted, I am trying to create a new folder on my phone, but I am getting the following error

"create new folder failed"

any ideas???
[Hero CDMA Android Development] johnsongrantr:
have to remount your file system as read/write,

$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# mkdir hellollo
mkdir hellollo
#

protip- having to mount your filesystem everytime you want to get into your phone and make a changes is for your own protection
[Hero CDMA Android Development] Merckle:
ok so when I do this.

the first step here after I press enter i get.

1700 k/bs <3352576 bytes in 1.96 sec>

then when I put in the next code

D:\android-sdk-windows-1.1_r1\tools>adb shell

$ su

su

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

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

adb: not found

#

Anythoughts?
[Hero CDMA Android Development] bklynfire:
I tried that and it told "read-only file system"

do I have to type everything twice?
[Hero CDMA Android Development] johnsongrantr:
nope the twice was me showing the echo... echo= confirms a command went through successfully or came back with error

ignore the $ and # as in don't type those....

after mount blah blah blah does it just repeat the command or come back with an error?
[Hero CDMA Android Development] bklynfire:
I just get a new line starting #, with nothing after that, see example:

C:\Cdma Root\android-sdk-windows\tools>adb shell

$ su

su

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

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

# mkdir hebrew

mkdir hebrew

mkdir failed for hebrew, Read-only file system

#
[Hero CDMA Android Development] johnsongrantr:
i hate using adb for anything other than accessing the shell

connect phone via usb

mount sd card on your phone

copy recovery image to whatever drive pops up in windows

unmount sd card on your phone (pull down status bar and tap usb thingy)

get to adb directory and type in

adb shell

in shell type su to get to root

assure you have root "#" then type this in exactly

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

it shouldn't say anything back if i remember correctly, if it says error is where something is fubar

reboot your phone (hold down vol down then press home to get to custom recovery)
[Hero CDMA Android Development] johnsongrantr:
your echo is off... errors=bad nothing=good

check it.... type "ls" for a directory listing see if whatever you typed is there

to change directory type "cd hellollo"

this is basic linux stuff for any further info go here and get your learn on

http://ss64.com/bash/
[Hero CDMA Android Development] sknnypete:
Thanks alot guys for your help specially Goku with his step by step guide... well now that im done... im ready for a Rom... what are the steps for flashing ROMS?
[Hero CDMA Android Development] thecodemonk:
There should be a quick step by step on the MoDaCo ROM thread...it's basically "load rom zip file onto sd card, rename it "update.zip", boot into recovery, update from update.zip...???...profit!
[Hero CDMA Android Development] Merckle:
THANK YOU VERY MUCH!!!

Making a Nandroid back up now :)

So it is safe to Load mocado rom now right?
[Hero CDMA Android Development] johnsongrantr:
i think it's even simplier

download rom to sd card

reboot to custom recovery

select "choose.zip"

select .zip file and flash it to your phone

reboot
[Hero CDMA Android Development] sknnypete:
I got it to work... when I go to about my phone it doesnt tell me what rom version im using
[Hero CDMA Android Development] johnsongrantr:
with 1.2 yes

for added bonus change your sd card partition to "sdpart:fat32,ext2,cache"

****DO ANOTHER NANDROID BACKUP*****

****THEN BACKUP YOUR BACKUP********

then flash update.zip ;)
[Hero CDMA Android Development] Merckle:
1.2 ?

thought mocado was only at 1.1

Ok it sayd I copyed all the files over and I rebooted. Is that all?
[Hero CDMA Android Development] killabee44:
Guys,

Is there a detailed Ubuntu guide for rooting and removing stock apps from the Sprint Hero? The one in this thread does not really go into detail for newbies. Thanks.
[Hero CDMA Android Development] goku14238:
Your welcome, I cant take full credit though.. I looked through these forums all night trying to root my phone when it was first figured out.. I just tried to put it all in one place so the average user doesnt spend a lot of time looking, hence the video :)
[Hero CDMA Android Development] simplyphp:
I just have to say, if we could edit that first post to reflect the problems/solutions people have found in these last 12 pages... that would be great. Unfortunately I had to go through the first 2 pages encountering the same problems as everyone else, but it all worked out in the end as I followed the paper trail to the solution.
[Hero CDMA Android Development] 2DAdIME:
Chuck,

Thanks for taking your time on doing the step by step with Rock cause that helped me alot, for a couple of hours I've been trying to get the img to load and it wasn't working. after following the step by step that you gave rock found that the instruction was missing CD /SDCARD/ thats why it wouldn't load the img file...

once again thanks....FORUMS ROCK!
[Hero CDMA Android Development] 2DAdIME:
Newbie here so now that I got a rom on my sprint htc hero what can I do to?

Does it mean that I can load a bunch of themes? What is rom anyway..lol sorry I know is a stupid??
[Hero CDMA Android Development] aaron130:
Can someone with a sprint hero PLEASE post the recovery image they used and instructions how they booted in recovery,im rooted but i cant for the life of me do this lsst part,i just get the htc screen or the phone shuts off and i have to pull the battery. Its driving me nuts. Thx alot!!!
[Hero CDMA Android Development] simplyphp:
When you're in the android_sdk/tools directory, type this:

adb shell reboot recovery

Or I believe you can also get to the recovery screen by pressing and holding the home button and power button at the same time.
[Hero CDMA Android Development] simplyphp:
Not so much about the themes, its more about opening up full root access to your phone. What that basically means, is you can install whatever you want and remove whatever you want. You also gain access to hardware settings like the cpu speed (though it appears 528MHz is the kernel limit). And you can install applications on your SD Card.
[Hero CDMA Android Development] thecodemonk:
http://xdaforums.com/showthread.php?t=581521

That's the recovery image I used. :)

The way I got into the recovery image after flashing, was holding Volume Down+Power button and then hitting the home button when the menu pops up.
[Hero CDMA Android Development] 2DAdIME:
Nice! So does this mean that I can remove the sprint tv, nascar tv and all the other crap that sprint has set up on my phone...
[Hero CDMA Android Development] stvcsk:
This restarted my phone, quickly went to the HTC splash screen, then shut off. The only way to power it back on was to pull the battery.

For the hardware option, when are you guys pressing these key combos? No matter what combination or when I press them (home screen, asleep, etc.) NOTHING happens. The image flash echoed so I assume it was done correctly, and I know I have root, so what's the deal!?

Thanks for any help.

[edit]

OK... just pressed down vol- while powering on, and got to the white screen, where it said to press home for recovery. Pressed home, and now it hangs on the HTC splash.

Suggestions??!
[Hero CDMA Android Development] Thomas1218:
Yes it does! Just be careful what you remove so it doesnt screw up Sense. I'd check here. http://xdaforums.com/showthread.php?t=581976 They have a list there of ones that are tested good to remove and wont screw with anything.