Bootloop - OnePlus 7 Pro Questions & Answers

Ok so i made a few backups with twrp but when i go to restore the backups it results in a boot loop that sends me right back into twrp. Any suggestions on how to fix this?

Erick-kewone said:
Ok so i made a few backups with twrp but when i go to restore the backups it results in a boot loop that sends me right back into twrp. Any suggestions on how to fix this?
Click to expand...
Click to collapse
If you're backup your trying to restore is a different security patch than the one your on. And If you're encrypted I'm afraid the only thing you can do is reformat

Any way to permanently decrypt my device? Or Justin decrypt the backups?

Erick-kewone said:
Any way to permanently decrypt my device? Or Justin decrypt the backups?
Click to expand...
Click to collapse
Not after the fact. You can make new ones that are decrypted. First you would need to reformat in TWRP , and after stock, make sure you flash that dm verity zip, after everything you do. If every one of your backups are decrypted you will never have the problem. Unless you flash a ROM that is only made to be run encrypted. Happened to me once had to reformat again. Best to keep a backup of your internal storage somewhere.

Related

Reverting back to stock recovery

Hi,
I flashed Twrp but I can't backup, because it can't mount data.
I thought, I'd try to revert back to stock recovery and then flash twrp again.
Does anybody know how to do that without flashing an entire stock Rom?
Thanks
nearlygod said:
Hi,
I flashed Twrp but I can't backup, because it can't mount data.
I thought, I'd try to revert back to stock recovery and then flash twrp again.
Does anybody know how to do that without flashing an entire stock Rom?
Thanks
Click to expand...
Click to collapse
Hi
Why you just flash TWRP again and start from begining?
Anyhow if you wish to reflash your stock recovery You need to reflash a stock boot.img
Here you have 2 ways to do it:
http://forum.xda-developers.com/showpost.php?p=66934553&postcount=218
http://forum.xda-developers.com/showpost.php?p=66922116&postcount=215
In those threads the point was to re root but the principle is valid you can use them as guides
nearlygod said:
Hi,
I flashed Twrp but I can't backup, because it can't mount data.
I thought, I'd try to revert back to stock recovery and then flash twrp again.
Does anybody know how to do that without flashing an entire stock Rom?
Thanks
Click to expand...
Click to collapse
I had this problem and found out in my case, at least, it was because when I rooted, I didn't "format data" during the process. I've been told that if you don't format data during the process, you leave the data partition encrypted, and thus it can't be mounted (at least by non-system apps and processes). No guarantees here as always, but If you back everything up and redo the root process and do the data format, then you may be able to mount data. At that point you can restore your apps and info. I've also read (but haven't tried this!) that you can do a nandroid backup and restore ALL your data from that nandroid after you reset your phone (which the data format will do). You should google everything I have suggested and see if you can get what you need in this way, without having to reflash the ROM entirely or try to revert to stock recovery.
kettir said:
I had this problem and found out in my case, at least, it was because when I rooted, I didn't "format data" during the process. I've been told that if you don't format data during the process, you leave the data partition encrypted, and thus it can't be mounted (at least by non-system apps and processes). No guarantees here as always, but If you back everything up and redo the root process and do the data format, then you may be able to mount data. At that point you can restore your apps and info. I've also read (but haven't tried this!) that you can do a nandroid backup and restore ALL your data from that nandroid after you reset your phone (which the data format will do). You should google everything I have suggested and see if you can get what you need in this way, without having to reflash the ROM entirely or try to revert to stock recovery.
Click to expand...
Click to collapse
+1
Hi. Yes, I had to format everything. Now it works. Also the issues I had with Titanium Backup are gone. I flashed the ExtSdFix and I'm almost running like on Kitkat, yeah

Restoring nandroid backup?

