TWRP and Magisk: how to use OTA updates without losing the data - Xiaomi Poco X3 NFC Questions & Answers

Clarifying this once and for all: TWRP and magisk how to consume OTAs?
Hi folks,
My Poco is rooted with Magisk, has a TWRP recovery and is still stuck on 12.0.8.0 (QJGEUXM).
How can I apply OTA updates without loosing my data?
Actually I thought that I can download the right recovery update file from the update tracker thread and then just select it in the advanced updater menu. But none of the files I've tried seems to be installable.
My thought was, that I have to update via the updater and the reinstall magisk before rebooting the phone.
Is that correct?
Or what's the proper way to install an full update file via TWRP without loosing the data?

Related

Updating to 9.0.2 on a rooted device

Will there be any incompatibility issues with magisk and xposed?
No problem with rooted device on updating, althought you will get unrooted once you update with OTA.
Also, there is no xposed for Pie.
Not yet faced any issues. After OTA update done don't reboot the device. just come to Magisk manager -> install -> select install after OTA option and reboot so that you won't lose root.
Ok, I will stay on oreo for now then. Does Pie run better than Oreo on stock?
Should've read this **** before updating to Pie.
Currently in a bootloop after going from oreo to Pie :'(
What is the latest version of Oreo I should be able to get to with Xposed on OP6?
I faced some issues. After updating to 9.0.2 TWRP and Magisc were gone. So had to reroot and reinstall TWRP via fastboot.
Yes.. this will ALWAYS happen. if you want to keep root when doing OTA you have to do this after install is done, but before reboot!
open magisk app
press downloads
search for TWRP A/B
Install that module ( :::::...:.:..:...::::O NOT REBOOT:::::...:.:..:...::::
Go to main screen of magisk again
press install
press install to inactive slot (after ota)
NOW you can reboot and all will be kept.
If you do it from TWRP (like i prefer, since its just faster)
Flash full rom
flash Twrp (blu_spark latest)
reboot to twrp
flash magisk (latest)
done.
flashing roms will ALWAYS override recovery and boot partition
If I understand you precisely, you say, that this is a question of OTa roms. I am not very keen for OTA. Would TWRP and Magisk stay when flashing a non-OTA rom? If yes, are there non-OTAs of OOS?
No what I ment was using the update function from within android.
You will ALWAYS override recovery and Magisk. Follow the steps above when you flash..
Always like this from twrp
Flash Rom
Flash Recovery
Reboot to twrp
Flash magisk
And u be good...
OK thanks. I did wrongly to accept the automatic update instead of downloading the zip and install it via TWRP.

Avoid installing updates from recovery, possible?

Hi guys, is there any way to "uninstall" a pre-installed system update?? Currently at OS 5.1.11 but idk what happened suddenly it says "system update (OS 9.0.2) is installed, please reboot". So the last thing I want is to reboot, since I WILL lose my root, and afraid that my TWRP version not compatible for Android P. THANKS!
QUESTIONS
1) IF I were to reboot into recovery, make a backup and install that backup, will that help? Will the update be installed once I reboot into recovery or not? IF I am not mistaken, the updates are only applied when you reboot into the system., but I'm not sure now.
2) I already have a backup of my system but that is months ago. Would I be able to make a complete backup of today's sytem without applying the installed update?
3) Any other way to remove the pre-installed system update besides rebooting into recovery to do a factory reset and restore system settings?
4) Do I need to reinstall TWRP and MAGISK before applying the backup/system restore?
Thanks in advanced!
kahtsin said:
Hi guys, is there any way to "uninstall" a pre-installed system update?? Currently at OS 5.1.11 but idk what happened suddenly it says "system update (OS 9.0.2) is installed, please reboot". So the last thing I want is to reboot, since I WILL lose my root, and afraid that my TWRP version not compatible for Android P. THANKS!
QUESTIONS
1) IF I were to reboot into recovery, make a backup and install that backup, will that help? Will the update be installed once I reboot into recovery or not? IF I am not mistaken, the updates are only applied when you reboot into the system., but I'm not sure now.
2) I already have a backup of my system but that is months ago. Would I be able to make a complete backup of today's sytem without applying the installed update?
3) Any other way to remove the pre-installed system update besides rebooting into recovery to do a factory reset and restore system settings?
4) Do I need to reinstall TWRP and MAGISK before applying the backup/system restore?
Thanks in advanced!
Click to expand...
Click to collapse
If you are rooted then update will not get install; you need to flash full package through twrp
If you dont want to update to pie then flash oos5.1.11 full package through twrp use bluspark twrp
Suggestion: update to pie build
siddhrsh said:
If you are rooted then update will not get install; you need to flash full package through twrp
If you dont want to update to pie then flash oos5.1.11 full package through twrp use bluspark twrp
Suggestion: update to pie build
Click to expand...
Click to collapse
Hi, thanks for the reply.
I think the update WILL be installed after a reboot. And I don't want that, which is why I am avoiding any sort of reboot atm.
kahtsin said:
Hi, thanks for the reply.
I think the update WILL be installed after a reboot. And I don't want that, which is why I am avoiding any sort of reboot atm.
Click to expand...
Click to collapse
Update WILL NOT installed if you have pached boot image
You can flash oos 5.1.11 or 9.0.2 directly through twrp but use only blu_spark twrp
If you have installed magisk then go to magisk manager select uninstall then restore image after select install magisk second slot after ota

