[Question] How to restore TWRP backup of stock 8.0 ROM, after flashing 8.1 ROM - Xiaomi Mi A1 Questions & Answers

Before going into the subject, I'll say that I have tried to seach this matter in XDA and Google, but nothing showed up.
Okay, so my matter is that I can't restore my backup of stock rom(8.0) after I flash a 8.1 rom. I've backuped with official TWRP "recovery-3.2.1-2-oreo.img".
My procedures are :
back up stock 8.0(system, data, cache, efs) with official TWRP "recovery-3.2.1-2-oreo.img"
flash oreo rom(with wiping internel, data, system, cache) and boot it fine.
restore my stock backup with same TWRP
boot system
The results are :
Goes past boot logo
Boot animation('android one' with colors sliding) shows up
and... just infinite loop of boot animation.
The ROM I used is RR.
I think the main problem is related with encryption.... Just my thought, tho.
So what I'm asking is :
1. If you face the same problem as me?
2. If you aren't and you restore goes fine, please tell me your procedures including ROM used and TWRP used.
3. Whether it is safe to decrypt stock rom?
Thanks in advance!

You don't need to flash stock ROM again. You have a system image backup(system, data, cache, efs), right? Wipe data , system, cache if you are coming from any other ROM. Then reboot to bootloader. Boot into latest TWRP from Fastboot (don't flash). Then go to restore and restore the system image you had backed up. Don't restore efs if you haven't lost your IMEI.

I've done exactly as ypu told, but it doesn't boot...
Did you manage to restore without problem with your method?

Yes I was able to. No problem here.

What TWRP did you use? Also, what ROM have you flashed?

Used the latest TWRP by MohanCM for Oreo. I did it when I was on Lineage os and wanted to go to stock

@guy_infinity Okay, thanks for your answer! Gonna try out later, once more.

Hmmm.... Still didn't boot up.
I thought I had to do everything from the begining, but flashing stock with save userdata option rescued me.
P.S. does anyone know about the error E: recv error on uevent?

try flashing stock rom using mi flash and after flashing restore normally using latest twrp/deadman's without system image voila everything will be back

@arjunbalan1994 Big thanks for your suggestion! Will try that too later

Hi, did you solve your restore problem? I have the same w/ my Redmi Note 5 and stock Miui backup after flashing RR.
Thanks for your help

I was use 8.1 root and twrp recovery. Yesterday fastboot flash may rom and update 2nd may OTA

Don't understand : May rom is Miui rom?
And did you restore your miui rom 8.0 backup ith twpr after the fastboot flash stock?

Related

Flashed Android N OTA, Can i Restore Back Using TWRP Backup

Hii
I have flashed OTA zip of Android N Preview.
So my question is whether i can restore my TWRP Backup of Pure Nexus ROM to get back.
I have backed up the everything from TWRP like
Data
System
System Image
Boot
Vendor
Vendor Image.
So if its possible to restore using TWRP backup of Pure Nexus ROM that i took earlier .
what partitions do i need to restore to get back properly .
Do i need to restore
Boot , System & Data partitions to get back to Pure Nexus ROM or all partitions including System Image, Vendor image
Did you flag thru TWRP? of so did you flag modified boot IMG or kernel? To my knowledge that had to be done before rebooting into system.
To be able to restore TWRP. Also 3.0.0.0 is nor playing nice with new version so TWRP 3.0.0.1 has been released
StariX37 said:
Hii
I have flashed OTA zip of Android N Preview.
So my question is whether i can restore my TWRP Backup of Pure Nexus ROM to get back.
I have backed up the everything from TWRP like
Data
System
System Image
Boot
Vendor
Vendor Image.
So if its possible to restore using TWRP backup of Pure Nexus ROM that i took earlier .
what partitions do i need to restore to get back properly .
Do i need to restore
Boot , System & Data partitions to get back to Pure Nexus ROM or all partitions including System Image, Vendor image
Click to expand...
Click to collapse
You don't need to backup system image or vendor image, so don't worry about those in future, and definitely don't restore them. You should be fine with just restoring boot, system, data, and vendor.
Ok i flashed the Android N preview Manually using fastboot.after that flashed Modified Boot.img
flashed TWRP by Rom Racer v 3.0.0-1
Booted into twrp successfully without any problem & formatted Data Partition.
Used Android N preview for an hour or so and found that it cant be used as daily driver and also found that i couldnt live without Dt2w,s2s, xposed,root . So then reverted back to Dirty Unicorns ROM using TWRP backup that i made earlier.
So the process i followed to restore back :
Boot into TWRP
Wipe Dalvik, Data, System, Cache partitions.
flashed an older Vendor image zip of Android Marshmallow through TWRP
Restored the TWRP backup of Dirty Unicorn ROM.
And successfully reverted back to the ROM i was using earlier.

Cannot update to 4.5.14

Hi,
I have a rooted OP5 with 4.5.13.
I tried to install the flashable zip (from here) via TWRP without wipe, but ended up in a bootloop.
I've restored to the nandroid backup, wiped data, and tried again. This time the OP5 managed to boot only to recovery.
I've verified the md5 of the file I've used.
Do you know why this is happening? Do you know how I can upgrade to 4.5.14?
Thanks.
Did you download the full ROM or just the update?
I tried both. I didn't succeeded to install the update (as it is not intended for rooted devices).
The full rom is what caused the bootloop.
If you are doing a dirty flash you wipe cache and system. If you are doing a clean flash you wipe cache, system and data. It doesn't sound like you wiped the correct partitions when doing your flash. You also need to flash Magisk or SU after the ROM flash and before booting up or you will lose TWRP and root. If your phone is decrypted for some reason you also need to flash a no verify zip or your phone will boot loop because OOS is made for encrypted phones.

