[Recovery ROM] [15-August-2010] RA-hero-v1.7.0.1

Search This thread

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
This is a custom recovery based on Cyanogen's recovery source with a lot of things added by me. The purpose of this recovery is to avoid using adb by accessing all features directly from the menu.

All source code is available at github.

This recovery if for the HTC Hero only, so NOT the Sprint Hero!!!, if you have an :
- HTC Dream/G1 you should go here.
- HTC Magic/MT3G you should go here.
- HTC Sprint Hero you should go here.
- HTC Eris you should go here.
- HTC Tattoo you should go here.
- HTC Nexus One you should go here.
- HTC Evo 4G you should go here.

Important notes
  • Make sure your battery is at least 30% before using nandroid!!
  • Always check recovery.log before posting your issues!
    You can do this by doing :
    • "cat /tmp/recovery.log" OR "cat /cache/recovery/log" right after you had the issue.
    • Use the "move log to sd" option in the "others" menu right after you had the issue. This will move the log to /sdcard/recovery.log so you can easily open it with a text editor.

How-to Navigate
Use the trackball (up+down) to navigate through the menu, press the trackball to select items.
You can also use the volume keys (vol-up + vol-down) to navigate, and the CALL-ANSWER key to select items (in case your trackball is broken).

Features
  • full ADB access in recovery mode
  • Busybox v1.15.3
  • HW-Key navigation (volume keys + CALL-ANSWER) option
  • Extended menu (with keyboard-shortcuts):
    • Reboot system now :: reboot your phone
    • USB-MS Toggle :: enable/disable USB mass storage (use when the phone is connected to your PC)
    • Backup/Restore (recovery partition not included!)
      • Nand backup :: Make a Nand backup
      • Nand + ext backup :: Make a Nand + ext backup
      • Nand restore :: Restore a Nand backup
      • BART backup :: Make a BART backup (Nand + ext)
      • BART restore :: Restore latest BART backup
      • Bck Google files :: Makes a backup of the Google proprietary system files in /cache/google
      • Rst Google files :: Restores the Google proprietary system files from /cache/google
    • Flash zip from sdcard :: Flash a zip update file from your sdcard
    • Wipe
      • Wipe data/factory reset :: Wipe /data and /cache
      • Wipe cache :: Wipe /cache only
      • Wipe Dalvik-cache :: Wipe /cache/dalvik-cache
      • Wipe SD:ext partition : Wipe the ext partition on your sdcard
      • Wipe battery stats : Wipe the battery stats in /data
      • Wipe rotate settings : Wipe the sensor settings in /data
    • Partition sdcard
      • Partition SD :: Interactive SD partitioning
      • Repair SD:ext :: Repair the ext partition
      • SD:ext2 to ext3 :: Convert ext2 to ext3
      • SD:ext3 to ext4 :: Convert ext3 to ext4
    • Other
      • Fix apk uid mismatches :: Does extacly that
      • Move recovery.log to SD :: Moves the recovery log file to your sdcard. (Use when you want more detailed recovery log information)
    • Power off :: Powers off your phone
  • Scripts available via adb :

Install

There are several ways to install a custom recovery, choose the one that suits you most (I probably forgot a few).

via adb -> Requires a custom recovery (with test-keys) like Cyanogen's v1.4 or my previous recovery
Code:
Copy recovery-RA-hero-v1.7.0.1.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your Hero via usb to your pc/mac/...
adb shell
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-hero-v1.7.0.1.img

via fastboot + adb -> In case you don't have a custom recovery, so when you get signature fail errors
Code:
adb shell reboot bootloader
fastboot boot recovery-RA-hero-v1.7.0.1.img
adb shell mount /sdcard
adb push recovery-RA-hero-v1.7.0.1.img /sdcard/recovery-RA-hero-v1.7.0.1.img
adb shell flash_image recovery /sdcard/recovery-RA-hero-v1.7.0.1.img
adb shell reboot

Download

  • ALWAYS check the md5sum to make sure the zip isn't corrupted.

Only flash recovery-RA-hero-v1.6.2.img if you have a 32A Sapphire with 6.35.x.x radio and 1.76.x SPL, recovery-RA-hero-v1.7.0.1.img will NOT boot! I'll create a new Sapphire version soon.


Change-log :

