Is it safe to OTA install updates while rooted and magisk? - Xiaomi Mi A1 Questions & Answers

I rooted my phone and use magisk modules too. New update appeared, am I safe to install it OTA? Will I lose root or magisk if I update?

Tomogitarist said:
I rooted my phone and use magisk modules too. New update appeared, am I safe to install it OTA? Will I lose root or magisk if I update?
Click to expand...
Click to collapse
The update won't go through and you will encounter an installation problem error. Revert back to the stock boot.img of your security patch month (e.g. January, Feb patch) and then try the OTA and you should be able to update.

Google "how to apply OTA with Magisk" if you haven't touched the system partition. But no it is not safe, I bootlooped.

It is safe. OTA updates system partition. Magisk uses boot partition.
In other hand if you ever mounted system as read AND WRITE even if you didn't make any change to it the OTA will fail.
OTA also will fail if detects boot partition modification, what means you'll have to temporally restore boot (uninstall Magisk) to update and then reinstall it. You'll find how to in this forum.

Related

How to update the 2016 February OTA with systemless root?

I have TWRP, but I'm still on android 6.0, security patch November 1, 2015, system version 24.11.18.clark_retus and no xposed. I have systemless root, so does full remove root in SuperSU then flashing the right recovery.img work to take all the OTA's till now? The February TWRP flashable OTA thread no longer has a live link.
HelpMeXDA said:
I have TWRP, but I'm still on android 6.0, security patch November 1, 2015, system version 24.11.18.clark_retus and no xposed. I have systemless root, so does full remove root in SuperSU then flashing the right recovery.img work to take all the OTA's till now? The February TWRP flashable OTA thread no longer has a live link.
Click to expand...
Click to collapse
This question is hard to answer... will it work? Maybe, we don't know. The problem is if you are rooted, you did it for a reason (or I would assume so) and you have made some changes to the /system partition over time. Doing a full unroot will not undo those changes. So if you do a full unroot, and fastboot the correct recovery image, then accept the OTA, the recovery is going start the OTA's installation script attempt to process it where it will start a checklist of items to verify, bootloader, boot image, system image, etc... the problem is we don't know what changes will cause the update to error out and which will allow it to apply.
To be honest, I don't think I have heard anyone say they have been able to successfully take this update without going back to pure stock, but ymmv.
The best thing to do would be to return to pure stock via the factory firmware images, we have a known good one of the May 2016 security update.

OTA update with Magisk

Hi guys! I'm on stock rom Nougat, since i installed magisk i'll always get error when i tried to update my phone from Update setting (samsung things...).
But when i installed Xposed and especially a module known as Firefds which set fake system status to "Official" (it was "Custom"), when i go back to check for a new update i found this (attachement).
So what do you think guys? Should i update? Maybe its November security patch...
But i don't want to lose twrp, magisk and all the stuff !!
This update didn't includes November patch so far I know. This will be listed in the patch notes for sure.
If you install the OTA update...this will end not well I think. You will running in an unstable system because of root, twrp etc. This update will replace files which are eventually needed and so on.
I suggest you flash stock rom with odin, then install the update then re-root and re-flash twrp. Yes it is annoying, but its better to be safe than sorry
zzThrain said:
I suggest you flash stock rom with odin, then install the update then re-root and re-flash twrp. Yes it is annoying, but its better to be safe than sorry
Click to expand...
Click to collapse
What about flash this update using FlashFire and keep twrp & magisk? I saw it in many other phones
Mrbinki said:
What about flash this update using FlashFire and keep twrp & magisk? I saw it in many other phones
Click to expand...
Click to collapse
You can of course do so...but my experience is that such methods will not end well. Do it like @zzThrain wrote it and download firmware from SamMobile with DQJ3 and reflash twrp and re-root to be sure that your system don't come unstable.
Any chance for OTA updates with Magisk only (without Xposed, etc.)?
If there is no chance - is there a place to download only monthly security updates - since full firmware versions (found at sammobile) are at least 10x times larger than the monthly updates?

Got OREO update via OTA but have Magisk installed. What should I do?

