• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How To Guide Rooting the Mi 11 with the latest Xiaomi.eu ROM

Search This thread

Knightrid3r

Member
Feb 28, 2012
32
3
Nuremberg
Hello guys,

i'm coming from the Oneplus Nord and its rooted with Magisk.
How it does work with Xiaomi MI11? Can i use the original ROM (which is delivered) and flash magisk in the recovery mode and my phone is rooted?
Next question, can i OTA Update -> Magisk flash into other boot_a/b and reboot? and its still rooted?
 
Last edited:

Pho3nX

Senior Member
Jun 13, 2013
2,407
1,747
Hello guys,

i'm coming from the Oneplus Nord and its rooted with Magisk.
How it does work with Xiaomi MI11? Can i use the original ROM (which is delivered) and flash magisk in the recovery mode and my phone is rooted?
Next question, can i OTA Update -> Magisk flash into other boot_a/b and reboot? and its still rooted?
+1 i asked exactly the same thing here lol
 
  • Like
Reactions: Knightrid3r
I found the solution
1. Hide Magisk
2. boot.img from Xiaomi.eu Rom patched with Magisk afterwards
3. flashing the boot_xxxxx.img again with fastboot
4. After the reboot everything goes as it should
Thanks a lot, this tip worked for me

On Mi 11 Lite 4G with EU ROM 12.0.8, I had to use:
fastboot flash boot magisk_patched-23000_XXXXX.img
 

Pho3nX

Senior Member
Jun 13, 2013
2,407
1,747
well if your phone is already unlocked, it will stays unlocked forever. unless you RE Lock the Bootloader
No, the Unlock status granted from Xiaomi is forever, not the fact is unlocked. When i switch from a Xiaomi.eu or MiuiMix to a stock bootloader is locked after a fresh stock rom fastboot install.

I must unlock again, but effectively i will never waiting again for 168 hours
 
Last edited:

Pho3nX

Senior Member
Jun 13, 2013
2,407
1,747
Hello guys,

i'm coming from the Oneplus Nord and its rooted with Magisk.
How it does work with Xiaomi MI11? Can i use the original ROM (which is delivered) and flash magisk in the recovery mode and my phone is rooted?
Next question, can i OTA Update -> Magisk flash into other boot_a/b and reboot? and its still rooted?

After all this time, i answer for us by myself lol, it work fine like OnePlus method (keep Root after a local update/On the Fly /OTA), i have succesfull update EEA 12.5.2 Rooted/Unlocked to EEA 12.5.3 :

1/ Download the Local Update : here
Be sure to update from the same branch, EEA/EEE to EEA/EEE, Global to Global, CN to CN, if update is not the same branch upgrade will be not granted.

2/ Put the Local update *.zip in a folder on the root storage folder, i create "downloaded_rom" folder

