[Q] Stock Nandroid Backup - One (M7) Q&A, Help & Troubleshooting

I remember reading somewhere (dont remember exactly where) that you can make a nandroid backup before rooting or flashing a custom recovery.
This was done by booting into fastboot mode and running the custom recovery, not flashing, just running it. This would preserve the stock recovery as a custom recovery is not flashed, but would still allow you to make a backup of the stock rom without root and without a custom recovery.
Is this a possible method for making a nandroid backup of the stock rom? Which would allow you to return to stock after rooting and installing custom roms?

fastboot boot recovery CWM.img (or whatever you have called the recovery image) will boot into CWM but not flash it and you can then make a nandroid

EddyOS said:
fastboot boot recovery CWM.img (or whatever you have called the recovery image) will boot into CWM but not flash it and you can then make a nandroid
Click to expand...
Click to collapse
One more question, even if you have a nandroid of the stock rom, wouldnt your device still show up as tampered and unlocked? Is there a way to remove that AFTER returning to the stock rom..?

EddyOS said:
fastboot boot recovery CWM.img (or whatever you have called the recovery image) will boot into CWM but not flash it and you can then make a nandroid
Click to expand...
Click to collapse
Hi, you again
That didn't work for me with CWM, but it didn't work after I flashed it either. It just failed to back anything up.
I didn't try it with TRWP though, in theory you're correct.

Related

Can't restore stock rom :S help!

