Jump to content

Whoa. Got myself into trouble somehow


Recommended Posts

Guest rivers24
Posted

Well, I thought once I found the most basic newbie starting posts that i would be alright. First I went to http://android.modaco.com/content/htc-hero...e-how-to-guide/ , checked my build version, which reads - 1.56.651.2

Since I didn't need to downgrade, i went here - http://android.modaco.com/content/htc-hero...on-your-device/ . This is where the first problem came up. Although my Sprint phone DOES in fact have a sd card, the only cdma option was to go with the - CDMA Hero (a Hero without a SIM card - e.g. the Sprint Hero) on WINDOWS - option. When I entered it into the command prompt this is what I got (love to hear some ideas of why?) -

C:\HERO>install-recovery-cdma-windows.bat

C:\HERO>./adb-windows push asroot2 /data/local/

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows shell chmod 0755 /data/local/asroot2

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows shell /data/local/asroot2 /system/bin/sh

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /

system

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows shell cd /system/bin

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows shell cat sh 1>su

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows shell chmod 4755 su

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows push recovery-RA-heroc-v1.5.2.img /sdcard/

'.' is not recognized as an internal or external command,

operable program or batch file.

C:\HERO>./adb-windows shell flash_image recovery /sdcard/recovery-RA-heroc-v1.5.

2.img

'.' is not recognized as an internal or external command,

operable program or batch file.

So, it seems to me that somehow the script written for that program was actually made incompatible with windows. Or I'm doing something really wrong.

I didn't want to fail here though, so I kept on looking. I went to http://theunlockr.com/2009/08/27/how-to-ro...o-in-one-click/ . It seemed to work, but I'm not sure. The step after rooting the phone is where things went silly. I installed the Flashrec.APK I opened it and clicked "Backup Recovery Image" then I used the "recovery-RA-hero-v1.5.2.img" to flash it. When I held down home plus power, I didn't get a screen like the one shown in the youtube video. Instead it went to the "HBOOT" program. I didn't realize what it was, and I couldn't figure how to get out of it, so I clicked the trackball.

Well, for most of you out there, you know I just lost all of my data on my phone. I'm hoping I have a backup, and I see a backup image on my phone, but for some reason, when I go to the flashrec program and ask it to back it up (the first option that is available), it doesn't work. I'll restart, and blam, all data is still gone. I then tried going into flashrec and entering in the path of the backup file (/sdcard/recovery-backup.img) and hit "flash recovery image." It says "flash complete." I will restart, and still.. all data gone.

Sorry this is so long, I wanted to type it all out for a.)my own sanity, to try and see where I could have gone wrong and b.) to be as specific as possible for you guys so I can get my info back as soon as possible.

I really would appericiate any help offered. I'd love to flash a faster rom, but I'd really love to get my old data back more than anything.

Thanks,

Scott

(HTC Hero on Sprint)

Guest Binario77
Posted

Looks as though the file isn't correctly labelled. the ./ at the beginning of each line is for Mac/Linux and simply tells the computer to look for the executable file in the current directory as it's not automatically in the path.

If you edit the batch file in a text editor stripping out the ./ from the start of each line you may well have more luck. Too late now in any case but the file may need tweaking on the server.

Guest kendon
Posted
Looks as though the file isn't correctly labelled. the ./ at the beginning of each line is for Mac/Linux and simply tells the computer to look for the executable file in the current directory as it's not automatically in the path.

If you edit the batch file in a text editor stripping out the ./ from the start of each line you may well have more luck. Too late now in any case but the file may need tweaking on the server.

that is correct. the file should look like this:

adb-windows push asroot2 /data/local/

adb-windows shell chmod 0755 /data/local/asroot2

adb-windows shell /data/local/asroot2 /system/bin/sh

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

adb-windows shell cd /system/bin

adb-windows shell cat sh > su

adb-windows shell chmod 4755 su

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

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

Guest rivers24
Posted

Just my luck. I wonder why the file was posted like this and why no one else has complained yet. So... I'd really really really appericiate some help on how to get my old data back. Should I try to edit the file, run it, and then hope to regain my data in recovery mode? I'm getting so frustrated. I thought this would be a simple process.

Guest rivers24
Posted

Actually, nevermind. Now that I edited the file, it works... but only up to a point. It stops at the shell. FML. What the hell.

C:\HERO>install-recovery-cdma-windows.bat

C:\HERO>adb-windows push asroot2 /data/local/

1164 KB/s (74512 bytes in 0.062s)

