yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] erasmogjr:
Ran into the memory problem, but I have root now.

I didnt do anything to the sdcard or the device memory, all I did was hit phone+power+menu to do the reboot then did the commands to flash the recovery image and now I am running my nandroid backup.

I love the recovery menu also much better than the recovery menu on my rooted G1, but missing the recovery shell. Is there a way to get into the shell from the recovery menu or is adb the only way in.

edit: nevermind about the recovery shell just realized you cant have a software keyboard in the recovery shell :(
[Hero CDMA Android Development] ajones7279:
Um, what exactly is the problem because that is pretty thorough. What are you having a hard time with?
[Hero CDMA Android Development] theraginasian:
Perfect!

Followed step by step, worked PERFECTLY! Thank you very much for this, I couldn't STAND the incomplete backup solutions offered on the Market, and Nascar and NFL are complete garbage taking up space! Not to mention, this is just too much fun not to try!
[Hero CDMA Android Development] ersocia:
ok i am officially frustrated.

I went back to the beginning to start over.

did a hard reset first just in case (I don't keep anything all that important on my phone anyway.)

I went through all the steps again, double checking everything, and got through to the end with no problems.

until that very last step.. typing "reboot recovery" in the adb shell. I did so, and the phone started to reboot.. but, as with my original attempt, it got to the very first "HTC" screen, and after about a millisecond there, the phone shutdown completely. no charging light, and unable to boot it back up without removing and reinserting the battery.

any ideas/suggestions? please?
[Hero CDMA Android Development] johnsongrantr:
reflash your custom recovery.... sounds like the transfer went bad... (don't worry it's a seperate image on your phone).... it should still boot normally

try going into recovery indirectly (power+vol down) then press menu to "enter recovery" if it dies on you agian you know that's your problem.... make sure you haeve HEROC version of custom.... HERO will not work the C stands for CDMA
[Hero CDMA Android Development] ersocia:
I do have heroC, just to clarify.

I managed to get to the recovery screen via vol.up+power, and when it comes up, the following scrolls quickly down the screen:

SD Checking...

Loading... [HERCDIAG.zip]

No image!

Loading... [HERCDIA3.nbh]

No image or wrong image!

Loading... [HERCDIA2.nbh]

No image or wrong image!

Loading... [HERCDIAG.nbh]

No image or wrong image!

Loading... [HERCIMG.zip]

No image!

Loading... [HERCIMG.nbh]

No image or wrong image!

It then sits at the same screen waiting for me to do something.

Mean anything to anyone?

I'll try reflashing the image, but I have a feeling that won't do the trick.

Any other ideas? (by the way, john, thanks for the help so far. same to anyone else who can contribute.)
[Hero CDMA Android Development] ajones7279:
That's not recovery. That's Fastboot. To boot into recovery you hold down home while turning the device on, and continue to hold home until the recovery menu comes up (you can let go of the power key).
[Hero CDMA Android Development] thecodemonk:
Or for those of us that the combo above doesn't work for us...volume down+power and then home from that menu.
[Hero CDMA Android Development] ersocia:
In any case, fellas, still no luck. I keep getting to the first HTC bootup screen and then it does the crazy shutdown, making the phone unusable until I pull out and put on the battery.

Even tried reflashing the custom recovery.

Something is borked. Maybe when I get internet access from my lappy ill try redownloading the recovery image.

Until then; are we all out of ideas?
[Hero CDMA Android Development] coquipr79:
hey guys . First time mac and android user. Love both but i cant for the life of me figure out the instructions. How do i type the commands and the other stuff. I would really love to root my Sprint Hero but i would really appreciate any help. Maybe a small totally newbie help guide. Please and thanks!!
[Hero CDMA Android Development] jophus0124:
CDMA (Sprint) Hero Root

I'm not really interested in changing my Hero's ROM I love the way it works and looks, But what i'm really interested in is adding the Tethering feature on it if I root it by following these instructions will I be able to install this app on it if not, then there's no reason for me rooting it or even risking if I brick it.. Thanks for your time, any feedback will be appreciated.
[Hero CDMA Android Development] thecodemonk:
MoDaCo's ROM doesn't change how it looks and feels and works...it just adds programs and sets things up so that programs that require root are more likely to work (configs and such are updated)
[Hero CDMA Android Development] Negrito:
They said you are doing it wrong. You are using "FASTBOOT" not RECOVERY.

Pretty sure this is a noob guide. If you arent familiar with Terminal than i would NOT suggest rooting.

So far as i know the only way to get tethering, IS by flashing the ROM.
[Hero CDMA Android Development] ajones7279:
Flashing the rom won't hurt and doesn't change the look at all. When we rooted and tried WiFi-Tether before flashing the rom, it didn't work the way it should. After flashing it works great.
[Hero CDMA Android Development] izzystylez:
i think mods should sticky this thread for our mac users and future mac users with questions
[Hero CDMA Android Development] ersocia:
actually, in case you didn't read through the whole conversation, i tried both. fastboot actually gave me a screen to look at and work with, even though it wasn't what i was looking for. and i did try to get to recovery, but like i said a few times now, everytime i try to do so, i get to the first htc boot up screen, it hangs for a millisecond, and then it shuts off and i can't turn it back on until i pull and reinsert the battery.
[Hero CDMA Android Development] theresthatguy:
USB debugging needs to be off when the device is initially plugged in. Afterwards, re-enable USB debugging.

A simple reboot of the phone will suffice. This is a common error if you try flash without rebooting first.
[Hero CDMA Android Development] BigBallin:
the link for ghost doesnt work anymore...(not your link..the dl link on the page you listed)
[Hero CDMA Android Development] BigBallin:
this is what im getting..i really jacked something

Last login: Sat Jul 4 10:29:17 on console

/Users/kgirouex/Documents/android/sdk\ /tools/android ; exit;

Laptop-3:~ kgirouex$ /Users/kgirouex/Documents/android/sdk\ /tools/android ; exit;

Starting Android SDK and AVD Manager

No command line parameters provided, launching UI.

See 'android --help' for operations from the command line.
[Hero CDMA Android Development] ajones7279:
Link updated.
[Hero CDMA Android Development] BigBallin:
here is what i did..i unzipped the file..it gave me a folder name adroid sdk.i renamed is sdk and put it in users/kgirouex/documents/android

so inside the android file is the sdk file i renamed.. in the bash file this is what it says export PATH=${PATH}:/users/kgirouex/documents/android/Sdk/tools

and when i do the terminal this is what is says

Last login: Sat Jul 4 10:29:17 on console

Laptop-3:~ kgirouex$ /Users/kgirouex/Documents/adroid/sdk/tools/android ; exit;

Starting Android SDK and AVD Manager

No command line parameters provided, launching UI.

See 'android --help' for operations from the command line.

this is all the farther i get doesnt seem i can connect my phone or im doin it all wrong
[Hero CDMA Android Development] ajones7279:
What command are you putting in terminal?

Edit: Nevermind. It looks like you tried to run the android tool. You don't have to do that. Just follow the steps posted. Did you download asroot2 and put it in the sdk/tools folder already? If so, go to terminal and type in:

cd /Users/kgirouex/Documents/android/sdk/tools/

./adb push asroot2 /data/local/

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

./adb shell

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

Then go to step 4.
[Hero CDMA Android Development] BigBallin:
thanks. i will try later when i get off of work :)
[Hero CDMA Android Development] Negrito:
My apologies i re-read the post and i see where it was implied.

As for your problem, im going to say your recovery image is either incorrect, or corrupt. I know you said you dont have internet access(ill assume you mean for the laptop).If you want I can email the recovery image i used, as mine went flawless, just shoot me a pm with your email addy.
[Hero CDMA Android Development] weyasey:
Don't work for me I get this error when I run adb shell /data/local/asroot2 /system/bin/sh

[1] Killed /data/local/asro...

Any idea what I'm doing wrong or is it because of the T-Mobile ROM which is the latest updated version for the Hero G2, all help appreciated.
[Hero CDMA Android Development] ajones7279:
This is for the Sprint CDMA Hero...
[Hero CDMA Android Development] weyasey:
I know but I'm not using the ROM for the Sprint, I am just trying to root the phone using the asroot2 and I have the right recovery.img for the T-Mobile Hero.

Have to admit that the phone is a G2 Hero, any pointers or instructions/help on rooting it would be welcomed :)
[Hero CDMA Android Development] ajones7279:
The CDMA Hero doesn't use the same exploit to root as the GSM Hero. You may be able to find it under the Hero Development forum.