I'm not too experienced in flashing roms so please have some patience with me.
I recently installed the ota update from htc and then unlocked the bootloader through the official htcdev site. I then flashed clockworkmod recovery through fastboot and flashed cm7 through CWM. I'm still running cm7 at the moment.
However, I am now not able to restore my phone back to the stock rom. I tried to restore the stock rom through a backup I did on nandroid in CWM. It went through all the steps and told me that the backup has been successfully restored. But after choosing the reboot phone option, the screen shows the white HTC screen, followed by a black screen for a couple of seconds, then the white HTC screen again, and then it finally brings me to CWM.
I'm not sure what I can do to restore my phone to stock rom. I went back to cm7 and tried to restore using ROM manager but it didn't work out too.
Help please!
Hboot 2.00
Radio 3822.10.08.28_M
(I'm not sure what other info might be needed so just let me know and i'll post it on here)
I have the same issue, I have a feeling about the cause but it is just a brainstrom. I could be wrong.
It might have something to do with ext4 vs ext3 file system. Custom roms usually format your phone in ext4 format while the stock rom only supports ext3
I would try and search a a format script that formats in ext3. (zip file format so you can flash it through clockwork or something)
fallenwout said:
I have the same issue, I have a feeling about the cause but it is just a brainstrom. I could be wrong.
It might have something to do with ext4 vs ext3 file system. Custom roms usually format your phone in ext4 format while the stock rom only supports ext3
I would try and search a a format script that formats in ext3. (zip file format so you can flash it through clockwork or something)
Click to expand...
Click to collapse
Awesome if you do manage to find it please post it
crunchyHTC said:
I'm not too experienced in flashing roms so please have some patience with me.
I recently installed the ota update from htc and then unlocked the bootloader through the official htcdev site. I then flashed clockworkmod recovery through fastboot and flashed cm7 through CWM. I'm still running cm7 at the moment.
However, I am now not able to restore my phone back to the stock rom. I tried to restore the stock rom through a backup I did on nandroid in CWM. It went through all the steps and told me that the backup has been successfully restored. But after choosing the reboot phone option, the screen shows the white HTC screen, followed by a black screen for a couple of seconds, then the white HTC screen again, and then it finally brings me to CWM.
I'm not sure what I can do to restore my phone to stock rom. I went back to cm7 and tried to restore using ROM manager but it didn't work out too.
Help please!
Hboot 2.00
Radio 3822.10.08.28_M
(I'm not sure what other info might be needed so just let me know and i'll post it on here)
Click to expand...
Click to collapse
fallenwout said:
I have the same issue, I have a feeling about the cause but it is just a brainstrom. I could be wrong.
It might have something to do with ext4 vs ext3 file system. Custom roms usually format your phone in ext4 format while the stock rom only supports ext3
I would try and search a a format script that formats in ext3. (zip file format so you can flash it through clockwork or something)
Click to expand...
Click to collapse
With the unlocked bootloader, when the device is in recovery mode, it cannot overwrite the boot.img partition. So when you flash a custom ROM in CWM, you must manually extract the boot.img file from the zip file and flash it manually in Fastboot mode using the command:
fastboot flash boot boot.img
In the case when you are attempting to restore a previous backup, the same is true, except in this case you would manually flash the boot.img from the CWM backup folder in Fastboot mode.
This should solve both of the situations you have encountered.
Okay that method worked a charm. Just flashed back the stock rom.
Thanks for much for that!
crunchyHTC said:
Okay that method worked a charm. Just flashed back the stock rom.
Thanks for much for that!
Click to expand...
Click to collapse
Weird, didnt work for me. Dit you manually flashed the boot.img extracted from the nandroid backup?
Yup. So i took the backup from my sd card and put the backup onto my computer. Then I used clockworkmod recovery to restore the backup, and then used fastboot on the computer to manually flash boot.img through usb.
Hope that helps
Cannot restore with the procedure.
I have been trying to restore stock rom but I'm unable to do it.
I flashed boot.img using command prompt.
Restored it via Clockworkmod recovery but after restoring when i reboot the phone, it again takes me to recovery mode.
What should I do?
Maybe it is because you have changed the backup name.. I heard that if you change the stock from backup name you will wreck the md5sum ...
___________________________
Device: HTC Incredible S
Bootloader: S-OFF - ENG
Rom: ARHD 2.2.0
Android for life!
NicOsol said:
Maybe it is because you have changed the backup name.. I heard that if you change the stock from backup name you will wreck the md5sum ...
___________________________
Device: HTC Incredible S
Bootloader: S-OFF - ENG
Rom: ARHD 2.2.0
Android for life!
Click to expand...
Click to collapse
No..I have not changed anything.
I even tried formatting it in ext3 using Touch recovery and then tried to back up..but it didn't work.
It just keeps on taking me to recovery mode when I reboot.
Why don't you guys get s-off? I'll post a link when I'm on my PC on how to do it. That way, you won't have to flash the boot.img each Time you install a new rom...
Sent from my HTC Incredible S using XDA
tpbklake said:
With the unlocked bootloader, when the device is in recovery mode, it cannot overwrite the boot.img partition. So when you flash a custom ROM in CWM, you must manually extract the boot.img file from the zip file and flash it manually in Fastboot mode using the command:
fastboot flash boot boot.img
In the case when you are attempting to restore a previous backup, the same is true, except in this case you would manually flash the boot.img from the CWM backup folder in Fastboot mode.
This should solve both of the situations you have encountered.
Click to expand...
Click to collapse
Hello, I tried with "fastboot flash boot boot.img" took the boot.img from the backup and then I did a restore but it always goes into recovery mode, what else can I do?

[Q] S-ON nandroid restore fails

Hi,
I did the following procedure
1. Unlock bootloader using HTC-dev site.
2. Take nandroid backup of stock ROM.
3. Installed Sabsa prime v15
Now I want to go back to stock ROM.
4. recovery says restore complete of Nandroid backup.
5. I flash boot.img from nandroid backup (I am on S-ON)
6. the phone boots up and directly goes to recovery instead of normal boot.
How can I get back to my stock ROM now?
sagarparmar said:
Hi,
I did the following procedure
1. Unlock bootloader using HTC-dev site.
2. Take nandroid backup of stock ROM.
3. Installed Sabsa prime v15
Now I want to go back to stock ROM.
4. recovery says restore complete of Nandroid backup.
5. I flash boot.img from nandroid backup (I am on S-ON)
6. the phone boots up and directly goes to recovery instead of normal boot.
How can I get back to my stock ROM now?
Click to expand...
Click to collapse
relock your boot loader and try to flash RUU...(the latest one)
shiromau said:
relock your boot loader and try to flash RUU...(the latest one)
Click to expand...
Click to collapse
Yeah, I had to do the same... I downloaded the RUU from htcdev and flashed. But I am not sure why nandroid restore didnt work. Is it because i was on S-ON?
Try this
sagarparmar said:
Yeah, I had to do the same... I downloaded the RUU from htcdev and flashed. But I am not sure why nandroid restore didnt work. Is it because i was on S-ON?
Click to expand...
Click to collapse
Sabsa prime Rom has this issue, it doesn't get completely wiped off with factory reset.
In the recovery go to advanced, format /system.
After this restore from CWM. After the restore gets completed, flash the boot.img file from fastboot usb mode.
No, again go to recovery and select reboot.
I hope this will work.