v1.7.0.1
Code:
- Fixed some minor bugs
- Recovery and scripts use /sd-ext instead of /system/sd as mountpoint to support the new apps2sd method (implemented mostly by Chris Soyars)
- Added an option to backup/restore Google proprietary Android system files (backuptool.sh written by Cyanogen)
- Removed "move apps2sd"-option as it's not needed anymore with the new apps2sd method
- Updated BART to v1.3.1 (updated by Dumfuq to support /sd-ext)
- Added a wipe cache only option
- Nandroid now backups/restores /cache again by default
- Dalvik-cache wipes /cache/dalvik-cache now
- Removed SDCARD: prefix in output when chosing zip to flash
- Updated kernel to fully support ext4

v1.6.2
Code:
- Added power off menu item
- New unyaffs binary patched by Koushik Dutta and Packetlss to fix the "losing root"-issue and incorrect file-time after a Nandroid restore
- New dump_image binary (by Brainaid) patched by Packetlss to fix the "bad blocks"- Nandroid restore issue.
[COLOR="Red"][B](This will not fix old corrupted Nandroid backups! Please make new backups!!)[/B][/COLOR]
- New mkyaffs2image binary
- New flash_image binary
- Updated busybox to v1.5.3
- Nandroid menu options will NOT backup or restore recovery, cache, misc, splash1+2 (to avoid issues)
- Fixed wipe option not wiping when ext was not present
- Created carebear versions after the idea of packetlss
- Switched the Nexus logo to a Green Carebear with Nexus One logo (Thanks Montalbert!)

Special thanks to :
  • packetlss for all the hours of support and awesome coding skills, THANKS man ^^, donate to Haiti
  • Koushik Dutta for the unyaffs binary code fix and help ^^
  • pensive for adding awesome features to Nandroid :)
  • Bkmo for his utility script!
  • Devsk for his switchrom script!
  • 51dusty for his sdparted script!
  • k4str0 for his fix_permissions v2.03 update.
  • Devsk, Dumfuq, Overground for creating BART :D
  • Androidappcritics for the reboot idea in BART :p
  • rikupw for the ideas and toggle_ums script.
  • MLIGN for the idea to port my recovery to the Dream.
  • http://theunlockr.com for all the awesome video’s ^^
  • JesusFreke for his awesome JFv1.43's recovery , donate
 
Last edited:
  • Like
Reactions: mohammadsp

Drizzy Drake Rogers

Senior Member
Jun 2, 2009
1,062
0
ahh yes thank you! about time we get one for hero users!

again great great work and thank you!


REQUEST: can we get a wipe dalvik-cache
and
reformat ext2/3/4 option!!



this would be great thanks Amon_RA!
 
Last edited:

felikz

Senior Member
Aug 23, 2009
344
6
very nice dude! thanx will try that tomorrow

btw, is it based in cyanogen recovery?
 

soulonfirexx

Senior Member
Aug 5, 2009
73
0
This looks awesome! Can I use this instead of Cyanogen's recovery? This would make partitioning for apps2sd extremely easy!

Also, would the instructions here be sufficient to flash this recovery? I would just have to change the commands when using FlashRec, correct?

Thank you!
 

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
REQUEST: can we get a wipe dalvik-cache
and
reformat ext2/3/4 option!!

Next version :)

btw, is it based in cyanogen recovery?

Yes, the base code is from his git.

This looks awesome! Can I use this instead of Cyanogen's recovery? This would make partitioning for apps2sd extremely easy!

Also, would the instructions here be sufficient to flash this recovery? I would just have to change the commands when using FlashRec, correct?
Thank you!

Yes and yes
 

sgreenwood99

Senior Member
Oct 4, 2007
138
1
Houston
What do I need to delete to avoid a conflict with the prior recovery image I permanently flashed? Just delete cm-hero-recovery.img? Thanks.
 

rangbaz

Member
Sep 14, 2007
23
0
[Recovery] [16-Sept-2009] [RA-HERO-v1.2.2]

please give some details about instalation thanks.
 

macshade

Member
Jun 20, 2006
20
5
not able to install

Hello i just tried to install but when i execute the command
"fastboot boot Recovery-RA-HERO-v1.2.2.img"
I get an error FAILED (remote not allow)

I must tell that i had installed latest official build that later i uninstalled to install MoDaCo 2.2. Because with original i wasn't able to root it.

Maybe there is a problem with the boot loader (updated i think).

Can you help me?

Thank you
 

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
What do I need to delete to avoid a conflict with the prior recovery image I permanently flashed? Just delete cm-hero-recovery.img? Thanks.

You can just flash it, and delete cm-hero-recovery.img if there is one in /data or /system (I doubt that there is one there).

please give some details about instalation thanks.

Detailed instructions are in the first post.

Hello i just tried to install but when i execute the command
"fastboot boot Recovery-RA-HERO-v1.2.2.img"
I get an error FAILED (remote not allow)

