Root MI 8 in MIUI keeping OTA updates - Xiaomi Mi 8 Questions & Answers

Is it possible to root MI 8 in MIUI keeping OTA updates with Magisk?
And keeping bootloader locked? (I guess the answer for this is no right now, since there is no bug found already)
I've found this guide for Note 4 (https://forum.xda-developers.com/redmi-note-4/how-to/guide-root-using-magisk-stock-recovery-t3718203) which, in a unlocked bootloader phone can root keeping OTA updates. It keeps the original recovery to achieve it.
Has anyone done something like it in the MI 8?

enable dm verity and everytime your phone boot it will replace recovery with original recovery, then ota updates will work. But everytime u update via ota, boot gets rewritten and your magisk will not survive. u have to fastboot flash via pc recovery rom then flash magisk again. U cant root a phone and keep bootloader locked, it doesnt work that way i dont think. Magisk modifys boot partition and relocking it will either softbrick or just not lock. Correct me if i am wrong

Related

OTA updates after unlocking bootloader

Hey guys I'd like to know if i can have OTA updates after unlocking bootloader (NO TWRP & ROOT).
live4speed said:
Hey guys I'd like to know if i can have OTA updates after unlocking bootloader (NO TWRP & ROOT).
Click to expand...
Click to collapse
based on other phones i would say yes, but dont quote me on that ^^
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
Can anyone confirm this? There's a new OTA update available for mi max 2 but I'm not updating coz I'm waiting for 72 hours to complete so I can unlock bootloader. I'm kinda worried that if I update my device to miui 9.2 I might have problem unlocking my bootloader. So I'm thinking to unlock my bootloader first & then update my device thru OTA update.
I've got them but don't launch the upgrade because, if I do that, it remove my twrp by re-flashing xioami stock recovery.
I've got a global beta rom, bootloader unlocked, twrp installed and rom rooted.
lightman33 said:
I've got them but don't launch the upgrade because, if I do that, it remove my twrp by re-flashing xioami stock recovery.
I've got a global beta rom, bootloader unlocked, twrp installed and rom rooted.
Click to expand...
Click to collapse
oh wow, so even with all that ota updates are possible, good to know
flashing twrp isnt a big deal though, just boot into fastboot, connect to pc and input a command, thats it not like u need hours of work to get it done
would be interesting to know if the rom gets unrooted on update.
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
I received a phone with an unlocked bootloader. It just received V9.0.3.0.NDDMIEI
I don't know if it's just the China model reflashed with the English ROM or what, but it's definitely got an unlocked bootloader and I'm not sure why.
ZHNN said:
I received a phone with an unlocked bootloader. It just received V9.0.3.0.NDDMIEI
I don't know if it's just the China model reflashed with the English ROM or what, but it's definitely got an unlocked bootloader and I'm not sure why.
Click to expand...
Click to collapse
lucky you, no need to unlock BL anymore
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
jbmc83 said:
lucky you, no need to unlock BL anymore
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
Click to expand...
Click to collapse
Am I correct in thinking that the update would have reflashed the recovery area and eliminated anything that didn't belong? I put TWRP on it and I'm going to load a stock ROM through TWRP.
I'm wondering whether I've gotten ahead of myself and I should have gone Stock ROM-->TWRP-->Stock ROM with root.
I'm also not sure if the rooted stock ROM will allow me to enable LTE bands just by changing NVRAM settings in QPST. Does anyone know if the bands are blocked in MIUI as well?
I run unlocked boot loader, global stable and Magisk.
Every OTA, I gotta reflash TWRP, and reinstall Magisk, but yeah, I can OTA.
Chisame said:
I run unlocked boot loader, global stable and Magisk.
Every OTA, I gotta reflash TWRP, and reinstall Magisk, but yeah, I can OTA.
Click to expand...
Click to collapse
How do you install OTA? from the updater app in the device OR full Rom in twrp?
I just use the updater app, it reboots, and then proceeds to flash and remove TWRP and Magisk.
The only time that I've used TWRP is to flash Magisk.
Just I want. I only need TWRP to flash Magisk to enable use of Titanium Backup Pro and any adsblocker.
So Flashing TWRP via fastboot, then using TWRP flash Magisk. Use mobile as usually and when i update via OTA, reflash TWRP and Magisk, true?
EDIT: After flashing Magisk, flash stock recovery via fastboot so mobile is ready to OTA update. Right?
Chisame said:
I just use the updater app, it reboots, and then proceeds to flash and remove TWRP and Magisk.
The only time that I've used TWRP is to flash Magisk.
Click to expand...
Click to collapse
Yeah, just choose to download the full rom press reboot and it'll upgrade, then flash TWRP and Magisk again.
Chisame said:
Yeah, just choose to download the full rom press reboot and it'll upgrade, then flash TWRP and Magisk again.
Click to expand...
Click to collapse
so you are saying ota update through updater app is not working?
do i need mi app on pc to update,that too after downloading the full rom for every update?
status: bl UNLOCKED ,root-NO
I dont think so, if you allow replacement of twrp by stock recovery after magisk flashing i think it should be possible install ota using update app. When its done, then reflash twrp and magisk from it.
sirarisma said:
I dont think so, if you allow replacement of twrp by stock recovery after magisk flashing i think it should be possible install ota using update app. When its done, then reflash twrp and magisk from it.
Click to expand...
Click to collapse
It works. unless something is modified in system partition
Right.
reversegear said:
It works. unless something is modified in system partition
Click to expand...
Click to collapse
I have redmi note 11 pro (china) which it's bootloader unlocked and installed global miui rom cause with stock recovery and not rooted so will I receive OTA updates?
And is there anything I should do specifically for this case while updating the phone

