[Recovery] [32A & 32B] [16-May-2010] RA-sapphire-v1.7.0

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 Magic/MT3G only, if you have an :
- HTC Dream/G1 you should go here.
- HTC Hero 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.

Important notes
  • 32A users with SPL 1.76.x should flash the Hero version! (Will be updated to v1.7.0 soon!!)
  • 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.

Features

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).

  • 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).
  • You don't need to enter "mount -a" if your partitions are already mounted.
  • Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).

via fastboot :
  • Requires engineerings SPL!
Code:
Copy recovery-RA-sapphire-v1.7.0G.img to a location where fastboot can find it.
Boot your G1 into fastboot mode (boot while holding BACK)
Connect your G1 via usb to your pc/mac/...
fastboot devices (to make sure that fastboot "sees" your device)
fastboot flash recovery recovery-RA-sapphire-v1.7.0G.img

via adb :
  • Requires a custom recovery (with test-keys) like Cyanogen's v1.4 or my previous recovery
  • Do NOT follow these steps from a terminal application on the phone, make sure that you've booted into a custom recovery first!!!
Code:
Copy recovery-RA-sapphire-v1.7.0G.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your G1 via usb to your pc/mac/...
adb shell
#mount -a (this can give back an error if you don't have an ext partition, don't worry about it and just proceed)
#flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img

via terminal application installed on the phone :
  • Requires root
    [*]DO NOT use this method with CM5.0.7, there are currently some memory issues while flashing, use the above methods (preferably the fastboot method) instead until the issue is fixed in CM5.0.7!
Code:
Copy recovery-RA-sapphire-v1.7.0G.img to the root of your sdcard
start the terminal app
#flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img



Download

  • ALWAYS check the md5sum to make sure the zip isn't corrupted.
  • Click on the Mirror-link if you don't like rapidshare
  • Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).


Change-log :

v1.7.0
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
- Added Cyan version (There's no difference with the normal version, only the wallpaper and textcolor changed)

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
 

Attachments

  • v1.7.0.png
    v1.7.0.png
    7.5 KB · Views: 16,169
  • v1.7.0-cyan.png
    v1.7.0-cyan.png
    10.1 KB · Views: 14,106
Last edited:

mack

Senior Member
Jun 30, 2005
123
1
so amazing.

thanks

EDIT: i think i did it wrong. lol i cant seem to get back the modded recovery.

so does this mean i now have root? or have i mistaken.
 
Last edited:

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
so amazing.

thanks

just wanna confirm that it works on my Rogers Magic with .0009, 32A, CPLD-11

so does this mean i now have root? or have i mistaken.

Yes :D , I'll soon create an update package based on skittleguy dump, with root enabled.
 

brian colston

Senior Member
Aug 2, 2005
91
1
53
London
I see that HBOOT-1.33.0004 (SAPP10000) : Sapphire PVT 32B SHIP S-ON G : CPLD-10 (Voldafone NL + UK + Australia)

but i have H not a G and is from Vodafone UK with Google branding on the back
I know its got PVT 32B but was not sure which one because of the letters

RAv1.0H : Use this image if your Magic is HTC branded (PVT 32A board)
RAv1.0G : Use this image if your Magic is Google branded (PVT 32B board)

so i know i have a H so i fastboot the RAv1.0H (Locks on Vodafone logo)
so i now know that even though i got a H i fastboot with RAv1.0G and works fine

working great now and thanks, just letting people know

B
 

pamoon

Member
Apr 16, 2009
15
0
Bilbao
forgive my bad English. Acknowledge the great work you do for us all. Thanks !!... :)

Re: Mine is Vodafone and I've installed the Google.
 
Last edited:

mack

Senior Member
Jun 30, 2005
123
1
EDIT from my post above. So the before i just did fastboot boot recovery-RAv1.0H.img and it booted to the recovery. thats fine.

then i tried to flash it using adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img (after pusing the recovery image to my sd card)
but i get Permission denied.

^ is it because we dont have root?
 

mack

Senior Member
Jun 30, 2005
123
1
I think its because the stock spl has signiture checking on. Change the spl though and...

possibly. I'm no expert but what i can say is my rogers magic is different from my friends. I have S-OFF (signature off? maybe) while he has S-ON. I have CPLD-11 while he has CPLD-12.

I am afraid to flash my SPL to 2005 though.
 

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
EDIT from my post above. So the before i just did fastboot boot recovery-RAv1.0H.img and it booted to the recovery. thats fine.