I know that TWRP on the pixel has issues restoring data due to the encryption with this phone. That said is there any steps to ensure that a restore will actually work other than actually disabling encryption and wiping the phone? I'd like to leave the encryption on if that's an option.
KingJ50 said:
I know that TWRP on the pixel has issues restoring data due to the encryption with this phone. That said is there any steps to ensure that a restore will actually work other than actually disabling encryption and wiping the phone? I'd like to leave the encryption on if that's an option.
Click to expand...
Click to collapse
TWRP doesn't really have problems with encryption when it comes to restoring backups. The only problem is when you boot to recovery. If it doesn't ask for your pattern or pin, it can't decrypt things. The remedy is to reboot to recovery until it does ask. Once you've entered your pin or pattern, you're good to go. As for backups, you want to backup boot, system image, vendor image, and data. Don't backup system or vendor. Using them instead of the image files works but causes huge battery drain when you restore the backup. I've always done it this way and never had a problem. One more thing, use TWRP RC1. RC2 isn't reliable when it comes to restoring backups. In my experience anyway.
robocuff said:
TWRP doesn't really have problems with encryption when it comes to restoring backups. The only problem is when you boot to recovery. If it doesn't ask for your pattern or pin, it can't decrypt things. The remedy is to reboot to recovery until it does ask. -snip-
Click to expand...
Click to collapse
I have noticed that issue as well, but I'm referring to the fact that everytime I try to use the restore function it wipes my phone at first boot. I read that this has to do with the way TWRP handles restoring certain folders that the encryption doesn't like and initiates a wipe.
I'll try RC1 though see if that makes a difference.
KingJ50 said:
I have noticed that issue as well, but I'm referring to the fact that everytime I try to use the restore function it wipes my phone at first boot. I read that this has to do with the way TWRP handles restoring certain folders that the encryption doesn't like and initiates a wipe.
I'll try RC1 though see if that makes a difference.
Click to expand...
Click to collapse
RC2 does that. RC1 doesn't have that issue.

Has anyone been able to boot a TWRP restore on this phone?

I break my system a lot (currently testing which of my favorite Xposed modules work with Pie) . I've had to set up from scratch like 6 times in the past week. Every TWRP restore results in a boot loop, both custom and stock. Has anyone made it work and, if so, how? It surprises me that our TWRP is official if it can't restore a backup.
Encrypted?
arkansawdave74 said:
I break my system a lot (currently testing which of my favorite Xposed modules work with Pie) . I've had to set up from scratch like 6 times in the past week. Every TWRP restore results in a boot loop, both custom and stock. Has anyone made it work and, if so, how? It surprises me that our TWRP is official if it can't restore a backup.
Click to expand...
Click to collapse
I'm having the same problem. This is my first a/b device and everything I thought I knew after flashing ROMs for years just doesn't seem to work on this architecture. Like you said twrp backup restore always results in a bootloop. Also any full custom ROMs I've tried appear to overwrite twrp and install its own recovery. Even gsi's don't boot and then twrp freezes and back to stock I go. This thing has me stumped.
Skippy12359 said:
I'm having the same problem. This is my first a/b device and everything I thought I knew after flashing ROMs for years just doesn't seem to work on this architecture. Like you said twrp backup restore always results in a bootloop. Also any full custom ROMs I've tried appear to overwrite twrp and install its own recovery. Even gsi's don't boot and then twrp freezes and back to stock I go. This thing has me stumped.
Click to expand...
Click to collapse
I noticed when installing RR that it actually needs that Lineage recovery to factory reset after the install. A TWRP factory reset wouldn't help it, and it wouldn"t boot after the install. Funny how they try so hard to stop us tinkerers, then steal all our cool ideas for their stock ROMs. I see Linux phones in my future.
I wonder if a factory reset with that Lineage recovery would help after a TWRP restore? Next time I may try that.
Damn! I just got it. I'm typing this on a restored crDroid Official. The boot.img is in ramdisk, so only backup system and data. Yay!
WoKoschekk said:
Encrypted?
Click to expand...
Click to collapse
Just saw this. No. I had flashed dm-verity. Good thinking.
arkansawdave74 said:
Damn! I just got it. I'm typing this on a restored crDroid Official. The boot.img is in ramdisk, so only backup system and data. Yay!
Click to expand...
Click to collapse
So your saying because recovery is in the boot image that we need only to backup system and data and then a restore of same will not go into a bootloop? That would mean the problem has been backing up and then restoring the boot image. System as root and no recovery partition is just hard to grasp at this point. For me restoring data in a backup of stock results in twrp error 255.
Skippy12359 said:
So your saying because recovery is in the boot image that we need only to backup system and data and then a restore of same will not go into a bootloop? That would mean the problem has been backing up and then restoring the boot image. System as root and no recovery partition is just hard to grasp at this point. For me restoring data in a backup of stock results in twrp error 255.
Click to expand...
Click to collapse
I spoke too soon. This was the 1st time I'd flashed dm-verity on the install. That's why it worked. It won't work if /data is encrypted. I just made a backup with boot as well and it restored fine.
arkansawdave74 said:
I spoke too soon. This was the 1st time I'd flashed dm-verity on the install. That's why it worked. It won't work if /data is encrypted. I just made a backup with boot as well and it restored fine.
Click to expand...
Click to collapse
Which version of dm- verify are you using and what steps did you take to get crdroid to boot?
Skippy12359 said:
Which version of dm- verify are you using and what steps did you take to get crdroid to boot?
Click to expand...
Click to collapse
I'm not sure where I got it Or else I would link you. But this is the one I'm using this one. I flashed it after formatting /data and also after installing the ROM. One of those is proper, but I couldn't remember. I think it's supposed to be after you install, but before 1st boot.
https://www.mediafire.com/download/uxldj5okanllfza
arkansawdave74 said:
I'm not sure where I got it Or else I would link you. But this is the one I'm using this one. I flashed it after formatting /data and also after installing the ROM. One of those is proper, but I couldn't remember. I think it's supposed to be after you install, but before 1st boot.
https://www.mediafire.com/download/uxldj5okanllfza
Click to expand...
Click to collapse
That's the same one I've been using. So crdroid actually booted for you after doing a normal wipe in TWRP?. Assuming you had stock pie installed.
Skippy12359 said:
That's the same one I've been using. So crdroid actually booted for you after doing a normal wipe in TWRP?. Assuming you had stock pie installed.
Click to expand...
Click to collapse
Yup. I've restored it twice and made another with boot included and it booted as well. I hope it works with RR too, but I've got a helluva headache. I may stop messing with it for now.
Oh, I had wiped dalvic (actually ART), system, and data. I don't think boot was an option during wipe.
You know, I've only had one device before thar force encrypted, and back then, TWRP couldn't decrypt /data except by formatting. Now it can. That's why I didn't suspect it was an encryption issue.
I was still using a Galaxy S5 with crDroid 7.1.2 built by me until last week. It died, may it rest in peace.
Skippy12359 said:
That's the same one I've been using. So crdroid actually booted for you after doing a normal wipe in TWRP?. Assuming you had stock pie installed.
Click to expand...
Click to collapse
If, when you boot TWRP, it asks you to decrypt, dm-verity didn't work, and it might not work with stock. I'm only figuring it out at the moment.
arkansawdave74 said:
If, when you boot TWRP, it asks you to decrypt, dm-verity didn't work, and it might not work with stock. I'm only figuring it out at the moment.
Click to expand...
Click to collapse
My goal was to have twrp backup of stock pie which is really great in my opinion and also be able to flash Q gsi's like I do on my Moto g6. So far any backup restore of stock just bootloops and any gsi just hangs at boot logo or boots back to recovery.
arkansawdave74 said:
If, when you boot TWRP, it asks you to decrypt, dm-verity didn't work, and it might not work with stock. I'm only figuring it out at the moment.
Click to expand...
Click to collapse
It does appear to be an encryption issue with a stock rom TWRP backup restore not booting. Formatting data in TWRP and rebooting always results in a bootloop. Until I can format data to remove encryption and get it to boot and the security setting says it's not encrypted, I don't think a backup will ever boot. Out of ideas at this point.
Skippy12359 said:
It does appear to be an encryption issue with a stock rom TWRP backup restore not booting. Formatting data in TWRP and rebooting always results in a bootloop. Until I can format data to remove encryption and get it to boot and the security setting says it's not encrypted, I don't think a backup will ever boot. Out of ideas at this point.
Click to expand...
Click to collapse
For stock, I wonder if you could boot TWRP after all those fastboot commands and flash dm-verity before booting stock. You may be able to keep stock from encrypting. I don't know for sure though.