Or here. http://theunlockr.com/category/howto/android_how_tos/htc-hero-g2-android_how_tos-howto/
[Hero CDMA Android Development] scirio:
Mb = megabit

MB = megabyte

GB = gigabyte

You meant GB.
[Hero CDMA Android Development] droid51378:
ok, I get to

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

and then what do I do next? Do I just go straight to step 4? If so I type that in and nothing happens. I am new to this so please keep the flames to a min.

Thanks for the help
[Hero CDMA Android Development] ajones7279:
Once you do that, you should see:

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

[+] Using newer pipe_inode_info layout

Opening: /proc/857/fd/3

SUCCESS: Enjoy the shell.

Correct?

If not, something wasn't done right. If you see that, move on the step 4. Type those 4 lines (hitting return after each one of course) and you should be good.
[Hero CDMA Android Development] viciouz:
Problem with Pushing

Ok so i succesfully root the phone (or at least I think I did... I am not sure what to expect after step 4) but I am unable to do the "adb push recovery-RA-heroc-v1.5.2.img /sdcard" command. It always says "adb: Command Not Found"

Help please. I am new to doing this on a mac.

Edit: Btw I am using the most recent recovery-RA-heroc-v1.5.2.img also which I just dl'd.
[Hero CDMA Android Development] viciouz:
Oh 1 more thing... at what point do I need to attempt to "Sync" the phone with the mac? Do I need to mount it or just run HTC Sync and leave it alone after that?
[Hero CDMA Android Development] thewinelover:
So, I just successfully rooted my phone. Question now is, where do I get Nandroid? I went to the Market and nothing. Googled it but don't seen where the program itself is aside from being included with a custom ROM which I'm not sure I want just yet. Like Negrito, I just want to abolish this damned Sprint bloatware!

