View Single Post
  #1  
Old 26th June 2009, 10:05 PM
Amon_RA's Avatar
Amon_RA Amon_RA is offline
Senior Member
 
Join Date: Jan 2009
Posts: 759
Talking [Recovery] [32A & 32B] [13-Dec-2009] RA-sapphire-v1.5.2

This is a custom recovery based on Cyanogen's recovery source.
The purpose of this recovery is to avoid using adb by accessing all features directly from the menu.

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.

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


Always check recovery.log before posting your issues!

Features
  • full ADB access in recovery mode
  • Busybox v1.15.2
  • HW-Key navigation (volume keys + CALL-ANSWER) option
  • Extended menu :
    • 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
    • Flash zip from sdcard :: Flash a zip update file from your sdcard
    • Wipe
      • Wipe data/factory reset :: Wipe /data and /cache
      • Wipe Dalvik-cache :: Wipe Dalvik-cache both on /data and ext
      • 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 apps+dalv to SD :: Moves all apps and Dalvik-cache to sdcard (This will NOT enable apps2sd!)
      • Move recovery.log to SD :: Moves the recovery log file to your sdcard. (Use when you want more detailed recovery log information)
  • 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).

Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).

via a simple reboot -> Requires Cyanogen or my RA ROM (other ROMs will probably work too, check init.rc where to put the recovery.img)
Code:
Rename recovery-RA-sapphire-v1.5.2H.img to recovery.img
Copy recovery.img to /data
Reboot fully (the recovery will be flashed automatically)
Reboot to recovery
via adb -> Requires a custom recovery (with test-keys) like Cyanogen's v1.4 or my previous recovery
Code:
Copy recovery-RA-sapphire-v1.5.2H.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your phone via usb to your pc/mac/...
adb shell
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-sapphire-v1.5.2H.img
via terminal -> Requires root
Code:
Copy recovery-RA-sapphire-v1.5.2H.img to the root of your sdcard
start the terminal app
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-sapphire-v1.5.2H.img
via fastboot -> Requires engineerings SPL!
Code:
Copy recovery-RA-sapphire-v1.5.2H.img to a location where fastboot can find it.
Boot your phone into fastboot mode (boot while holding BACK)
Connect your phone via usb to your pc/mac/...
fastboot devices (to make sure that fastboot "sees" your phone)
fastboot flash recovery recovery-RA-sapphire-v1.5.2H.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).

Latest :
Old versions :

Change-log :
v1.5.2
Code:
- Updated Nandroid to v2.2.2 (fix ext restore issues)
v1.5.1
Code:
- Fixed Nandroid-ext restore issue where nandroid didn't restore the backup-ed ext partition.
v1.5.0
Code:
- Updated Nandroid to v2.2.1 (ext support!).
- Added a "Nand + ext backup" menu-item.
- Nandroid and BART menu items will not backup or restore the recovery partition by default.
- Updated init.rc to only load /sbin in PATH.
- Removed the loading cramfs and sqf filesystems from fstab.
- Added an unmount script that is called at the start of most scripts.
- Updated the BKMO-utility script to it doesn't backup/restore the recovery partition + changed the return to recovery command.
- Changed the item select key to CALL ANSWER-key instead of HOME-key. The HOME-key was conflicting other operations.
- Added "Other" sub-menu :
	- Moved "fix apk uid mismatches"-item from main menu to "Other" sub-menu.
	- Added "Move apps+dalv to SD"-item.
	- Added "Move recovery.log to SD"-item (Check this log if you want to see what is going wrong).
- Fixed the Nandroid restore menu; an error message is now displayed when no nandroid backup or device-id was found (instead of showing an empty menu).
- Removed flash submenu and "Apply sdcard:update.zip" item, because we already have "Apply sdcard:choose zip".
- Removed "Wipe cache partition" item, wipe cache is already included in the "Wipe data/factory reset" item.
- Changed UMS-toggle enable behaviour; you can not access the menu while UMS is enabled (avoid mount issues).
- Changed some menu-item labels to make the options more clear.
- Fixed UMS-toggle disable behaviour; files are now refreshed in the menu (sdcard is unmounted).
- Updated the busybox binary to 1.15.2 which has fixes for ash and hush (`trap` handling), dd (fixed handling of I/O errors), find (fix for -follow and symlinks), pidof (corrected recognition of kernel thread names), sed (SEGV), uniq (memory leak), line editing (Ctrl-D works again), build system. 
- The busybox binary was :
	- statically linked against uclibc (0.9.30)
	- configured to preferentially execute busybox applets
	- busybox --install -s installs links into /data/local/bin (JF patch)
	- mount looks for loop devices at /dev/block/loop (JF patch)
	- modprobe and family look for modules in /system/modules (JF patch)
	- fixed an issue with vi where it would save a file as just a blank file (JF patch)
- Compiled new kernel : RA-recovery-v1.0: 
	- enabled "Support for large block devices and files" to fix ext4 issues
	- added all modules to /lib/modules in ramdisk
- Updated sdparted script to v0.6
Special thanks to :
  • packetlss for all the hours of support, THANKS ^^
  • 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
  • Androidappcritics for the reboot idea in BART
  • rikupw for the ideas and toggle_ums script.
  • MLIGN for the idea to port my recovery to the Dream.
  • http://www.androidspin.com for hosting ^^
  • http://theunlockr.com for all the awesome video’s ^^
  • Cyanogen for his dedicated work! , buy him a beer!
  • JesusFreke for his awesome JFv1.43's recovery , donate
Attached Images
File Type: png 1.png (7.3 KB, 1767 views)
File Type: png 2.png (7.3 KB, 924 views)
File Type: png 3.png (7.6 KB, 817 views)
File Type: png 4.png (7.0 KB, 730 views)
File Type: png 5.png (9.1 KB, 768 views)
File Type: png 6.png (7.0 KB, 667 views)

Last edited by Amon_RA; 13th December 2009 at 05:59 PM.. Reason: Updated to v1.5.2
Reply With Quote
Sponsored Links