3/ Now, Settings > About Phone > Open 12 Logo MIUI Version / Updater > Click 3/5 time on the MIUI 12 logo, you will see message "Additional update features are on" > click three ticks on the right corner > you have now access to a local upgrade option "Choose update package" > choose the Rom *.zip update path (so for my "downloaded_rom" and click update. If Archive is good (CRC) and same branch, MIUI will asked if you want upgrade, click YES

4/ After some minutes installing, come the finalizing state and just after MIUI purpose reboot system, DON'T REBOOT, WE WILL UPDATE BOOT.IMG ROOTED NOW

5/ Open Magisk > Install > Install to inactive Slot (After OTA) > Let's Go (Boot.img will be patched) > Success

6/ You can reboot, after unlock PIN / etc, waiting 30 secondes for upgrade / cache finish (when data carrier is back), go in Magisk, enjoy ! You have keep root and all your access/Modules :D
 

Attachments

  • 01.jpg
    01.jpg
    138.2 KB · Views: 65
  • 02.jpg
    02.jpg
    109 KB · Views: 64
  • 03.jpg
    03.jpg
    132.7 KB · Views: 60
  • 04.jpg
    04.jpg
    138.6 KB · Views: 60
  • 05.jpg
    05.jpg
    219.5 KB · Views: 60
  • 06.jpg
    06.jpg
    103.8 KB · Views: 60
  • 07.jpg
    07.jpg
    162.8 KB · Views: 61
  • 08.jpg
    08.jpg
    248.1 KB · Views: 60
  • 09.jpg
    09.jpg
    347.4 KB · Views: 65
  • 10.jpg
    10.jpg
    362.3 KB · Views: 68
Last edited:

iamrance.asa

Senior Member
Apr 20, 2019
86
27
Conway
I always use "fastboot boot <magisk_boot.img>" and then go to Magisk Manager and use direct install. This is better in my opinion since you won't end up in a bootloop if the fastboot flash command doesn't work with the image. You can just restart (hold down power+volume buttons) and it will boot regularly.
 

0v3rd0s3d

Member
May 12, 2021
7
2
After all this time, i answer for us by myself lol, it work fine like OnePlus method (keep Root after a local update/On the Fly /OTA), i have succesfull update EEA 12.5.2 Rooted/Unlocked to EEA 12.5.3 :

1/ Download the Local Update : here
Be sure to update from the same branch, EEA/EEE to EEA/EEE, Global to Global, CN to CN, if update is not the same branch upgrade will be not granted.

2/ Put the Local update *.zip in a folder on the root storage folder, i create "downloaded_rom" folder

3/ Now, Settings > About Phone > Open 12 Logo MIUI Version / Updater > Click 3/5 time on the MIUI 12 logo, you will see message "Additional update features are on" > click three ticks on the right corner > you have now access to a local upgrade option "Choose update package" > choose the Rom *.zip update path (so for my "downloaded_rom" and click update. If Archive is good (CRC) and same branch, MIUI will asked if you want upgrade, click YES

4/ After some minutes installing, come the finalizing state and just after MIUI purpose reboot system, DON'T REBOOT, WE WILL UPDATE BOOT.IMG ROOTED NOW

5/ Open Magisk > Install > Install to inactive Slot (After OTA) > Let's Go (Boot.img will be patched) > Success

6/ You can reboot, after unlock PIN / etc, waiting 30 secondes for upgrade / cache finish (when data carrier is back), go in Magisk, enjoy ! You have keep root and all your access/Modules :D
Hey, ive been trying to install Magisk with xiaomi.eu 12.5.3.0 and every time right after installation i get google update security error which leads to other related errors.
Dont you get the same error?
And by the way, what do you use Magisk for? I cant really find many reasons to install it, maybe i dont know something, please share you experience!
Thank you!
 

Pho3nX

Senior Member
Jun 13, 2013
2,407
1,747
Hey, ive been trying to install Magisk with xiaomi.eu 12.5.3.0 and every time right after installation i get google update security error which leads to other related errors.
Dont you get the same error?
And by the way, what do you use Magisk for? I cant really find many reasons to install it, maybe i dont know something, please share you experience!
Thank you!

I'm not on xiaomi.eu rom but stable EEA Xiaomi 12.5.3. For error, i never had issue even on Xiaomi.eu with Magisk:
1/ Be sure to use the lastest Canary Magisk 23+
2/ You must install the Safetynet fix from kdrag0n here
3/ You must clear Google Play cache / files for retrived a certified device
4/ Disable bullshit like Google Play Protect & MIUI Optimisation & Antivirus

For root is simple, it's not a mandatory to root an android device today for a lot of lambda people because you can do the more useful things rootless :
- Block Ads (Blokada)
- Youtube Ads Free (Vanced)
- Install APK (Native)
- Debloat everything (ADB AppControl)
...

But i use root for other deep thing like :
- Use Font Manager (module in magisk store)
- Use SafetyNet Fix (Genuine pass for device and fake Locked Bootloader)

And above all use Application only working with Root :
- Disable Application
- Franco Kernel (for tweak / Underclock by using Kernel settings)
- Simple Reboot (for choose directly reboot on Bootloader/Recovey/SystemUI/Safemode or just restart/shutdown device with a single click without use physical boutons)
- Swift Backup (for manage Save/Restore entirely & truely Apps, Call, Messages), it's the TitaniumBackup successor.
- Termux (an android terminal)
- TWRP (the famous recovery for easily access/install/update ROM)

:)
 
  • Like
Reactions: 0v3rd0s3d

Pho3nX

Senior Member
Jun 13, 2013
2,407
1,747
Hey, ive been trying to install Magisk with xiaomi.eu 12.5.3.0 and every time right after installation i get google update security error which leads to other related errors.
Dont you get the same error?
And by the way, what do you use Magisk for? I cant really find many reasons to install it, maybe i dont know something, please share you experience!
Thank you!

I can confirm all is fine

I'm back to Xiaomi.eu WEEKLY 12.6 xiaomi.eu_multi_MI11_21.7.21_v12-11 and all is done, i have succesfuly
Now there no Fastboot Xiaomi.eu rom anymore, all is instalable under TWRP.

- Root with SafetyNet working / Google Certified
- Replace Mi Apps by full Google Apps (Phone, Messages, Contacts)
- Messages (Google) Fix / RCS active & working
- Debloat all crap or useless System Apps on the fly (ABD AppControl)
- Swap 60 hz Refresh Rate with 90 hz

Xiaomi.eu is for me really stable now
 
Last edited:
  • Like
Reactions: 0v3rd0s3d

LotSky11

Member
Aug 22, 2018
14
0
Xiaomi Mi 11
I can confirm all is fine

I'm back to Xiaomi.eu WEEKLY 12.6 xiaomi.eu_multi_MI11_21.7.21_v12-11 and all is done, i have succesfuly
Now there no Fastboot Xiaomi.eu rom anymore, all is instalable under TWRP.

- Root with SafetyNet working / Google Certified
- Replace Mi Apps by full Google Apps (Phone, Messages, Contacts)
- Messages (Google) Fix / RCS active & working
- Debloat all crap or useless System Apps on the fly (ABD AppControl)
- Swap 60 hz Refresh Rate with 90 hz

Xiaomi.eu is for me really stable now
how do you root xiaomi.eu using twrp?..is it as simple as flashing the zip on twrp?..
 

Pho3nX

Senior Member
Jun 13, 2013
2,407
1,747
how do you root xiaomi.eu using twrp?..is it as simple as flashing the zip on twrp?..
No, Xiaomi.eu rom have not Root included, if you want Xiaomi + Root natively, you must take MiuiMix rom. You must extract boot.img from archive, patch boot.img with lastest Magisk Canary 23.1, after that go on fastboot mode, and adb mode put (xxxxxx is your boot name img) :
fastboot boot xxxxxx.img

You will enter in a safe mode with Magisk enable, if boot work, just launch Magisk and "intall directly" for flash the actual boot znd keep Root.
 

0v3rd0s3d

Member
May 12, 2021
7
2
I can confirm all is fine

I'm back to Xiaomi.eu WEEKLY 12.6 xiaomi.eu_multi_MI11_21.7.21_v12-11 and all is done, i have succesfuly
Now there no Fastboot Xiaomi.eu rom anymore, all is instalable under TWRP.

- Root with SafetyNet working / Google Certified
- Replace Mi Apps by full Google Apps (Phone, Messages, Contacts)
- Messages (Google) Fix / RCS active & working
- Debloat all crap or useless System Apps on the fly (ABD AppControl)
- Swap 60 hz Refresh Rate with 90 hz

Xiaomi.eu is for me really stable now
Thanks alot for your detailed response!
 

Hamza5682

Senior Member
Feb 7, 2019
187
59
Honor View20
Xiaomi Mi 11
I can confirm all is fine

I'm back to Xiaomi.eu WEEKLY 12.6 xiaomi.eu_multi_MI11_21.7.21_v12-11 and all is done, i have succesfuly
Now there no Fastboot Xiaomi.eu rom anymore, all is instalable under TWRP.

- Root with SafetyNet working / Google Certified
- Replace Mi Apps by full Google Apps (Phone, Messages, Contacts)
- Messages (Google) Fix / RCS active & working
- Debloat all crap or useless System Apps on the fly (ABD AppControl)
- Swap 60 hz Refresh Rate with 90 hz

Xiaomi.eu is for me really stable now
Hey man, Would you happen to know how to stop bank apps from detecting root on the rom? I installed it before but ended un unrooting and switching back to stock firmware due to my bank app not working.
 

LotSky11

Member
Aug 22, 2018
14
0
Xiaomi Mi 11
Hey man, Would you happen to know how to stop bank apps from detecting root on the rom? I installed it before but ended un unrooting and switching back to stock firmware due to my bank app not working.
have you tried using magiskhide on the apps?..some banking apps detect the twrp folder in the storage..you can try deleting the folder see if the banking app works..
 

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    EDIT: This is not for the TWRP version. I will update this thread soon!

    Hello!

    Since I saw a lot of people asking, I decided to post how to root a Mi 11 (as of 2021-02-11).

    1. Install the Xiaomi.eu ROM. You can find more details in this post. Keep the ROM's files, you will need some of them!
    2. Connect your phone to the PC and put it into file transfer mode.
    3. Download Magisk Manager from the official GitHub repository and install the APK. DO NOT DOWNLOAD MAGISK MANAGER FROM ANYWHERE ELSE. THIS GITHUB REPOSITORY IS THE ONLY OFFICIAL, TRUSTED SOURCE.
    4. In the directory you extracted the ROM zip file to, there's a directory called images. This directory contains a file called boot.img. Copy the boot.img to your phone's Download folder.
    5. Open the Settings app, go to My Device, then tap MIUI Version until it says You are now a developer.
    6. Go back to your Settings app and use the search bar to search for USB Debugging and enable it. Click on Yes when it asks whether you want to trust this computer.
    7. Once the file is completely copied, open Magisk Manager on your phone. There will be 2 categories: Magisk and Manager. On the Magisk category, click on Install and choose Select and Patch a File. Navigate to your downloads and select boot.img. Click on Let's go.
    8. When Magisk has finished patching your boot.img file, it will say Output file written to /storage/emulated/0/Download/magisk_patched_XXXXX.img, where XXXXX is 5 random letters/digits.
    9. Open a command prompt on your computer and run adb pull /sdcard/Download/magisk_patched_XXXXX.img , replacing XXXXX with the random characters Magisk showed you earlier. This will copy the file to the directory you are currently in; on Windows, if you are using cmd, this will be C:\Users\[your username].
    10. Reboot your phone into fastboot mode by turning it off, then holding the power and volume-down buttons until it vibrates.
    11. Run the commands fastboot flash boot_a magisk_patched_XXXXX.img and fastboot flash boot_b magisk_patched_XXXXX.img (notice the difference: boot_a and boot_b). Don't forget to replace XXXXX with the random characters Magisk Manager generated. Run the command fastboot reboot and open the Magisk Manager app when your phone has finished rebooting. The app should say that it needs to install some other components; click yes and let it do its thing. It will reboot the phone, and after that, Magisk and therefore the root should be working!

    When I first did this, my SafetyNet check failed. I fixed this by repeating all the steps, except that I updated the ROM instead of reinstalling it. You can update it even if it's the same version; it will just flash everything again. You may need to clear the cache of Google Play and reinstall Google Pay if the SafetyNet check initially failed.
    3
    Hello guys,

    i'm coming from the Oneplus Nord and its rooted with Magisk.
    How it does work with Xiaomi MI11? Can i use the original ROM (which is delivered) and flash magisk in the recovery mode and my phone is rooted?
    Next question, can i OTA Update -> Magisk flash into other boot_a/b and reboot? and its still rooted?

    After all this time, i answer for us by myself lol, it work fine like OnePlus method (keep Root after a local update/On the Fly /OTA), i have succesfull update EEA 12.5.2 Rooted/Unlocked to EEA 12.5.3 :

    1/ Download the Local Update : here
    Be sure to update from the same branch, EEA/EEE to EEA/EEE, Global to Global, CN to CN, if update is not the same branch upgrade will be not granted.

    2/ Put the Local update *.zip in a folder on the root storage folder, i create "downloaded_rom" folder

    3/ Now, Settings > About Phone > Open 12 Logo MIUI Version / Updater > Click 3/5 time on the MIUI 12 logo, you will see message "Additional update features are on" > click three ticks on the right corner > you have now access to a local upgrade option "Choose update package" > choose the Rom *.zip update path (so for my "downloaded_rom" and click update. If Archive is good (CRC) and same branch, MIUI will asked if you want upgrade, click YES

    4/ After some minutes installing, come the finalizing state and just after MIUI purpose reboot system, DON'T REBOOT, WE WILL UPDATE BOOT.IMG ROOTED NOW

    5/ Open Magisk > Install > Install to inactive Slot (After OTA) > Let's Go (Boot.img will be patched) > Success

    6/ You can reboot, after unlock PIN / etc, waiting 30 secondes for upgrade / cache finish (when data carrier is back), go in Magisk, enjoy ! You have keep root and all your access/Modules :D
    2
    Hi, I tryed fastboot oem unlock after alow it in developer settings but it says token verification failed.
    It is my first Xiaomi, afert came from a OnePlus 5.
    How can I manage to flash the boot image?
    You do not need to use the OEM Unlock option in the developer options. Mine is still off even after I unlocked my bootloader. You need to use the Xiaomi Unlock Tool found at https://en.miui.com/unlock/ .
    Before using this tool, you need to log in to you Mi account on your phone. Then, reboot the phone into fastboot mode, connect it to your PC, and use the unlock tool. It will tell you to wait 168 hours (1 week) before trying again. DO NOT RETRY BEFORE THE 168 HOURS ARE OVER OR THE TIMER RESETS! Even if you are a single minute early, it will reset the timer.
    Once the week has passed, do this again and your phone will be unlocked. Warning: This will erase your data.

    You should prepare the boot image BEFORE unlocking, because otherwise you will have to go through the phone's setup, install Magisk, patch the image, and wipe the phone again.


    Another warning: Do not re-lock your bootloader. If the bootloader is re-locked with any ROM other than the one the phone shipped with installed, the phone gets bricked.
    2
    It is enough to flash magisk in TWRP. It is not needed to extract boot.img. Just flash magisk in TWRP, it is all. I am using on last xiaomi.eu weakly ROM.
    Flash archive under Recovery (by *.zip) is not supported by Magisk from the 23 build, especially for problem boot/trebble slot compatibility. It's possible to just rename *.apk to *.zip and flash under TWRP, but it's not recommanded by dev and it's highly recommanded to using Patched image method.

    Installation by Custom Recovery
    2
    Why don't write directly fastboot flash boot_ab magisk_patched_XXXXX.img ? Is that intended ?
    Hey, sorry, haven't been on this forum for a while.
    I have only ever separately flashed boot_a and boot_b and I'm anxious to try anything I haven't done before when it comes to flashing anything, so I decided to stick with what I know works.

    What is the best/safe way to update rooted phone with EU Weekly Rom?
    You can use the Xiaomi.eu ROM's update script. I recommend doing it on a laptop and not touching the cable at all while flashing. If the power goes out, the laptop can finish the flash while it's running on battery. If you touch the cable and the connection breaks at the wrong moment, your phone might not boot anymore.
    So, basically: use the official update script and take measures to prevent the flash from failing.

    Do we need to do those steps each time updated the miui?

    If you use the Xiaomi.eu ROM and want to update, then yes. You will probably need to do it after updating normally, too, but I haven't tried any normal updates.

    As for Magisk: in V22, the SafetyNet test broke and wrongly showed it as failing. In V23, it's all working just fine for me without MagiskHide.