Tried to flash to stock and got Encryption Unsuccessful

I can still boot into twrp but can't get OOS to run. It's asking for a factory reset but don't I have to be in OOS to do that?
You need to flash stock firmware and wipe via stock recovery, backup userdata first
I figured it out, thanks.

twrp restored Samsung stock ROM backup won't boot

Hi,
I've flashed TWRP for a sm-G900f via heimdall, booted into TWRP-Recovery, made an backup from the working Stock ROM to sd card, flashed lineage open gapps etc., all works well.
Because of somtimes not working Sensors I've tried to test if the sensor problem is an hardware or an software issue, so recovered the stock rom backup using the installed twrp 3.2.1-0. Therefor I've made these steps :
Boot into recovery
Wipe cache, system, davlink-cache, format data
restore the stock rom backup
reboot
Every reboot results in booting to recovery, Samsung system won't start.
Tried to disconnect battery for a few minutes etc.
Where is my mistake ? Could someone give me an advice ?
Every restore of the lineage backups using this way works well.
Regards
Fred
fred06007 said:
Hi,
I've flashed TWRP for a sm-G900f via heimdall, booted into TWRP-Recovery, made an backup from the working Stock ROM to sd card, flashed lineage open gapps etc., all works well.
Because of somtimes not working Sensors I've tried to test if the sensor problem is an hardware or an software issue, so recovered the stock rom backup using the installed twrp 3.2.1-0. Therefor I've made these steps :
Boot into recovery
Wipe cache, system, davlink-cache, format data
restore the stock rom backup
reboot
Every reboot results in booting to recovery, Samsung system won't start.
Tried to disconnect battery for a few minutes etc.
Where is my mistake ? Could someone give me an advice ?
Every restore of the lineage backups using this way works well.
Regards
Fred
Click to expand...
Click to collapse
Corrupted backup maybe?
A long time ago I made a backup of stock and was able to go back and forth with no issues. You can try and go back to stock, root again and try another back up.
Corrupted backup ? It's the only one I've made after flashing TWRP and before installing Lineage.
fred06007 said:
Corrupted backup ? It's the only one I've made after flashing TWRP and before installing Lineage.
Click to expand...
Click to collapse
It happens sometimes, I had an SD card with a bad sector so every time I would make a back up it would get corrupted if I deleted the back up. I ended up leaving the backup so it will no longer write on the bad sectors.
fred06007 said:
Where is my mistake ? Could someone give me an advice ?
Click to expand...
Click to collapse
I think, you have to flash or restore the right kernel.
Which partitions have you backed up?
Sorry for the late response, the backup includes in my mind system, data and boot partition because the backup consit's of the following files:
boot.emmc.win
boot.emmc.win.sha2
data.ext4.win
data.ext4.win.sha2
data.info
recovery.log
system.ext4.win000
system.ext4.win000.sha2
system.ext4.win001
system.ext4.win001.sha2
system.info

Need help regarding twrp backup

So I was on stock rom that was unlocked plus rooted,I was also on a different kernel. Before flashing that kernel, I had taken a full backup(It had magisk installed) through TWRP. Full means I didn't leave any of the boxes unchecked,it was a 11GB+ backup. Then it was all well and fine until I found that these kernels weren't liking my 64gb sd card(I created a thread earlier). So I went back to TWRP to restore my backup, I did so, well and smooth no issues. Now when I booted my phone, my phone would just turn off after showing the Asus LOGO, I tried multiple times to no success. It would just turn off after showing ASUS logo. To get out of this mess, I flashed Stock rom through TWRP.
Now I'm clean and fresh, I want to take a good backup and then flash AEX rom! What partitions should I backup??
Backup
Deeptesh Basak said:
What partitions should I backup??
Click to expand...
Click to collapse
Backup:
Data
Boot img
System
You may have to flash magisk/SU again after restoring in some cases...
Deeptesh Basak said:
So I was on stock rom that was unlocked plus rooted,I was also on a different kernel. Before flashing that kernel, I had taken a full backup(It had magisk installed) through TWRP. Full means I didn't leave any of the boxes unchecked,it was a 11GB+ backup. Then it was all well and fine until I found that these kernels weren't liking my 64gb sd card(I created a thread earlier). So I went back to TWRP to restore my backup, I did so, well and smooth no issues. Now when I booted my phone, my phone would just turn off after showing the Asus LOGO, I tried multiple times to no success. It would just turn off after showing ASUS logo. To get out of this mess, I flashed Stock rom through TWRP.
Now I'm clean and fresh, I want to take a good backup and then flash AEX rom! What partitions should I backup??
Click to expand...
Click to collapse
Backup everything for your first backup.
For incremental backups - boot, system, vendor & data should suffice.
While restoring only select the above four i mentioned. For cross rom restore functionality vendor partition is required.
For restoring stock rom from stock - only boot, system and data should be enough.

Categories

Resources