OTA Updates after Unlocking bootloader

hey guys, i wanna know if i will still get ota updates if i unlocked the bootloader ??
i wanna unlock it and if i didn't flash TWRP after unlocking it i will be able to install the update ??
This thread is pretty old and it's referring to a Nexus 5, but I think the info holds true. Unlocking wont' stop ota updates, and if all it is is unlocked, then the ota update should install.
It's when you install twrp, or root, or a new system image, etc... that's when the ota update won't install.
https://forum.xda-developers.com/google-nexus-5/help/unlocking-bootloader-prevent-automatic-t3003581
When I unlocking the fastboot oem it will unlock but when I was goes enable to camera 2 I was applied patched boot img my mi a2 phone was stuck in between reboot only it'll showed Android one logo it not goes to restart after I waited 30 min I was flash my phone with new global ROM then it'll start. After that I check my if it's rooted or not .then found out my phone is not rooted properly
My question is can get OTA update ?
Ravirush said:
When I unlocking the fastboot oem it will unlock but when I was goes enable to camera 2 I was applied patched boot img my mi a2 phone was stuck in between reboot only it'll showed Android one logo it not goes to restart after I waited 30 min I was flash my phone with new global ROM then it'll start. After that I check my if it's rooted or not .then found out my phone is not rooted properly
My question is can get OTA update ?
Click to expand...
Click to collapse
In order to maintain the OTA compatibility there is one thing to bear in mind. The system must have the same parity as a standard image.
Changes to the build.prop (camera 2) or swapping out a boot image change this parity. Put the original boot and build.prop back and you should be OK.
Perhaps the best way to think about this is the red pill or the blue pill...
As for rooting - for our Xiaomi A2's the best way to root is to :
Unlock the bootloader (this will wipe your data - ensure you have backups)
Swap the boot.img for one that is Magisk compatible (from this point your OTA is broken)
Install magisk (for the SU)
At this point to get back OTA capability one has to uninstall Magisk and put back a standard boot.img - This hasn't worked for me since going Pie (I have thus swallowed the red pill)
If you touch your build.prop or other system files IMHO you can bury the OTA.
If I want a new version of android I'll manually flash the new image and go back through the rooting process and finish by modifying my build.prop.
There are Magisk modules that provide systemless changes but I've not tested these myself - I prefer to know exactly what I'm doing with my build.prop.
To get back to standard you can always flash a standard system image and if you really want to be clean you can relock the bootloader which will reset your phone as if it was out of the box.
Just to provide some more clarity, unlocking bootloader does not break OTA. OTA is broken only if you modify system partition. One important thing to note is that unlocking bootloader will break safety net. Meaning no Netflix and Pokemon go. But this can be easily fixed by just flashing Magisk.
Magisk and its modules don't modify system partitions. So you can go crazy with Magisk and still have OTA. Just be sure to restore the original magisk-less boot.img before upgrading via OTA as it will 100% cause boot loops..
Enabling camera2 api (via adb or terminal emulator) doesn't break OTA.
On my device, I have Magisk installed with viper4android, quickstep, and Camera2 api enabled and have OTAs intact. I just have to restore my original boot.img.
To be on the safe side, I would suggest you don't edit any files in system partition via file explorers and stay away from editing build.prop directly. You can edit build.prop via a Magisk module.
After the fiasco with the January update causing bootloops, I would suggest keeping bootloader unlocked so you can always downgrade or reflash your device if an OTA messes things up for you rather than having to give it for warranty.
Ashik_salim_ said:
Just to provide some more clarity, unlocking bootloader does not break OTA. OTA is broken only if you modify system partition. One important thing to note is that unlocking bootloader will break safety net. Meaning no Netflix and Pokemon go. But this can be easily fixed by just flashing Magisk.
Magisk and its modules don't modify system partitions. So you can go crazy with Magisk and still have OTA. Just be sure to restore the original magisk-less boot.img before upgrading via OTA as it will 100% cause boot loops..
Enabling camera2 api (via adb or terminal emulator) doesn't break OTA.
On my device, I have Magisk installed with viper4android, quickstep, and Camera2 api enabled and have OTAs intact. I just have to restore my original boot.img.
To be on the safe side, I would suggest you don't edit any files in system partition via file explorers and stay away from editing build.prop directly. You can edit build.prop via a Magisk module.
After the fiasco with the January update causing bootloops, I would suggest keeping bootloader unlocked so you can always downgrade or reflash your device if an OTA messes things up for you rather than having to give it for warranty.
Click to expand...
Click to collapse
hi my friend. i unlocked bootloader to flash persist.img beacause i have had problem with my camera. now it came april(2020) ota update but it fail. why? what can i do? I didn't root the phone. Only unlock bootloader and criticals