Suggestions? :rolleyes:
[Hero CDMA Android Development] eskwire:
i'm having the same issue. what are we missing?
[Hero CDMA Android Development] Zerazac:
I'm stuck on the same part as you guys. I hope someone can help. I'm using v1.5.1 but Im assuming it doesnt matter since you are using v.1.5.2 and getting the same issue.

SUCCESS: Enjoy the shell.

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

# cd /system/bin

# cat sh > su

# chmod 4775 su

# exit

$ adb push recovery-RA-heroc-v1.5.1.img /sdcard/

adb: permission denied

$ exit

julian-azarezs-macbook-2:tools JulianJackson$ adb push recovery-RA-heroc-v1.5.1-img /sdcard/-bash: adb: command not found

julian-azarezs-macbook-2:tools JulianJackson$ cd ~/documents/android/tools

julian-azarezs-macbook-2:tools JulianJackson$ adb push recovery-RA-heroc-v1.5.1-img /sdcard/

-bash: adb: command not found

julian-azarezs-macbook-2:tools JulianJackson$ adb push recovery-RA-heroc-v1.5.1-img/sdcard/

-bash: adb: command not found

julian-azarezs-macbook-2:tools JulianJackson$ adb push recovery-RA-heroc-v1.5.1-img /sdcard/

-bash: adb: command not found

julian-azarezs-macbook-2:tools JulianJackson$ su

Password:

su: Sorry