BootLoop after TWRP restore

Hello,
On Xiaomi Mi 10 Ultra with TWRP 3.4.2b-0623 wzsx150, i did a full backup (all partitions) then after some moding and all on phone. decided to restore the full backup trought TWRP
the phone goes on bootloop and didnt want to start.
i already fixed the phone by flashing rom again, but i'm wondering why a TWRP full restore give a bootloop ? any help to understand to avoid this next time
thanks a lot
This is late but this happened to me before aswell. You have to flash the rom which you've done the backup on and then just restore the data partition.
Does your device keep in a frozen black screen?
Psych0t1c20 said:
This is late but this happened to me before aswell. You have to flash the rom which you've done the backup on and then just restore the data partition.
Click to expand...
Click to collapse
i did it with same rom, but i think the issue is from me restoring all partition, i think i need to choose only ones needed
Rovyo said:
i did it with same rom, but i think the issue is from me restoring all partition, i think i need to choose only ones needed
Click to expand...
Click to collapse
If you are restoring to the same device of the backup, just restore it and then wipe data.
Reboot and it will work perfectly.
VD171 said:
If you are restoring to the same device of the backup, just restore it and then wipe data.
Reboot and it will work perfectly.
Click to expand...
Click to collapse
exactly what i have did, but i checked all partitions when i did the restore i think i need to uncheck some of them in order to avoid the bootloop

Can I backup & restore including appdata with TWRP?

