View Full Version : [Recovery] [32A & 32B] [13-Dec-2009] RA-sapphire-v1.5.2
Amon_RA
26th June 2009, 10:05 PM
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 (http://forum.xda-developers.com/showpost.php?p=4647751&postcount=1).
- HTC Hero you should go here (http://forum.xda-developers.com/showpost.php?p=4549551&postcount=1).
- HTC Sprint Hero you should go here (http://forum.xda-developers.com/showpost.php?p=4898505&postcount=1).
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 :
Nandroid v2.2.1 (http://forum.xda-developers.com/showpost.php?p=3046976&postcount=1) : enter "nandroid-mobile.sh" to start.
BART v1.0.1 (http://forum.xda-developers.com/showpost.php?p=4569600&postcount=1) (Backup and Restore Tool) : enter "utility" to start.
switchrom.sh V1.1 (http://forum.xda-developers.com/showpost.php?p=4209412&postcount=1) : enter "switchrom" or "u" to start.
sdparted v0.6 (http://forum.xda-developers.com/showpost.php?p=4259325&postcount=1) : enter "sdparted" to start.
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)
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
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
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!
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 :
recovery-RA-sapphire-v1.5.2H.img (http://rapidshare.com/files/320335182/recovery-RA-sapphire-v1.5.2H.img) (Mirror (http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-sapphire-v1.5.2H.img)) - MD5Sum: 36d1536a35183743c99183f760a2ae96
recovery-RA-sapphire-v1.5.2G.img (http://rapidshare.com/files/320335181/recovery-RA-sapphire-v1.5.2G.img) (Mirror (http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-sapphire-v1.5.2G.img)) - MD5Sum: 4822fd118867bb2e66a53243a408f40e
Old versions :
recovery-RA-magic-v1.3.2H.img (http://rapidshare.com/files/307399485/recovery-RA-magic-v1.3.2H.img) (Mirror (http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-magic-v1.3.2H.img)) - MD5Sum: ea872880f709b133c63abb29fecb2133
recovery-RA-magic-v1.3.2G.img (http://rapidshare.com/files/307399484/recovery-RA-magic-v1.3.2G.img) (Mirror (http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-magic-v1.3.2G.img)) - MD5Sum: 009cd3ec8fc896f7c7a81ec637dc058e
recovery-RA-magic-v1.2.3H.img (http://rapidshare.com/files/291689412/recovery-RA-magic-v1.2.3H.img) (Mirror (http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-magic-v1.2.3H.img)) - MD5Sum: 0a758c7770e5baaae0519fd1a0223ce3
recovery-RA-magic-v1.2.3G.img (http://rapidshare.com/files/291689411/recovery-RA-magic-v1.2.3G.img) (Mirror (http://www.androidspin.com/downloads.php?dir=amon_ra/RECOVERY/&file=recovery-RA-magic-v1.2.3G.img)) - MD5Sum: ab0aeec4c2d60bce94d93691ee864bd0
Change-log :
v1.5.2
- Updated Nandroid to v2.2.2 (fix ext restore issues)
v1.5.1
- Fixed Nandroid-ext restore issue where nandroid didn't restore the backup-ed ext partition.
v1.5.0
- 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 :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://www.androidspin.com for hosting ^^
http://theunlockr.com for all the awesome video’s ^^
Cyanogen for his dedicated work! , buy him a beer! (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3283920)
JesusFreke for his awesome JFv1.43's recovery , donate (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1014600)
skittleguy
26th June 2009, 10:13 PM
Boots on a Rogers Magic with SPL.0009 :D
Amon_RA
26th June 2009, 10:16 PM
Boots on a Rogers Magic with SPL.0009 :D
Excellent, feel free to post your nandroid dumps so we can enable root on it :) !
skittleguy
26th June 2009, 10:32 PM
Okay, here's a Nandroid backup of a wiped state:
http://rapidshare.com/files/248999555/Rogers-Wiped.zip
mack
26th June 2009, 11:03 PM
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.
Amon_RA
26th June 2009, 11:08 PM
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
26th June 2009, 11:09 PM
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
26th June 2009, 11:11 PM
forgive my bad English. Acknowledge the great work you do for us all. Thanks !!... :)
Re: Mine is Vodafone and I've installed the Google.
k4r1m
26th June 2009, 11:18 PM
Boots on a Rogers Magic with SPL.0009 :D
Got the same rogers here... any advantages over daldroid's rom?
Killadude
26th June 2009, 11:25 PM
so i f i use this can i md it to run superhero v2 on the rogers magic?
mack
26th June 2009, 11:30 PM
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?
skittleguy
26th June 2009, 11:39 PM
I think its because the stock spl has signiture checking on. Change the spl though and...
mack
26th June 2009, 11:42 PM
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.
skittleguy
26th June 2009, 11:46 PM
Odd...I had no problem flashing the 2005 spl...
Amon_RA
26th June 2009, 11:54 PM
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 (http://rapidshare.com/files/247838950/update.Engineering-SPL-HBOOT-1.33.2005-signed.zip) update from your sd-card after fast booting with this recovery.
- 32B board : apply this (http://rapidshare.com/files/247838949/update.Engineering-SPL-HBOOT-1.33.2004-signed.zip) update from your sd-card after fast booting with this recovery.
mack
27th June 2009, 12:45 AM
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 (http://rapidshare.com/files/247838950/update.Engineering-SPL-HBOOT-1.33.2005-signed.zip) update from your sd-card after fast booting with this recovery.
- 32B board : apply this (http://rapidshare.com/files/247838949/update.Engineering-SPL-HBOOT-1.33.2004-signed.zip) 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
27th June 2009, 12:56 AM
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 (http://rapidshare.com/files/249031593/update.zip) 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
mack
27th June 2009, 01:15 AM
amazing. you did it again amon. i now have root =)
Amon_RA
27th June 2009, 01:18 AM
amazing. you did it again amon. i now have root =)
You're welcome, you can now update your signature :p
theillustratedlife
27th June 2009, 02:47 AM
My Ion came with what appears to be a G1 recovery image - It was a 3d ! triangle with no menu options. I flashed it to use the Smartphone France image (same thing but with a trackball-accessible menu).
http://wiki.smartphonefrance.info/public/upload/android/backup-magic.png
Did your Ion come with the green HTC logo and a trackball-accessible menu?
Roy Jovero
27th June 2009, 02:56 AM
Does this allow for superuser? I want my tethering back. Almost makes me wish I didn't sell my ADP1. Almost.
Amon_RA
27th June 2009, 02:57 AM
My Ion came with what appears to be a G1 recovery image - It was a 3d ! triangle with no menu options. I flashed it to use the Smartphone France image (same thing but with a trackball-accessible menu).
http://wiki.smartphonefrance.info/public/upload/android/backup-magic.png
Did your Ion come with the green HTC logo and a trackball-accessible menu?
The Ion recovery image on the HTC site indeed contains a G1 RLE...
I recompiled the recovery myself and added the green HTC logo :D , so no it didn't came that way.
sangeet.003
27th June 2009, 03:40 AM
Does this allow for superuser? I want my tethering back. Almost makes me wish I didn't sell my ADP1. Almost.
Ya the Rooted Magic Build may include SU access + Busybox flash it & use ur magic like adp with su access...
kirbyn
27th June 2009, 04:55 AM
Nice work ;) installed on Vodafone Spain Magic :D
Roy Jovero
27th June 2009, 06:16 AM
Ya the Rooted Magic Build may include SU access + Busybox flash it & use ur magic like adp with su access...
So is SU confirmed in this recovery image? And will I be able to use WiFi Tether for Root again, or will I need SU Whitelist?
arcenik
27th June 2009, 10:53 PM
Hello,
I have a small problem (PVT 32A board).
- I do the "Try it out WITHOUT making changes to your device (NO flashing):" and all works fine.
- I flash my SPL with de 32A file. No problem.
After that I reboot on fastboot mode and do the step for "Flash it permanently"
1. Boot the device in fastboot mode. (OK)
2. Connect the device to your machine over USB. (OK)
3. $fastboot boot recovery-RAv1.0H.img (OK)
Wait for a minute or two.. (OK)
$adb shell mount -a (OK)
Ignore the failed mounts... (OK)
$adb push recovery-RAv1.0H.img /system/recovery.img (OK)
$adb push recovery-RAv1.0H.img /sd-card/recovery-RAv1.0H.img (OK)
$adb shell flash_image recovery /sd-card/recovery-RAv1.0H.img (NOT OK)
I receive in return "/sbin/sh: flash_image: not found"
Anyone can Help me please ?
Thanks a lot,
Arcenik
PS: Sorry for my bad english .
Amon_RA
28th June 2009, 01:29 AM
Hello,
I have a small problem (PVT 32A board).
- I do the "Try it out WITHOUT making changes to your device (NO flashing):" and all works fine.
- I flash my SPL with de 32A file. No problem.
After that I reboot on fastboot mode and do the step for "Flash it permanently"
1. Boot the device in fastboot mode. (OK)
2. Connect the device to your machine over USB. (OK)
3. $fastboot boot recovery-RAv1.0H.img (OK)
Wait for a minute or two.. (OK)
$adb shell mount -a (OK)
Ignore the failed mounts... (OK)
$adb push recovery-RAv1.0H.img /system/recovery.img (OK)
$adb push recovery-RAv1.0H.img /sd-card/recovery-RAv1.0H.img (OK)
$adb shell flash_image recovery /sd-card/recovery-RAv1.0H.img (NOT OK)
I receive in return "/sbin/sh: flash_image: not found"
Anyone can Help me please ?
Thanks a lot,
Arcenik
PS: Sorry for my bad english .
Oops, it's sdcard and not sd-card ! Thanks for noticing!
Try this :
$adb push recovery-RAv1.0H.img /sdcard/recovery-RAv1.0H.img
$adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img
johnowa636
28th June 2009, 02:03 AM
Is there a way to ($fastboot pull /system/recovery.img) ?
I need to be able to unroot this Mytouch 3G before I return it and put back the original recovery.img
arcenik
28th June 2009, 02:30 PM
@ Amon_ra I have always the same problem.
$ adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img
/sbin/sh: flash_image: not found
SO, it's not a problem with the sd-card to sdcard. :(
thanks
Amon_RA
28th June 2009, 06:37 PM
@ Amon_ra I have always the same problem.
$ adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img
/sbin/sh: flash_image: not found
SO, it's not a problem with the sd-card to sdcard. :(
thanks
Can you try this and list the output :
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 /sdcard/recovery-RAv1.0H.img
$adb shell
#cd /sdcard
#ls -l
See if you can see recovery-RAv1.0H.img on your sdcard.
If you see it then :
#flash_image recovery /sdcard/recovery-RAv1.0H.img
phoboulinos@gmail.com
28th June 2009, 07:11 PM
Weird....
I have a 32A board and I just flash the recovery img mentioned here. Works fine but I do a ./adb shell and then a cat /proc/meminfo and I get this:
MemTotal: 197144 kB
Shouldnt this be 288mb ?
EDIT: ok found the post about this
Gormanimal
28th June 2009, 08:16 PM
Can you try this and list the output :
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 /sdcard/recovery-RAv1.0H.img
$adb shell
#cd /sdcard
#ls -l
See if you can see recovery-RAv1.0H.img on your sdcard.
If you see it then :
#flash_image recovery /sdcard/recovery-RAv1.0H.img
I can get it to do all of these steps but they don't seem to stay applied. I did have to use some extra steps to get su access:
./adb push ./bin/su /system/xbin/su
./adb shell mount -a
./adb shell chmod 4755 /system/xbin/su
but once I've done that I can definitely access flash_image but upon reboot it still goes to the standard recovery boot screen. Is there some sort of commit or sync command I'm missing?
Edit 1:
According to this wiki (http://android-dls.com/wiki/index.php?title=Replace_Recovery_Partition) 'Note: You must place the recovery image at /system/recovery.img. the init.rc boot script automatically flashes the recovery partition with that file every time you boot up the phone.'
So do I need to replace /system/recovery.img with recovery-RAv1.0H.img (obviously renamed)?
Jan Rune
28th June 2009, 08:37 PM
I did manage to flash the recovery to my phone. I had to update to SPL HBOOT-1.33.2005 (SAPP10000). That went well, you made me look like a pro :D
But im not getting root access via "adb root"...
Amon_RA
28th June 2009, 09:51 PM
According to this wiki (http://android-dls.com/wiki/index.php?title=Replace_Recovery_Partition) 'Note: You must place the recovery image at /system/recovery.img. the init.rc boot script automatically flashes the recovery partition with that file every time you boot up the phone.'
Correct, be aware that some custom ROMs might have changed this location (Like JF releases)... What's your current ROM and Magic model?
So do I need to replace /system/recovery.img with recovery-RAv1.0H.img (obviously renamed)?
That's what you do in this step :
$adb push recovery-RAv1.0H.img /system/recovery.img
Amon_RA
28th June 2009, 10:07 PM
I did manage to flash the recovery to my phone. I had to update to SPL HBOOT-1.33.2005 (SAPP10000). That went well, you made me look like a pro :D
But im not getting root access via "adb root"...
root access in recovery mode or once your mobile is booted?
Gormanimal
28th June 2009, 10:12 PM
Correct, be aware that some custom ROMs might have changed this location (Like JF releases)... What's your current ROM and Magic model?
Oh, I didn't know that. I looked in the init.rc file but didn't see anything obvious (but I'm not sure of what I'd be looking for anyways). Right now I'm running nk02's ION Multi5 v4 repack. I've flashed my Rogers Magic SPL to the Engineering SPL HBOOT-1.33.2005. It was previously the following:
SAPPHIRE PVT 32A SHIP S-ON H
HBOOT-1.33.0009 (SAPP50000)
CPLD-12
RADIO-3.22.20.17
MAY 8 2009, 21:02:32
so now it reads:
SAPPHIRE UNKNOWN 32A ENG S-OFF H
HBOOT-1.33.2005 (SAPP50000)
CPLD-12
RADIO-3.22.20.17
Apr 20, 2009, 15:30:43
That's what you do in this step :
$adb push recovery-RAv1.0H.img /system/recovery.img
Of course, I should have noticed that.
It's not the end of the world that it's not working. I can still get the ROM loaded, and I can still get root access. But it would be more convenient :)
Thanks for all the work you've done, and I appreciate the reply.
Jan Rune
28th June 2009, 10:59 PM
root access in recovery mode or once your mobile is booted?
In recovery mode. All i get from ADB root is "Error:Closed"
X:\Android\android-sdk-windows-1.5_r2\tools>adb devices
List of devices attached
HT95WKF08185 recovery
X:\Android\android-sdk-windows-1.5_r2\tools>adb root
error: closed
X:\Android\android-sdk-windows-1.5_r2\tools>
Jan Rune
28th June 2009, 11:39 PM
Okey "adb shell reboot" does reboot my phone. Then i have root right?
Amon_RA
29th June 2009, 12:39 AM
Okey "adb shell reboot" does reboot my phone. Then i have root right?
Just do "adb shell" and you will see the # root sign.
This recovery does NOT give your root when you fully boot your device, it's just a tool to make you backup your device via Nandroid.
If you want to have root on your device you'll need to enable root in your boot.img nandroid backup and reflash it.
Jan Rune
29th June 2009, 12:56 AM
Okey thanks Amon_Ra, do you have any pointers to get me there? How can i enable root in my boot.img? Or is this a big operation?
Amon_RA
29th June 2009, 01:05 AM
Okey thanks Amon_Ra, do you have any pointers to get me there? How can i enable root in my boot.img? Or is this a big operation?
It's a big operation if you never did it :p
Upload your boot.img (get it via nandroid) and I'll root it and repack it in a update.zip so you just have to apply it.
Just to confirm : Your Magic has "with google" on the back cover, right?
Jan Rune
29th June 2009, 01:50 AM
Then its very kind of you Amon_RA. Thank you :) Can you tell me in a short description how youre doing it?
Here's my boot.img http://www.usb3.no/boot.img
No, its the one with HTC on the back cover...
Amon_RA
29th June 2009, 02:26 AM
Then its very kind of you Amon_RA. Thank you :) Can you tell me in a short description how youre doing it?
Here's my boot.img http://www.usb3.no/boot.img
No, its the one with HTC on the back cover...
Download this (http://rapidshare.com/files/249770563/Jan_Rune_boot_update_signed.zip), rename to update.zip, copy it to your SDcard, and update it via RAv1.0 recovery.
I unpacked your boot.img, set ro.secure=0,ro.debuggable=1 and
persist.service.adb.enable=1 in default.prop, repacked boot.img, made an update.zip, signed it, and uploaded it.
I did NOT add busybox, SU app, etc... I'll leave that up to you now that you have root.
Jan Rune
29th June 2009, 02:43 AM
Youre a genius! It works, i got the # now :) A couple of redbull's is on its way. Cheers
droidgren
29th June 2009, 03:05 AM
I followed your instructions on my Google Ion phone:
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.0G.img
This is only thing that happned is that phone turns black, and got stuck. Had to put out the battery to start it again.
Then I tried to start it with HOME + Power.. And it's the same old menu.
Do I really need to flash the SPL? And in that case, how do I do that?
Edit:
Ok.. I discovered that the img file was corrupted (a few kb was missing).. despite downloading it twice.
Today it worked fine though.
Could you please make it habit to add MD5/CRC strings when uploading roms/systems files.
Thank you.
Edit 2:
Now when I flashed it, after entering "adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img" it gave me:
mtd: erase failure at 0x000c0000 (I/O error)
mtd: erase failure at 0x000c0000 (I/O error)
mtd: skipping write block at 0x000c0000
Is this normal?
However, when I then rebooted into HOME+Power, the modded recovery seems to be there permanently... Should I expect it to work properly even though the error messages?
dubsat
29th June 2009, 06:08 PM
Hi
First of all, excuse my bad english...
I got a strange problem with my sdcard, after I successfully replaced my recovery.img as specified in this thread, when I boot the recovery (home+power) nandroid can't mount /dev/block/mmcblk0 (no such file or directory) on first time, If I select the nandroid backup menu again, it's working.
The first time I'd used nandroid to backup my device (it was rogers stock non rooted), It was working on the first attempt but I was using fastboot to load the recevery.img file. I retried that route with fastboot but now I always get that error on my first attempt.
Any idea?
Gormanimal
29th June 2009, 06:23 PM
Hi
First of all, excuse my bad english...
I got a strange problem with my sdcard, after I successfully replaced my recovery.img as specified in this thread, when I boot the recovery (home+power) nandroid can't mount /dev/block/mmcblk0 (no such file or directory) on first time, If I select the nandroid backup menu again, it's working.
The first time I'd used nandroid to backup my device (it was rogers stock non rooted), It was working on the first attempt but I was using fastboot to load the recevery.img file. I retried that route with fastboot but now I always get that error on my first attempt.
Any idea?
I find I get that if I don't give the device enough time to fully boot. Trying waiting a full minute or two and see what happens.
arcenik
29th June 2009, 07:21 PM
@ Amon-ra
Can you try this and list the output :
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 /sdcard/recovery-RAv1.0H.img
$adb shell
#cd /sdcard
#ls -l
See if you can see recovery-RAv1.0H.img on your sdcard.
If you see it then :
#flash_image recovery /sdcard/recovery-RAv1.0H.img
-rwxrwxrwx 1 0 0 2396160 Jun 27 19:15 recovery-RAv1.0H.img
/sdcard # flash_image recovery /sdcard/recovery-RAv1.0H.img
/sdcard #
How can I verify if all works fines ?
Witch mod can I install on my Magic with hero interface please ?
k4r1m
29th June 2009, 09:18 PM
Amon_RA@: thanks a lot, permantly flashed on my 32a
dubsat
29th June 2009, 10:04 PM
@ Gormanimal
I'd waited 5 minutes and same thing, work only on second attempt.
I had formated the sdcard and now everything is fine. Don't know what it was.
Anyway I am ok now :)
Also a great thanks to Amon_Ra for this recovery. :D
Gormanimal
30th June 2009, 03:51 AM
Is there any reason to use the command Amon_RA gave of 'adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img' instead of 'flashboot flash recovery recovery-RAv1.0H.img'? Just trying to wrap my head around some of the differences between various flashing steps I see around.
jfive74
30th June 2009, 06:08 AM
I have followed all the given instructions provided in this forum. i used daldroid update and recovery.img. that replaced stock rogers rom with a generic htc rom. this rom has no rogers apps and provides access with app to paid apps on the market place. i then saw this thread and ... In the end, i did the hole su, recovery flashing, etc. I just want to know, how do you know when this thing is rooted? i'm able to flash different roms, i can fastboot recovery img without having it installed on my memory card. just need someone to clarify a few things. i have read and read. saffire thread is lacking noob section as many people had a g1 and thus have a yr of experience. thanks in advance.
jfive74
1st July 2009, 05:40 AM
after flashing this last command: $adb shell flash_image recovery /sdcard/recovery-RAv1.0H.img. it just returns to cd:\android\tools. does that mean i was successful? the other commands gave some digits and stuff.
When i boot, i was told to press power and home button at same time. \if it boots to your image, you have succeeded.:D
tried it and it works. so i answered my own ?:rolleyes:
can i reinstall my nandroid backup from this mode?
thanks.
edit: answered my own ?'s:D
BrumBrum74
2nd July 2009, 02:11 PM
I tried to flash recovery image from terminal on phone doing it like this:
flash_image recovery sdcard/recovg.img <----- changed name to a shorter one
Get the following error:
mtd_read error at 0x(lots of numbers) (out of memory)
any clue why this happens? Tried different recovery images.
My computer doesn't discover the phone properly in fastboot mode (adb devices) so no contact that way.
Have the .2005 engeneering spl and phone is rooted.
Hope anyone can help me.
avigan
3rd July 2009, 09:20 AM
any one got this flashed and working on PVT32A running Fatal1tys 1.2 Hero rom (modded for PVT32A by skittleguys)? I can flash it and all seems well, but back+power gives me the old skateboarding recovery. Also I just tried to go into HBOOT-mode and it gave me a bunch of errors saying a bunch of files where gone/wrong. What can I do? (I fastbooted this recovery and checked /system/ for recovery.img but there is none there, even tho init.rc states it flashes /system/recovery.img) I'm running engineering SPL, FYI.
:edit: The files shown as missing when entering HBOOT mode are named something like this SAPPDIAG.ZIP SAPPDIAG2.NBH SAPPIMG.NBH
Okay so I just learnt how to boot into recovery mode, I thought fastboot = recovery, home + power was the solution!
avigan
3rd July 2009, 09:35 AM
I tried to flash recovery image from terminal on phone doing it like this:
flash_image recovery sdcard/recovg.img <----- changed name to a shorter one
Get the following error:
mtd_read error at 0x(lots of numbers) (out of memory)
any clue why this happens? Tried different recovery images.
My computer doesn't discover the phone properly in fastboot mode (adb devices) so no contact that way.
Have the .2005 engeneering spl and phone is rooted.
Hope anyone can help me.
You wouldn't by any chance be running ubuntu jaunty? If so there seems to be some problem with the rules files.
http://groups.google.com/group/android-developers/msg/5c679d04aa6713d3
Solves it tho. If this is not the case, I can only hope you'll get it back up.
MontAlbert
4th July 2009, 12:41 PM
G'day mate- i don't actually have my magic yet- i am just researching all this as much as possible before i get it (as i did my G1 back in january)....
Have you thought about pimping out the recovery image like Cyanogen has the G1 recovery? http://forum.xda-developers.com/showthread.php?t=523558
thanks for all your awesome work....
BrumBrum74
4th July 2009, 04:16 PM
Would be great to have Nandroid restore posibility in recovery image menu.
Caid444
4th July 2009, 04:46 PM
Well, 50 minutes with my phone and it's bricked. I don't mean, a little bit either. It only boots to the htc magic screen, vibrates once, then does nothing. I cannot enter bootmode by any means. I guess this is what a bricked magic is really like. Too bad there're no unbrickers.
Caid.
444
BrumBrum74
4th July 2009, 06:56 PM
Will Nadroid 2.1.1 be able to restore files made with Nandroid 2.1?
Great work with this recovery image.
mack
4th July 2009, 08:21 PM
thanks Amon_RA,
flashed recovery v1.1 just fine using your steps. However, in your steps:
$adb push recovery-RAv1.1H.img /system/recovery.img
is that really necessary? I dont see the point in that since dont you need to just push the recovery on the sd and then flash? besides, it fails every time i try to attempt it so i just moved on and it works.
Gimpeh
4th July 2009, 09:16 PM
I was under the impression that you type in the $fastboot commands in the ADB command prompt in windows while the phone is in fastboot mode. Although when I type "ADB Devices" in ADB it will not find the device. Although in the OS itself ADB recognizes the device. What am I doing wrong?
hotweiss
4th July 2009, 09:23 PM
Thanks for the restore function!!!
k4r1m
4th July 2009, 09:38 PM
adb get-state -- double check if its connected
adb kill-server
then adb -start-server
and then check state again after a few seconds
rgbc
4th July 2009, 10:03 PM
Thanks for the update Amon_RA.
Has anyone running the HTC Hero ROM for Magic been able to push this recovery image to the device, I have tried a couple of times & receive the following error:
adb push recovery-RAv1.1H.img /system/recovery.img
failed to copy 'recovery-RAv1.1H.img' to '/system/recovery.img': No space left on device
Thanks,
Rob
k4r1m
4th July 2009, 10:14 PM
i have a rogers magic too... i just skip that step and go ahead with pushing it to the sdcard and then go ahead and use the flash_image command in the next step and it works fine...
fridlack
4th July 2009, 10:14 PM
thanks Amon_RA,
flashed recovery v1.1 just fine using your steps. However, in your steps:
$adb push recovery-RAv1.1H.img /system/recovery.img
is that really necessary? I dont see the point in that since dont you need to just push the recovery on the sd and then flash? besides, it fails every time i try to attempt it so i just moved on and it works.
+1 it's necessary to copy recovery image to system folder?
Gimpeh
4th July 2009, 10:18 PM
BTW I have a ION, if that makes any difference.
skittleguy
4th July 2009, 10:21 PM
If you can confirm it works through fastboot, then you can also do this:
fastboot flash recovery recovery-RAv1.1(G or H, depending on your version).img
This will flash it to your phone. Note that you'll need an engineering SPL for this.
rgbc
4th July 2009, 10:36 PM
i have a rogers magic too... i just skip that step and go ahead with pushing it to the sdcard and then go ahead and use the flash_image command in the next step and it works fine...
Thanks, this worked perfectly :)
BrumBrum74
4th July 2009, 11:17 PM
Flashed successfully. Nice with this.
If I have 2 Nandroid backups and want to choose one of them. Is that possible? Wich backup will be chosen if not? There's 2 folders with backup on the sdcard.
skittleguy
4th July 2009, 11:31 PM
Awesome work Amon_RA. This saves me a step!
rgbc
4th July 2009, 11:59 PM
Flashed successfully. Nice with this.
If I have 2 Nandroid backups and want to choose one of them. Is that possible? Wich backup will be chosen if not? There's 2 folders with backup on the sdcard.
Just tested & it restores the last backup automatically, no option to choose from multiple backups, very handy.
dubsat
5th July 2009, 01:01 AM
Can Amon_RA confirm that he is using binary from 1.3.1?
as cyanogen said on his twitter http://twitter.com/cyanogen
Quote --> @Amon_RA make sure you are using the unyaffs binary from 1.3.1, the 1.3 version has a little bug that kills setuid.
Amon_RA
5th July 2009, 01:40 AM
I will update with 1.3.1 tomorrow...
Gimpeh
5th July 2009, 01:56 AM
I cannot get this to install for the life of me. You enter the fastboot commands from Recovery (Home+Power) or from the HBOOT (Back+Power)? ADB recognizes my Device in recovery but not in HBOOT. I need a bit of help.
skittleguy
5th July 2009, 01:58 AM
I cannot get this to install for the life of me. You enter the fastboot commands from Recovery (Home+Power) or from the HBOOT (Back+Power)? ADB recognizes my Device in recovery but not in HBOOT. I need a bit of help.
Hboot. If "fastboot devices" returns your device than you can use it.
BrumBrum74
5th July 2009, 02:54 AM
If killing setuid means killing superuser then it has the bug. Restored from Nandroid and superuser rights was gone. didn't check rights before that.
MontAlbert
5th July 2009, 06:01 AM
If killing setuid means killing superuser then it has the bug. Restored from Nandroid and superuser rights was gone. didn't check rights before that.
there is a fix for it in the meantime- checkout out the pimped out recovery thread in the dream section.
i flashed the dream recovery just by going to a terminal, to use it in Sapphire copy recovery to root directory of sd card and type:
flash_image recovery /sdcard/recovery-RAv1.1
neodoxy
5th July 2009, 07:24 AM
can anybody tell me why must copy the img file into /system/ ?
BrumBrum74
5th July 2009, 10:33 AM
there is a fix for it in the meantime- checkout out the pimped out recovery thread in the dream section.
i flashed the dream recovery just by going to a terminal and typing:
flash_image recovery /sdcard/cm-recovery-1.3.1.img
Isn't that recovery for the G1? Wont work on Sapphire?
danielhet
5th July 2009, 11:51 AM
woww :D
Finally i do! Got my nandroid backup...now it is time to play!!!
Thank u guys! I LOVE YOU :eek:
MontAlbert
5th July 2009, 12:11 PM
Isn't that recovery for the G1? Wont work on Sapphire?
no i was just saying that that is how i did my G1 recovery. Substitute RA recovery for cm.
**EDit** fixed post for sapphire users.
Amon_RA
5th July 2009, 06:02 PM
Updated to RAv1.1.1 : Used the unyaffs binary from cm-recovery v1.3.1 which fixes the little bug that kills setuid.
Amon_RA
5th July 2009, 06:12 PM
can anybody tell me why must copy the img file into /system/ ?
For non customized ROMs the recovery image located in /system is flashed each time you boot your Magic.
The following is executed from your init.rc :
service flash_recovery /system/bin/flash_image recovery /system/recovery.img
oneshot
Hope this clarifies step 3 : $adb push recovery-RAv1.1.1H.img /system/recovery.img
Gimpeh
5th July 2009, 08:34 PM
Amon_RA would copying the recovery.img and putting it in the system folder (not SD card) work using the tool linked below?
http://forum.xda-developers.com/showthread.php?t=530271
MaxH75
6th July 2009, 12:18 AM
Just tried RAv1.1.1G on my black vodafone magic, but it states "Error performing nandroid backup. Backup not performed." whey i try and do a backup. Is it just me?
edit: flashed back to RAv1.0G.img becuase of this, i get same message there now. Im pretty (but not totally) sure that it worked in 1.0 before :S
Edit: Solved. it had to do with space free on the SD-card, or more specific, lack thereof. (a better error message would be great tho :P) :)
k4r1m
6th July 2009, 02:56 AM
For non customized ROMs the recovery image located in /system is flashed each time you boot your Magic.
The following is executed from your init.rc :
service flash_recovery /system/bin/flash_image recovery /system/recovery.img
oneshot
Hope this clarifies step 3 : $adb push recovery-RAv1.1.1H.img /system/recovery.img
Hm well im getting no space left errors, is there a way to get it working?
edit: nvm just removed all the ringtones to the sdcard and that made me have some space to copy it...
Wysie
7th July 2009, 07:30 AM
Thanks for this! Boots on my Singapore's (StarHub) HTC Magic. I'll try to upload a wiped state soon so it can be rooted ^^.
Goog1e Phone
7th July 2009, 09:42 AM
I can't get this to work for some reason. I have the Google ION phone, and when I go into fastboot (home + back) I get to a screen with 3 androids stating. I then plug my USB in and it says fastboot USB. I then try to run the adb shell command so I can apply $fastboot boot recovery-RAv1.1.1G.img, but it always says "no devices found". What am I doing wrong?
Wysie
7th July 2009, 10:39 AM
Okay, here's a Nandroid backup of a wiped StarHub (Singapore) HTC Magic. It would be great if someone could root or teach me how to root it! Thanks!
http://rapidshare.com/files/252920245/StarHub_HTC_Magic_Wiped.zip
dpds
7th July 2009, 01:55 PM
I can't get this to work for some reason. I have the Google ION phone, and when I go into fastboot (home + back) I get to a screen with 3 androids stating. I then plug my USB in and it says fastboot USB. I then try to run the adb shell command so I can apply $fastboot boot recovery-RAv1.1.1G.img, but it always says "no devices found". What am I doing wrong?
hey,
you don't need adb. just type fastboot boot recovery-RAv1.1.1G.img from tools directory (you need sdk installed). you don't have adb access from your current recovery. but you will from this one ;)
i just flashed this recovery image to google ion - it worked fine. don't forget to make a nandroid backup just in case :)
hope it helps.
shingers5
8th July 2009, 01:38 PM
well successfully rooted this damn magic with 32B board......... once i had the sdk and went to tools directory in DOS it was straight forward. tested the fastboot command without the $(2nd time of trying :D) and it loaded the temp boot img. did the permanent steps and pushed files to system memory and sdcard memory. now when i do home+power i see the full options including recovery in green. guess i am done. i had actually rooted using the wiki and flashed hero 1.4.............. keep the roms coming. hero looks good on this phone. was gonna add hero to my collection but may hold for awhile with this magic :D
fridlack
8th July 2009, 02:03 PM
I restored a couple of times a nandroid backup, when i do that i lose root in terminal.... is that normal?
Amon_RA
8th July 2009, 02:16 PM
I restored a couple of times a nandroid backup, when i do that i lose root in terminal.... is that normal?
You need to upgrade to v1.1.1...
fridlack
8th July 2009, 03:04 PM
Using 1.1.1, maybe the backup is maked with 1.1.0... i will try it later and tell you something...
Caid444
8th July 2009, 06:09 PM
I'm flashing the spl through the recovery program, it says formatting cache:... and I'm able to move the cursor to select other options, like rebooting and such.
It doesn't seem to be doing anything, regarding the formatting cache, is it done? or should I wait for something to happen? I don't want to kill my second magic.
Caid.
updated spl to 2005, still having trouble flashing the recovery RAv1.1.1H onto the phone, however. Should I be in the RAv1.1.1H through fastboot boot method, or otherwise?
Thanks again.
444
I've tried again to flash this recovery onto my phone. I get the same error after inputting the last step
adb shell flash_image recovery /sdcard/recovery-RAv1.1.1H.img
The error I get is "header is the same, not flashing recovery"
Any guidance, as to what I'm doing wrong, would be awesome. ;)
Amon_RA
8th July 2009, 09:45 PM
I'm flashing the spl through the recovery program, it says formatting cache:... and I'm able to move the cursor to select other options, like rebooting and such.
It doesn't seem to be doing anything, regarding the formatting cache, is it done? or should I wait for something to happen? I don't want to kill my second magic.
Caid.
updated spl to 2005, still having trouble flashing the recovery RAv1.1.1H onto the phone, however. Should I be in the RAv1.1.1H through fastboot boot method, or otherwise?
Thanks again.
444
I've tried again to flash this recovery onto my phone. I get the same error after inputting the last step
adb shell flash_image recovery /sdcard/recovery-RAv1.1.1H.img
The error I get is "header is the same, not flashing recovery"
Any guidance, as to what I'm doing wrong, would be awesome. ;)
What happens when you boot your phone into recovery mode?
Do you see the RA-recovery menu or the default stock recovery?
htcmagic
8th July 2009, 11:02 PM
Amon_Ra thanks for the tutorial and the help. I managed to backup my phone without any problems.
The specs of my phone are below:
- HBOOT-1.33.0004 (SAPP10000) : Sapphire PVT 32B SHIP S-ON G : CPLD-10 (Voldafone UK )
Although i backed up my phone, when i type su in terminal it says permission denied.
Is there something i can do to get root?
or is there a rom with the sense ui that will install on my phone?
The information is lots and all over the place.
Also many places report my phone having 192mb internal memory. The internal memory widget reports "used 76mb out of 295mb" Which is correct?
Thanks.
Caid444
9th July 2009, 04:35 AM
When I hold back and press power, I am booted to fastboot. When I run the command line and load your restore, I'm able to boot your restore.
I've checked through the restore directory in /system/ and it seems that your restore program is in there, as well as the old one, I'm guessing. The restore.img in the /system directory is the exact same size as your restore program, and the header IS in fact the same. So, the push worked, but getting it to flash the boot partition of the phone, well... I just don't know how to do it.
For now, your program is in the /system folder as recovery-RAv1.1.1H.img and as restore.img. Both are the same size in the phone's system folder, so I'm guessing the renaming went well. It's also in the phone's sdcard root directory. It just doesn't want to flash, is all.
Caid.
444
Wysie
9th July 2009, 08:34 AM
I'm getting the same error as Caid444, using the same SPL. I've also tried with SPL 2004 (Crios) previously, and it says that the flash is successful. However, when I enter recovery mode it's still the stock one.
Caid444: I also get the "Formatting CACHE" thing. I selected Reboot system and it restarts with the SPL flashed. Am I supposed to wait for something to happen?
Update: I flashed back to SPL 2004 and am still getting the error. I believe this is due to the flash being "successful" earlier, and as a result the recovery.img is already flashed, but is not loading somehow :(. Just a guess.
Amon_RA
9th July 2009, 09:05 AM
I'm getting the same error as Caid444, using the same SPL. I've also tried with SPL 2004 (Crios) previously, and it says that the flash is successful. However, when I enter recovery mode it's still the stock one.
Caid444: I also get the "Formatting CACHE" thing. I selected Reboot system and it restarts with the SPL flashed. Am I supposed to wait for something to happen?
Update: I flashed back to SPL 2004 and am still getting the error. I believe this is due to the flash being "successful" earlier, and as a result the recovery.img is already flashed, but is not loading somehow :(. Just a guess.
fastboot erase cache
fastboot erase recovery
fastboot flash recovery recovery-RAv1.1.1G.img
Wysie
9th July 2009, 09:15 AM
Thanks! It's working now. I wasn't thinking, kept booting into fastboot thinking it's recovery :X. In fact, I think the earlier commands "adb flash_image ..." was working. Haha.
Caid444: I think you are doing what I did. Recovery mode is "Home+Power", not "Back+Power". Hope it helps!
Goog1e Phone
9th July 2009, 10:45 AM
i cannot get this to work...
i got usb debugging enabled.
got sdk.
went to fastboot mode on my device
did cmd, cd C:\android-sdk-windows-1.5_r2\tools, then fastboot boot recovery-RAv1.1.1G.img.
for some reason, it says "waiting for device" and it sits there for 5+ mins doing nothing. Any ideas? Thanks in advance.
ElChouch
9th July 2009, 11:40 AM
Ok, so what's the point with flashing it permanently ? How does it work then ?
ElChouch
9th July 2009, 11:55 AM
Every command I launch ends with
/sbin/sh: adb: not found
What should I do ?
ElChouch
9th July 2009, 12:22 PM
So I found the answers by myself, my problem was that instead of launching each command from c:\android_sdk\tools I was launching them after opening adb shell, which doesn't work...
Caid444
9th July 2009, 04:36 PM
I was instructed to press back and power to boot in recovery mode. I pressed home and power, and there it is. Is that to say it's booting from the phone's recovery partition? Or is it still booting off the mem card?
If it's done, I'll attempt to flash a rom on there now, as I need not be so afraid of bricking my phone. ;)
I'm using the htc magic (32a) which rom is the most stable with the least amount of bugs?
Caid.
444
Cheesebaron
9th July 2009, 05:55 PM
i cannot get this to work...
i got usb debugging enabled.
got sdk.
went to fastboot mode on my device
did cmd, cd C:\android-sdk-windows-1.5_r2\tools, then fastboot boot recovery-RAv1.1.1G.img.
for some reason, it says "waiting for device" and it sits there for 5+ mins doing nothing. Any ideas? Thanks in advance.
You need to turn off your phone, and then hold the back button while pressing end/power to boot in fastboot mode.
kohler
10th July 2009, 12:14 AM
Flash it permanently (try it first by following the steps above and making a nandroid backup first!):
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.1.1H.img
Wait for a minute or two..
$adb shell mount -a
Ignore the failed mounts...
$adb push recovery-RAv1.1.1H.img /system/recovery.img
$adb push recovery-RAv1.1.1H.img /sdcard/recovery-RAv1.1.1H.img
$adb shell flash_image recovery /sdcard/recovery-RAv1.1.1H.img
4. Reboot
I have just backup my rom. Can anyone explain what does these 3 command does in step 3?
$adb push recovery-RAv1.1.1H.img /system/recovery.img
$adb push recovery-RAv1.1.1H.img /sdcard/recovery-RAv1.1.1H.img
$adb shell flash_image recovery /sdcard/recovery-RAv1.1.1H.img
Do i need to copy the recovery-RAv1.1.1H.img into my SDcard as well so that i can push in these file into the phone
sherifone
10th July 2009, 02:21 AM
This is great, thank you for enabling easy nandroid backups :) I've installed it successfully and used to it try out some of the hero ROMs. But alas, I always end up going back to my original stock Google Ion firmware since I have it setup how I like. I do have one question though:
Is there a simple way to root my phone (provide super user access?) without wiping my data? My understanding so far is that I would modify the boot.img to allow for root access on the phone.
What changes would I make, or is there a script that makes this easier? Thanks in advance! The tutorials are a little rough.
Wysie
10th July 2009, 07:40 AM
sherifone: If you have a Rogers HTC Magic, you can try the instructions here: http://forum.xda-developers.com/showthread.php?t=530527
If you've a TW HTC Magic (or most Asian builds I'd assume, since I managed to root my Singapore version), try the Hami Rooting instructions here:
http://forum.xda-developers.com/showthread.php?t=531837
Read through the threads, someone will usually further clarify the instructions :).
zelrikriando
11th July 2009, 05:28 PM
Hello Amon Ra, I started a wiki here : http://android-dls.com/wiki/index.php?title=Main_Page
I hope you dont mind.
zkyevolved
12th July 2009, 02:55 AM
Hi! I've got a question. What languages does this version include?
tect
12th July 2009, 11:48 AM
i have a HTC Magic from Malaysia
Sapphire PVT 32A SHIP S-ON H
HBOOT-1.33.0010 (SAPP10000)
i have sdk installed and when i try the following steps,
Try it out WITHOUT making changes to your device (NO flashing):
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.1.1H.img
i got a reply of
'fastboot' is not recognized as an internal or external command, operable program or batch file.
can any 1 assist me on my problem?
thanks
MontAlbert
12th July 2009, 11:57 AM
does this have a terminal in it that we can drop into to run commands (eg. replace system files) as cyanogens 1.3.1 does?
Also, i dont want to flash it permanently yet, is there a way to boot into it from terminal on the phone? eg. in terminal on G1 you type reboot recovery and it reboots into recovery....is there a command to direct the phone to boot up the recovery?
zelrikriando
12th July 2009, 08:11 PM
i have a HTC Magic from Malaysia
...
'fastboot' is not recognized as an internal or external command, operable program or batch file.
...
Stupid question : Do you have fastboot installed?
Amon_RA
12th July 2009, 08:29 PM
Hi! I've got a question. What languages does this version include?
The recovery menu is only in English, I've not seen a multilingual one yet ^^
Maybe I'll implement one in the future, I think it's a cool idea :)
Amon_RA
12th July 2009, 08:30 PM
i have a HTC Magic from Malaysia
Sapphire PVT 32A SHIP S-ON H
HBOOT-1.33.0010 (SAPP10000)
i have sdk installed and when i try the following steps,
Try it out WITHOUT making changes to your device (NO flashing):
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.1.1H.img
i got a reply of
'fastboot' is not recognized as an internal or external command, operable program or batch file.
can any 1 assist me on my problem?
thanks
Make sure the tools directory is correctly defined in your PATH.
Amon_RA
12th July 2009, 08:32 PM
does this have a terminal in it that we can drop into to run commands (eg. replace system files) as cyanogens 1.3.1 does?
Also, i dont want to flash it permanently yet, is there a way to boot into it from terminal on the phone? eg. in terminal on G1 you type reboot recovery and it reboots into recovery....is there a command to direct the phone to boot up the recovery?
There is no keyboard on the Magic so a terminal in recovery mode would require a virtual keyboard on screen, implementing that is not so simple but I'll look into it...
I'm not aware of a method to boot the recovery from a terminal.
Dayzee
12th July 2009, 09:27 PM
YOU STARs!!! This was absolutely trouble free to install. :)
I did it via my laptop, using C Prompt and I had trouble at first until I realised I didn't need to type the dollar sign at the start.... LOL
The success of getting the image to load and make a nandroid backup spurred me to flash the recovery image permanently :)
And the success of THAT spurred me on to take the plung and load a rooted Rom from the SDCard (I've got the Ion Multi on now!!)
So now I've got root too - once again YOU STARS!!
Daisy xx
Draxter
14th July 2009, 12:38 PM
Got 1.1.1G running properly :) nice implementation of nandroid!
esepedazogsi
14th July 2009, 01:11 PM
Amon_RA, thanks so much for this great recovery :eek:
Thanks
Leviathon
14th July 2009, 07:20 PM
Thanks very much for this, I thought I'd give this a go, but after following the steps (32b) I just get an exclamation mark next to a phone when trying to go into it? I did try without flashing first and it worked perfectly. The rest of the phone also works fine. If anyones able to help would be appreciated. I'm on SPL 2005, cheers.
sunboa
14th July 2009, 08:27 PM
Thanx. It worked with my Magic, bought from 3 Denmark.
SPL version showed in my signature
Leviathon
14th July 2009, 09:29 PM
Re-did it, working fine now for some reason - great stuff, cheers. :)
zetsurin
14th July 2009, 09:32 PM
This looks great, I just have a newbie question:
I currently have a Vodafone UK Magic with stock SPL and ROM. What I am interested in doing is restoring jmaurice's Japanese nandroid backup (http://forum.xda-developers.com/showthread.php?t=526085) on my device, but if possible I would like to keep my stock SPL in-place, just in case I have a warranty issue. Since the Japanese nandroid backup is a stock standard unmodified ROM (which would pass signature checks I assume, correct me if I am wrong), would it be possible - at least in theory - for me to use this recovery (using the 'temporary' method) to restore the nandroid backup while leaving my SPL as-is?
Blocky
15th July 2009, 06:34 PM
This Recovery image rocks!
Thank you for this! :)
chris4500uk
16th July 2009, 07:09 PM
I don't know if this is needed, but will this be updated to CRC1 ?
computerdan
17th July 2009, 05:17 AM
I flashed the recovery utility permanently to my phone, but now I have to return the phone to Rogers due to some burnt pixels. Every time I press Home+Power, the utility still comes up - this is after flashing to original ROM and using Wipe data/factory reset function in the utility.
How do I get rid of the boot utility partition? :confused:
UPDATE: Please disregard. I figured it out. I ran a nandroid restore from a previously backed up copy (phew!) and it wrote over boot.img (I assume).
james_d
17th July 2009, 04:59 PM
I tried this as it is my first attempt at rooting my Magic (Vodafone UK). I believe I flashed it to the phone and it began a restart and just stuck on the Vodafone boot image.
Took the battery out and booted as normal. Tried it twice and same thing happened. Any ideas?
Thanks.
ClintonH
17th July 2009, 05:08 PM
I tried this as it is my first attempt at rooting my Magic (Vodafone UK). I believe I flashed it to the phone and it began a restart and just stuck on the Vodafone boot image.
Took the battery out and booted as normal. Tried it twice and same thing happened. Any ideas?
Thanks.
Did you flash the correct SPL? http://forum.xda-developers.com/showthread.php?t=529019
Clinton
james_d
17th July 2009, 05:23 PM
Did you flash the correct SPL? http://forum.xda-developers.com/showthread.php?t=529019
Clinton
No I had not done that, will try it when I get back.
Thanks
zetsurin
18th July 2009, 02:25 PM
I used this to flash an unmodified nandroid backup from the Japanese ION to my Vodafone UK Magic. Just letting those know that if they also plan to do something similar, I did not need to flash my SPL to do this. So that takes potential warranty concerns out of the equation. Note that this is only applicable if you are not interested in rooting your phone (as is my situation). Also note that the first thing you should do is wipe the system settings (in case of restoring someone else's nandroid backup like I did) as otherwise your accelerometer calibration will likely be out.
Amon_RA
18th July 2009, 03:21 PM
Also note that the first thing you should do is wipe the system settings (in case of restoring someone else's nandroid backup like I did) as otherwise your accelerometer calibration will likely be out.
If your accelerometer is not working : "rm /data/misc/akmd* /data/misc/rild*" and reboot. No need to wipe...
zetsurin
18th July 2009, 07:15 PM
If your accelerometer is not working : "rm /data/misc/akmd* /data/misc/rild*" and reboot. No need to wipe...
Brilliant, thanks. Wish I had known that before but noting it down for next time :)
Nags
20th July 2009, 03:04 AM
Hey Guys,
Im really trying to do as follow as what it state below..
1) i did Fastboot mode (holding back+power after switching off)
2) it came out white screen with details on bout the phone n state there Fastboot. From there, theres several option which i have to choose by pressing 'back button', 'action button', 'menu button' n 'send button'.
So which one is it?
3) i connect my device to my pc
4) im trying to do fastboot boot recovery.. Which i really have no clue how..
Please help me out here.. Im really cracking my head n really trying to get this.. Just help me out step by step n what to press. Im really new at this n really want this google app in my phone. (Im using HTC Magic spl 1.33.0009)
I need to do this asap, please guys..
Thanks Guys,
Try it out WITHOUT making changes to your device (NO flashing):
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.1.1H.img OR $fastboot boot recovery-RAv1.1.1G.img
Flash it permanently (try it first by following the steps above and making a nandroid backup first!):
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. fastboot boot recovery-RAv1.1.1H.img
Wait for a minute or two..
adb shell mount -a
Ignore the failed mounts...
adb push recovery-RAv1.1.1H.img /system/recovery.img
adb push recovery-RAv1.1.1H.img /sdcard/recovery-RAv1.1.1H.img
adb shell flash_image recovery /sdcard/recovery-RAv1.1.1H.img
4. Reboot
If the flashing doesn't work you might need to flash your SPL :
- 32A board : apply this (http://rapidshare.com/files/247838950/update.Engineering-SPL-HBOOT-1.33.2005-signed.zip) update from your sd-card after fast booting with this recovery.
- 32B board : apply this (http://rapidshare.com/files/247838949/update.Engineering-SPL-HBOOT-1.33.2004-signed.zip) update from your sd-card after fast booting with this recovery.
Special thanks to :
Cyanogen for updating Nandroid 2.1.1 with the restore functionality! , buy him a beer! (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3283920)
Haykuro for finding the HTC offsets ^^ , buy him a Nesquik! (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4290101)
JesusFreke for his awesome JFv1.43's recovery , donate (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1014600)[/QUOTE]
xyzulu
20th July 2009, 03:07 AM
Do this:
Try it out WITHOUT making changes to your device (NO flashing):
1. Boot the device in fastboot mode.
2. Connect the device to your machine over USB.
3. $fastboot boot recovery-RAv1.1.1H.img OR $fastboot boot recovery-RAv1.1.1G.img
No mention is made of you needing to select any options..
I suggest you carefully read things though, the last thing I'd imagine you'd want is a dead phone due to inexperience or missing an important detail. All the information is usually provided if you read carefully.
bufodill
21st July 2009, 10:26 PM
will the dream recovery work on magic? So one can partition sd card without booting linux?
from this post http://forum.xda-developers.com/showthread.php?t=533731
guess not, but would save me some trouble :)
k4r1m
22nd July 2009, 01:46 AM
hey Amon_Ra;
i don't know if im asking for too much or not lol but do you know if can get some the features that this (http://forum.xda-developers.com/showthread.php?t=523558) recovery, specially the stuff for partitioning... i didn't wanna try to port it because i feel it's way better if all magic users use one main recovery.
thanks,
scyu
22nd July 2009, 03:53 AM
I follow the first part, i.e., I am using RA ROM. No error message prompted but the process did not make any changes to the RAv1.1.1H.img previously installed.
When I follow the 2nd part, erro message "not enough space" was prompted when entering command line "adb push recovery-RAv1.1.2H.img /system/recovery.img"
Have I done something wrong.
Regards
SC Yu
migatxu
22nd July 2009, 03:57 AM
Hi all
Is needed a wipe before to make a restore? I suppose that it makes a erase system -w and then the wipe isn't needed.
Can the last Nandroid Recovery restore a backup made with an earlier version?
Cheers
Malky1903
22nd July 2009, 09:48 PM
If your accelerometer is not working : "rm /data/misc/akmd* /data/misc/rild*" and reboot. No need to wipe...
Hi folks. Nice forum you got here.
Being a noob who just got his Magic yesterday, I have found the accelerometer doesn't work after installing RAv1.1.2.
Where do you enter the above info in the quote?
On the PC whilst connected via USB or on the phone itself?
Ta
Wysie
24th July 2009, 05:10 AM
Malky1903: You can either run that off a Terminal installed in the phone (such as Better Terminal Emulator) or you can run it from your computer using adb shell.
ichijin
24th July 2009, 10:11 AM
umm...this seems like a stupid question, but where do we put the recovery img to fastboot it?
Edit: lol nevermind, i just had to point to the folder with cd before running the command :p
cenedra
25th July 2009, 05:48 PM
I follow the first part, i.e., I am using RA ROM. No error message prompted but the process did not make any changes to the RAv1.1.1H.img previously installed.
When I follow the 2nd part, erro message "not enough space" was prompted when entering command line "adb push recovery-RAv1.1.2H.img /system/recovery.img"
Have I done something wrong.
Regards
SC Yu
i got the same error message as u had, but i just continued to do the other parts (adb push recovery-RAv1.1.2H.img /sdcard/recovery-RAv1.1.2H.img and adb shell flash_image recovery /sdcard/recovery-RAv1.1.2H.img) and it still works. So i guess the error message isnt much of an issue.
droidgren
25th July 2009, 10:06 PM
fucking rapidshare giving me CRC error again!
I was ripping my hair off before i found it out!
Can you plz upload md5 strings in the future...
trincisor
26th July 2009, 02:09 AM
can i use nandroid restore to just restore apps and data when i am moving from one rom to another ??
Gimpeh
26th July 2009, 10:40 PM
Cyans Recovery 1.4 is out! W00t! I hope this will grace our magics soon.
runeblades
27th July 2009, 07:53 PM
Hello everyone! I'm not very good with such stuff! Hope you guys will understand. I'm able to install the adb driver properly, such that I will be able to see my serial number when i key in 'adb devices' in CMD. But when i try to boot the recovery image by typing, fastboot boot recovery-RAv1.1.2H.img, I'm unable to do so! Oh i have already copied the img file into the SDK tools. Please help thank you!
Amon_RA
27th July 2009, 11:27 PM
Cyans Recovery 1.4 is out! W00t! I hope this will grace our magics soon.
I've compiled a new version including Cyans latest changes. It's currently in test, I will release it later this week. :)
dferreira
27th July 2009, 11:46 PM
I've compiled a new version including Cyans latest changes. It's currently in test, I will release it later this week. :)
If we have 32B, Cyanogen version works just fine :)
Amon_RA
28th July 2009, 12:05 AM
If we have 32B, Cyanogen version works just fine :)
Some things will not work because you have no keyboard :
- the console.
- shortcuts.
And... many people have a 32A version.
I'll add some scripts of my own too...
k4r1m
28th July 2009, 01:17 AM
Some things will not work because you have no keyboard :
- the console.
- shortcuts.
And... many people have a 32A version.
I'll add some scripts of my own too...
Good work man, do you mind adding the ext3/ext4 tools with parted?
thanks,
Gimpeh
28th July 2009, 01:42 AM
I've compiled a new version including Cyans latest changes. It's currently in test, I will release it later this week. :)
Nice! Looking forward to it!
twodots
29th July 2009, 12:49 AM
I have the same problem as james_d a few posts back. When fastbooting with the recovery image the phone is stuck at the Vodafone logo and won't go away until I remove the battery. I've tried both the 1.1.1 and 1.1.2 versions of the recovery image and also the SPL suggested to james_d. Any other suggestions?
Cheesebaron
29th July 2009, 01:57 AM
I have the same problem as james_d a few posts back. When fastbooting with the recovery image the phone is stuck at the Vodafone logo and won't go away until I remove the battery. I've tried both the 1.1.1 and 1.1.2 versions of the recovery image and also the SPL suggested to james_d. Any other suggestions?
Tried both the G and H?
vladkor
29th July 2009, 02:54 AM
Whenever trying to perform a Nandroid backup using this recovery, I get an error right as the backup is about to complete.
Any ideas?
"Error running nandroid backup. Backup not performed."
Rogers Magic - SPL 2005
xyzulu
29th July 2009, 03:24 AM
Did you wait a minute after booting the Recovery Rom to mount the SD card?
vladkor
29th July 2009, 03:35 AM
Did you wait a minute after booting the Recovery Rom to mount the SD card?
Yup. I did.
xyzulu
29th July 2009, 03:51 AM
Enough free space on your SD card?
vladkor
29th July 2009, 03:59 AM
Enough free space on your SD card?
I tip my hat to you good sir. Now, I flee to hide under a rock. :o
beedroid
29th July 2009, 04:11 AM
Is there a way to allow which backup to restore as I know RAv1.1.2 restores most recent backup
backup 2 is currently installed on phone.
BACKUPS BELOW
backup 1 - with original rom that came with phone
backup 2 - with nk05 rom installed on phone
I want to restore backup 1, but the recovery will restore backup2. Even if I move the backup 2 out of the sdcard and leave backup 1, I have problems restoring the original rom (backup 1)
"Performing restore
Error running nadroid restore.
Restore not performed"
please help thanks.
xyzulu
29th July 2009, 05:42 AM
Did you wipe first?
Does your SPL allow you to restore Nandroid backups?
beedroid
29th July 2009, 06:17 AM
Did you wipe first?
Does your SPL allow you to restore Nandroid backups?
no i didn't wipe first, and how do you know if your spl allows you to restore nandroid backups?
im using 32b board
HBOOT-1.33.0004
CPLD-10
RADIO-2.22.19.26I
twodots
29th July 2009, 07:10 AM
Tried both the G and H?
Yes. A bit unsure about the SPL though, all I've done is transfer it to the phone via adb push. Is there something else that should be done as well before I can fastboot to the recovery? In the end I want to have the nk02 ION lite installed on my phone, but this is my first attempt so there might be something I'm missing.
norim_13
30th July 2009, 09:05 PM
Hey!
I'm following the tutorial and when I get here:
adb shell flash_image recovery /sdcard/recovery-RAv1.1.2H.img
It says: "header is the same, not flashing recovery"
What's wrong?
norim_13
30th July 2009, 11:11 PM
Hi!
Now I don't have this error...
Now, after all, I don't get my phone rooted, so I have to install "update.zip", and when I try to do that, I get this:
http://i466.photobucket.com/albums/rr22/norim_13/IMG_0018.jpg
Can you help me?...
xyzulu
30th July 2009, 11:32 PM
Wait a minute to allow your sdcard to mount before trying to apply the update.
norim_13
31st July 2009, 12:20 AM
Hi!
Now I did everything but when I finished, the phone rebooted and now it says: "Formating CACHE:..." I is still like that and more than 10 minutes have passed...
PS: Can I select "Reboot now"? Or I have to wait?
xyzulu
31st July 2009, 01:42 AM
Hi!
Now I did everything but when I finished, the phone rebooted and now it says: "Formating CACHE:..." I is still like that and more than 10 minutes have passed...
PS: Can I select "Reboot now"? Or I have to wait?
Do the update, and then reboot.
Puky70
1st August 2009, 12:31 PM
I've compiled a new version including Cyans latest changes. It's currently in test, I will release it later this week. :)
Cool;
I can't wait for this new release ;) Great job Dude.
Amon_RA
1st August 2009, 11:08 PM
Partition your SD directly from the menu!
Repair ext filesystem, convert ext2 to ext3, fix package mismatches, move apps2SD directly from the menu!
Flash ANY .zip from your SD - by krut0n
Loads of scrips and binaries from Cyanogen's v1.4 dream recovery
Nandroid v2.2 backup and restore
Gimpeh
1st August 2009, 11:49 PM
Partition your SD directly from the menu!
Repair ext filesystem, convert ext2 to ext3, fix package mismatches, move apps2SD directly from the menu!
Flash ANY .zip from your SD - by krut0n
Loads of scrips and binaries from Cyanogen's v1.4 dream recovery
Nandroid v2.2 backup and restore
Absolutely cannot wait to flash this when I get home! Thanks!
eViL D:
2nd August 2009, 12:11 AM
awesome work! especially like the flash with *.zip.
moa77
2nd August 2009, 12:12 AM
Partition your SD directly from the menu!
Repair ext filesystem, convert ext2 to ext3, fix package mismatches, move apps2SD directly from the menu!
Flash ANY .zip from your SD - by krut0n
Loads of scrips and binaries from Cyanogen's v1.4 dream recovery
Nandroid v2.2 backup and restore
I run out of space on /system ????
see....
D:\Android\Roms>\android-sdk-windows-1.5_r1\tools\adb.exe push recovery-RAv1.2.0
G.img /system/recovery.img
failed to copy 'recovery-RAv1.2.0G.img' to '/system/recovery.img': No space left
on device
D:\Android\Roms>\android-sdk-windows-1.5_r1\tools\adb.exe shell
/ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 49460 0 49460 0% /dev
/dev/block/mtdblock4 81920 1196 80724 1% /cache
/dev/block/mtdblock3 92160 88876 3284 96% /system
/dev/block/mtdblock5 302848 43156 259692 14% /data
/dev/block/mmcblk0p1 1920672 1780864 139808 93% /sdcard
/ #
MontAlbert
2nd August 2009, 12:24 AM
wow! i like the new menu items making it much easier- anyway we could also get a rundown on what eack script does and how to execute them?
adbd
apps2sd = move apps to sd
parted = partition to ext2, fat23 and swap?
e2fsck = check health of file system
mke2fs = creates ext2? different to parted?
mkyaffs2image
sdtools.sh
tune2fs = tune file system settings?
unyaffs
plus others that look too difficult or are self explanatory
i like the idea of easy apps2sd and partitioning.......not sure if it is required with magic.... will app speed be slower or faster on sd? ...... makes flashing different roms faster though!
Wysie
2nd August 2009, 06:32 AM
Thanks for the update! When I do a backup I see /n followed by the dots. I'm guessing you wanted to put \n?
Cheesebaron
2nd August 2009, 08:36 AM
wow! i like the new menu items making it much easier- anyway we could also get a rundown on what eack script does and how to execute them?
adbd
apps2sd = move apps to sd
parted = partition to ext2, fat23 and swap?
e2fsck = check health of file system
mke2fs = creates ext2? different to parted?
mkyaffs2image
sdtools.sh
tune2fs = tune file system settings?
unyaffs
plus others that look too difficult or are self explanatory
i like the idea of easy apps2sd and partitioning.......not sure if it is required with magic.... will app speed be slower or faster on sd? ...... makes flashing different roms faster though!
Read the man pages, those are super simple linux shell commands...
hotweiss
2nd August 2009, 09:09 AM
Wow, what an update. Thanks.
dferreira
2nd August 2009, 12:02 PM
OFFTOPIC ALERT
--------------------
Amon_RA, check your PM, I need your help dumping HTC Magic SPL's from a Vodafone UK without root, for those who want to revert back to factory defaults. (will be useful for OTA's and warranties ;))
END OFFTOPIC
--------------------
If we use this recovery image, are we able to do official OTA's? Maybe we can change it so that it is able to do so ;)
MontAlbert
2nd August 2009, 12:36 PM
Read the man pages, those are super simple linux shell commands...
will do. i understand some of them but others, well, thats gonna take a bit more reading......
zutik
2nd August 2009, 09:27 PM
Amazing job, Amon_Ra !!!!
Thx from Basque Country !!!
trincisor
3rd August 2009, 12:20 AM
Thanks a lot for the fantastic recovery
i had a few doubts
1. is it safe to just flash it thru fastoot using
fastboot flash recovery *your_recovery.img*
2. # Partition your SD directly from the menu! (500MB Ext2, 32MB Swap, remaining Fat32) *NEW
can you explain what the above means ?
3. the last option move apps and dalvik cache to SD is not working, could you pls explain what this is and how to get this working
joshuas_79
3rd August 2009, 12:22 AM
Amazing recovery, but , I have the feeling that it didnt make the wipe properly in my last 2 flashes, can this be possible?
L10nH34Rt
3rd August 2009, 01:00 AM
No I don't think that it is... What gave you that idea?
njakobs
3rd August 2009, 08:06 AM
Amazing recovery, but , I have the feeling that it didnt make the wipe properly in my last 2 flashes, can this be possible?
Depending on which roms you have used the apps are stored in different locations. It is best to get in and do a manually delete of things from the adb shell.
The wipe will just wipe the user data, gmail account and data stores etc.
joshuas_79
3rd August 2009, 11:14 AM
Depending on which roms you have used the apps are stored in different locations. It is best to get in and do a manually delete of things from the adb shell.
The wipe will just wipe the user data, gmail account and data stores etc.
I installed some apps, like open home, last.fm, etc...and after flashing, and a wipe, they were still there. I flashed another rom, and the same. I even tried to restore system default, from setting menu, and it didn't work too
norim_13
3rd August 2009, 12:20 PM
Hi!
What's the file I have to use to root my magic (32A)?
I thought it was the "update.zip" in the first post but it didn't work...
Thanks
joshuas_79
3rd August 2009, 01:34 PM
Depending on which roms you have used the apps are stored in different locations. It is best to get in and do a manually delete of things from the adb shell.
The wipe will just wipe the user data, gmail account and data stores etc.
How can I do it? Im still not good with SDK and Linux
Amon_RA
3rd August 2009, 03:41 PM
I installed some apps, like open home, last.fm, etc...and after flashing, and a wipe, they were still there. I flashed another rom, and the same. I even tried to restore system default, from setting menu, and it didn't work too
Wiping works fine, it wipes DATA and CACHE.
If you notice that some apps are still there after wiping you are most probably using apps2sd.
Which ROM were you using before the flash, and which ROM are you using now?
joshuas_79
3rd August 2009, 10:08 PM
Wiping works fine, it wipes DATA and CACHE.
If you notice that some apps are still there after wiping you are most probably using apps2sd.
Which ROM were you using before the flash, and which ROM are you using now?
I think you're right, but how could I clean this stuff too?
Morpheo17
4th August 2009, 12:25 PM
Hello,
I got an error when I'm trying flash image: "header is the same, not flashing recovery". I am not flashed it before, but the recovery is installed when I boot in recovery mode (not fastboot), How is it possible?
Thanks
rajeevsudra
4th August 2009, 03:05 PM
I have a newb question regarding using the apps on the sd card. I moved them using the 1.2.0h recovery, after creating the partitions. All the widgets that were running off of the non-native apps no longer work, and I cannot access them by going into the programs screen.
Is there anything special that I have to do to access them again, and did all of my settings get moved with the apps?
Thanks
ps. Thanks for the great recovery!
Cheesebaron
4th August 2009, 04:16 PM
I have a newb question regarding using the apps on the sd card. I moved them using the 1.2.0h recovery, after creating the partitions. All the widgets that were running off of the non-native apps no longer work, and I cannot access them by going into the programs screen.
Is there anything special that I have to do to access them again, and did all of my settings get moved with the apps?
Thanks
ps. Thanks for the great recovery!
You have to use a ROM running app2sd
palexr
4th August 2009, 04:42 PM
convert ext2 to ext3
Excuse my ignorance, but what does this do?
I used the partioning tool on this recovery ROM to prepare my SD card, but now i am intrigued to know what the above does? Will it improve performance?
bjareboy
4th August 2009, 06:55 PM
Tried flashing to the 1.2.0H.img, but when I get to "adb push recovery-RAv1.2.0H.img /system/recovery.img" I get a "No space left on device" message.
Pretty sure there's plenty of space left... :(
What am I doing wrong here....?
Have got the previous recovery version installed without any issues
rajeevsudra
4th August 2009, 07:34 PM
You have to use a ROM running app2sd
I'm using JacHero v2.7.4r2, Im not sure if its in there, is there a way of verifying this, or is there a way of putting it in myself?
Thanks again!
cenedra
4th August 2009, 09:46 PM
Hi everyone,
Just a quick question regarding the nandroid backup. May i know what information does it back up?
Is it the apps and user settings/google accounts, or is the backup a full backup with roms and everything that the phone is current having?
Thanks!
rajeevsudra
4th August 2009, 09:53 PM
It makes an image of the phones state at that time, settings, wallpapers, phonelog, apps, ROM, etc. When restored, even when flashed to another rom, it will put it back exactly(I haven't been able to find a difference) the way it was at the time the backup was made.
dk_iceman
4th August 2009, 09:59 PM
hey I have a question...
If i use this recovery img can i then take my nandroid backup directly from recovery menu and go back to the original rom wich is my nandroid backup ???
or do i still have to Flash a new SPL to go back to my original rom from nandroid backup ??
hope anyone can help
Amon_RA
4th August 2009, 10:02 PM
Tried flashing to the 1.2.0H.img, but when I get to "adb push recovery-RAv1.2.0H.img /system/recovery.img" I get a "No space left on device" message.
Pretty sure there's plenty of space left... :(
What am I doing wrong here....?
Have got the previous recovery version installed without any issues
Are you sure you have enough space left?
Please do a "adb shell df" and provide us with the output.
Amon_RA
4th August 2009, 10:04 PM
hey I have a question...
If i use this recovery img can i then take my nandroid backup directly from recovery menu and go back to the original rom wich is my nandroid backup ???
Yes
or do i still have to Flash a new SPL to go back to my original rom from nandroid backup ??
hope anyone can help
Nandroid doesn't backup the SPL... so you will not be able to restore your original SPL.
Amon_RA
4th August 2009, 10:08 PM
Hi everyone,
Just a quick question regarding the nandroid backup. May i know what information does it back up?
Is it the apps and user settings/google accounts, or is the backup a full backup with roms and everything that the phone is current having?
Thanks!
Full backup : recovery, boot, system, userdata, splash1
dk_iceman
4th August 2009, 10:41 PM
Yes
Nandroid doesn't backup the SPL... so you will not be able to restore your original SPL.
i do know it dosent backup my SPL... what i meant was do I still need a Nother SPL than my original SPL too restore my original Nandroid backup or does this new recovery IMG cover it all ???
MontAlbert
5th August 2009, 12:55 AM
i do know it dosent backup my SPL... what i meant was do I still need a Nother SPL than my original SPL too restore my original Nandroid backup or does this new recovery IMG cover it all ???
some do and some dont'. I know of some people who have had to but i haven't had to and i do a nandroid restore all the time (always trying new things)
bjareboy
5th August 2009, 01:14 AM
Tried running adb shell df, but doesn't work :( I'm pretty noobish doing these things..
212627
stevetigersix
5th August 2009, 08:36 AM
apologies for the n00by question but how do you go from the old 1.1.2 recovery img to the new and improved version, its been a while since ive 'played' with the phone?
ClintonH
5th August 2009, 08:53 AM
Tried running adb shell df, but doesn't work :( I'm pretty noobish doing these things..
212627
Opps didn't read this right. ;)
Clinton
trincisor
5th August 2009, 08:56 AM
Thanks a lot for the fantastic recovery
i had a few doubts
1. is it safe to just flash it thru fastoot using
fastboot flash recovery *your_recovery.img*
2. # Partition your SD directly from the menu! (500MB Ext2, 32MB Swap, remaining Fat32) *NEW
can you explain what the above means ?
3. the last option move apps and dalvik cache to SD is not working, could you pls explain what this is and how to get this working
Edit/Delete Message
Amon_RA
5th August 2009, 09:08 AM
Tried running adb shell df, but doesn't work :( I'm pretty noobish doing these things..
212627
Ok... try installing a terminal app on your mobile and check it that way.
I'm actually 100% you really ran out of SYSTEM space, remove some things you don't need from system to free some space...
If you're using my rom you actually don't need to write it to system, just put the recovery image in data and reboot, it will automatically flash the recovery and remove the image file.
Amon_RA
5th August 2009, 09:13 AM
Thanks a lot for the fantastic recovery
i had a few doubts
1. is it safe to just flash it thru fastoot using
fastboot flash recovery *your_recovery.img*
2. # Partition your SD directly from the menu! (500MB Ext2, 32MB Swap, remaining Fat32) *NEW
can you explain what the above means ?
3. the last option move apps and dalvik cache to SD is not working, could you pls explain what this is and how to get this working
Edit/Delete Message
1. Yes, why would it be "unsafe"?
2. This will create an 500MB ext2 partition, a 32MD swap partition and the remaining space on your SD will be a fat32 partition. Only do this if you are using a ROM that supports apps2sd, etc...
3. This option only works if you have an ext2 partition AND a ROM that supports apps2sd.
stevetigersix
5th August 2009, 09:45 AM
Amon
to replace the older recovery img think its 1.1.2G i have from you can i just transfer the 1.2 img to my sd and reboot?
xxgg
5th August 2009, 11:02 AM
1. Yes, why would it be "unsafe"?
2. This will create an 500MB ext2 partition, a 32MD swap partition and the remaining space on your SD will be a fat32 partition. Only do this if you are using a ROM that supports apps2sd, etc...
3. This option only works if you have an ext2 partition AND a ROM that supports apps2sd.
When will you support app2sd on your ROM?
jerpelea
5th August 2009, 01:39 PM
did somebody get this error?
older versions are working fine !!
on version 1.2
212806
hobbit19
5th August 2009, 02:11 PM
did somebody get this error?
older versions are working fine !!
on version 1.2
212806
+1
htc magic a6161
Install from sdcard ...
finding update package .....
E: can t mount /dev/block/mmcblc0 p1 ( or /dev/block/mmcblk0) ( no sush file or directory )
installation aborted
Amon_RA
5th August 2009, 02:50 PM
Amon
to replace the older recovery img think its 1.1.2G i have from you can i just transfer the 1.2 img to my sd and reboot?
It all depends on the ROM you are currently using...
Please check the last lines of your init.rc!
Stock ROMs will have something like this in their init.rc :
service flash_recovery /system/bin/flash_image recovery /system/recovery.img
oneshot
This means that your ROM will search for a recovery.img inside the system directory and flash it at boot.
Other custom ROMs will have something like this in their init.rc :
service flash_recovery /system/bin/flash_image -d recovery /data/recovery.img
oneshot
This means that your ROM will search for a recovery.img inside the data directory and flash it at boot.
Some custom ROMs don't have this line at all, this means that you have to flash your recovery using fastboot or flash_image yourself.
Amon_RA
5th August 2009, 02:58 PM
When will you support app2sd on your ROM?
I don't think I'll implement it.
did somebody get this error?
older versions are working fine !!
on version 1.2
212806
Could you please tell me which steps you took?
Did you choose "Apply sdcard:update.zip" or did you choose "Apply sdcard:choose zip" ?
+1
htc magic a6161
Install from sdcard ...
finding update package .....
E: can t mount /dev/block/mmcblc0 p1 ( or /dev/block/mmcblk0) ( no sush file or directory )
installation aborted
Boot into recovery, wait a minute or 2 so your SDcard can mount and choose update package.
bjareboy
5th August 2009, 03:20 PM
Ok, I'll try with terminal...
What kind of files can I delete from system?...and how? I checked the system folder with ASTO file manager, but didn't see any "useless" files to delete..
Amon_RA
5th August 2009, 03:46 PM
Ok, I'll try with terminal...
What kind of files can I delete from system?...and how? I checked the system folder with ASTO file manager, but didn't see any "useless" files to delete..
Maybe it's better to start a thread in the General section... your question isn't related to this recovery nor to development.
jerpelea
5th August 2009, 04:00 PM
I don't think I'll implement it.
Could you please tell me which steps you took?
Did you choose "Apply sdcard:update.zip" or did you choose "Apply sdcard:choose zip" ?
Boot into recovery, wait a minute or 2 so your SDcard can mount and choose update package.
for both is the same error
eng spl 2004
my update script
........................
format SYSTEM:
copy_dir PACKAGE:system SYSTEM:
........................................
thanks
amolin32
5th August 2009, 08:20 PM
Why i don't can't restore any nandroid backup?
Amon_RA
5th August 2009, 09:09 PM
for both is the same error
eng spl 2004
my update script
........................
format SYSTEM:
copy_dir PACKAGE:system SYSTEM:
........................................
thanks
I can't reproduce this error, I tried all kinds of roms and it works fine for me... :confused:
- What kind of Magic do you have? 32A or 32B?
- Which recovery are you using? The G or H version?
- Do you have this problem for all update packages or just this one?
- Could you give me a link to the update you are having this issue with?
- Did you flash the recovery or are you running it via fastboot?
- Are you using apps2sd?
- Did you partition your sd?
Amon_RA
5th August 2009, 09:11 PM
Why i don't can't restore any nandroid backup?
What is the exact error you are getting?
Did you make the nandroid backup with the older version?
hobbit19
5th August 2009, 10:05 PM
Ok, I now I see, that after wait 2 minutes all ok,
but early I can do this just after boot to recovery! (Step: "Apply sdcard:update.zip" on an empty (except this file sdcard))
And even after I wait 2 minutes I must press buttons several times
bjareboy
5th August 2009, 11:32 PM
:) Ok, if I can't fix it soon I'll start another thread, but the problem started when I tried flashing this Recovery..
Anyway, here's what the adb shell tells me.
If someone can tell me how to free up space and what do delete in this System folder I'm done.. :)
213021
Amon_RA
5th August 2009, 11:39 PM
:) Ok, if I can't fix it soon I'll start another thread, but the problem started when I tried flashing this Recovery..
Anyway, here's what the adb shell tells me.
If someone can tell me how to free up space and what do delete in this System folder I'm done.. :)
213021
The new recovery is about 1.2Mb bigger in size compared to the previous one... explains why it was working previously. You don't have enough space left.
Which ROM are you now using? Try to delete /system/recovery.img to free up some space.
bjareboy
6th August 2009, 12:29 AM
I'm currently on the HoFo ROM..
Is it normal that the system folder is tight on space?
NguyenHuu
6th August 2009, 12:47 AM
assuming we do have a ext2 partition and a rom that supports apps2sd, will running the command in your recovery automatically move future app downloads to the sd? meaning is this a one time script that will work from now on? or must we always run it for every app we download to move it over.
Roy Jovero
6th August 2009, 04:09 AM
I'm new to the whole nandroid thing, sol I just wanted to know that if I had 2 different nandroid backups (one Ion, one Hero), would I be able to choose which one I want to restore?
MontAlbert
6th August 2009, 04:42 AM
thru fastboot you can- easy way to do it is to keep all nandroids you want on your pc and a most recent one on your sd. When you want to restore a certain nandroid that isnt the most recent stick that one on the sd card instead of the most recent and then do a "most recent nandroid restore" and it will restore that one, as it is the most recent one on the card.....
jerpelea
6th August 2009, 05:50 AM
I can't reproduce this error, I tried all kinds of roms and it works fine for me... :confused:
- What kind of Magic do you have? 32A or 32B?
- Which recovery are you using? The G or H version?
- Do you have this problem for all update packages or just this one?
- Could you give me a link to the update you are having this issue with?
- Did you flash the recovery or are you running it via fastboot?
- Are you using apps2sd?
- Did you partition your sd?
-i have 32b and i am using G version
-all recovery till now worked fine
-i have flashed the recovery using fastbot
-i have the same error with all updates
-yes i have apps2sd and i have manualy partitioned my sd card with 3 partitions (i will try and repartition from recovery)
thanks
Radix999
6th August 2009, 06:06 AM
If you have a 32B then you should be using the G version.
H is for HTC branded phones - you have a Google branded phone.
jerpelea
6th August 2009, 06:56 AM
If you have a 32B then you should be using the G version.
H is for HTC branded phones - you have a Google branded phone.
i have misstyped
i use G
thanks
jerpelea
6th August 2009, 07:01 AM
sd-card formated from recovery
remounted
pushed update.zip
same error
used option fix package uuid
flashed update.zip
flashed ok
phone stuck at boot black screen after initial brand screen (1st one)
thanks
moskuito
6th August 2009, 10:07 AM
Amon_RA, first of all many thanks and compliments for the great recovery
I would like to know if there any plan to implement the option to choose which nandroid backup we can restore, instead of having the chance to apply only the last one
amolin32
6th August 2009, 11:12 AM
What is the exact error you are getting?
Did you make the nandroid backup with the older version?
The error is:
run 'nandroid-mobile.sh restore' via adb!
I have done backup with older version and new version, but same result!
With older recovery, work perfectly
XLiTe
6th August 2009, 01:54 PM
When I tried to make partitions it show me this error :(
Error: run sdtools.sh via adb
Any solution? Thanks
Cheesebaron
6th August 2009, 02:29 PM
When I tried to make partitions it show me this error :(
Error: run sdtools.sh via adb
Any solution? Thanks
Try read the error again, since it might give you an answer if you try what it suggests!
Xenn0X
6th August 2009, 02:51 PM
thnx m8, love the format sd options. just tested a hero rom, did quickformat with partitions and went fine. just reverted back to 1 fat32 and also worked:)
PJFonseca
6th August 2009, 03:49 PM
Hi there, i have the SPL.0010 for 32A. When i try to Fastboot it gives me an error not alow.
Any ideas how to fix this? Does this method works?
Thanks. Just a n00b trying to learn something.
Amon_RA
6th August 2009, 03:54 PM
Hi there, i have the SPL.0010 for 32A. When i try to Fastboot it gives me an error not alow.
Any ideas how to fix this? Does this method works?
Thanks. Just a n00b trying to learn something.
Please use the search button. SPL 0010 will NOT allow you to fastboot any image, you can't root your device!
PJFonseca
6th August 2009, 04:00 PM
Please use the search button. SPL 0010 will NOT allow you to fastboot any image, you can't root your device!
But can i downgrade to 0009 ?
Sorry the offtopic. :P
VarioIII
6th August 2009, 10:31 PM
how do i know if the partitions worked correctly, where do i go to see it? ALSO do i need ext2 or 3 for jacheroski latest rom
NguyenHuu
6th August 2009, 11:09 PM
But can i downgrade to 0009 ?
Sorry the offtopic. :P
no you cant, that's the whole idea of having that version, to fix/block the exploits. gonna have to wait until someone can crack it.
how do i know if the partitions worked correctly, where do i go to see it? ALSO do i need ext2 or 3 for jacheroski latest rom
it is recommended by a lot of the devs to switch to ext3. im not sure why myself but if the devs i get roms from suggest it, i'll listen, it's there rom and their knowledge.
VarioIII
7th August 2009, 04:56 AM
im asking how i know if the partitions are done correctly
amolin32
7th August 2009, 05:13 PM
How i can format ext2 and swap partition ONLY, after install recovery 1.2.0g?
alex___
8th August 2009, 09:25 PM
Fantastic work Amon.
Just started last night messing with my magic, first with daldroid stuff and now with this.
Anybody can give me directions about the "move apps+dalvick cache to sd" option (after having partionned ext2+swap+vfat)?
I mean about mounting the swap and the ext2 partitions in a persistant way.
Rom-RAv1.1.0H-signed-update.zip
recovery-RAv1.2.0H.img
update.Engineering-SPL-HBOOT-1.33.2005-signed.zip
ypyp
9th August 2009, 10:12 PM
how do i partition the sd card with this utility?
do i use one of the "green" options?
ypyp
10th August 2009, 01:27 AM
--full quote removed/not appreciated-
how do i do the partition?
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.