julian-azarezs-macbook-2:tools JulianJackson$ su

Password:

su: Sorry

julian-azarezs-macbook-2:tools JulianJackson$ su

Password:

su: Sorry

julian-azarezs-macbook-2:tools JulianJackson$ su

Password:

su: Sorry

julian-azarezs-macbook-2:tools JulianJackson$ ./adb shell

$ su

# adb push recovery-RA-heroc-v1.5.1.img /sdcard/

adb: not found

# flash_image /sdcard/recovery-RA-heroc-v.1.5.1.img

usage: flash_image partition file.img

# flash_image /sdcard/recovery-RA-heroc-v.1.5.1.img

usage: flash_image partition file.img

# adb shell reboot

adb: not found

# adb shell reboot recovery

adb: not found

# adb shell reboot

adb: not found

# adb push recovery-RA-heroc-v1.5.1.img /sdcard/

adb: not found

# exit

$ exit

julian-azarezs-macbook-2:tools JulianJackson$ adb push recovery-RA-heroc-v1.5.1-img /sdcard/

-bash: adb: command not found

julian-azarezs-macbook-2:tools JulianJackson$ adb push recovery-RA-heroc-v1.5.1-img /sdcard/

-bash: adb: command not found

julian-azarezs-macbook-2:tools JulianJackson$ ./adb shell

$ julian-azarezs-macbook-2:tools JulianJackson$
[Hero CDMA Android Development] 5tr4t4:
adb not found

Your problem is adb, both its location and (I suspect) it's executable permissions. It's looks like you were able to navigate into the "tools" folder. From within the "tools" folder (where adb is located) do this:

chmod a+x adb

This will give "adb" executable permissions.

Then copy "recovery-RA-heroc-v1.5.1.img" (or why not just do 1.5.2 at this point?) into the "tools" folder so it's in the same place as adb. Then with your phone connected via USB do:

./adb push NAME_OF_RECOVERY_IMAGE /sdcard/

So for example, with the 1.5.1 image you have been using:

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

The "./" part runs the program from the directory your are in. If you want to be able to type "adb" from any folder see the directions in the first post of this thread labeled "Now, this part is completely optional".

Also, the "su" command should be run only when you are logged into your phone (only after you type "./adb shell"). The command prompt will change to a "#" when this is true.
[Hero CDMA Android Development] Zerazac:
Thanks 5tr4t4,

I tried that and this is what i got (with my phone plugged in). The follow disk image failed to mount. Reason: No mountable file systems. I did notice i had v1.5.2.img but i was typing in v1.5.1.img and i changed it but still says access denied.
[Hero CDMA Android Development] 5tr4t4:
OK, it's trying to mount the recovery image, not helpful. Do me a favor, navigate into the "tools" directory just as you did before and send me the output of these two commands:

pwd

ls
[Hero CDMA Android Development] ajones7279:
It looks like you guys are trying to push the recovery file from the shell. Either that, or the recovery file isn't in the same directory as your "tools"
[Hero CDMA Android Development] Zerazac:
Here ya go. I really appreciate your help/time. Really.

julian-azarezs-macbook-2:tools JulianJackson$ pwd

/Users/JulianJackson/documents/android/tools

julian-cazarezs-macbook-2:tools JulianJackson$ ls

Jet	dmtracedump	mksdcard

NOTICE.txt	draw9patch	recovery-RA-heroc-v1.5.2.img

adb	emulator	source.properties

android	hierarchyviewer	sqlite3

apkbuilder	hprof-conv	traceview

asroot2	layoutopt	zipalign

ddms	lib

julian-azarezs-macbook-2:tools JulianJackson$
[Hero CDMA Android Development] 5tr4t4:
OK, great. "pwd" says you are in "/Users/JulianJackson/documents/android/tools" and "ls" tells me that both files are indeed there. So plug in your phone and run this:

chmod a+x adb

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

