Question OTA update and root - Xiaomi Mi 11 Lite 5G

I have the 12.5.1.0 update waiting for me but that will remove root. Is there a way to install the OTA update and keep root?

kestrelv2 said:
I have the 12.5.1.0 update waiting for me but that will remove root. Is there a way to install the OTA update and keep root?
Click to expand...
Click to collapse
no, but you flash with magisk boot.img then with fastboot on pc..

kestrelv2 said:
I have the 12.5.1.0 update waiting for me but that will remove root. Is there a way to install the OTA update and keep root?
Click to expand...
Click to collapse
This device seems to be A/B device.
Maybe try: TWRP A/B Retention Script
Read the description how to use.
The module can be searched in Magisk.
I can't test it though.

Related

Replace TWRP with stock recovery to install OTA

Today I've flashed the recovery with TWRP to install SuperSU.
Is there any possibility of installing the stock recovery to be able to install Android updates normally again without losing all data and SuperSU?
You sir, are not alone with this question. Been eagerly looking for an answer for the same question..
reconman said:
Today I've flashed the recovery with TWRP to install SuperSU.
Is there any possibility of installing the stock recovery to be able to install Android updates normally again without losing all data and SuperSU?
Click to expand...
Click to collapse
Use the search function, it has already been covered.
Anarchist77 said:
Use the search function, it has already been covered.
Click to expand...
Click to collapse
I can't find anything for the G5, only for other phones.
The only option I currently know of is to flash the whole KDZ and then install TWRP and SuperSU again. Is there another way?
As long as the system is modified in any way, the only way to install ota updated is through LGUP because before applying the update there is a system integrity check ran and if that fails you will most likely get into bootlops or worst
Here is what I did to get a 10D rooted system
Thank you @gwolfu.

How to install OTAs on rooted poco F1 ?

There will(hopefully) be a lot of otas coming to Poco F1 for bug fixing. So if we are rooted with Magisk we cannot install Otas directly as magisk modifies our stock boot image. And since poco doesn't have A/B partitions we cannot install OTA's and still keep Magisk. That brings us to Flashfire which can preserve root. Flashfire doesn't work on MIUI 9.6.14.0 (it doesn't work on mine) .So how do we install OTAs while preserving Magisk ? Is it possible or do we have to flash stock recovery and stock boot image and lose magisk ?
OTA update method according to topjohnwu:
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md
Would be helpful if somebody can post a diy in the guide section on how to apply OTAs on Magisk rooted devices.
I would be very interested as well!!
Go to recovery.
Flash Magisk zip to restore old kernel backup.
Boot to system, you will not have root.
Update.
You still have TWRP, install Magisk again.
Profit.
I did flash my ota via stock recovery . You need flash stock recovery then go to system update after done go back to twrp and your magisk
abdohop said:
I did flash my ota via stock recovery . You need flash stock recovery then go to system update after done go back to twrp and your magisk
Click to expand...
Click to collapse
Could you please be more specific?
1. Flash stock recovery (so you loose Twrp)
2. Boot to System and make update
3. Flash twrp again and root again with Magisk?
Thanks
---------- Post added at 07:59 AM ---------- Previous post was at 07:57 AM ----------
trax7 said:
Go to recovery.
Flash Magisk zip to restore old kernel backup.
Boot to system, you will not have root.
Update.
You still have TWRP, install Magisk again.
Profit.
Click to expand...
Click to collapse
You mean that flashing Magisk again will "undo" root?
DoudouJack said:
You mean that flashing Magisk again will "undo" root?
Click to expand...
Click to collapse
Yes.
trax7 said:
Yes.
Click to expand...
Click to collapse
Hi, just booted into TWRP and flashed Magisk zip file, I'm still rooted.
Do you mean then the uninstaller Magisk file? If so, it will remove packages as well and root will still be there... Could you please be more explicit? Thanks!
DoudouJack said:
Hi, just booted into TWRP and flashed Magisk zip file, I'm still rooted.
Do you mean then the uninstaller Magisk file? If so, it will remove packages as well and root will still be there... Could you please be more explicit? Thanks!
Click to expand...
Click to collapse
Magisk makes a backup of ur boot.img, which you need to use OTAs, to restore it, you can flash Magisk again to restore it. (that's how it should work)
trax7 said:
Magisk makes a backup of ur boot.img, which you need to use OTAs, to restore it, you can flash Magisk again to restore it. (that's how it should work)
Click to expand...
Click to collapse
In my case flashing Magisk again did not work. From Magisk Manager -> Uninstall either since it was "unable to download".
For those who would be in the same case, I did following steps to update:
- Download latest Magisk uninstaller (currently 17.3, I tested with 17.1 & 17.2)
- Boot into TWRP (I use an app for convenience), go to Install > flash the Magisk uninstaller zip and (optional) boot to system to make sure root is gone (with Root Checker e.g.)
- Power off device and boot into Fastboot, flash stock boot.img (you can find it in the ROM folder you used to install your ROM), boot to System and install OTA update via the update manager, then reboot
- At this point I was stuck in fastboot screen, I simply booted with TWRP (with decryption working) and it took care of installing the update, I then flashed Magisk from there.
DoudouJack said:
Could you please be more specific?
1. Flash stock recovery (so you loose Twrp)
2. Boot to System and make update
3. Flash twrp again and root again with Magisk?
Thanks
---------- Post added at 07:59 AM ---------- Previous post was at 07:57 AM ----------
You mean that flashing Magisk again will "undo" root?
Click to expand...
Click to collapse
Correct
Sandepp said:
There will(hopefully) be a lot of otas coming to Poco F1 for bug fixing. So if we are rooted with Magisk we cannot install Otas directly as magisk modifies our stock boot image. And since poco doesn't have A/B partitions we cannot install OTA's and still keep Magisk. That brings us to Flashfire which can preserve root. Flashfire doesn't work on MIUI 9.6.14.0 (it doesn't work on mine) .So how do we install OTAs while preserving Magisk ? Is it possible or do we have to flash stock recovery and stock boot image and lose magisk ?
OTA update method according to topjohnwu:
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md
Would be helpful if somebody can post a diy in the guide section on how to apply OTAs on Magisk rooted devices.
Click to expand...
Click to collapse
Try this guide, https://forum.xda-developers.com/poco-f1/how-to/step-step-guide-flashing-ota-beta-t3878730
Darklouis said:
Try this guide, https://forum.xda-developers.com/poco-f1/how-to/step-step-guide-flashing-ota-beta-t3878730
Click to expand...
Click to collapse
Its ok I have already flashed several OTAs, custom roms and kernels on my pocophone.
Sandepp said:
Its ok I have already flashed several OTAs, custom roms and kernels on my pocophone.
Click to expand...
Click to collapse
Is that so? What custom recovery you used?
Darklouis said:
Is that so? What custom recovery you used?
Click to expand...
Click to collapse
Twrp with working decryption
Sandepp said:
Twrp with working decryption
Click to expand...
Click to collapse
About that recovery, data partition will not get encrypted when you flash OTA update?
Darklouis said:
About that recovery, data partition will not get encrypted when you flash OTA update?
Click to expand...
Click to collapse
It will but I am ok with encryption. If you don't want then flash disable force encryption from twrp after flahsing the ota or flash magisk which will disable force encryption.
Sandepp said:
It will but I am ok with encryption. If you don't want then flash disable force encryption from twrp after flahsing the ota or flash magisk which will disable force encryption.
Click to expand...
Click to collapse
Nice nice.. Thanks for the tip
Darklouis said:
Nice nice.. Thanks for the tip
Click to expand...
Click to collapse
You're welcome

How to flash OTA update when unlocked, rooted, xposed and twrp

Hi guys,
i would like to update to the latest version.
My current one is COL-L29 8.1.0.148(C432).
Bootloader is unlocked, phone is rooted also xposed is installed and i use twrp as custom recovery.
Since there are several versions in Update Finder i'm a bit confused.
Which zip do i have to flash to keep al my data?
Thanks!
When you unlock bootloader, update only FullOta. OTA is not work)
So i'll lose all my data every time i flash an update?
Will it work after locking the bootloader again?
leAndroid91 said:
So i'll lose all my data every time i flash an update?
Will it work after locking the bootloader again?
Click to expand...
Click to collapse
You won't lose your data just install the fullota with Hurupdater and you'll be okay