In the past I've always backed up my complete ROM incl. appdata with twrp. I didn't have to competely setup my device if flashing went wrong and reverted to stock. I had some bad luck flashing roms because the A/B slots are new to me. I now have my bootloader unlocked and everything setup on stock OOS, and made a twrp backup of super, recovery and data.
Before flashing another ROM I just want to make sure I can revert easily to the previous OS without doing a complete setup of app settings and stuff
My question is
Can I wipe/factory reset and then just restore with twrp?
Do I restore when in the active slot where current os is?
Are there any issues with password/encryption when restoring?
Expected scenario;
I'm on stock OOS, wiped and want to restore appdata, settings, homescreen, etc...
I failed to install custom ROM and want to revert to stock OOS without having to redo the entire setup
I did search google and this forum for an answer or guide but couldn't find one (please correct me if I missed a thread)
yusisushi said:
In the past I've always backed up my complete ROM incl. appdata with twrp. I didn't have to competely setup my device if flashing went wrong and reverted to stock. I had some bad luck flashing roms because the A/B slots are new to me. I now have my bootloader unlocked and everything setup on stock OOS, and made a twrp backup of super, recovery and data.
Before flashing another ROM I just want to make sure I can revert easily to the previous OS without doing a complete setup of app settings and stuff
My question is
Can I wipe/factory reset and then just restore with twrp?
Do I restore when in the active slot where current os is?
Are there any issues with password/encryption when restoring?
Expected scenario;
I'm on stock OOS, wiped and want to restore appdata, settings, homescreen, etc...
I failed to install custom ROM and want to revert to stock OOS without having to redo the entire setup
I did search google and this forum for an answer or guide but couldn't find one (please correct me if I missed a thread)
Click to expand...
Click to collapse
Did you read the first 3 posts of https://forum.xda-developers.com/t/...recovery-project-8t-kebab-2022-03-09.4302449/ ?
BillGoss said:
Did you read the first 3 posts of https://forum.xda-developers.com/t/...recovery-project-8t-kebab-2022-03-09.4302449/ ?
Click to expand...
Click to collapse
HI, yes I did
I am still confused because it says before a restore I have to disable screenlock, if my phone is softbricked or has no OS does that count as not having fingerprint/lockscreen enabled?
yusisushi said:
HI, yes I did
I am still confused because it says before a restore I have to disable screenlock, if my phone is softbricked or has no OS does that count as not having fingerprint/lockscreen enabled?
Click to expand...
Click to collapse
When you start TWRP, does it prompt you for a password/pin/pattern?
If Yes, then you have a lock screen password set. And if you can't get into the system to disable it, you'll have to format data (completely wipes all data).
If No, then you're good to go.
BillGoss said:
When you start TWRP, does it prompt you for a password/pin/pattern?
If Yes, then you have a lock screen password set. And if you can't get into the system to disable it, you'll have to format data (completely wipes all data).
If No, then you're good to go.
Click to expand...
Click to collapse
Hi, first of all; thank you for taking time to help me!
I managed to completely wipe the phone including data, and afterwards I restored it by copying the backup (which was now on my computer) and restoring it. SUCCESS! All appdata seems to be there, homescreen, and after second reboot my fingerprint still worked as before.
I just have one more question if you don't mind;
Below partitions I backed up;
Data
Boot
DTBO
Super
However, I'm not able to copy over the "super" partition from my computer to my phone, is this normal? it's almost 8GB and I was convinced I wasn't going to get to the OS without restoring it but apparently I didn't need it (?)
I suppose with the Fastboot Enhance Tool I'll be able to also restore this?
You really only need to backup the "system" partitions (boot, dtbo, super) if you're changing to custom ROMs. If you're always on OOS then you can forget about backing them up.
You should be able to copy the full backup, including super files from your PC to your phone using ADB. I've done that lots of times.
I've never used the tool you referred to. But I do know that you can't use fastboot to flash the super partition - it's too big.
However, if you break it up into chunks (I did it in 512MB chunks) using SparseConverter (https://forum.xda-developers.com/t/tool-sparseconverter-v1-0-1.2749797/) then you can successfully flash it.
Just to confirm, if a ROM bootloops and I don't have access to a computer, there's no way to restore the TWRP backup? Seems like this defeats the point of even making on-device backups (AFAIK encryption can't be disabled for many roms)
tech.central said:
Just to confirm, if a ROM bootloops and I don't have access to a computer, there's no way to restore the TWRP backup? Seems like this defeats the point of even making on-device backups (AFAIK encryption can't be disabled for many roms)
Click to expand...
Click to collapse
If you can enter TWRP (even if your rom bootloops) there is a great chance you can restore backup in TWRP.

Categories

Resources