Send the output of these. The first command may say nothing at all (ideally!). The second should tell you a file size, the size of the file you moved over to your phone's sdcard.
[Hero CDMA Android Development] Zerazac:
The output of the first command was good, the second one came back,permission denied. I did this with the phone plugged in. First without mounting the sd card,and the second time WITH the sd can mounted. When I click on the item recovery-RA-heroc-v.1.5.2.img i get this pop up window with error: The following disk image failed to mount. IMAGE: recovery-RA-heroc-v.1.5.1.img REASON:no mountable file systems. Should I remove it and redownload it?

julian-cazarezs-macbook-2:tools JulianJackson$ chmod a+x adb

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb push recovery-RA-heroc-v1.5.2.img /sdcard/

failed to copy 'recovery-RA-heroc-v1.5.2.img' to '/sdcard//recovery-RA-heroc-v1.5.2.img': Permission denied
[Hero CDMA Android Development] 5tr4t4:
OK, the "Permission denied" would happen if you had SDcard mounted, you don't want to mount the drive. Try unmounting the SDcard, unplugging the phone, and then plugging it back in again. DO NOT remount.

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

If you still get "Permission denied", do this command and send the output:

./adb -d shell ls -l /
[Hero CDMA Android Development] Zerazac:
Thanks. How can I "back out" of the shell? How can I tell if I am in the shell or not?
[Hero CDMA Android Development] Zerazac:
Ok cool I will post the output as soon as I get home about 8:30ish PST. I didnt bring my macbook with me. :| Thanks . Will that 2nd code "back me out" of the shell?
[Hero CDMA Android Development] 5tr4t4:
When he says "the shell", he means "when logged into the phone" ("./adb shell" does this). You can tell if it worked in two ways. First, the terminal prompt should change from "julian-cazarezs-macbook-2:tools JulianJackson$" to simply "#", this would also indicate that you go indeed have root access. The other way to check is to list the files where you are.

ls

"ls" is the Unix command "list". If you are logged into the phone ("./adb shell") you will see the files on your phone listed, not the ones it "tools" on your Mac.
[Hero CDMA Android Development] eskwire:
i ended up getting everything going using a hybrid mac/pc method. basically, i did all the terminal stuff until the recovery image part, and then used windows xp in vm fusion to use flipmodez's pre-kitchen. using that, i got my phone to do the recovery image and got fresh rom on.

thanks all of you for all your help.

