• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root stock recovery partition/image backup

Hi Guys,

I'm in the process of rooting my One S and need to load a custom recovery image, before I do, I'd like to backup my stock recovery partition.

I've searched high and low and it appears it isn't possible, but I wanted to check with you guys first.

The only hope I've seen is this post: http://androidforums.com/internatio...tock-rom-without-installing-clockworkmod.html

Scary Alien refers to using "fastboot boot" with the CWM image. Something doesn't feel right, so has anyone tried this?

Thanks,


http://androidforums.com/internatio...tock-rom-without-installing-clockworkmod.html
 
Yeah, you can boot the recovery.img from your computer and I think you can back it up that way. The nandroid doesn't back up the recovery though (at least not usually) so it won't be any different than backing up after flashing the recovery.

I'd also recommend TWRP2 instead of ClockworkMod.
 
You need to unlock your bootloader (see this post:http://androidforums.com/one-s-all-things-root/543328-how-unlock-bootloader-install-recovery-root-your-htc-one-s.html), and follow most of the steps to flash the recovery, but instead of flashing the recovery.img after unlocking you would type in the following command:
Code:
fastboot [B]boot[/B] recovery openrecovery-twrp-2.2.1-ville.img
with the last part being the name of the recovery.img you are using (I used the one from the guide).
It would replace this step in the guide:
9.Now type:
Code:
fastboot [B]flash[/B] recovery openrecovery-twrp-2.2.1-ville.img
 
You need to unlock your bootloader (see this post:http://androidforums.com/one-s-all-...der-install-recovery-root-your-htc-one-s.html), and follow most of the steps to flash the recovery, but instead of flashing the recovery.img after unlocking you would type in the following command:
Code:
fastboot [B]boot[/B] recovery openrecovery-twrp-2.2.1-ville.img
with the last part being the name of the recovery.img you are using (I used the one from the guide).
It would replace this step in the guide:

Thank you very much. So just to clarify (I should read you posted guide first) the boot syntax doesn't flash or modify anything and the backup option within the custom recovery image won't backup the recovery partition on the device? Once I'm root, I'll then be able to back this up and then flash a permanent custom recovery.

Secondly I'll use twrp as you've recommended it, however out of curiosity why would you recommend twrp over CWM?

Thanks again.
 
Thank you very much. So just to clarify (I should read you posted guide first) the boot syntax doesn't flash or modify anything and the backup option within the custom recovery image won't backup the recovery partition on the device? Once I'm root, I'll then be able to back this up and then flash a permanent custom recovery.

Secondly I'll use twrp as you've recommended it, however out of curiosity why would you recommend twrp over CWM?

Thanks again.

Using "fastboot boot recovery recovery.img" won't flash flash or modify the recovery image onto your device, it will just allow you to boot too the one on your computer using your device.

The nandroid backups made from the recovery usually do not include the recovery.img itself. No use in backing it up as it usually stays the same. I think you can enable that option within TWRP, but I have never messed with it personally. You would also have to make sure to check it off to restore it from the backup in the future.

I recommend TWRP over CWM because with TWRP (and hboot <1.13) you can flash boot.img (and flashable radios as well) through recovery instead of having to use fastboot every time. Also, it has more support from the developers.
 
Yay,

That worked a treat. I'm on the stock recovery and I'm root, so I can now back this up using flash_dump or dd. I use a mac and fastboot was giving me a BSOD on my virtual desktop using vmware so I reverted to the mac flavor of fastboot. I used the following:

./fastboot-mac boot image.img
keep holding down the VOL up or down while it boots

Interestingly it set the tampered flag as soon as I ran it. From the research I've done the RUU well revert this and it seems that the RUU will also load on the stock recovery image. I will be unrooting for testing, can someone confirm this assumption with RUU?

Thanks,
 
Running a RUU will remove the "Tampered" and will change "Unlocked" to "Relocked". It will restore everything to stock, and possibly change the hboot version depending on what you currently have and what RUU you run.
 
Back
Top Bottom