As mentioned in the title, I just got the Oreo update with the January patch. I'm currently running Nougat (December Patch) with just Magisk installed.
I have 2 questions :
1. If I end up installing this OTA, will it succeed?
2. If it does install, will the phone bootloop on reboot?
I don't mind doing a factory reset but I've read that has lead to people losing the OTA.
Also, I don't have TWRP installed. I just booted into TWRP to install Magisk so I can't uninstall it.
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md#ota-installation-tips
I was wondering the same thing. I've read the github link but im not sure if I should update like it is explained in there, especially since it's a new android version and not just a regular security patch. Should we follow it anyway? Im not too familiar with A/B partitions.
I have follow the GitHub way to make ota, but my uninstall magisk restore images have fail,show stock backup does not exist!what can I do now.
linwai said:
I have follow the GitHub way to make ota, but my uninstall magisk restore images have fail,show stock backup does not exist!what can I do now.
Click to expand...
Click to collapse
Did you install magisk via twrp?
After trying the A-B method (uninstall/restore image) I have an error message at second step of the Jan security patch installation. I'm not sure what's the process, don't want to go into bootloop. Cheers

XT1687 running NPN25.137-83 - OTA update

Hey guys,
My G5+, which is running NPN25.137-83, rooted with Magisk, TWRP, Xposed just prompted me for an OTA update.
I'm guessing if i try to update i'll (best case scenario) break something, worst case brick my phone.
I'm running Aug2017 security patch.
This OTA update says it includes Security updates till Nov2017 + Stability improvements.
Any suggestions? Thanks!
seed_87 said:
Hey guys,
My G5+, which is running NPN25.137-83, rooted with Magisk, TWRP, Xposed just prompted me for an OTA update.
I'm guessing if i try to update i'll (best case scenario) break something, worst case brick my phone.
I'm running Aug2017 security patch.
This OTA update says it includes Security updates till Nov2017 + Stability improvements.
Any suggestions? Thanks!
Click to expand...
Click to collapse
Do not apply the update, it will end up failing as you have TWRP installed, but every time you restart your phone, it will boot to TWRP and then you'll have to reboot from TWRP to bootloader and then system. Anyways, I recommend waiting until the OP of the TWRP flashable stock thread updates the links with that update and then flash the update via TWRP. Make sure you go into developer options and turn off automatic updates. You can also use an app to freeze Motorola update service if you don't want to be notified about the update.
jeffsga88 said:
Do not apply the update, it will end up failing as you have TWRP installed, but every time you restart your phone, it will boot to TWRP and then you'll have to reboot from TWRP to bootloader and then system. Anyways, I recommend waiting until the OP of the TWRP flashable stock thread updates the links with that update and then flash the update via TWRP. Make sure you go into developer options and turn off automatic updates. You can also use an app to freeze Motorola update service if you don't want to be notified about the update.
Click to expand...
Click to collapse
Per the TWRP flashable stock thread guide, I downloaded the OTA and shared the zip there
Thanks @jeffsga88! I will disable automatic updates to avoid any accidents.

can I flash ota update in twrp?

I received ota update notification. I downloaded the zip, it is npn25-37, currently my phone is on npn25-33. I have magisk root and twrp. I wonder if I can flash the ota update zip in twrp? Thanks
xdataibai said:
I received ota update notification. I downloaded the zip, it is npn25-37, currently my phone is on npn25-33. I have magisk root and twrp. I wonder if I can flash the ota update zip in twrp? Thanks
Click to expand...
Click to collapse
It will not work, OTAs require the stock recovery. Since you hace TWRP there is also a chance that it might have mounted your system before, so your system image isn't vanilla anymore and the OTA will fail to apply. First try flashing stock recovery from here (search for the version you currently have, which is -33) https://forum.xda-developers.com/g5-plus/how-to/firmwares-moto-g5-plus-t3593160 and then apply the ota. Since the firmware you're on is quite outdated, you'll probably have a couple more OTAs on the way.
Now if that doesn't work, you'll need to back up everything you have (apps and data) and flash system, oem and recovery, and then apply the ota updates, then restore your data.

Categories

Resources