Question LineageOS 18.1 + Magisk OTA howto? - Xiaomi Poco X3 Pro

hi
i have a poco x3 pro, rooted (magisk) and running LineageOS 18.1
Now i get my first OTA and wonder how to retain root, after upgrading.
with my Mi A1 it was
* restore boot image from within magisk manager
* install OTA
* reinstall magisk after OTA in magisk manager in second partition
* reboot
as far as i see X3 Pro has no A/B scheme

I'm using TWRP and Magisk flashed as zip by TWRP. This way a proper addon script is installed and Magisk survives OTA. The same goes for gapps.
If you install Magisk by flashing prepared boot.img, then you have to repeat this procedure after each OTA update.
You don't have to restore original boot.img before OTA. LineageOS is not an incremental update, it is full system, which overwrites boot.img, regardless of what it contains.

thanks for answering. i did my first install this way:
install LOS via lineageos recovery, add gapps, add magisk, reboot
i now installed the OTA from inside Lineagos. root lost. i checked for the existance of /system/addon.d/99-magisk.sh and the script was (and still is) there. do i need to download OTA and afterwards install the update from recovery?

Maybe it is a problem of LineageOS recovery. I'm using official TWRP. You probably have to install Magisk again. I think you can switch to TWRP at any time, it is compatible with Lineageos.

worked, thanks for pointing me into the correct direction!
the steps so far:
1* reinstall magisk (by patching boot.img from the OTA and booting into that and reinstall magisk)
2* download the next OTA
3* install twrp (i used the path through play-store)
4* start the installation of OTA (from inside android)
5* poco reboots into twrp
6* unlock with my password/pin
7* twrp does some magic/installs OTA
8* boot into system
9* everything is fine
from now on it should work from step 4
merry xmas!

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.

Bootloop with OOS 9.0.3 on OP6 when magisk v18 is installed

Installation steps are as follow when updating from 9.0.2 to 9.0.3.
Flashed full zip from bluspark twrp
Immediately flash bluspark twrp zip after that
Reboot into recovery
Flashed Magisk v18 zip (Also tried v17.3 zip)
Reboot system
After that, boot animation is shown and followed by Shutting down dialog with my wallpaper behind it, then rebooted into TWRP itself. I cannot reboot into system until I flash full zip again, but I lost my root now. Above steps were used when I update from older version to 9.0.2 and it was ok at that time. Bluspark latest stable (3.2.3) was used. Any idea how to fix please? Thanks.
xtartrackR said:
Installation steps are as follow when updating from 9.0.2 to 9.0.3.
Flashed full zip from bluspark twrp
Immediately flash bluspark twrp zip after that
Reboot into recovery
Flashed Magisk v18 zip (Also tried v17.3 zip)
Reboot system
After that, boot animation is shown and followed by Shutting down dialog with my wallpaper behind it, then rebooted into TWRP itself. I cannot reboot into system until I flash full zip again, but I lost my root now. Above steps were used when I update from older version to 9.0.2 and it was ok at that time. Bluspark latest stable (3.2.3) was used. Any idea how to fix please? Thanks.
Click to expand...
Click to collapse
flash magisk uninstaller, then reinstall magisk v18 and add one module at a time to understand which one causes bootloop
It worked. Thank you!
Just a heads up next upgrade: disable all (except ROMs maybe) magisk mods, also disable substratum themes before updates. They can make your phone bootloop or system UI crash. Glad it works fine now
For me, flashing magisk uninstall and reinstalling v18 still didn't work. I had to install beta version 17.3 after flashing the uninstall, then I installed magisk manager when it successfully booted and finally updated to v18 through the manager. Not sure why v18 wouldn't work even after flashing magisk uninstall, but 17.3 worked.
I also had this problem on a fresh OS install. Had to install:
Magisk 17 then
Magisk 18 then
Magisk 19
This is a crazy bug
Sepero said:
I also had this problem on a fresh OS install. Had to install:
Magisk 17 then
Magisk 18 then
Magisk 19
This is a crazy bug
Click to expand...
Click to collapse
Have you tried magisk uninstaller and fresh start without any module? In my case one of my custom made module was causing problem because i didn't update it to latest template. Try one module at a time to find the culprit.
You need to disable all magisk modules before doing system update, otherwise it goes in auto shutdown and then you need to flash magisk uninstaller and then re-flash magisk
And remember to remove pin/password lock too
OFFTOPIC:
I have 9.0.3 + TWRP. What are exactly steps do nuke, clean, and reinstall 9.0.3? Need info about correct order and options on Format on TWRP.
Thank you.
Mord0rr said:
OFFTOPIC:
I have 9.0.3 + TWRP. What are exactly steps do nuke, clean, and reinstall 9.0.3? Need info about correct order and options on Format on TWRP.
Thank you.
Click to expand...
Click to collapse
Format DATA from TWRP then boot to system once and when it's ready you can reboot to twrp to install magisk if you want

Losing TWRP and Magisk after update

