Recovery backup

foreverman

Member
Sep 15, 2011
33
6
0
Sao Paulo
what do mean by that
do you try to backup the recovery its self or backup the rom using recovery
I want to backup the recovery itself, I know its a noob question but here's why, I have 2 phones, the same model, and I flashed one with a clockwork recovery and it failed, so I lost it


Then I'm trying to backup the recovery from the phone that is good, and restore it into the fault one...
 
Last edited:

odystyle

Senior Member
Mar 1, 2012
110
22
0
kaykay
I want to backup the recovery itself, I know its a noob question but here's why, I have 2 phones, the same model, and I flashed one with a clockwork recovery and it failed, so I lost it


Then I'm trying to backup the recovery from the phone that is good, and restore it into the fault one...
why don't you look at this thread this should be easy
http://forum.xda-developers.com/showthread.php?t=1204500
make sure your phone are unlocked and have a moto-fastboot
 

odystyle

Senior Member
Mar 1, 2012
110
22
0
kaykay
Yeah sure, but, isn't there a way to just take the recovery from one phone and then flash it into the other ?

Like, get a img file from a phone and use it in the other.
in my experience you can back up recovery by using nandroid but that waste of time
coz can use the same method for your other phone
nothing difference there
 

ravilov

Senior Member
Jan 26, 2010
2,219
1,344
0
localhost
The recovery is a single flashable file of up to 8 MB in size that never changes. Why bother mirroring from one phone to another when you can just simply download a working recovery and flash it?
I don't get it.
 
  • Like
Reactions: palmbeach05

foreverman

Member
Sep 15, 2011
33
6
0
Sao Paulo
The recovery is a single flashable file of up to 8 MB in size that never changes. Why bother mirroring from one phone to another when you can just simply download a working recovery and flash it?
I don't get it.
I wanted to know if there was a way to download from a phone and upload to another one, and its not a file that never changes, it does changes.

But its ok, seems that there's no way to do it
 

ravilov

Senior Member
Jan 26, 2010
2,219
1,344
0
localhost
You need to read all the replies in this thread again because you're clearly not understanding the point, or you have some misconceptions about how things work. Or both.

Who ever said it is impossible? It is in fact trivial - just dd the whole partition. Some research of your own and I'm sure you would've figuted that out yourself. Recovery is even a part of most nandroid backups. But why bother doing that? It is just pointless.
Also I don't know why do you insist that recovery somehow changes. It literally NEVER changes. Unless you change it intentionally, by flashing a different recovery or messing up the existing one somehow.
 
Last edited:

foreverman

Member
Sep 15, 2011
33
6
0
Sao Paulo
You need to read all the replies in this thread again because you're clearly not understanding the point, or you have some misconceptions about how things work. Or both.

Who ever said it is impossible? It is in fact trivial - just dd the whole partition. Some research of your own and I'm sure you would've figuted that out yourself. Recovery is even a part of most nandroid backups. But why bother doing that? It is just pointless.
Also I don't know why do you insist that recovery somehow changes. It literally NEVER changes. Unless you change it intentionally, by flashing a different recovery or messing up the existing one somehow.

Ok I dont really want talk about it anymore, if I want to do that, is for a reason, I just wanted to download the recovery img from one phone and upload it to the other, its the stock recovery, but everyone keeps telling me to do a clockworkmod or something.

Since all of you want me to do something else, I assume that is just impossible to download the recovery img, wonder how you guys help ppl here.

Thanks
 

palmbeach05

Senior Member
Oct 12, 2012
4,293
1,799
243
Ok I dont really want talk about it anymore, if I want to do that, is for a reason, I just wanted to download the recovery img from one phone and upload it to the other, its the stock recovery, but everyone keeps telling me to do a clockworkmod or something.

Since all of you want me to do something else, I assume that is just impossible to download the recovery img, wonder how you guys help ppl here.

Thanks
The only way I can think of to do what you want to do requires you to have both devices. It requires you to have a nandroid backup on device #1. Take this file and move it to your computer. Boot device #2 up so its ready for fastboot. Open up Command Prompt and navigate to where your fastboot files are. Place the recovery.img in this folder. Connect device #2 to your computer. Run the command "fastboot flash recovery recovery.img" This should do what you want done.

However, I did read that you wanted the stock recovery. If you want that, flash a sbf via RSD. This will put you back on an OTA. You're more than welcome to try ROM Factory to try to get the recovery.img, but idk if it pulls the recovery.img. Using the dd command via adb should also work, but I've never tried it. To the best of my knowledge, if you want the official recovery, you put yourself in the position where all you can have is stock GB 2.3.4 or 2.3.6. That's it. If you want to upgrade your device to a custom GB ROM, ICS, or JB, you must have CWM or TWRP, or something along those lines.
 
Last edited:
  • Like
Reactions: foreverman

ravilov

Senior Member
Jan 26, 2010
2,219
1,344
0
localhost
See, you never mentioned the most critical detail here. If you had mentioned it was a stock recovery, people would be MUCH less surprised by your question.


Is the other phone rooted? If not, there is nothing you can do.

If it is, install busybox from the market if you haven't already, then try this (in android terminal or via adb).
Make sure you type it all exactly right.
Code:
$ su
# busybox dd if=/dev/block/mmcblk0p10 of=/sdcard/recovery.img
($ = user prompt, # = root prompt)
I hope you're sufficiently familiar with command-line tools.

I have no idea if this will work on a stock ROM, hopefully it will.
 
Last edited:
  • Like
Reactions: foreverman

foreverman

Member
Sep 15, 2011
33
6
0
Sao Paulo
Is the other phone rooted? If not, there is nothing you can do.

If it is, install busybox from the market if you haven't already, then try this (in android terminal or via adb):
Code:
$ su
# dd if=/dev/block/mmcblk0p10 of=/sdcard/recovery.img
I hope you're sufficiently familiar with command-line tools.

I have no idea if this will work on a stock ROM, hopefully it will.
Found something, similar to what you said, then flashed using "flash_image recovery /sdcard/recovery.img"

Now my phone works

Thanks for the help

  • adb shell
  • su
  • cat proc/mtd

    dev: size erasesize name
    mtd0: 000a0000 00020000 "misc"
    mtd1: 00480000 00020000 "recovery"
    mtd2: 00300000 00020000 "boot"
    mtd3: 0fa00000 00020000 "system"
    mtd4: 02800000 00020000 "cache"
    mtd5: 093a0000 00020000 "userdata"
  • dd if=/dev/mtd/mtd1 of=/sdcard/recovery.img bs=4096