C:\HERO>adb-windows shell chmod 0755 /data/local/asroot2

C:\HERO>adb-windows shell /data/local/asroot2 /system/bin/sh

[+] Using newer pipe_inode_info layout

Opening: /proc/927/fd/3

SUCCESS: Enjoy the shell.

#

Guest rivers24
Posted

anyone else out there have any ideas how I can proceed? Most importantly though, how I can get my old data back? Pretty pretty please?

Guest pit234
Posted
Actually, nevermind. Now that I edited the file, it works... but only up to a point. It stops at the shell. FML. What the hell.

C:\HERO>install-recovery-cdma-windows.bat

C:\HERO>adb-windows push asroot2 /data/local/

1164 KB/s (74512 bytes in 0.062s)

C:\HERO>adb-windows shell chmod 0755 /data/local/asroot2

C:\HERO>adb-windows shell /data/local/asroot2 /system/bin/sh

[+] Using newer pipe_inode_info layout

Opening: /proc/927/fd/3

SUCCESS: Enjoy the shell.

#

you should forget the script! as far as I can see, it has never been tested and is only fooling you.

the command adb-windows shell /data/local/asroot2 /system/bin/sh just opened a rooted shell for you on your device, as you can see ('#' is the root prompt). and yes it's stuck here because the shell is waiting for your commands :)

you should cut'n'paste the following commands into this root shell:

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

cd /system/bin && cat sh > su && chmod 4755 su

exit

but don't use the batch file anymore! after you leave the rooted shell (the exit command) it would continue executing and will do some nonsense. (nothing harmfull, but still nonsense)

Guest pulser
Posted
you should forget the script! as far as I can see, it has never been tested and is only fooling you.

the command adb-windows shell /data/local/asroot2 /system/bin/sh just opened a rooted shell for you on your device, as you can see ('#' is the root prompt). and yes it's stuck here because the shell is waiting for your commands :)

you should cut'n'paste the following commands into this root shell:

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

cd /system/bin && cat sh > su && chmod 4755 su

exit

but don't use the batch file anymore! after you leave the rooted shell (the exit command) it would continue executing and will do some nonsense. (nothing harmfull, but still nonsense)

If you do choose to do this, you should also aim to put in the file superuser.apk, which controls access to su, thus preventing a malicious app from abusing root permissions without you knowing. It will ask to allow or deny each request with the ability to remember the answer.

Also (certainly on gsm hero), we have to mount the file boot.img, and change the line 'ro.secure=1' to be 'ro.secure=0' to give us root through adb shell.

Guest pulser
Posted
If you do choose to do this, you should also aim to put in the file superuser.apk, which controls access to su, thus preventing a malicious app from abusing root permissions without you knowing. It will ask to allow or deny each request with the ability to remember the answer.

Also (certainly on gsm hero), we have to mount the file boot.img, and change the line 'ro.secure=1' to be 'ro.secure=0' to give us root through adb shell.

Um, I hate top break it to you, but it doesn't sound like you do have a backup of your user data. I believe you have a copy of the old recovery image, but unless you ran an application like nandroid from patched recovery, and took a backup, I don't think you will be getting your data back at all :)

Guest rivers24
Posted
you should forget the script! as far as I can see, it has never been tested and is only fooling you.

the command adb-windows shell /data/local/asroot2 /system/bin/sh just opened a rooted shell for you on your device, as you can see ('#' is the root prompt). and yes it's stuck here because the shell is waiting for your commands :)

you should cut'n'paste the following commands into this root shell:

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

cd /system/bin && cat sh > su && chmod 4755 su

exit

but don't use the batch file anymore! after you leave the rooted shell (the exit command) it would continue executing and will do some nonsense. (nothing harmfull, but still nonsense)

Actually, if you check out other people trying to do this, they also get "stuck" at the shell. It literally wouldn't take any input from the keyboard... I'm not that numb.

Thanks for the replies though. After trying a few different methods, I found one that worked for me. Also, something I didn't realize, is that I needed to hold down the '- volume' key plus power to get to recovery mode.

If anyone else out there is having similar trouble, go to http://forum.xda-developers.com/showthread.php?t=583291 . I followed it's instructions, and for some reason, it worked... where all the guides on this site didn't. I think a big thing for a lot of recent purchasers of cdma sprint hero's to know, is that you need to hold down '- volume' instead of home + power.

I did have a saved image of all my info using the restore apk, but somehow managed to lose that as well... O well, at least I have the ROM booting up for the first time now! Woohoo!

- Scott

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.