I'm running stock ROM on unlocked bootloader with root through Magisk. I've been using TWRP, but changed over to Blu_spark TWRP recently.
Every time I update my OS Ota, I lose TWRP and Magisk. The Magisk app is installed, but the ROM is not rooted. If course, if I try to install patch the system so it's rooted through the Magisk app, it says that it can't unpack the file. If I reboot to recovery to install from there, I get the stock recovery, not TWRP.
I tried to re-install TWRP and Magisk once before, and borked my phone. I had to quote and start from scratch. I lost all data since I wasn't rooted and Titanium Backup would not run.
What is the proper way to get TWRP and Magisk back after an OTA update?
Flash them after you flash update zip. If you don't you will lose recovery and root every time. Gets overwritten by stock recovery. Normal behavior
Sent from my ONEPLUS A6003 using Tapatalk
So you're saying that instead of doing the OTA update, I should download the update from here, and manually update it ? Can I just install the update? I'm rooted, (well, I was) so the OTA will only download the full update. Is that required instead of the update?
I really have to do a full re-install for every update? That sucks. A lot.
Full reinstall? No. You just have to flash the full ROM. This doesn't mean, you'll loose all your data: Just TWRP, Magisk and (if you have it) your custom kernel. You only have to flash TWRP (or simply boot into it), Magisk and kernel (again: if you have it) after the update. Done.
MickyFoley said:
Full reinstall? No. You just have to flash the full ROM. This doesn't mean, you'll loose all your data: Just TWRP, Magisk and (if you have it) your custom kernel. You only have to flash TWRP (or simply boot into it), Magisk and kernel (again: if you have it) after the update. Done.
Click to expand...
Click to collapse
Ok. Cool. I tried that last time, but it failed. As a result, I'm a bit anxious about doing it again. Hopefully, I won't have any problems this time.
Thanks for the info.
I have had similar troubles as you, here's an overview of how to solve those problems.
OTA through OS:
Download and install OTA
Use Magisk Manager to download the TWRP A/B retention script and install it
Install Magisk to current and inactive slot
Reboot
Guys I am using latest blu_spark twrp. my bootloader is unlocked and I am running oxygenOS openbeta23. Following is my problem.
My flash order: (Note: already I have bue_spark twrp recovery running without issues)
1. Flash the full OTA(openbeta)
2. Flash the blu_spark twrp zip file on both active and non active slots.
3. Flash the latest magisk zip file. If step 3 is not successful means I will try to reboot in to recovery and again flash the magisk installer zip.
Until some time back all this worked fine. But for last 2-3 times although the flashing process of twrp zip on both slots ends with success message, when I reboot to recovery from twrp in order to flash magisk, the device boots in to stock recovery. I don't know how even after flashing twrp zip on both slots successfully why the devices bootbback to stock recovery. Then to have blu_spark twrp I have to connect my device to a computer in fastboot mode and then boot in to custom recovery using the blu_spark twrp image file and again flash the blu_spark twrp zip file which is inconvenient and also requires a computer.
Am I missing anything here?? If yes why this method was working perfectly before? Please somebody help.
Regards,
Sivabalan K
I flash in following order my stable updates
Flash full rom zip
Flash bluespark recovery
Restart into bluespark recovery
Flash magisk
Restart into Android
Everything works flawless. Magisk installed with all the modules running
Hi guys,
Don't you need to disable lock pattern/PIN or fingerprint/face ID? And don't need to uninstall magisk modules?
I never update my OP6 from my initial unlock/twrp/magisk and I'm a bit anxious to do it now...
Thanks
PS : I'm using original twrp (3.2.3-1), is this a problem?

Can't root after full 9.0.4 installation

I have installed incremental upgrades for 9.0.2 and 9.0.3 and been able to do a TWRP less root using Magisk. For the upgrade to 9.0.4 I downloaded and installed the full upgrade. Following installation of oos_9.0.4_patched_boot.img, my phone reboots to recovery so I am unable to load Magisk. So I have to reinstall oos_9.0.4_stock_boot.img and stay unrooted. I can't find a similar problem - am I unique? Any solutions?
Solanoantuna said:
I have installed incremental upgrades for 9.0.2 and 9.0.3 and been able to do a TWRP less root using Magisk. For the upgrade to 9.0.4 I downloaded and installed the full upgrade. Following installation of oos_9.0.4_patched_boot.img, my phone reboots to recovery so I am unable to load Magisk. So I have to reinstall oos_9.0.4_stock_boot.img and stay unrooted. I can't find a similar problem - am I unique? Any solutions?
Click to expand...
Click to collapse
Flash Full OOS via fastboot (Guide: https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665 )
Then use fastboot to enter twrp blu_spark (TWRP: https://forum.xda-developers.com/devdb/project/?id=27466#downloads )
Then flash magisk (Magisk: https://forum.xda-developers.com/ap...k-v7-universal-systemless-t3473445?styleid=21 )
After magisk installed, reboot phone and install magisk app
Done.
PeterSmusi said:
Flash Full OOS via fastboot (Guide: https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665 )
Then use fastboot to enter twrp blu_spark (TWRP: https://forum.xda-developers.com/devdb/project/?id=27466#downloads )
Then flash magisk (Magisk: https://forum.xda-developers.com/ap...k-v7-universal-systemless-t3473445?styleid=21 )
After magisk installed, reboot phone and install magisk app
Done.
Click to expand...
Click to collapse
My apologies for the late reply. I'm not heavily into these things so I was reluctant to go into TWRP. So I ended up resetting my phone and now it all roots quite happily. But thanks for the ideas.
hii i have one plus 6 oxygen 9.0.6 but am not able to find out patched file
image
Deleted

Suggestion on installing OOS v9.5.4 on GM1917-GM21AA

Seems I am not finding a definitive guide to flash OTA or full OOS v9.5.4 on GM1917-GM21AA
Current setup:
OOS v9.5.3, rooted with Magisk patched boot, Magisk app and TWRP "non-decrypt"
Plan for upgrade to v9.5.4:
Place all files on USB OTG, TWRP zip, Magish v19.2, Magisk un-installer v2.0, OTA v9.5.4 182mb/Full 1.99gb "in case"
Boot to TWRP, access OTG, flash Magisk un-installer
Flash OTA v9.5.4
Flash TWPR zip, reboot TWRP
Flash Magisk v19.2
Am I on the right track? Am I missing some steps?
I want to minimize any bootloop scenario.
Tx guys.

Categories

Resources