zerazac, i think you just have to type "exit" to back out of the shell.
[Hero CDMA Android Development] Zerazac:
Thanks man, I'll try that if it doesn't work. I was actually trying it with Flipmodes pre-kitchen first but have Windows 7 (my wife's laptop) and it wasnt working, I thought it might have something to do with it being a Windows 7 errror.
[Hero CDMA Android Development] Zerazac:
Bingo we got action!

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb push recovery-RA-heroc-v1.5.2.img /sdcard/

1629 KB/s (3356672 bytes in 2.011s)

Then I typed:

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb shell reboot recovery

julian-cazarezs-macbook-2:tools JulianJackson$

My phone rebooted,and on the screen it has a triangle with an exclamation point. What next?
[Hero CDMA Android Development] 5tr4t4:
You missed the last step. Once the recovery image has been pushed to the phone you have to actually flash it!

./adb shell
flash_image recovery /sdcard/recovery-RA-heroc-v1.5.1.img

Then you can reboot into the recovery.

./adb shell reboot recovery

From there you will see a whole menu of options, you can Nandroid backup, repartition, and apply new ROM's. As far as getting past that triangle at boot, I'm not sure, never had that.
[Hero CDMA Android Development] Zerazac:
Dang it man I think I got ahead of myself..I tried to input the commands you said( after I tried going back ) Can you guide me back to where I need to be? Sorry.

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb push recovery-RA-heroc-v1.5.2.img /sdcard/

1629 KB/s (3356672 bytes in 2.011s)

julian-cazarezs-macbook-2:tools JulianJackson$ adb shell reboot recovery

-bash: adb: command not found

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb shell reboot recovery

julian-cazarezs-macbook-2:tools JulianJackson$ adb shell

-bash: adb: command not found

julian-cazarezs-macbook-2:tools JulianJackson$ pwd

/Users/JulianJackson/documents/android/tools

julian-cazarezs-macbook-2:tools JulianJackson$ chmod a+x adb

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb push recovery-RA-heroc-v1.5.2.img /sdcard/

661 KB/s (3356672 bytes in 4.954s)

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb shell

$ su

# flash_image recovery /sdcard/recovery-RA-heroc-v1.5.1.img

error opening /sdcard/recovery-RA-heroc-v1.5.1.img: No such file or directory

# flash_image recovery /sdcard/recovery-RA-heroc-v1.5.2.img

# ./adb shell reboot recovery

./adb: not found

# adb shell reboot recovery

adb: not found

# ./ adb shell reboot recovery

./: permission denied

# ./adb -d shell ls -l /

./adb: not found

# ls

sqlite_stmt_journals

cache

sdcard

etc

system

sys

sbin

proc

logo.rle

init.rc

init.heroc.rc

init.goldfish.rc

init

default.prop

data

root

dev

# ./adb shell

./adb: not found

# exit

$ exit

julian-cazarezs-macbook-2:tools JulianJackson$ ./adb shell

$ flash_image recovery /sdcard/recovery-RA-heroc-v1.5.1.img

error opening /sdcard/recovery-RA-heroc-v1.5.1.img: No such file or directory

$ ./adb shell

./adb: not found

$
[Hero CDMA Android Development] Zerazac:
ok I was typing in v1.5.1 and i corrected it ,v1.5.2.img.. but still getting this:

# flash_image recovery /sdcard/recovery-RA-heroc-v1.5.2.img

# ./adb shell reboot recovery

./adb: not found

# adb shell reboot recovery

adb: not found

# ./ adb shell

./: permission denied

#
[Hero CDMA Android Development] 5tr4t4:
Everything looks OK, actually. Here's where you got it just right:

The file moved over, you logged into the shell, you changed to the superuser (su), and successfully flashed the image! Done.

After that, just back out of the shell ("exit", as another poster said) and from the normal mac prompt ("julian-cazarezs-macbook-2:tools JulianJackson$") do:

./adb shell reboot recovery

Note that there is no space between "./" and "adb".
[Hero CDMA Android Development] Zerazac:
Thanks Man I'll try that. Since it was pretty late last night, I just went on my wife's laptop (Windows vista) where i had previously downloaded flipmode's pre kitchen and fresh 1.1 rom to her pc and I was able to do a nandroid back up and rebooted the phone. So I think all have to do now is get fresh 1.1 rom on the sd card and reboot,according to the geekfor.me website. Should I still do that "adb shell reboot recovery" command?
[Hero CDMA Android Development] 5tr4t4:
From what I understand, the kitchen method is, as you suggest, pretty foolproof. I assume you can reboot into recovery from there, so the "adb" terminal method is just another option when on your Mac.
[Hero CDMA Android Development] Zerazac:
You've been a lot of help, much appreciated. I'll post my results hopefully tonight I'll be rockin fresh 1.1 rom. :)
[Hero CDMA Android Development] Zerazac:
I just wanted to thank you guys again. I was able to complete the rest of the process with another laptop. I'm now running fresh 1.1 rom on my phone finally! It it super fast,which was my main reason for doing this. :) Now I need to set up a VM with some type of windows, probably xp.

You guys are awesome!!!
[Hero CDMA Android Development] willy900wonka:
Thanks!

Borrowed a non-ppc mac. Worked slick as pie. (lol)

All this based on an exception, exploitation. Now what happens in 2.1?

In the mean time I set my minfreememory and have some plane jane picme screen shots.
[Hero CDMA Android Development] chocmatic:
is there anyway to run the flash_recovery without going into adb shell?
[Hero CDMA Android Development] Negrito:
Huh? i dont think so, why would you want to do that?