[Q] Backing up Stock Recovery

Need help guys... thinking of unlocking and flashing a custom rom in my Butterfly S. But before that, I want to backup my stock recovery first... Any idea how this is done?
shadow071506 said:
Need help guys... thinking of unlocking and flashing a custom rom in my Butterfly S. But before that, I want to backup my stock recovery first... Any idea how this is done?
Click to expand...
Click to collapse
You can't backup stock recovery if you don't have S-Off.
tsokh said:
You can't backup stock recovery if you don't have S-Off.
Click to expand...
Click to collapse
So this it is not possible?
someone i asked told me this:
"Boot cwm via adb fastboot (fastboot boot recovery.img) then backup rom (which is stock) then flash the custom recovery"
can this not be done? Thanks..
shadow071506 said:
So this it is not possible?
someone i asked told me this:
"Boot cwm via adb fastboot (fastboot boot recovery.img) then backup rom (which is stock) then flash the custom recovery"
can this not be done? Thanks..
Click to expand...
Click to collapse
Yes, you can backup your stock rom with CWM or TWRP, but not the recovery. Recovery and rom are two different things.
Do you mean it's possible to boot a custom recovery without even unlocking the bootloader via HTCdev, i.e. without losing the whole /data filesystem? If that's the case and you haven't unlocked yet, would you mind creating a full backup along with /data and posting it somewhere? I'd really like to know what's missing in the backup I made after unlocking.
Also, it might be possible to read the recovery image from its partition using dd within a custom recovery. I know no specifics, though, and it's just a guess anyway.

Stock recovery help

What is needed to pull the stock recovery image I already dumped the partition correctly I have root running on stock recovery.
I just need to figure out why i cant boot the stock recovery from fastboot
the screen just gets scrambled. But i mean i do have the recovery.img and boot.img pulled from their respective blocks. and dd'd into imgs
Maybe someone could point me in the right direction and we can have a copy of the stock recovery as well. I don't want to
fastboot flash it in case of bricking the recovery partition(Even though it should be a 1-1 copy)
I wanted to boot TWRP rather then flash it to install super su then boot into system to backup recovery partition using flashify. I can boot into TWRP but then I can't do anything after that.
LarryBoyG said:
I wanted to boot TWRP rather then flash it to install super su then boot into system to backup recovery partition using flashify. I can boot into TWRP but then I can't do anything after that.
Click to expand...
Click to collapse
Ill try with flashify i got TWRP to boot using fastboot boot, but i cant get the stock recovery to work. and dont want to flash without making sure. since the stock recovery when i use dd is 16mb

Backup stock revovery before installing custom recovery

Hi all.
I have a couple of SM-T813 tablets with Nougat stock firmware.
I want to install Lineage OS on these devices. According to official installation instructions (https://wiki.lineageos.org/devices/gts210vewifi/install) I have to write a custom recovery using heimdal.
I know that with a custom recovery i can backup the rest of partitions before installing Lineage OS, but I want to know if is it posible (and how) to backup stock recovery before overwriting it with custom recovery using heimdail.
How can I backup stock recovery before install custom recovery?
Thank you and regards.
antoniorecio said:
....How can I backup stock recovery before install custom recovery?....
Click to expand...
Click to collapse
You can pull with adb the recovery partition as .img to your SD card.
Have to know mount point of course.
Good description here:
Pulling your IMG like boot or recovery using adb
short application of adb in pulling out your boot or recovery img from your android device
howtorootcherrymobilesnapv2.weebly.com
Perhaps you gotta install adb root as well.
But there is no real need to backup stock recovery as it will be revived automatically, when flashing stock ROM.
Just make sure you have the stock ROM downloaded before you start flashing your recovery (multiple part stock is preferred).

Categories

Resources