I must tell that i had installed latest official build that later i uninstalled to install MoDaCo 2.2. Because with original i wasn't able to root it.

Maybe there is a problem with the boot loader (updated i think).

Can you help me?

Thank you

Your SPL isn't allowing you to flash it, you'll need to use the flashrec method to flash this recovery.
 

Birba

Senior Member
Feb 27, 2006
317
30
Great recovery image!!!

Is it possible to add an option to choose which nandroid backup to restore?
 

nicelad_uk

Senior Member
Sep 11, 2007
1,105
2
Sunny Yorkshire
Looks good, thanks for this, I'll put it on later.

Would be good if we could change the format size of the sd partitioning so we can update the amound of storage space etc. Any chance of looking at that in the future?

Looks good though, thanks!
 

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
Looks good, thanks for this, I'll put it on later.

Would be good if we could change the format size of the sd partitioning so we can update the amound of storage space etc. Any chance of looking at that in the future?

Looks good though, thanks!

You can... open up adb, and use the sdparted script ;)
 

J-Zeus

Senior Member
Aug 9, 2009
263
0
I'm currently on Cyanogen 1.4.

Does this replace it?

Can I go back to Cyanogen 1.4 I I want to?
 

felikz

Senior Member
Aug 23, 2009
344
6
if you flash this permanently it will overwrite cyanogen recovery..
however if u dont like it you can flash cyanogen again..
 

J-Zeus