Will unlocking and installing TWRP recovery will make OTA unavailable?

Hi,
I am new here! I want to install BSG camera port. So if i unlock my device and install TWRP, will i be then able to get the OTA updates?
karthi7491 said:
Hi,
I am new here! I want to install BSG camera port. So if i unlock my device and install TWRP, will i be then able to get the OTA updates?
Click to expand...
Click to collapse
If you flash closed beta which is usually the latest rom then you won't get otas if you flash open beta or stable version then you can get otas.
When you flash otas they replace your twrp with miui recovery.
Yes, but you should download the full rom update and install via twrp, because installing directly will remove twrp & root
karthi7491 said:
Hi,
I am new here! I want to install BSG camera port. So if i unlock my device and install TWRP, will i be then able to get the OTA updates?
Click to expand...
Click to collapse
When you install TWRP and Magisk, the OTA will detect the root and will download the full ROM. Then you flash the full ROM via TWRP, boot back into TWRP to avoid the ROM overwriting it and flash Magisk for good measure and then boot into system.

is it safe do update OTA while having Magisk ?

Hello guys i'm on emui 9 and having magisk running finally
few days ago i got an ota update , so if i installed it is it safe ? and will i lose the root and have to install magisk again ?!
Thank you in advance
foxvb74 said:
Hello guys i'm on emui 9 and having magisk running finally
few days ago i got an ota update , so if i installed it is it safe ? and will i lose the root and have to install magisk again ?!
Thank you in advance
Click to expand...
Click to collapse
Thats a fullrom.zip it will uninstall magisk even if its installed after OTA.
is it worth it ?
foxvb74 said:
is it worth it ?
Click to expand...
Click to collapse
As its downloaded already I would suggest to install it as it will get installed during the next time your device gets rebooted ?
Just root it again. and then disable updates if you dont want them.
To use OTA update you have to flash the stock recovery_ramdisk of your version.
Then do the OTA update.
Afterwards you can reflash TWRP etc. and magisk.
It's just a few minutes of effort so totally worth to do it every 1-2 month from my point of view.
Can you help me ? How can i get the recovery ramdisk and how to flash it alone
foxvb74 said:
Can you help me ? How can i get the recovery ramdisk and how to flash it alone
Click to expand...
Click to collapse
Download an ota file with FirmwareFinder of your current firmware version. Extract the UPDATE.APP file and use HuaweiUpdateExtractor to get a stock recovery ramdisk img file.
Run prompt and type: fastboot flash recovery_ramdisk RECOVERY_RAMDIS.IMG

Categories

Resources