Unwanted update - Xiaomi Mi A1 Questions & Answers

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

Related

PHH's Root Disappeared

Hi Guys.
As the title suggests root access suddenly disappeared from my nexus 6p yesterday.
DigitalHigh rom 7.0 was flashed through the latest twrp (3.0.2-2) and everything was running fine. I got the notification that the SU binary is out of date from PHH's SuperUser. Opened it but nothing really happened. So I downloaded superSU and suddenly it prompted me that the device isn't rooted. Being unfamiliar with PHH's SU I decided to flash the latest SuperSu through TWRP but the phone wouldn't boot.
Right now it has been restored to a backup taken just before flashing SuperSU which means everything is running fine and even android pay works however there's no root access. Is there something specific that might have caused this?
Are there any ways to re-gain root?
Haven't gone through the process of a clean flash yet as the phone is needed for work however even if all of that is done the SU binary will still need to be updated. Is there a different method for updating PHH's root?
So far I have tried clearing cache etc. but noting worked.
apostol96t said:
Are there any ways to re-gain root?
Click to expand...
Click to collapse
Phhusson's superuser and SuperSU don't mix. If you're back to booted, but not rooted with Phh, you'll need to either flash one of the Nougat boot images from the nexus/angler folder or the latest superuser.zip (I think the latest is r229) from http://superuser.phh.me

I am rooted, but not happy with my current state