then i tried to flash it using adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img (after pusing the recovery image to my sd card)
but i get Permission denied.

^ is it because we dont have root?

Try this :
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.0H.img
Wait for a minute or two..
$adb shell mount -a
Ignore the failed mounts...
$adb push recovery-RAv1.0H.img /system/recovery.img
$adb push recovery-RAv1.0H.img /sd-card/recovery-RAv1.0H.img
$adb shell flash_image recovery /sd-card/recovery-RAv1.0H.img
4. Reboot

If it doesn't work you might need to flash your SPL :
- 32A board : apply this update from your sd-card after fast booting with this recovery.
- 32B board : apply this update from your sd-card after fast booting with this recovery.
 
Last edited:

mack

Senior Member
Jun 30, 2005
123
1
Try this :
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.0H.img
Wait for a minute or two..
$adb shell mount -a
Ignore the failed mounts...
$adb push recovery-RAv1.0H.img /system/recovery.img
$adb push recovery-RAv1.0H.img /sd-card/recovery-RAv1.0H.img
$adb shell flash_image recovery /sd-card/recovery-RAv1.0H.img
4. Reboot

If it doesn't work you might need to flash your SPL :
- 32A board : apply this update from your sd-card after fast booting with this recovery.
- 32B board : apply this update from your sd-card after fast booting with this recovery.


thanks, so i just tried that. successful until the last one. it gives me /sbin/sh: flash_image: not found.

However I did get /sbin/sh: -c requires an argument when i did adb shell -a

I will try to flash SPL 2005 now. can i just fastboot boot recovery-RAv1.0H.img then apply update.zip from there?
 

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
For those who need root on their Rogers Magic :

I quickly enabled root and added busybox to the Rogers Magic boot image:

1. Copy this update to your SD-card.
2. Boot the device in fastboot mode.
3. Connect the device to your machine over USB.
4. $fastboot boot recovery-RAv1.0H.img
wait a few minutes and unplug your device from USB
5. Choose option "Apply sdcard:update.zip" from the menu

Enjoy :D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    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 Magic/MT3G only, if you have an :
    - HTC Dream/G1 you should go here.
    - HTC Hero 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.

    Important notes
    • 32A users with SPL 1.76.x should flash the Hero version! (Will be updated to v1.7.0 soon!!)
    • 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.

    Features

    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).

    • 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).
    • You don't need to enter "mount -a" if your partitions are already mounted.
    • Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).

    via fastboot :
    • Requires engineerings SPL!
    Code:
    Copy recovery-RA-sapphire-v1.7.0G.img to a location where fastboot can find it.
    Boot your G1 into fastboot mode (boot while holding BACK)
    Connect your G1 via usb to your pc/mac/...
    fastboot devices (to make sure that fastboot "sees" your device)
    fastboot flash recovery recovery-RA-sapphire-v1.7.0G.img

    via adb :
    • Requires a custom recovery (with test-keys) like Cyanogen's v1.4 or my previous recovery
    • Do NOT follow these steps from a terminal application on the phone, make sure that you've booted into a custom recovery first!!!
    Code:
    Copy recovery-RA-sapphire-v1.7.0G.img to the root of your sdcard
    Boot into your current custom recovery (boot while holding HOME)
    Connect your G1 via usb to your pc/mac/...
    adb shell
    #mount -a (this can give back an error if you don't have an ext partition, don't worry about it and just proceed)
    #flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img

    via terminal application installed on the phone :
    • Requires root
      [*]DO NOT use this method with CM5.0.7, there are currently some memory issues while flashing, use the above methods (preferably the fastboot method) instead until the issue is fixed in CM5.0.7!
    Code:
    Copy recovery-RA-sapphire-v1.7.0G.img to the root of your sdcard
    start the terminal app
    #flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img



    Download

    • ALWAYS check the md5sum to make sure the zip isn't corrupted.
    • Click on the Mirror-link if you don't like rapidshare
    • Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).


    Change-log :

    v1.7.0
    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
    - Added Cyan version (There's no difference with the normal version, only the wallpaper and textcolor changed)

    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
    7
    Links in OP for 1.7.0 recoveries have been updated.
    1
    I think its because the stock spl has signiture checking on. Change the spl though and...
    1
    But there says "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."
    Thanks.
    1
    What is that recovery-RA-magic+-v2.0.0.1 posted by some people, is that an official release from you Amon_RA for the HTC Magic?

    No, it's a modified version for the 31A and the "new" 6.36..." radio
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone