yashsingh1/xdaforums huggingface dataset:
[myTouch 3G, Magic Android Development] Amon_RA:
Updated to v1.5.0

Change-log :

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
[myTouch 3G, Magic Android Development] ihaq:
I must say that you have done a great job. I would like to share an error with you; I was creating backup using "Nand + ext backup" and at the end I received this error message "Error : Run 'nandroid-mobile.sh' via adb!". Is it because of something at my end?
[myTouch 3G, Magic Android Development] Amon_RA:
Yes, check the recovery log as indicated in the first post to find out what is causing it.
[myTouch 3G, Magic Android Development] Amon_RA:
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?
[myTouch 3G, Magic Android Development] Jan Rune:
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...
[myTouch 3G, Magic Android Development] Amon_RA:
Download this, 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.
[myTouch 3G, Magic Android Development] droidgren:
I followed your instructions on my Google Ion phone:

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?
[myTouch 3G, Magic Android Development] dubsat:
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?
[myTouch 3G, Magic Android Development] Gormanimal:
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.
[myTouch 3G, Magic Android Development] arcenik:
@ 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 ?
[myTouch 3G, Magic Android Development] dubsat:
@ 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
[myTouch 3G, Magic Android Development] Gormanimal:
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.
[myTouch 3G, Magic Android Development] jfive74:
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.
[myTouch 3G, Magic Android Development] jfive74:
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
[myTouch 3G, Magic Android Development] BrumBrum74:
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.
[myTouch 3G, Magic Android Development] avigan:
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!
[myTouch 3G, Magic Android Development] avigan:
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.
[myTouch 3G, Magic Android Development] MontAlbert:
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://xdaforums.com/showthread.php?t=523558

thanks for all your awesome work....
[myTouch 3G, Magic Android Development] BrumBrum74:
Would be great to have Nandroid restore posibility in recovery image menu.
[myTouch 3G, Magic Android Development] Caid444:
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
[myTouch 3G, Magic Android Development] BrumBrum74:
Will Nadroid 2.1.1 be able to restore files made with Nandroid 2.1?

Great work with this recovery image.
[myTouch 3G, Magic Android Development] mack:
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.
[myTouch 3G, Magic Android Development] Gimpeh:
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?
[myTouch 3G, Magic Android Development] karaduke:
i had the previous version of amon_RA recovery but removed it so i can put this version on but now can`t get any version of recovery installed:confused: before you ask i have done this before but can`t remember how i did it lol i have 2005 eng spl and i can fastboot/adb etc my current rom is ion 1.6 any help please
[myTouch 3G, Magic Android Development] tazz9690:
so now that there is an option for nand+ext backup, is there any difference between that and a bart backup?
[myTouch 3G, Magic Android Development] jabaneco:
When i try to update in the terminal it says out of memory. What should i do? Thanks!
[myTouch 3G, Magic Android Development] karaduke:
i tried the fastboot method

Copy recovery-RA-sapphire-v1.5.0H 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.0H

but brings back an error error:cannot load `recovery-RA-sapphire-v1.5.0G`

what am i doing wrong?????
[myTouch 3G, Magic Android Development] tazz9690:
you listed the two different recoveries in your post. Did you make the error while trying to fastboot it, or was that just a typo in your post? cuz that could be your problem.
[myTouch 3G, Magic Android Development] karaduke:
all i did was put my phone into fastboot and then typed the following into cmd on my pc

fastboot devices

fastboot flash recovery recovery-RA-sapphire-v1.5.0G

where do i put recovery-RA-sapphire-v1.5.0G on my pc ????
[myTouch 3G, Magic Android Development] tazz9690:
in your tools folder of the sdk, if that is where you are fastbooting from
[myTouch 3G, Magic Android Development] karaduke:
thats where i put it. have i got the path right as last time i`m sure i had to type androidsdk\tools in cmd
[myTouch 3G, Magic Android Development] tazz9690:
for me it's this

cd C:\android-sdk-windows-1.6_r1\tools

Maybe this will lead you in the right direction?
[myTouch 3G, Magic Android Development] Jay_8698:
#mount -a

#flash_image recovery /sdcard/recovery-RA-sapphire-v1.5.0H

Another question since I'm pretty new to this whole thing. ^^ I have to use those commands in the Terminal App, right? And it'll flash the new recovery?

Also, one more question. Which Terminal Application? The one on my PC or another that I can download from the MT3G Market place?(please insert the best one)

I know these are noob questions, but I am a noob to this whole terminal thing.
[myTouch 3G, Magic Android Development] Amon_RA:
The easiest method is the "simple reboot" method (no need for a terminal, adb, fastboot, or whatever). Check out the first post for more details.
[myTouch 3G, Magic Android Development] Jay_8698:
I'm trying that now, but the "/data" folder is not located on my SDCard. I'm using the SuperMagic2v3 ROM by Eugene(I think), and I have no idea what you mean by "check init.rc". :(
[myTouch 3G, Magic Android Development] karaduke:
AMON_RA in the first post you wrote this

Rename recovery-RA-sapphire-v1.5.0H.img to recovery.img

Copy recovery.img to /data

Reboot fully (the recovery will be flashed automatically)

Reboot to recovery

you said copy recovery.img to data what do you mean by that ??
[myTouch 3G, Magic Android Development] Amon_RA:
That you need to copy recovery.img to the data partition... Not sure what you mean with your question?
[myTouch 3G, Magic Android Development] karaduke:
sorry to drag this on amon_ra i`m having trouble installing your latest recovery.img i`ve tried fastboot but keep getting en error can you give a step by step guide using the fastboot method cos i`m not getting it:confused: i just can`t work out what i`m doing wrong and i`ve even re-downloaded and installed sdk as i thought it was that.
[myTouch 3G, Magic Android Development] ngmasterj:
Ok, so I did a nandroid backup + ext and then I wiped data/wiped ext/repair ext and then flashed eugene's hero 2.1 rom. Way too laggy, so I wiped data again/wiped ext/repair ext and then went to nandroid restore and restored the latest backup. Loaded fine and still had my theme, but all my applications are missing and I can't uninstall/reinstall them. Am I screwed? I had A LOT of apps...
[myTouch 3G, Magic Android Development] jaestoner01:
I need help

I want to do it through terminal but i cant find

a terminal that works with mytouch

so how do i put it in /data im a nubee

pls help :o:o:o
[myTouch 3G, Magic Android Development] jaestoner01:
I need help

i have the same question

im a nebee,.,.

how do i get to data partion from 1.2.3img:o
[myTouch 3G, Magic Android Development] fabioccoelho:
What recovery do u used? H or G?
[myTouch 3G, Magic Android Development] IzzyCole:
Hi it seems i can't flash the recovery, have problems with adb and terminal and I don't know how to copy recovery.img to /data.

in adb and terminal I have this message "mounting /dev/block/mmcblk0p2 on /system/sd failed: No such file or directory

any ideas?

Thanks
[myTouch 3G, Magic Android Development] karaduke:
can someone tell me how to fastboot the recovery because i`m totally stumped. i have ion 1.6 rom installed and after trying to get recovery back on my phone it now wont let me do factory reset???
[myTouch 3G, Magic Android Development] schtuka:
here is for the new guys who are too lazy to look around and want everything now. your guide to fastboot and adb:

http://xdaforums.com/showthread.php?t=532719
[myTouch 3G, Magic Android Development] tvwebguy:
For those having issues, here's what I did:

Changed the name of the image to "recovery.img"

Copied the recovery.img file to my adb folder which for me is c:\android-sdk-windows-1.6_r1\tools

Booted my phone into recovery (Home + Power)

Plugged the phone into my pc.

Ran the following command from the command prompt: adb push recovery.img /data

Then reboot the phone.

Then reboot into recovery and you should be set.

That's it. Hope this helps.
[myTouch 3G, Magic Android Development] n_gifford:
Hello all. I'm new to the forum, actually I just registered. I've been lurking around for a while and finally decided to throw in my two cents. I don't use adb, as I'm not familiar with it yet. I had trouble flashing from terminal. But, for all the other "noobs" like myself that are struggling to get this awesome new recovery image:

Change the name of the file to recovery.img on the root of your sd:

From terminal window (Terminal Emulator, or Better Terminal from the market):

su

cp /sdcard/recovery.img /data/recovery.img

reboot

After it fully reboots, reboot into recovery and VOILA!!

Hope this helps, it worked like a charm for me.
[myTouch 3G, Magic Android Development] Neejay:
For some reason, I can always flash the recovery, and it will work one time.

Then if I try to go back into it again, it's always back at the stock recovery screen with this at the bottom:

E:Can't Open /cache/recovery/command
[myTouch 3G, Magic Android Development] Wysie:
Yes, use the G one...

