[REQ] Magisk on Global Beta 8.11.23 - Xiaomi Mi 8 Questions & Answers

Hi all,
i am on Global Developer 8.11.23 with bootloader unlocked, my goal is to use nfc payments, so i don't need to root or having twrp.
If i want to receive ota (and of course i know i have to repeat magisk installation with new one) can i proceed with patching proper boot.img using directly magisk manager and no other or i have to do it through twrp and flash dm verity too?
Thank you so much in advance.

Related

Magisk patching, recovery, and OTA questions.

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

How do I save my root after flashing miui10 beta Rom?

I am using Redmi 4a . Rooted with magisk and recovery is Twrp. It. I don't want to lose root access after update. tried FlashFire but it crashes when I open it .
Help appreciated !
I'm using miui10 (beta) developper Rom (miui_HM4AGlobal_8.10.25_d36c3e7df5_7.1.zip) and it is true that a big update (mean when it's the entire ROM) replaces twrp and crashes root.
You just have to install again twrp with fastboot method in order to flash SuperSu (the one i use) in order to retrieve root.
https://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
Hi, when used to use MIUI i installed pitchblack recovery and after the miui update it didn´t dissapeared so there is no need to always flash the recovery but the magisk fil you have to install again because the update flashs the stock boot img.

Can't root dipper (Global 8.11.15 with Magsisk v17.3)

Title says it all, I can't root my Xiaomi MI8 (dipper) on MIUI 8.11.15 Global with the latest TWRP by wzsx150, I'm not sure what I've done wrong or is it just not compatible? I'm also using the latest Magisk which is v17.3
Things I've tried:
Flash dm-verity first then flash magisk
Flash Magisk without dm-verity
All of them unsuccessful. Please help me on this one, I really need to root my device. Thank you
Why are you flashing beta version of Magisk?
Sent from my MI 8 using Tapatalk
What's the error message? Tried with 17.2?
If the flashing of Magisk has gone without errors, you may need to download the Magisk Manager apk and install and open it and it will show that you are rooted

dm-verity and TWRP

Hello guys. I want to install TWRP on my Mi Max 2, but the TWRP site for Mi Max 2 has a warning about "dm-verity", stating that I should install a custom kernel in order to don't brick the device:
"This device uses dm-verity!
This means that swiping to allow system modifications will prevent you from being able to boot if you are using the stock kernel. In order to bypass dm-verity's boot prevention, you will have to install a kernel that has dm-verity disabled in the fstab."
( twrp[DOT]me/xiaomi/xiaomimimax2[DOT]html )
Is this true or it's safe to ignore?
I'm on MIUI 10 Beta 8.12.6
Luxaky said:
Hello guys. I want to install TWRP on my Mi Max 2, but the TWRP site for Mi Max 2 has a warning about "dm-verity", stating that I should install a custom kernel in order to don't brick the device:
"This device uses dm-verity!
This means that swiping to allow system modifications will prevent you from being able to boot if you are using the stock kernel. In order to bypass dm-verity's boot prevention, you will have to install a kernel that has dm-verity disabled in the fstab."
( twrp[DOT]me/xiaomi/xiaomimimax2[DOT]html )
Is this true or it's safe to ignore?
I'm on MIUI 10 Beta 8.12.6
Click to expand...
Click to collapse
if you are using stock rom then dm-verity kicks in and it wont allow you to boot while TWRP is instaled. search for dm-verity disabler or install magisk which bypasses dm-verity
reversegear said:
if you are using stock rom then dm-verity kicks in and it wont allow you to boot while TWRP is instaled. search for dm-verity disabler or install magisk which bypasses dm-verity
Click to expand...
Click to collapse
Can you confirm that the latest versions of Magisk still have this feature?
This works, right? en[DOT]miui[DOT]com/thread-310923-1-1[DOT]html
Can I flash Magisk and Disabler together just in case?
Luxaky said:
Can you confirm that the latest versions of Magisk still have this feature?
This works, right? en[DOT]miui[DOT]com/thread-310923-1-1[DOT]html
Can I flash Magisk and Disabler together just in case?
Click to expand...
Click to collapse
i dont know this works or not
but magisk does the job.

Mi9TPro update with twrp and root

