Factory reset with TWRP, SuperSU, and unlocked bootloader? - Moto G5 Plus Questions & Answers

Hi all, my phone is still on Nougat with SuperSU (I know, I know) and I want to upgrade to Oreo and also do a clean re-root with Magisk. Can I simply backup what I need, factory reset, take OTA update, and root? Will having TWRP, SuperSU, and the bootloader unlocked have any issues with a factory reset? Thanks.

kram12085 said:
Hi all, my phone is still on Nougat with SuperSU (I know, I know) and I want to upgrade to Oreo and also do a clean re-root with Magisk. Can I simply backup what I need, factory reset, take OTA update, and root? Will having TWRP, SuperSU, and the bootloader unlocked have any issues with a factory reset? Thanks.
Click to expand...
Click to collapse
An unlocked bootloader is no problem for taking OTA, TWRP and SuperSU are definitely.
You've got two ways to upgrade to Oreo:
- Fastboot flash the nougat firmware you're on and apply the OTA updates until you are on Oreo.
- Fastboot flash latest Oreo firmware for your region.
In both cases you will lose your data so back it up before.
After that you have to flash twrp again, decrypt your data partition if you wish to and reroot the phone, I recommend magisk 18.

Thank you, that's very helpful! Literally for no reason other than downloading podcasts my phone rebooted and is now bootlooping, so good timing to get a clean slate going!

Related

Can't update to B29

