Install Magisk over pie OTA update? - Xiaomi Mi A1 Questions & Answers

So pie is already rolling out on some countries. Before it rolls out to my country, I want to know if the usual method of installing Magisk over ota will work to preserve root. I use magisk solely to enable camera2api for gcam and occasionally for some apps requiring root access. Usually when I receive a security patch for 8.1, I restore stock boot img then apply the update without restarting. After the update, I go to magisk and select install > install to inactive slot and reboot. Anyone tried this while installing pie?

Related

Is it safe to OTA install updates while rooted and magisk?

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.

Security updates with TWRP

Hello, i installed Magisk via TWRP, is there a way to update system (maybe removing Magisk, reinstalling it after the update) without bootlooping?

Unwanted update

Hi everyone! My Mi A1 updated to the August security patch without my permission. Basically, I was at 1% so I shut it down. When I restarted it, it was magically updated. Thing is it was rooted and with magisk installed. Now it tells me it doesn't have root permissions anymore, and magisk is still installed. Also, the bootloader is still unlocked, I see it when I turn it on.
How can I restore root without damaging anything? Thanks!
Flash latest Magisk through TWRP
mikla90 said:
Hi everyone! My Mi A1 updated to the August security patch without my permission. Basically, I was at 1% so I shut it down. When I restarted it, it was magically updated. Thing is it was rooted and with magisk installed. Now it tells me it doesn't have root permissions anymore, and magisk is still installed. Also, the bootloader is still unlocked, I see it when I turn it on.
How can I restore root without damaging anything? Thanks!
Click to expand...
Click to collapse
Go to developers option and uncheck automatic update
You'll receive a notification when an update is available but it will not install by itself
Just a reminder your other partions is still rooted with magisk
For the next update you'll have to flash firmware or use TWRP to boot on the other slot and uninstall magisk on old partition
Hope it's clear

How do I install update with root magisk running?

Hello friends,
I would like to know how to apply OTA update via TWRP with the magisk running. I have not found any good tutorials that explain the correct procedure. Always when I need to update the security path, I remove all the root magisk through the zip unistall magisk via TWRP, update the system and then return with custom recovery + root.

Throwback to engineermode

Back when engineeringmode was a big deal because of security concerns, i took advantage of it and rooted my oneplus 5 with magisk installed. This root did not go away with updates until android pie, though i had to reload magisk every reboot. In this latest update, *#808# root test says that i still have root, but i cannot load magisk and thus, cannot use root. Is there anyway to make it so that the I can regain root without unlocking bootloader and wiping?
cheers

Categories

Resources