Neejay: Do you have a recovery under /data? (or something similar, sorry can't rmb offhand)
[myTouch 3G, Magic Android Development] hanysalah:
nand restore !!

first thank you ;

i installed 1.5 it works very good but i try to make nand restore i found this error can't restore and try make restore through console by nandroid-mobile.sh

why in 1.4 this not come i went console i made restore but pls. chk. this error

thank you
[myTouch 3G, Magic Android Development] karaduke:
at last i finally figured it out lol

if your gonna use the fastboot method from the first post to it like this:-

Copy recovery-RA-sapphire-v1.5.0H 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.0G.img

i added .img at the end of the above recovery image and it worked. if you read this amon_RA can you edit your first post so people don`t copy and paste(like me) the recovery path into the pc cmd shell and then wonder why it don`t work lol.

just to add this is everything i entered on my pc in cmd shell-make sure your in fastboot mode on your phone.

cd C:\AndroidSDK\tools

fastboot devices

fastboot shell

fastboot erase recovery

fastboot flash recovery recovery-RA-sapphire-v1.5.0G.img

and then it says okay twice and thats it all done.

excellent recovery 1.5 by the way keep up the good work.
[myTouch 3G, Magic Android Development] 5[Strogino]:
Nice nooby method)))) But you can get it easy, if you know your device.

Turn off the phone, turn on by holding (Back + Power) - phone boots into HBoot

At the first 4-5 strings - there is a SPL-info (Information about Second Program Loader - like BIOS at the computer)

So...

SAPPHIRE PVT 32A ENG S-OFF H

HBOOT-1.76.2007 (SAPP10000)

CPLD-12

RADIO-6.35.07.29

Aug 21 2009, 18:19:15

to know, what recovery do you need, you must remember these options:

Motherboard of your sapphire/magic/mytg:

32A - htc magics

32B - some (not all) vodafone magics, t-mobile mytouch 3g, all phones with title "with Google" on the back.

for 32A phones - recovery with suffix 'H' - like 1.5.0H

for 32B phones - recovery with suffix 'G' - like 1.5.0G
[myTouch 3G, Magic Android Development] karaduke:
totally agree BUT when i changed my spl to eng spl 2005 the top line when in fastboot on my phone now says SAPPHIRE PVT 32B ENG S-OFF H

the G for google has now been replaced with H for htc

how confusing would that be to some lol
[myTouch 3G, Magic Android Development] 5[Strogino]:
Yes. It will confuse everyone. But important option is version of motherboard.

If you have 32B - you can't never change it...

Originally, 32B versions updating through OTA-updates. At last time, OTA updates came with ROM or patch and without SPL.

Some of 32A updates came with new SPL, so we have a small library of these SPLs. As they all came from HTC, so they marked 'H'

You flashed SPL 2005 - it changed G to H, but functionality still same...
[myTouch 3G, Magic Android Development] Gerigo-Greece:
Tried Karaduke's way.

SAPPHIRE PVT 32A ship S-ON H

HBOOT-1.33.0009(SAPP10000)

CPLD-12

RADIO-3.22.20.17

I get amessage asfollows:

after writing RA....

signature checking

FAILED

<remote=signature verify fail>.

Can some one help me please.

I do have the CYANOGEN 4.X.X 1.6 ROM installed.
[myTouch 3G, Magic Android Development] fabioccoelho:
How metod u trying apply this Recovery?
[myTouch 3G, Magic Android Development] skrki:
Thanks Amon_RA, your recovery is brilliant as ever! I've gotta say, this is much better than 1.3.2, especially because you have merged wipe DATA and CACHE back together. Way to go! Also loving the nandroid w/EXT option, though Bart itself rocks. Redbull coming your way soon ;)

Now that I'm writing already, I've had something strange occur on 1.3.2, while toggling UMS. It somehow renamed my FAT partition to a non-unicode character (single character, but it looks like letter "C" above letter "R"... I cant reproduce it). Looking at the directory structure through Linux shell, my drive was named "?"... In KDE, it's name was this "CR" thing... Kinda weird. I apologize if it has been posted/asked, just thought I'd drop it, wondering if it's a known problem. Thanks again!
[myTouch 3G, Magic Android Development] skrki:
you cant do karaduke's way. Your SPL does not allow flashing images.

Do this (ADB method):

1.

adb shell push recovery-ra-1.5.img /data/recovery.img

2. Reboot your phone

or this (from inside CM, through terminal):

1. Copy the recovery to your SD card's root

2. Open terminal and type

1/ $su
2/ #flash_image recovery recovery-RA-1.5.img
[myTouch 3G, Magic Android Development] Gerigo-Greece:
SKRKI , Thanks for the prompt reply .

Tried your adb method.

I am geeting the following reply.

" adb server out of date .... killing"
[myTouch 3G, Magic Android Development] Amon_RA:
Updated to v1.5.1

Change-log :

v1.5.1

- Fixed Nandroid-ext restore issue where nandroid didn't restore the backup-ed ext partition.