Hi, currently my 9t pro has version 12.0.5 (Android 10).
I have root with magisk 25.2 and the twrp version is 3.5.2.9.0 (I point out that, every time I enter recovery, it asks me for the screen unlock pin, without which I cannot access).
I would like to upgrade to version 12.5.2.0 (Android 11).
Do I just boot into twrp, insert the lock screen pin, install the above update, wipe cache and dalvik, install the magisk zip and reboot?
Or am I obliged to update twrp when changing the Android version? The latest version of twrp released for my device seems to me to be 3.6.2.9.0
A thousand thanks
bricca said:
Hi, currently my 9t pro has version 12.0.5 (Android 10).
I have root with magisk 25.2 and the twrp version is 3.5.2.9.0 (I point out that, every time I enter recovery, it asks me for the screen unlock pin, without which I cannot access).
I would like to upgrade to version 12.5.2.0 (Android 11).
Do I just boot into twrp, insert the lock screen pin, install the above update, wipe cache and dalvik, install the magisk zip and reboot?
Or am I obliged to update twrp when changing the Android version? The latest version of twrp released for my device seems to me to be 3.6.2.9.0
A thousand thanks
Click to expand...
Click to collapse
TWRP v3.6.2 should be ok with A10.
On the other side, A11 (AFAIK) will not work with v3.5.2.
Hence better update TWRP
The rest should work the way you descried, just make sure that you upgrade from Global to Global (or EEA to EEA, etc) - ie, not from Global to EEA or so (that would require flashing the Fastboot ROM)
You can also wipe from TWRP:
/data/system/package_cache
PS:
Disable/uninstall Smali Patcher or similar Magisk modules that were specific for the old ROM - to avoid bootloop upon upgrading the ROM and flashing Magisk (if you do not uninstall Magisk, all modules and everything will be back upon your upgrade)
zgfg said:
TWRP v3.6.2 should be ok with A10.
On the other side, A11 (AFAIK) will not work with v3.5.2.
Hence better update TWRP
The rest should work the way you descried, just make sure that you upgrade from Global to Global (or EEA to EEA, etc) - ie, not from Global to EEA or so (that would require flashing the Fastboot ROM)
You can also wipe from TWRP:
/data/system/package_cache
PS:
Disable/uninstall Smali Patcher or similar Magisk modules that were specific for the old ROM - to avoid bootloop upon upgrading the ROM and flashing Magisk (if you do not uninstall Magisk, all modules and everything will be back upon your upgrade)
Click to expand...
Click to collapse
Would you please explain to me how I can upgrade twrp from 3.5.2 to 3.6.2? I also have the official twrp app.
As for the magisk modules these are the ones I currently have installed. Do you think it is better to uninstall magisk directly before entering twrp and flash the new rom and magisk zip?
bricca said:
Would you please explain to me how I can upgrade twrp from 3.5.2 to 3.6.2? I also have the official twrp app.
As for the magisk modules these are the ones I currently have installed. Do you think it is better to uninstall magisk directly before entering twrp and flash the new rom and magisk zip?
Click to expand...
Click to collapse
As usual - TWRP.me, download, find your device, download img and flash to Recovery (you can do from current TWRP or from Fastboot)
Maybe you better disable that liboencrypto module
Or you can try with but study Magisk GitHub Wiki, how to fix the bootloop caused by incompatible modules
zgfg said:
As usual - TWRP.me, download, find your device, download img and flash to Recovery (you can do from current TWRP or from Fastboot)
Maybe you better disable that liboencrypto module
Or you can try with but study Magisk GitHub Wiki, how to fix the bootloop caused by incompatible modules
Click to expand...
Click to collapse
The twrp update flash so I can do it directly from the application?
Instead, to avoid a possible bootloop just uninstall that module? Do all the others give problems?
Thank you.
bricca said:
The twrp update flash so I can do it directly from the application?
Instead, to avoid a possible bootloop just uninstall that module? Do all the others give problems?
Thank you.
Click to expand...
Click to collapse
I never use the TWRP app. Read instructions from TWRP.me
You can uninstall modules. But, plz read and LEARN (it's more useful for the future how to dožisable modules from TWRP - docs I pointed you in the previous post)

Categories

Resources