Xiaomi Mi 8 android 9 root

Hi.I have this phone.Xiaomi mi 8 unlocked bl and global version
after upgrade to android Pie, I try root my phone.
I do install recovery steps then flash magisk then flash dmvarity but in latest step in fastboot mode
user data dont ereased .cmd-here started in admin mode.
phone unable bootup and stay in first page.
after some trys I install twrp and format system and data and all things then install latest rom zip from recovery.
after bootup I test magisk.Installed and root my phone.
Now I have locked bootloader and root together.
I want re-unlock and root again.
Is there any new way to root pie with magisk?
thanks.
Sorry for my bad english typing

Rooting Xiaomi Mi 9 and possible issues when OTA update is available.

Hello everyone,
I'm thinking about buying an Xiaomi Mi 9 and I have some questions:
1) How simple is rooting it?
I read this guide and I would know if I need to download the Full ROM, or can I simply install Magisk. Indeed I don't understand the steps about going in Magisk Manager Settings (I never done it).
Can't I simply download Magisk Manager and install it as usual (adb sideload in recovery mode), after unlock the bootloader?
In an other guide I've read that LazyFlasher is required! Is it?
2) If I succed in rooting the Mi 9 with Magisk, when some OTA update is available, may I have some problems when I update it?
I mean... with my old Samsung Galaxy S5 (with LineageOS and rooted with Magisk) when I have an OTA update I simply download it, starting the install the phone starts in recovery... it flash the update, and after the first boot (not rooted anymore) I go in recovery again and I install Magisk for restore the root. Can I do the same thing with the Mi 9?
If someone have a tested guide or some advice about rooting I appreciate it.
Thanks everyone.
I think it's simpler to root with TWRP. I never really got the hang of the method where you use Magisk Manager to flash the stock boot image so you can perform a normal OTA. I tried on a couple phones but never got it to work right. Maybe you will have a better result.

k20 pro premium system has been destroyed

i had to flash global rom again because it wasnt booting after root. today i received ota update and now it displays the message the system has been destroyed.
bootloader is locked after flash. my computer still recognizes my phone and i can unlock after 83 hours.
my question is is it possible to flash rom after unlocking bootloader or not? or do i need to i need to follow another method?
i managed to fix my phone using the mi unlock tool and unlocking the bootloader.
one problem that im having is installing magisk. i managed to install twrp but everytime i try to install magisk 2.0.1 i get bootlooped to twrp. i cant boot to android. any help?
Either u can clean install whole system or use magisk manager for recovery to delete all the modules u had(I haven't tried tho ) or clean flash boot.img from latest fastboot rom.
Sent from my Redmi K20 Pro using Tapatalk

Categories

Resources