Ota and twrp

Hello guys, i have a question. What is the proper way of flashing miui updates from twrp. Atm i am on 10.2.2.0 but a new pie udpate has been released and i want to update to it. Also, do i need a certain recovery? I am on pitchblack atm.
I just don't want to brick my phone. Thanks in advance.
You can flash with no problem.
But after flash you lose twrp (it will be stock recovery). Need it reflash.
I successfully updated to pie, but a problem emerged. I can no longer flash magisk. Flashing magisk results in a bootloop and when i uninstall it from the recovery, the phone boots normally.
Any suggestions?
Did you flash that zip "lazyflasher"? For the dm verification thing.

OTA with root and TWRP

Dears,
I have a OnePlus 6 unlocked and rooted with magisk and TRWP.
Currently I'm running stock firmware: oxygenos 10.3.
I got a message from system to update to 10.3.1.
Last time (when I have to update to 10.3) I tried to update in every way but without success and at the end I had to format everything and I lost my data.
So here is my question: which is the correct procedure to update software?
Thanks!
Look in TWRP and Root for OnePlus 6 on Oxygen OS 10 Stable/Beta thread
So you need to download latest Oxygen zip which is 042 buil if I'm not wrong...put it on your phone if you already didn't done that...then reboot to TWRP...and here starts the procedure....I HIGHLY RECCOMEND TO DO A WIPE WITHOUT FORMATTING INTERNAL STORAGE ONLY DATA...FOR AVOIDING ISSUES...but you can go without it...so here we start
Boot into twrp
Flash oxygen os zip(latest)
Flash twrp
Reboot to twrp(if it says no os installed just ignore it and swipe reboot anyway)
Flash magisk
and your done...thats it...nothing could go wrong.... I'm always doing it this way....
ilpratti said:
Dears,
I have a OnePlus 6 unlocked and rooted with magisk and TRWP.
Currently I'm running stock firmware: oxygenos 10.3.
I got a message from system to update to 10.3.1.
Last time (when I have to update to 10.3) I tried to update in every way but without success and at the end I had to format everything and I lost my data.
So here is my question: which is the correct procedure to update software?
Thanks!
Click to expand...
Click to collapse
For me, the phone downloaded the whole package instead of just the little OTA. I let it install it, bit did not let it restart it. Then I went to magisk modules and installed "twrp-keep". Then in magisk manager I had it install magisk on the other slot. Then I restarted the phone. Everything worked great.
tabletalker7 said:
For me, the phone downloaded the whole package instead of just the little OTA. I let it install it, bit did not let it restart it. Then I went to magisk modules and installed "twrp-keep". Then in magisk manager I had it install magisk on the other slot. Then I restarted the phone. Everything worked great.
Click to expand...
Click to collapse
Try this method... im also done my update like this!
my way of doing it
Here's what i did and it didn't took me long at all i'm a newbie
I unroot my phone via magisk
install os 10.3.1 then flash twrp and root my phone again.
Dears,
Thanks for the replay.
I forgot that I was without TWRP.
What I did, and it worked, is:
- uninstall magisk manager by magisk
- install full update
- reboot
- flash by fastboot boot.img patched by magisk.
Thanks again