My phone is prompting me to update to B29, but when it reboots, it brings me to the TWRP recovery, and I can't seem to find an update.zip or anything. Is it not there, or am I just looking in the wrong places? Will it even successfully update with the bootloader unlock (not the official unlock) and TWRP installed, or do I need to restore the stock recovery?
My phone was originally on B20_boot, but I've since restored using Draken's TWRP files to get to B27 (I'm assuming still B20_boot).
You won't be able to OTA update with your system modifications. DrakenFX has flashable zips posted in another thread, but beware there seems to be quite a few bugs in b29 (I have no in-call audio personally).
You can use my updated post to B29 (bootstack and boot/system) flashable files are there.
http://forum.xda-developers.com/showpost.php?p=68873482&postcount=2
So why am I getting the notification, then? Will it just keep popping up, or is there a way to block it (even though I'm not rooted)?
As for the bugs, I've seen plenty who have upgraded to B29 without issues. How did you update? Could it be something with updating via TWRP?
Have you personally heard of anyone having problems with your update file? Will it wipe my phone (ie: will I have to reinstall everything)?
Bootloader unlocked, normal twrp flash as per DrakenFX's instructions. And yeah but a lot of people are in both boats so your milage may vary.
Thanks. Do you think I'll be able to keep my data partition intact? I really don't want to set everything else up again. It's getting old... lol.
I wiped everything, so I'm not sure. Maybe that's why my stuff is broken lol
You can't do system updates with custom bootloader's. You are getting the message because you still have the update program on your phone. Look for some sort of update.apk and disable or uninstall it.
I didn't think you could do that without root.
Oh well, I plan on putting root back on soon anyway.
That would be interesting, if true. You would think a "dirty flash" would cause more problems than a clean one.
What about the whole "can't root B29" thing. I've seen a comment where someone said they could not root B29 since they didn't root before the upgrade. I'm not rooted now, but I am bootloader unlocked with the latest TWRP. Should I be ok to flash without rooting first? I was hoping to root afterwards, and try to figure out a way to make Magisk work.
You can't root locked bootloader B29 afaik at the moment. You'd either have to unlock your bootloader or stay on B27 to get root.
I am bootloader unlocked.
I'm not rooted now, but I am bootloader unlocked with the latest TWRP.
Click to expand...
Click to collapse

20s update?

I'm on 19s, with an unlocked bl and rooted. I see that the 20s update is available. If I update, will I lose root and unlocked bl? Thanks!
destrorox said:
I'm on 19s, with an unlocked bl and rooted. I see that the 20s update is available. If I update, will I lose root and unlocked bl? Thanks!
Click to expand...
Click to collapse
I bought the phone it came with stock rom 5.8.018S. I installed TWRP and flash rom 5.9.020S (T.A.R.S by Steve/Grosshop/Google Edittion), all these rom come with pre-rooted.
Once you installed TWRP and backup your system, you can flash any rom really I haven't had any issue.
Root is easy anyway, just flash Supersu via TWRP from what I read for this phone.
Moon75 said:
I bought the phone it came with stock rom 5.8.018S. I installed TWRP and flash rom 5.9.020S (T.A.R.S by Steve/Grosshop/Google Edittion), all these rom come with pre-rooted.
Once you installed TWRP and backup your system, you can flash any rom really I haven't had any issue.
Root is easy anyway, just flash Supersu via TWRP from what I read for this phone.
Click to expand...
Click to collapse
Thanks for your response but it doesn't answer my question about accepting the upgrade to 20s and what will or won't happen. I also have twrp installed and am rooted on 19s. Ideally, I'd prefer to upgrade without having to re-root and unlock my bl again but if that's the case, so be it. Just wanted to know beforehand.
destrorox said:
Thanks for your response but it doesn't answer my question about accepting the upgrade to 20s and what will or won't happen. I also have twrp installed and am rooted on 19s. Ideally, I'd prefer to upgrade without having to re-root and unlock my bl again but if that's the case, so be it. Just wanted to know beforehand.
Click to expand...
Click to collapse
Sorry I was not sure it's OTA update by the system or flash it by yourself when you mentioned about the update.
Why would you accept the update when you can flash all the rom available, the update can only mess up/complicate things on your phone in my opinion.
You will get same stuff as in the 20s roms.
Based on what I have read I am pretty sure you will need to re-root and unlock the BL again (because you will need to revert these changes to actually apply the OTA, it will fail otherwise). I ended up flashing a Cydras ROM because I didn't want to deal with unrooting, etc, to receive the OTA (since I already had a rooted device and it would fail OTA).
If you want to do the OTA, then you should do it before doing any root/unlock bl. I would then do the BL unlock, install TWRP, and take a backup of the system image.
Today I Gott the OTA Update for the Lex720 for s20
slgooding said:
Based on what I have read I am pretty sure you will need to re-root and unlock the BL again (because you will need to revert these changes to actually apply the OTA, it will fail otherwise). I ended up flashing a Cydras ROM because I didn't want to deal with unrooting, etc, to receive the OTA (since I already had a rooted device and it would fail OTA).
If you want to do the OTA, then you should do it before doing any root/unlock bl. I would then do the BL unlock, install TWRP, and take a backup of the system image.
Click to expand...
Click to collapse
That's what I was afraid of. Might as well give some of the custom roms a shot if I'm going to end up wiping, etc. Thanks!

Does OTA flash the recovery and re-enable DM-Verity?

I'm about to provision my One Plus 5 for use I will be running it with TWRP a unencrypted data partition (makes restores easier) and root via Magisk day one.
I'm curious if I'm running it in this configuration when an OTA comes down the pipe will it do any of the following?
re apply fastboot oem lock?
flash the recovery to stock recovery?
remove magisk?
re-enable dm-verity?
Curious if the process after an OTA apply is to re-flash TWRP potentially re-apply magisk? Does applying ota mess with your data partition if you already decrypted it?
Also was thinking about leaving the data partition decrypted so I can push things to it via ADB or manipulate it when it's in a non-functional state can anyone here comment on if that's still possible while encrypted? And if so what dis-advantages of leaving it encrypted I hear one is you have to remove the lock screen password before you create a backup since the keys are not backed up and you might be locked out after a restore.
With some more research I've answered my own question I'll put them here in case anyone wants to refer to them in the future.
TWRP users will lose TWRP after a flash of the OTA.
Root will be lost regardless if you flash using TWRP or stock.
Data is not touched during flash so it should stay as is.
DM-verity requirement is unknown.
For rooted users it's better to do a full flash with TWRP OTA through TWRP will cause a problem.
Actually, you won't get the small incremental OTA, you will download the complete 1.5 - 2gb rom... This happens when you have root whether you have got TWRP or stock recovery.
Root will always be lost, yes but if you flash with TWRP you can flash magisk oe SuperSU immediately afterwards to gain root again. Not having TWRP you will need to either boot TWRP or install it to install root again.
DM-Verity, I have never had any problems with this after flashing and then rooting...
I dirty flash the 4.5.10 and i had to reflash the ROM + no_verity_op5.zip. My first and only issue was a sort of bootlop to the recovery.
So wait. If I flash the OTA, then flash Magisk, I will have root and lose TWRP, right?
Then could I use some app like Flashify or the TWRP app to install the recovery?
I don't own a PC right now and want to know if it's possible.

Questions after an OTA

I've been out of the game for a while, so I need a reminder. I'm still on (full) stock Nougat; say I unlock my bootloader, and backup everything through TWRP. If I flash Oreo (without touching the b.l., like this) and then restore the backup, I should still be able to apply the OTA to Oreo, right?
Also, once I apply the OTA, will my backup still work? Meaning, does Nougat work on Oreo's bootloader?
Thanks.

Post OTA Update Root Recovery

Hey everyone. I have a 2XL that was rooted with version 10. I accidentally DL'd the latest ota and recently had to reboot so it updated and took root away. How do I get root back without losing data? Thanks in advance.
So, I tried running steps from the standard root process and nothing worked. Still no root.
Im trying to use the Magisk/TWRP method. I installed the factory image (not OTA) and that went fine. Booted up perfect and no loss of data. When I tried to install twrp and magisk, I got errors. Is there a different process for android 11? Thanks.
carbon coupe said:
So, I tried running steps from the standard root process and nothing worked. Still no root.
Im trying to use the Magisk/TWRP method. I installed the factory image (not OTA) and that went fine. Booted up perfect and no loss of data. When I tried to install twrp and magisk, I got errors. Is there a different process for android 11? Thanks.
Click to expand...
Click to collapse
There is a conflict when you "install" TWRP and Magisk together. Instead of installing TWRP you should boot it up via fastboot which will temporarily allow you to flash Magisk (fastboot boot<twrpxxx.img name> ).
You can also just patch the boot image with Magisk and forego TWRP altogether.
Ok, so should I reflash the factory image first or just fastboot twrp and install Magisk?
carbon coupe said:
Ok, so should I reflash the factory image first or just fastboot twrp and install Magisk?
Click to expand...
Click to collapse
If neither TWRP or Magisk is currently installed, then just fastboot TWRP and install Magisk.

Categories

Resources