Backup stock revovery before installing custom recovery - Galaxy Tab S2 Q&A, Help & Troubleshooting

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).

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] Stock Nandroid Backup

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.

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

I need help 😞

i flash stock MOB31E rom using official TWRP 3.0.2.2 after i flash it my boot recovery was gone and only appeared is broken android with exclamation point
Can your device boot? maybe it replaced twrp with stock recovery, try flashing twrp again
Good Luck?
avie14 said:
i flash stock MOB31E rom using official TWRP 3.0.2.2 after i flash it my boot recovery was gone and only appeared is broken android with exclamation point
Click to expand...
Click to collapse
Probably your device's recovery replaced by stock recovery.
Inorder to prevent this , you shouldve uncheck mount system read-only.
Anyhow, now you can still root your phone and install a custom recovery with a tool!
if you wish I'll link it here!
BTW, your device isn't booting now?
Pls its ok to me but i dont have a pc
sachin n said:
Probably your device's recovery replaced by stock recovery.
Inorder to prevent this , you shouldve uncheck mount system read-only.
Anyhow, now you can still root your phone and install a custom recovery with a tool!
if you wish I'll link it here!
BTW, your device isn't booting now?
Click to expand...
Click to collapse
Its still booting no stock recovery and custom recovery

Downgrading from Marshmallow if I have custom recovery

Hi everyone, this question was asked already but I just want to make sure that it's safe to flash a 5.1 based ROM over a currently active Marshmallow ROM using TWRP using only the usual wipes? I remember that I had to flash a custom boot image with a PC or something like that in order for the custom recovery to work on my K3 Note, which I received with Marshmallow installed, so I'm not sure if I can hop back to 5.1 if phone never even had it installed. Any advice?
livgrave said:
Hi everyone, this question was asked already but I just want to make sure that it's safe to flash a 5.1 based ROM over a currently active Marshmallow ROM using TWRP using only the usual wipes? I remember that I had to flash a custom boot image with a PC or something like that in order for the custom recovery to work on my K3 Note, which I received with Marshmallow installed, so I'm not sure if I can hop back to 5.1 if phone never even had it installed. Any advice?
Click to expand...
Click to collapse
Yes, IT IS SAFE but there are some points to note:
Every Rom Zip contains a boot.img file which is also flashed when the zip is flashed.
You do not need to replace boot.img in order to install TWRP, but you need it to flash SuperSU.zip to your device or install xposed
Remember You need to wipe data partition (No need to wipe Internal) in order to continue.
Thanks for the reply. I don't know why, but I remember when I was installing TWRP I couldn't boot into it until I flashed a new boot image or something like that. All I could boot into was the stock recovery or something like that. I needed to use SP flash tools and flash something in order to get it to work. So it's safe for me to try 5.1 ROMs? They seem to be more stable than custom Marshmallow ROMs....
livgrave said:
Thanks for the reply. I don't know why, but I remember when I was installing TWRP I couldn't boot into it until I flashed a new boot image or something like that. All I could boot into was the stock recovery or something like that. I needed to use SP flash tools and flash something in order to get it to work. So it's safe for me to try 5.1 ROMs? They seem to be more stable than custom Marshmallow ROMs....
Click to expand...
Click to collapse
You must have flashed the recovery.img ( and also the boot.img) because my root methods mention them.

Categories

Resources