Magisk patching, recovery, and OTA questions. - Xiaomi Mi Max 2 Questions & Answers

I've just ordered the Mi Max 2 on Cyber Monday for $189.99 USD on GB, I've already applied and gotten approved for Xiaomi bootloader unlock.
While waiting for my phone to arrive I've been trying to do the necessary preperations for flashing Magisk.
I've never used Magisk before as my current Zenfone 5 uses SuperSU.
According to the release thread for Magisk the new Magisk Manager can patch the boot.img directly.
My question is, will the below steps work?
-unlock the bootloader
-install magisk manager
-download the full rom for the mi max 2 and patch it with the magisk manager
-flash the patched rom?
Would this work and would I be able to receive OTA updates using this method?
I'm asking because using TWRP means no OTA updates and that's a pain.
I want Magisk just for root, adblock, and camera api module to use google camera HDR+
I can't find any answers to my questions anywhere as all guides and threads talk about using the TWRP method and all say TWRP can't recieve OTA.

Chisame said:
I've just ordered the Mi Max 2 on Cyber Monday for $189.99 USD on GB, I've already applied and gotten approved for Xiaomi bootloader unlock.
While waiting for my phone to arrive I've been trying to do the necessary preperations for flashing Magisk.
I've never used Magisk before as my current Zenfone 5 uses SuperSU.
According to the release thread for Magisk the new Magisk Manager can patch the boot.img directly.
My question is, will the below steps work?
-unlock the bootloader
-install magisk manager
-download the full rom for the mi max 2 and patch it with the magisk manager
-flash the patched rom?
Would this work and would I be able to receive OTA updates using this method?
I'm asking because using TWRP means no OTA updates and that's a pain.
I want Magisk just for root, adblock, and camera api module to use google camera HDR+
I can't find any answers to my questions anywhere as all guides and threads talk about using the TWRP method and all say TWRP can't recieve OTA.
Click to expand...
Click to collapse
if you rooted forget about OTA updates.
u need to download recovery flashable update zip files against small size OTA's
this is a little hack for OTA updates.(if you have a stock recovery.img) ive not tried though
flash existing flashable rom. this removes (magisk / supersu / all system modification )
flash stock recovery
flash ota update via stock recovery
again u can flash magisk to get root.
u need to repeat the whole process whenever a ota is available (i would prefer to download the recovery flashable zip and flash it in TWRP)
Chisame said:
My question is, will the below steps work?
-unlock the bootloader
-install magisk manager
-download the full rom for the mi max 2 and patch it with the magisk manager
-flash the patched rom?
Click to expand...
Click to collapse
no need to patch rom/ boot.img just flash magisk.zip in twrp it patches automatically.
manual patching is required only for certain specific devices.

reversegear said:
if you rooted forget about OTA updates.
u need to download recovery flashable update zip files against small size OTA's
this is a little hack for OTA updates.(if you have a stock recovery.img) ive not tried though
flash existing flashable rom. this removes (magisk / supersu / all system modification )
flash stock recovery
flash ota update via stock recovery
again u can flash magisk to get root.
u need to repeat the whole process whenever a ota is available (i would prefer to download the recovery flashable zip and flash it in TWRP)
no need to patch rom/ boot.img just flash magisk.zip in twrp it patches automatically.
manual patching is required only for certain specific devices.
Click to expand...
Click to collapse
So, worst case scenario I'll still need to TWRP and install that way. Is the current TWRP compatible with MIUI 9 on the mi max 2?
MIUI 9 has been rolled out the the Max 2 locally.

Chisame said:
So, worst case scenario I'll still need to TWRP and install that way. Is the current TWRP compatible with MIUI 9 on the mi max 2?
MIUI 9 has been rolled out the the Max 2 locally.
Click to expand...
Click to collapse
Yes twrp is supported irrespective of miui version

Related

OTA update with root and TWRP?