Senior Member
Aug 9, 2009
263
0
Thanks Felikz - I don't mind messing around, but always like the ability to turn back time to before I cocked it all up!! :D:D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Or flash this in an older AmonRA or CWM

    Flashable 1.7.0.1 Thanks to Desean and Erasmux
    1
    This is a custom recovery based on Cyanogen's recovery source with a lot of things added by me. The purpose of this recovery is to avoid using adb by accessing all features directly from the menu.

    All source code is available at github.

    This recovery if for the HTC Hero only, so NOT the Sprint Hero!!!, if you have an :
    - HTC Dream/G1 you should go here.
    - HTC Magic/MT3G you should go here.
    - HTC Sprint Hero you should go here.
    - HTC Eris you should go here.
    - HTC Tattoo you should go here.
    - HTC Nexus One you should go here.
    - HTC Evo 4G you should go here.

    Important notes
    • Make sure your battery is at least 30% before using nandroid!!
    • Always check recovery.log before posting your issues!
      You can do this by doing :
      • "cat /tmp/recovery.log" OR "cat /cache/recovery/log" right after you had the issue.
      • Use the "move log to sd" option in the "others" menu right after you had the issue. This will move the log to /sdcard/recovery.log so you can easily open it with a text editor.

    How-to Navigate
    Use the trackball (up+down) to navigate through the menu, press the trackball to select items.
    You can also use the volume keys (vol-up + vol-down) to navigate, and the CALL-ANSWER key to select items (in case your trackball is broken).

    Features
    • full ADB access in recovery mode
    • Busybox v1.15.3
    • HW-Key navigation (volume keys + CALL-ANSWER) option
    • Extended menu (with keyboard-shortcuts):
      • Reboot system now :: reboot your phone
      • USB-MS Toggle :: enable/disable USB mass storage (use when the phone is connected to your PC)
      • Backup/Restore (recovery partition not included!)
        • Nand backup :: Make a Nand backup
        • Nand + ext backup :: Make a Nand + ext backup
        • Nand restore :: Restore a Nand backup
        • BART backup :: Make a BART backup (Nand + ext)
        • BART restore :: Restore latest BART backup
        • Bck Google files :: Makes a backup of the Google proprietary system files in /cache/google
        • Rst Google files :: Restores the Google proprietary system files from /cache/google
      • Flash zip from sdcard :: Flash a zip update file from your sdcard
      • Wipe
        • Wipe data/factory reset :: Wipe /data and /cache
        • Wipe cache :: Wipe /cache only
        • Wipe Dalvik-cache :: Wipe /cache/dalvik-cache
        • Wipe SD:ext partition : Wipe the ext partition on your sdcard
        • Wipe battery stats : Wipe the battery stats in /data
        • Wipe rotate settings : Wipe the sensor settings in /data
      • Partition sdcard
        • Partition SD :: Interactive SD partitioning
        • Repair SD:ext :: Repair the ext partition
        • SD:ext2 to ext3 :: Convert ext2 to ext3
        • SD:ext3 to ext4 :: Convert ext3 to ext4
      • Other
        • Fix apk uid mismatches :: Does extacly that
        • Move recovery.log to SD :: Moves the recovery log file to your sdcard. (Use when you want more detailed recovery log information)
      • Power off :: Powers off your phone
    • Scripts available via adb :

    Install

    There are several ways to install a custom recovery, choose the one that suits you most (I probably forgot a few).

    via adb -> Requires a custom recovery (with test-keys) like Cyanogen's v1.4 or my previous recovery
    Code:
    Copy recovery-RA-hero-v1.7.0.1.img to the root of your sdcard
    Boot into your current custom recovery (boot while holding HOME)
    Connect your Hero via usb to your pc/mac/...
    adb shell
    $su (not required if you have root already)
    #mount -a
    #flash_image recovery /sdcard/recovery-RA-hero-v1.7.0.1.img

    via fastboot + adb -> In case you don't have a custom recovery, so when you get signature fail errors
    Code:
    adb shell reboot bootloader
    fastboot boot recovery-RA-hero-v1.7.0.1.img
    adb shell mount /sdcard
    adb push recovery-RA-hero-v1.7.0.1.img /sdcard/recovery-RA-hero-v1.7.0.1.img
    adb shell flash_image recovery /sdcard/recovery-RA-hero-v1.7.0.1.img
    adb shell reboot

    Download

    • ALWAYS check the md5sum to make sure the zip isn't corrupted.

    Only flash recovery-RA-hero-v1.6.2.img if you have a 32A Sapphire with 6.35.x.x radio and 1.76.x SPL, recovery-RA-hero-v1.7.0.1.img will NOT boot! I'll create a new Sapphire version soon.


    Change-log :

    v1.7.0.1
    Code:
    - Fixed some minor bugs
    - Recovery and scripts use /sd-ext instead of /system/sd as mountpoint to support the new apps2sd method (implemented mostly by Chris Soyars)
    - Added an option to backup/restore Google proprietary Android system files (backuptool.sh written by Cyanogen)
    - Removed "move apps2sd"-option as it's not needed anymore with the new apps2sd method
    - Updated BART to v1.3.1 (updated by Dumfuq to support /sd-ext)
    - Added a wipe cache only option
    - Nandroid now backups/restores /cache again by default
    - Dalvik-cache wipes /cache/dalvik-cache now
    - Removed SDCARD: prefix in output when chosing zip to flash
    - Updated kernel to fully support ext4

    v1.6.2
    Code:
    - Added power off menu item
    - New unyaffs binary patched by Koushik Dutta and Packetlss to fix the "losing root"-issue and incorrect file-time after a Nandroid restore
    - New dump_image binary (by Brainaid) patched by Packetlss to fix the "bad blocks"- Nandroid restore issue.
    [COLOR="Red"][B](This will not fix old corrupted Nandroid backups! Please make new backups!!)[/B][/COLOR]
    - New mkyaffs2image binary
    - New flash_image binary
    - Updated busybox to v1.5.3
    - Nandroid menu options will NOT backup or restore recovery, cache, misc, splash1+2 (to avoid issues)
    - Fixed wipe option not wiping when ext was not present
    - Created carebear versions after the idea of packetlss
    - Switched the Nexus logo to a Green Carebear with Nexus One logo (Thanks Montalbert!)

    Special thanks to :
    • packetlss for all the hours of support and awesome coding skills, THANKS man ^^, donate to Haiti
    • Koushik Dutta for the unyaffs binary code fix and help ^^
    • pensive for adding awesome features to Nandroid :)
    • Bkmo for his utility script!
    • Devsk for his switchrom script!
    • 51dusty for his sdparted script!
    • k4str0 for his fix_permissions v2.03 update.
    • Devsk, Dumfuq, Overground for creating BART :D
    • Androidappcritics for the reboot idea in BART :p
    • rikupw for the ideas and toggle_ums script.
    • MLIGN for the idea to port my recovery to the Dream.
    • http://theunlockr.com for all the awesome video’s ^^
    • JesusFreke for his awesome JFv1.43's recovery , donate
    1
    How do we revert back to the original hboot in case we flash this to over the current hboot?

    In case someone will say "just flash the backed up hboot image", i also would like to ask how do you backup the current (original, never flashed anything before) hboot?

    Thank you!
    You can get the orginal HBOOT from the old RUU package.

    If you want to flash it back here's an update package to flash it (I'm not responsible for any bricks, make sure you know what you are doing, have the right HW etc).

    This is "original" 1.76.0004 hboot, that came shipped with the Hero.
    1
    i have tried everything and nothing is working here..i am still getting this annoying e:can't read misc message.

    Try : fastboot erase misc
    1
    don't seem to differ that much? what is the difference?