Hey everyone,
I`m running LineageOS on my phone and am rooted using SuperSU which seems to work, according to Rootchecker and the feww apps I use, which make use of root privileges.
But I`m not entirely happy with my current situation, since it seems that more and more apps don`t tend to work with my rooted phone. So what are my ways out of this?
Can I easily unroot my phone, while keeping LineageOS?
Is there a working alternative to SuperSU, which would enable me to stay rooted on LineageOS without reflashing the OS and use Banking-Apps?
I`ve heard of Magisk, but I am unsure of how to switch over from my current state and I`am not sure whether or not it would solve my problems
Thanks for any help in advance!!
Magisk
You just have to go to SuperSU, then Full Unroot, then download Magisk 13.3 and flash it from TWRP. After that you should have Magisk Manager, if for some weird reason you don't, install it via apk
Then you just go to the settings, tick MagiskHide, then go back and open the side panel, MagiskHide - select the apps that you want Magisk to hide itself from
So I tried to do what you said.
I did the full unroot in the SuperSu App,
My phone rebooted
I shut it down again and booted into recovery
Tried flashing Magisk
But it failed, apparently due to my Boot image being patched by another program and told me to go with stock image
What do I do now? And will I lose any data by doing so? Thank you so much for any help!
Weird, but you can simply dirty flash LineageOS (the same one that you have now, or an update, doesn't matter) and it should let you install Magisk.
I did what you said and installed a delta update using LineageOS Downloader. Had to manually flash it in TWRP since I had no root permissions anymore. But I was able to install Magisk like a charm! Now I have to questions:
1. How do I update Magisk? Using the app?
2. Do I have to flash it again everytime I'm updating LOS?
Thanks for the great help so far!
And what exactly are those moduls? Should I be messing with them?
If updates come they will appear on the status bar and you can download them, and they'll install with the phone on. after that you have to (not quick) reboot your phone.
and about the modules, seriously? what do you think??

Unable to install OTA updates since root

Yo all,
I've rooted my op5 and installed twrp recovery, and ever since - after downloading OTA update and rebooting, it always boots into TWRP recovery and when i'm rebooting into system i get notificaiton that the update was failed.
i don't recall i had any issues with TWRP and ota updates with my old op3, is this normal?
any suggetions on how to keep my phone rooted and get the automatic updates to work?
Thx:fingers-crossed:
segevngr said:
Yo all,
I've rooted my op5 and installed twrp recovery, and ever since - after downloading OTA update and rebooting, it always boots into TWRP recovery and when i'm rebooting into system i get notificaiton that the update was failed.
i don't recall i had any issues with TWRP and ota updates with my old op3, is this normal?
any suggetions on how to keep my phone rooted and get the automatic updates to work?
Thx:fingers-crossed:
Click to expand...
Click to collapse
That's normal. If you are rooted, you won't be able to install ota, instead you need to install full zip
Yousvel said:
That's normal. If you are rooted, you won't be able to install ota, instead you need to install full zip
Click to expand...
Click to collapse
Too bad
Once I'll flash the update and my root will be gone, will it work? I mean, it's related only to root and not to TWRP?
segevngr said:
Too bad
Once I'll flash the update and my root will be gone, will it work? I mean, it's related only to root and not to TWRP?
Click to expand...
Click to collapse
Just when flashing full zip, flash SuperSU or Magisk before first boot and everything will be fine. If you flash SuperSU or Magisk before booting, you will need loose twrp either.
I'm rooted with Magisk and can do OTA's no problem

EngineerMode unroot?

back when engineermode exploit backdoor 'thing' whatever you want to call it, was still a thing i seized to opportunity to gain root access, however since then magisk hide has begun failing me and i would like to either find a way to update magisk from v14.0 safely, or to unroot completely (preferably without wiping) as this has started being problematic. I am on the latest oxygenOS update and i used this guide to root (i originaly linked it here but apparently i cant do that, it was on github, called OneplusRoot by a fella named aldur.)
If anyone can help id really appreciate it.
Thanks in advance
Since One Plus removed engineering mode I'm surprised you were able to update OOS and maintain the exploit. Why don't you just unlock your bootloader and root the proper way? Your phone won't melt if you do.
I would like to avoid wiping if possible. I too am surprised at the persistence of root after at least 3 OTAs. At this point I no longer really need root and would rather my phone run smoothly without some applications crashing or not running due to root.
bump?
gbesh said:
bump?
Click to expand...
Click to collapse
As long as your system boots, and you have root, install the latest magisk manager from the magisk thread, and it will prompt you to update. As long as you give magisk manager root access you should be able to do a "direct install" and reboot and should be up to date. Back up your data first though, I'm not responsible for your data loss (but this worked for me)
Same to unroot. Magisk has an uninstall option that should fully unroot you
manor7777 said:
As long as your system boots, and you have root, install the latest magisk manager from the magisk thread, and it will prompt you to update. As long as you give magisk manager root access you should be able to do a "direct install" and reboot and should be up to date. Back up your data first though, I'm not responsible for your data loss (but this worked for me)
Same to unroot. Magisk has an uninstall option that should fully unroot you
Click to expand...
Click to collapse
Well my system doesn't boot with root. I have to manually mount something and start the magisk service.
Which is why I'm not sure how to update as I've been told the updated version has a different file structure that the one I'm on.
were you able to unroot? i think i am in the same boot right now, on 4.5.13 with magisk root by engineermode, if you were successful please tell me how
yohouse2 said:
were you able to unroot? i think i am in the same boot right now, on 4.5.13 with magisk root by engineermode, if you were successful please tell me how
Click to expand...
Click to collapse
no unfortunately i am still waiting for a solution.
gbesh said:
no unfortunately i am still waiting for a solution.
Click to expand...
Click to collapse
When I ran out of options,I unlocked the bootloader (wiped the device), and the new system was unrooted, i then installed Nolimits rom based on OOS 5.1.2
I asked on another thread and another user told me that if you accepted the complete zip update of the OTA prompt the updated system would lose the root, but you wouldn't lose your data or apps, which is nice, but keep in mind you are more probable to have worse performance or battery than clean install
yohouse2 said:
When I ran out of options,I unlocked the bootloader (wiped the device), and the new system was unrooted, i then installed Nolimits rom based on OOS 5.1.2
I asked on another thread and another user told me that if you accepted the complete zip update of the OTA prompt the updated system would lose the root, but you wouldn't lose your data or apps, which is nice, but keep in mind you are more probable to have worse performance or battery than clean install
Click to expand...
Click to collapse
I can confirm this is not the case, i have been updating as the updates roll out and i am now on 5.1.2 and still able to get root access through adb with a locked bootloader.
gbesh said:
I can confirm this is not the case, i have been updating as the updates roll out and i am now on 5.1.2 and still able to get root access through adb with a locked bootloader.
Click to expand...
Click to collapse
Well the alternative is another thing i read but can't find, and honestly can't recommend unless you find in too, is that you can delete the apk and the magisk image(don't know which one, this is how bad i remember this), then rebooting would remove the root.
yohouse2 said:
Well the alternative is another thing i read but can't find, and honestly can't recommend unless you find in too, is that you can delete the apk and the magisk image(don't know which one, this is how bad i remember this), then rebooting would remove the root.
Click to expand...
Click to collapse
After one of the recent updates, magisk hide started working again and my apps are no longer crashing. It is strange but i guess this situation has turned out favourably after all.

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.

Categories

Resources