01-31-2014 06:08 AM
133 123 ...
tools
  1. Jerry Hildenbrand's Avatar
    1. Make sure you have the Android SDK installed. Read HERE for more info.

    2. Download 4shared.com - online file sharing and storage - download flash_image.zip

    3. Download 4shared.com - online file sharing and storage - download recovery-RA-heroc-v1.5.2.img

    4. Unzip the first file, and place both in your Android SDK/tools folder.

    5. Make sure USB debugging is ON

    6. Connect your phone to the PC

    7. Open the command window and navigate to the Android-sdk/tools folder on your computer.

    8. At the prompt enter the following, one line at a time followed by enter
    Code:
    adb shell
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    exit
    exit
    adb push flash_image /system/bin
    adb push recovery-RA-heroc-v1.5.2.img /sdcard
    adb shell
    chmod 0755 /system/bin/flash_image
    reboot
    9. Your phone will reboot. When it is finished, back at your command window, once again enter
    Code:
    adb shell
    su
    cd /sdcard
    flash_image recovery recovery-RA-heroc-v1.5.2.img
    reboot recovery
    10. With any luck, you'll have the recovery image back and can load custom 2.1 based ROMS again.
    04-10-2010 11:15 PM
  2. spatel9114's Avatar
    Wow thanks, I'm about to try this, will post if it works! Thanks man, been looking for this.
    04-11-2010 01:19 PM
  3. spatel9114's Avatar
    Okay, I get an error:

    adb push flash_image /system/bin
    adb: not found

    when I try to push the flash_image..

    EDIT: Okay, the tutorial up top is wrong, there's supposed to be two exits, not one.
    04-11-2010 01:24 PM
  4. spatel9114's Avatar
    Alright I get another error, it can't find the .img on my SD card when I go to flash the image.. it says "No such file or directory"..
    04-11-2010 01:41 PM
  5. Jerry Hildenbrand's Avatar
    Okay, I get an error:

    adb push flash_image /system/bin
    adb: not found

    when I try to push the flash_image..

    EDIT: Okay, the tutorial up top is wrong, there's supposed to be two exits, not one.
    fixed. Thanks

    Alright I get another error, it can't find the .img on my SD card when I go to flash the image.. it says "No such file or directory"..
    Look on your sd card. Is it really there?
    04-11-2010 02:09 PM
  6. spatel9114's Avatar
    Yeah it's there, I think the real error here is the fact that when I tried to push it, I got a "Read Only" error, so I manually put the file on the SD card..

    EDIT: So yeah, the only problem that I seem to be having at this point is the fact that flash_image cannot see the .img file on my SD card..
    04-11-2010 02:32 PM
  7. Jerry Hildenbrand's Avatar
    Yeah it's there, I think the real error here is the fact that when I tried to push it, I got a "Read Only" error, so I manually put the file on the SD card..
    read only on the sd card doesn't make a lot of sense. Make sure you don't have your SD card mounted in windows.

    does /system/bin/flash_image exist?
    Did you get any error when you tried to chmod /system/bin/flash_image?
    (Making sure the program to flash it got copied over correctly)

    from the adb shell
    does /sdcard/recovery-RA-heroc-v1.5.2.img exist?
    (Making sure the recovery image is in the right place)
    04-11-2010 02:41 PM
  8. spatel9114's Avatar
    No, I didn't get any errors. Basically, I got through the entire process but when I get to flash_image recovery recovery-..., it doesn't see the file on my SD card.. And the .img is on my SD card, I am seeing it on my card right now.

    EDIT: so when I do /sdcard/recovery-RA-heroc-v1.5.2.img, it says not found. So what I did was completely remove the .img from my SD card and try the push again, and when I tried the adb push line to copy the .img to the card, I got a read-only error.
    04-11-2010 02:43 PM
  9. Jerry Hildenbrand's Avatar
    No, I didn't get any errors. Basically, I got through the entire process but when I get to flash_image recovery recovery-..., it doesn't see the file on my SD card.. And the .img is on my SD card, I am seeing it on my card right now.

    EDIT: so when I do /sdcard/recovery-RA-heroc-v1.5.2.img, it says not found. So what I did was completely remove the .img from my SD card and try the push again, and when I tried the adb push line to copy the .img to the card, I got a read-only error.
    What I would do to troubleshoot
    unplug phone from PC
    reboot pc
    reboot phone
    Plug phone back in to pc
    check to be sure you have it set as charge only (not as a disk) from the pull down bar.
    Code:
    adb shell
    cd /sdcard
    mkdir test
    if it creates the directory, we're good. That means the card isn't mounted to the pc, and writing to it is working. Then proceed to push the image to your sd card and continue.

    The settings when you hook your phone to the PC have changed. Double check that the phone is set to charge only. If this does not work, we can push the image to /data/local/ and skip the sd card completely.
    04-11-2010 02:54 PM
  10. spatel9114's Avatar
    Ohhh is has to be on charge? I have it on disk mode..
    04-11-2010 03:05 PM
  11. Jerry Hildenbrand's Avatar
    Ohhh is has to be on charge? I have it on disk mode..
    yep. That's the issue I'll bet. Another change in 2.1 bites us in the *** lol.
    04-11-2010 03:08 PM
  12. spatel9114's Avatar
    Alright nice, so the .img copied over successfully without read errors, I had no idea it was supposed to be in charge and not disk! Thanks for the help gbhil, will post back after it's all done
    04-11-2010 03:09 PM
  13. Jerry Hildenbrand's Avatar
    Alright nice, so the .img copied over successfully without read errors, I had no idea it was supposed to be in charge and not disk! Thanks for the help gbhil, will post back after it's all done
    No problem man. Awful glad you got it (I hope lol)
    04-11-2010 03:10 PM
  14. spatel9114's Avatar
    Okay, so when I go to flash the recovery, I still get no such file in directory! WTF!

    I did the adb shell /sdcard to find the file and it says it's there, but permission is denied..
    04-11-2010 03:11 PM
  15. chris droid's Avatar
    So after reading this thread I'm understanding that if u run 2.1 option 1 ruu you can't root your phone or download the official 2.1 release correct?
    04-11-2010 03:19 PM
  16. Andrew Ruffolo's Avatar
    So after reading this thread I'm understanding that if u run 2.1 option 1 ruu you can't root your phone or download the official 2.1 release correct?
    Technically, it is rooted, but only through ADB on a computer. The safest bet is to Root in 1.5 and flash option 2 or 3 (I would go with 3).
    04-11-2010 03:21 PM
  17. spatel9114's Avatar
    Technically, it is rooted, but only through ADB on a computer. The safest bet is to Root in 1.5 and flash option 2 or 3 (I would go with 3).
    Yeah, I definitely should have done that..
    04-11-2010 03:23 PM
  18. Jerry Hildenbrand's Avatar
    Okay, so when I go to flash the recovery, I still get no such file in directory! WTF!

    I did the adb shell /sdcard to find the file and it says it's there, but permission is denied..
    I'm biting the bullet and running the RUU on my Hero right now.

    I'll make sure that there's not something I missed, gimme 15 minutes.
    04-11-2010 03:23 PM
  19. spatel9114's Avatar
    I'm biting the bullet and running the RUU on my Hero right now.

    I'll make sure that there's not something I missed, gimme 15 minutes.
    Alright, thanks so much for your help man! I def owe you one (if there's something that I know that you don't..doubt it )
    04-11-2010 03:26 PM
  20. chris droid's Avatar
    I'm just nervous as I have not done this before and don't want to mess my phone up. I want it to look as stock as possible or my gf who bought me the phone will be pissed that I would have voided the warranty and insurance... I guess I'm stuck like chuck...
    04-11-2010 03:27 PM
  21. spatel9114's Avatar
    I'm just nervous as I have not done this before and don't want to mess my phone up. I want it to look as stock as possible or my gf who bought me the phone will be pissed that I would have voided the warranty and insurance... I guess I'm stuck like chuck...
    I'd recommend you get DamageControl 2.1 and not this. Go to the xda forums and then to the HTC Hero subforums, they have a great tutorial on how to install the ROM. Good Luck!

    I was in the same boat you were, trust me, it's not hard at all, just make sure you follow the directions down to the last period!
    04-11-2010 03:28 PM
  22. chris droid's Avatar
    Thanks a lot for your help ill check it out!
    04-11-2010 03:35 PM
  23. Andrew Ruffolo's Avatar
    I'm just nervous as I have not done this before and don't want to mess my phone up. I want it to look as stock as possible or my gf who bought me the phone will be pissed that I would have voided the warranty and insurance... I guess I'm stuck like chuck...
    Just don't do option 1 and you will be fine. Not that option 1 doesn't work, it will, but option 3 provides a stock look and an amazing feel (fast, no delay transitions). You just need to follow the directions on Rooting the hero first.
    Get familiar with the recovery after doing so, like nand-backups (makes a bootable backup at a set point and time), nand-restore (how you would go back after said bootable backup), usb toggle (just in case you forgot to add a file or put it in the wrong directory, or need to back up your SD card before you partition but are already in recovery mode), Wipe (clears all data/settings on phone, EXT partition (you apps if you use A2SD) and Dalvik), Flash (heres where you flash your custom ROM). It sounds like a lot, but it really isn't once you see it.
    04-11-2010 03:36 PM
  24. chris droid's Avatar
    So with damage control I can always change to the "official" release if need be? I would only do that in case of warranty work or to sell the phone so I could switch back to stock.
    04-11-2010 03:39 PM
  25. spatel9114's Avatar
    So with damage control I can always change to the "official" release if need be? I would only do that in case of warranty work or to sell the phone so I could switch back to stock.
    Yeah, it's possible, you'd have to flash the stock 1.5 ROM (or 2.1 ROM when the official is released) and then unroot. Don't think it'd be too difficult.
    04-11-2010 03:41 PM
133 123 ...
LINK TO POST COPIED TO CLIPBOARD