[Pixel 3a][Android 11][ROOTED][TWRP 3.6.0] Install OTA without reverting to stock

Hello!
I am on an older version of Android 11 and I would like to install the latest Android 11 OTA without losing root and TWRP.
I know that I could just manually flash the lasted Android 11 firmware, then re-install TWRP and Magisk, but this would mean losing all data and having to reinstall apps, restore backups, etc...
So I was wondering if there were a quicker way to install OTA updates without losing data and root.
I know that there are many articles on the subject but they all refer to a previous version of TWRP and Magisk. Because TWRP 3.6.0 sports a completely revamped codebase I would like to know what is the latest recommended method if any.
This is my system info:
Android 11 sargo-rq1a.201105.002-factory-2433e0c0
Magisk v23
TWRP 3.6.0-11_0
Japan region
PS I do not intend to update to Android 12 yet
I ended up flashing the latest version of the stock firmware and reinstalling TWRP and root. However if you have a solution please post it for future reference.
I was looking for the same thing, didn't find any good solution, however, you can edit the flash-all script so that it doesn't wipe your data (remove the -w argument if I remember well).
reyqn said:
I was looking for the same thing, didn't find any good solution, however, you can edit the flash-all script so that it doesn't wipe your data (remove the -w argument if I remember well).
Click to expand...
Click to collapse
The flashall script will still remove TWRP and root though, right?
blksith0 said:
The flashall script will still remove TWRP and root though, right?
Click to expand...
Click to collapse
Yeah it does, you have to reflash them after
It's annoying that we can't choose the OTA android installs, it has to be the latest one. On some phones you can choose a local file, but I didn't find a way to do so with a pixel 3a.
If you were able to do this, in theory you could just flash the magisk module for twrp retention and preflash magisk on the unactive partition after installing the ota but before rebooting. Then just reboot and you keep everything.
I'm not ready to update to android 12 either (gravitybox, twrp), but I'll try then...
LastStarDust said:
I ended up flashing the latest version of the stock firmware and reinstalling TWRP and root. However if you have a solution please post it for future reference.
Click to expand...
Click to collapse
I don't understand. Just flash the Full Factory OTA zip in TWRP. That won't remove any data. And you can just check the box to "Automatically flash TWRP after zip" so that you'll keep whatever TWRP you're using. Then you just have to reboot recovery (so that you're on the updated slot) and flash the Magisk APK in TWRP. Reboot and profit.
P.S. This post belongs in Q&A.
Captain_Throwback said:
I don't understand. Just flash the Full Factory OTA zip in TWRP
Click to expand...
Click to collapse
I wondered if you could do this, apparently TWRP doesn't recommend it.
Also I had no idea how this works on a device with A/B partitions. Does TWRP automatically flash on the inactive partition?
reyqn said:
I wondered if you could do this, apparently TWRP doesn't recommend it.
Also I had no idea how this works on a device with A/B partitions. Does TWRP automatically flash on the inactive partition?
Click to expand...
Click to collapse
That 'recommendation' is specific to incremental OTAs. Also, it not generally being supported isn't the same as it not being recommended.
TWRP will install the zip to the inactive slot, and then when you reboot, the device will automatically boot into the updated slot.
Thanks for the precisions, I'll know for the next time. TWRP really is awesome
hi everyone, i flashed pixel 3a to android 12 and now my imei is 004400.... and no service ..... what should i do?

Categories

Resources