hi! my OP3T is rooted and have a custom recovery (TWRP). now i get an ota update. i have read somewhere in this case its necessary to flash the ota manually in TWRP because i will lost root after this and if i flash it in TWRP i can after ota update flash superSU and will have no problems after reboot the phone.
i have tried this but get "Error 7" in TWRP while flashing ota update. isn't it possible at this way? what is my mistake?
thanks a lot for help and pardon for my bad english!
RotesMeerJogger said:
hi! my OP3T is rooted and have a custom recovery (TWRP). now i get an ota update. i have read somewhere in this case its necessary to flash the ota manually in TWRP because i will lost root after this and if i flash it in TWRP i can after ota update flash superSU and will have no problems after reboot the phone.
i have tried this but get "Error 7" in TWRP while flashing ota update. isn't it possible at this way? what is my mistake?
thanks a lot for help and pardon for my bad english!
Click to expand...
Click to collapse
I have a detailed thread already running on how to update here
http://forum.xda-developers.com/oneplus-3t/how-to/rom-oxygenos-3-5-4-mm-ota-update-t3519074
I shall keep it up to date with further releases
Sent from Funk Tuned 3T
okay, i have searched in the wrong category thanks a lot for the link!
this thread can be closed.
how can i receive the updates when i root my phone?
and is there anyway to change the emoji without root?
a7mad-911 said:
how can i receive the updates when i root my phone?
Click to expand...
Click to collapse
You should still receive OTA notifications with root. And it should detect you have root, and will download the full update zip, and it will install with TWRP.
Otherwise, you can manually download the full zip update from Funk WIzard's thread which he linked in Post #2 above (which also has detailed instructions on how to update when rooted and TWRP installed).
Works like a charm with magisk 13.6
I just did it with my OP3t and was super easy.
1) download update.
2) go to hidden folder .Ota
3) move zip file to another folder
4) put Magisk in the folder, too
5) reboot to recovery, flash ROM, then Magisk
6) wipe dalvik/cache and reboot
Edit: updated following testing of redpoint73's correct advice
LeighR said:
4) put twrp and Magisk in the folder, too
5) reboot to recovery, flash ROM, then twrp, then Magisk
Click to expand...
Click to collapse
As long as you already have TWRP installed (which is the situation we are talking about) you just need to flash the OTA update zip, then flash Magisk.
Magisk prevents TWRP from being over-written (replaced) with stock recovery. In other words, you don't need to flash TWRP, since TWRP is already there.
redpoint73 said:
As long as you already have TWRP installed (which is the situation we are talking about) you just need to flash the OTA update zip, then flash Magisk.
Magisk prevents TWRP from being over-written (replaced) with stock recovery. In other words, you don't need to flash TWRP, since TWRP is already there.
Click to expand...
Click to collapse
This means I will keep all apps/settings/files?
Thank you.
JayDz said:
This means I will keep all apps/settings/files?
Click to expand...
Click to collapse
Yes.
Although I will caveat that with my rule of thumb: "hope for the best, prepare for the worst". In that a "dirty" flash of an update is often possible (saving your a lot of work setting up the device again). But you should still be prepared to wipe and do a "clean" install if you run into any problems. So back up your data, by your method of choice, before you try to update.
In particular, for a major update (such as OOS 4.x to 5.x) a clean install (default wipe in TWRP - data, cache and Dalvik) is typically advised.
Shall?? You used the word 'shall' properly in context? Kudos to the school system (I here assume India's) you attended, and to you for paying attention, using the 'King's English' in it's most proper form.

OTA Updates after root

I have OxygenOS 4.1.6 with magisk and twrp.
I can update my phone with OperaVPN ?
or I need to uninstall magisk and flash stock recovery and update version device?
How disable dm-verity?
saarxee said:
I have OxygenOS 4.1.6 with magisk and twrp.
I can update my phone with OperaVPN ?
or I need to uninstall magisk and flash stock recovery and update version device?
Click to expand...
Click to collapse
It should just detect you have TWRP, and download the full update (not the partial update for stock devices - which will result in a bootloop) and install properly.
I would advise to have Magisk on the phone, and flash it right away (after the update - before booting) as you will need this to get root again. And it will also (my understanding) prevent TWRP from being wiped out (which may happen if you reboot after the update w/o rooting first).
Alternately, you can get the full update zip from the Guides section, when it comes out. Then just flash in TWRP. Again, flash Magisk before rebooting.
saarxee said:
How disable dm-verity?
Click to expand...
Click to collapse
It's discussed in the Guides section. Please read before posting questions that have been asked and answered over and over.

(Install/Flash) Magisk using Stock Recovery in OnePlus 3 - Related Questions

1.
Can i (Install/Flash) Magisk using Stock Recovery (OxygenOS Recovery) in OnePlus 3 ?
I am trying to use Magisk to Root .
Can i use Magisk with Stock Recovery (OxygenOS Recovery) ? is TWRP or Custom Recovery Necessary for Magisk Installation ?
2.
Will i get OTA Incremental Updates if i use Custom Recovery ?
[As per my knowledge only Stock Recovery can get OTA Updates.
And i have to flash Magisk every time i get an update]
Is this Correct ?
3.
Is there any way in which i can get Incremental OTA after rooting with Magisk ?
.........................................................................................................
I will update questions as i get answers
Reason for Using Magisk -
I use Banking Apps
& Netflix
The answers to all your questions are in the release thread.
1 - Under Installation instructions
2 & 3 - Under Useful Links - OTA Installation Tips

Latest rooted boot image (9.5.11)

Here you can find latest boot image for OnePlus7 Pro rooted with Magisk.
ROM:
OnePlus7ProOxygen_21.E.13_OTA_013_all_1907050211_b8852b6
https://1drv.ms/u/s!AvJju0GuwXqysxoo9LNYN3wla8KX
Why do need the boot.img for root ?
I never used it for root my device.
khalisz said:
Why do need the boot.img for root ?
I never used it for root my device.
Click to expand...
Click to collapse
How old is the last phone you had?
Since Jul 9, 2019.
Cozzeck said:
How old is the last phone you had?
Click to expand...
Click to collapse
Since Jul 9, 2019.
As of OOS 9.5.10 you can boot twrp by fastboot, then sideload twrp into both slots and finally flash magisk which patches the boot.img itself. Thus no need for patched boot.img anymore.
Does this work for the global version??
Patched boot.img is a silly way of rooting... If someone uses the wrong boot.img for their version it will fail to boot. Plus, booting TWRP and flashing the magisk zip is faster and more reliable
alexander1297 said:
Does this work for the global version??
Click to expand...
Click to collapse
The only difference between the global and the EU versions are supposed to be the LTE bands.
lichtblitz said:
As of OOS 9.5.10 you can boot twrp by fastboot, then sideload twrp into both slots and finally flash magisk which patches the boot.img itself. Thus no need for patched boot.img anymore.
Click to expand...
Click to collapse
Sorry for asking but I wanna root mine as soon as it comes. So if you install TWRP and flash with magisk the OTAs won't be broken?
Kengat said:
Sorry for asking but I wanna root mine as soon as it comes. So if you install TWRP and flash with magisk the OTAs won't be broken?
Click to expand...
Click to collapse
I get still offered OTAs by the system. However I prefer to use Oxygen Updater app from Play Store to download it and flash directly in TWRP.
lichtblitz said:
I get still offered OTAs by the system. However I prefer to use Oxygen Updater app from Play Store to download it and flash directly in TWRP.
Click to expand...
Click to collapse
Oh cool. So like "dirty flashing". Will magisk also get killed in the proccess? I'm not sure how A/B partitions work. Do you just install magisk from twrp or do you have to somehow install it on both partitions?
GM all
I seem to have lost my root after I did the update for 9.5.11 this morning
Here is what I did
I did as stated
Download update, Install, DO NOT REBOOT
Went to Magisk, unistalled all modules, then did OTA Install
Rebooted
Went to Magisk installed TWRP, but my phone froze at that point and the screen turned all white and just sat there
So I clicked on the power button and rebooted
Got back into my phone and checked to see if I was still rooted via root checker app and now it says I AM NOT ROOTED
What can I do to fix this I can launch Magisk, but now it says its is not installed on the screen, so I click install, download the ZIP option
It says Select Method, Download ZIP ONLY which I did or Select and Patch a File which I am not sure what file I need to use?
How can I get my root back on the phones
I am on NOW on 9.5.11 GM 1917
Thanks all
Thanks all
dallasnights said:
GM all
I seem to have lost my root after I did the update for 9.5.11 this morning
Here is what I did
I did as stated
Download update, Install, DO NOT REBOOT
Went to Magisk, unistalled all modules, then did OTA Install
Rebooted
Went to Magisk installed TWRP, but my phone froze at that point and the screen turned all white and just sat there
So I clicked on the power button and rebooted
Got back into my phone and checked to see if I was still rooted via root checker app and now it says I AM NOT ROOTED
What can I do to fix this I can launch Magisk, but now it says its is not installed on the screen, so I click install, download the ZIP option
It says Select Method, Download ZIP ONLY which I did or Select and Patch a File which I am not sure what file I need to use?
How can I get my root back on the phones
I am on NOW on 9.5.11 GM 1917
Thanks all
Thanks all
Click to expand...
Click to collapse
Follow the steps on TWRP and rooting on my guide. Look in the Guides & Discussion section of XDA
Flashing this on International breaks the WiFi. Does anyone have the international version?
Hideaki02 said:
Flashing this on International breaks the WiFi. Does anyone have the international version?
Click to expand...
Click to collapse
just flash boot twrp and flash magisk there..
Arden144 said:
Patched boot.img is a silly way of rooting... If someone uses the wrong boot.img for their version it will fail to boot. Plus, booting TWRP and flashing the magisk zip is faster and more reliable
Click to expand...
Click to collapse
If you don't need TWRP, first booting it and flashing the zip takes way longer than "fastboot flash boot boot.img".

[OOS] [11] Open_Beta_2_HD01BA [EU] [Stock/Patched boot.img] [Stock/ADB Recovery] [Full ZIP] [OOS 10.0.13]

OxygenOS 11 OP7TPro_ O2_BETA_02
Magisk v21.4 Manager 8.0.7 Patched Root Boot Image
https://www.androidfilehost.com/?fid=17248734326145729690
Stock Boot Image
https://www.androidfilehost.com/?fid=17248734326145729691
ADB Enabled Recovery Image
https://www.androidfilehost.com/?fid=17248734326145729692
Stock Recovery Image
https://www.androidfilehost.com/?fid=17248734326145729693
Combined Folder
https://www.androidfilehost.com/?w=files&flid=322771
OxygenOS 11 OP7TPro_ O2_BETA_01
Magisk v21.4 Manager 8.0.7 Patched Root Boot Image
https://www.androidfilehost.com/?fid=17248734326145719958
Stock Boot Image
https://www.androidfilehost.com/?fid=17248734326145719959
ADB Enabled Recovery Image
https://www.androidfilehost.com/?fid=17248734326145719960
Stock Recovery Image
https://www.androidfilehost.com/?fid=17248734326145719961
Full ZIP OxygenOS HD01BA 11 Open Beta
https://androidfilehost.com/?fid=17248734326145719998
Combined Folder
https://www.androidfilehost.com/?w=files&flid=322187
May need to install Magisk Manager manually
OxygenOS 10.0.4 EU was kindly picked up by @t-ryder Linked Below
https://forum.xda-developers.com/t/...-rom-oxygen-os-10-0-14.4236633/#post-84539771
OxygenOS 10.0.13 HD01BA Magisk/Stock Boot Images, ADB/Stock Recovery
Magisk v21.1 Manager 8.0.3 Patched Root Boot Image
https://www.androidfilehost.com/?fid=10763459528675591459
May need to install Magisk Manager manually
Full ZIP OxygenOS HD01BA 10.0.13
https://www.androidfilehost.com/?fid=10763459528675591484
Stock Boot Image
https://www.androidfilehost.com/?fid=10763459528675591455
ADB Enabled Recovery Image
https://www.androidfilehost.com/?fid=10763459528675591468
Stock Recovery Image
https://www.androidfilehost.com/?fid=10763459528675591462
Combined Folders
https://www.androidfilehost.com/?w=files&flid=320311
Usage (Unlocked Bootloader)
adb devices (give permission on device)
adb reboot fastboot
fastboot devices (to confirm that device is being detected)
fastboot flash boot path/to/patched_boot.img or fastboot flash recovery path/to/patched_recovery.img
fastboot reboothttps://www.androidfilehost.com/?fid=17248734326145729693
Thanks for posting these very useful resources... much appreciated...
How's the full zip upload coming along?
I thought I was clever and used the patched magisk image for 10.0.13 HD01BA on my firmware (updated OTA) version 10.0.13 HD01AA... all seems to be working fine barring one crucial function, that being wifi which is greyed out...
I'm assuming the broken wifi radio is symptomatic of the differing firmware versions?
sand_man said:
How's the full zip upload coming along?
I thought I was clever and used the patched magisk image for 10.0.13 HD01BA on my firmware (updated OTA) version 10.0.13 HD01AA... all seems to be working fine barring one crucial function, that being wifi which is greyed out...
I'm assuming the broken wifi radio is symptomatic of the differing firmware versions?
Click to expand...
Click to collapse
I'm grabbing what I think is the HD01AA Full ZIP from Oxygen Updater, I'll grab the stock boot and try making a magisk patched img for you as well, If they work I might add HD01AA to my supported devices manifest.
digidude512 said:
I'm grabbing what I think is the HD01AA Full ZIP from Oxygen Updater, I'll grab the stock boot and try making a magisk patched img for you as well, If they work I might add HD01AA to my supported devices manifest.
Click to expand...
Click to collapse
That's very kind of you sir! I've flashed BA and WiFi is working now. I think my device, as are many others, are impartial to firmware version. BA/AA/global/European, seems to all be the same barring 1 or 2 minor differences. Using the right patched magisk boot image is critical though.
Having said that I'm yet to flash boot the patched image so let's see what effect it has on WiFi (it any)...
Once again thank you for providing these resources. [emoji1303]
sand_man said:
That's very kind of you sir! I've flashed BA and WiFi is working now. I think my device, as are many others, are impartial to firmware version. BA/AA/global/European, seems to all be the same barring 1 or 2 minor differences. Using the right patched magisk boot image is critical though.
Having said that I'm yet to flash boot the patched image so let's see what effect it has on WiFi (it any)...
Once again thank you for providing these resources. [emoji1303]
Click to expand...
Click to collapse
Hope this helps
https://forum.xda-developers.com/7t-pro/how-to/oos-10-0-13-hd01aa-t4195159
@digidude512 Every Update needs a new Thread... interesting.
Stop this sh!t.
K3V1991 said:
@digidude512 Every Update needs a new Thread... interesting.
Stop this sh!t.
Click to expand...
Click to collapse
Your feedback has been taken.
Original Post has been updated for OxygenOS 11 Open Beta.
OOS 10.0.13 is still in original post but moved to spoiler.
Thanks for the update. Will probably stay on 10.0.13 for now though, as it is super stable and practically bug free.
Hello,
I just want to confirm is it really that simple to get Magisk & Root Access just by flashing patched boot image? Won't I need to full system & data wipe? I have stock OOS 10.0.13.
Athum said:
Hello,
I just want to confirm is it really that simple to get Magisk & Root Access just by flashing patched boot image? Won't I need to full system & data wipe? I have stock OOS 10.0.13.
Click to expand...
Click to collapse
yes
Thread updated with Open Beta 2
In the beta 2 A11 i have problem with magisk. Update and bootloop. All steps install correct and finnaly bootloop.
Any steps to fix it?
Magisk 21.4
chudy34 said:
In the beta 2 A11 i have problem with magisk. Update and bootloop. All steps install correct and finnaly bootloop.
Any steps to fix it?
Magisk 21.4
Click to expand...
Click to collapse
Just to confirm are you using a OnePlus 7T Pro EU Model.
HD01BA is for EU, I will be updating my second thread for 7T Global (HD01AA) and India models later.
digidude512 said:
Just to confirm are you using a OnePlus 7T Pro EU Model.
HD01BA is for EU, I will be updating my second thread for 7T Global (HD01AA) and India models later.
Click to expand...
Click to collapse
yes my model is EU.
I updated ota and install magisk unactive slot and the same boot to recovery and bootloop. Maybe problem is in magisk?
Flashing via OTA full ROM works great. After installation was completed I installed magisk to inactive slot and rebooted my device after this and my device is still rooted! Automatic brightness works much better with Beta 2
kaplatz said:
Flashing via OTA full ROM works great. After installation was completed I installed magisk to inactive slot and rebooted my device after this and my device is still rooted! Automatic brightness works much better with Beta 2
Click to expand...
Click to collapse
I get an error. And what version of magisk do you use? I used the latest 21407 and unfortunately bootloop after uploading.
I use 21.4 (21400) and it works like a charm.
Do we get patched boot image or diy instructions for Beta 3?
I see the release candidate for Android 11 has dropped! Anyone have access to the full download file? All I can find is the open_beta 4 which isn't going to work patched and flashed running the RC...
Have anyone can upload the last oos A11 adb recovery please

Categories

Resources