[Xiaomi Mi 10 Guides, News, & Discussion] bubobih:
Android 10/11 (tested on latest weekly rom MIUI 12.2 (20.10.16)

Hello, i want to share with u a simplefied tutorial how to:

I AM NOT RESPONSIBLE FOR ANY DAMAGE, DO IT AT YOUR OWN RISK !!!

TWRP

Before installing custom recovery called TWRP u need to unlock bootloader. Be sure that u enable developer options and inside enable USB debugging.

1. Turn OFF your phone (wait few seconds) and then press VOLUME DOWN + POWER till u see fastboot on the screen.

2. Connect phone with PC.

3. Download TWRP image and adb. DOWNLOAD

4. Extract ZIP anywhere.

5. Open cmd window in the same folder where are extracted files.

6.Type fastboot flash recovery TWRP_umi.img.

Done

MAGISK / ROOT

After u install TWRP u now have custom recovery so u can do whatever u want.

1. Download magisk.

20.4 version (Android 10) DOWNLOAD

21.0 version (Android 11) DOWNLOAD

21005 version (Android 11) DOWNLOAD

2. Copy that zip to your phone/sd card/usb.

3. Run TWRP recovery (turn OFF phone, wait few seconds, press VOLUME UP + POWER, wait 2 vibrations than release).

4. Click INSTALL button, locate your zip file called magisk_20.4.zip or Magisk-v21.0.zip, select that zip and flash.

5. Reboot System.

6. Download Magisk Manager. DOWNLOAD

7. Install it.

8. Run installed magisk.

9. Update magisk or magisk manager (if update is avaliable).

10. Press "Check SafetyNet" button. If is failed go to settings (home screen of magisk manager, press upper right button, scroll down and find MagiskHide and enable it).

11. Press again "Check SafetyNet" and it shoud be success.

U are done, u have root over magisk.

TIP: If u get any problems (bootloop) or u want totaly to remove magisk u can use uninstaller and flash it over TWRP just like u did for installation

Uninstaller 20.4 version DOWNLOAD

Uninstaller 21.0 version DOWNLOAD

Uninstaller 21005 version DOWNLOAD

XPOSED / EDXPOSED

EdXposed is a Magisk & Riru module that provides original Xposed frameworks on latest Android ART devices. With this module u can load bunch cool modules including

CustoMIUIzer.

1. Go to your magisk manager, u will find 4 buttons at bottom middle screen (home, superuser, logs, modules). Press modules.

2. search for riru. Install Riru (Riru - Core) v21.3 by Rikka.

3. After flashing riru press reboot button.

4. After reboot check modules tab in magisk and check did riru core is successfully installed. If yes everything is ok.

5. Download EdXposed Manager. DOWNLOAD

6. Install EdXposed Manager.

7. Run it.

8. U will get red warning that says "EdXposed Framework is not installed". Dont worry.

9. Go to CANARY tab and choose in framework EdXposed-YAHFA-V0.5.0.6 (IMPORTANT IS TO CHOOSE YAHFA not SANDHOOK) if u choose sandhook by mistake u will lose SafetyNet then scroll down to SafetyNet part.

10. So u choose YAHFA, Press INSTALL/UPDATE (zip will be downloaded to your download folder on your phone).

11.Open Magisk Manager go to modules tab and press install from storage button.

12. Find YAHFA zip and flash it. After installation press reboot button and wait a phone to get rebooted.

13. When your phone boot go to EdXposed Manager and check did framework says that its installed.

14. If u get warning "EdXposed Framework is installed, but not active". please reinstall EdXposed Manager. It shoud says "EdXposed Framework is active".

Done !

SAFETYNET

If u by accident or any other reason install sandhook framework, u will get safetynet problem. And even if u uninstall it u will still get warning. To solve that u need to remove sandhook traces over (root explorer, or explorer in TWRP). I personaly use Root Browser from play store.

Open root explorer, and go to /data/user_de/0/ search sandhook ( u shoud get 111 folders and im think about 50kb size for delete). remove all and reboot a device. Be aware that some modules can make safetynet problem too.

BOOTLOOP

If u get a bootloop in any part of this tutorial (except TWRP) u can manualy over TWRP recovery mode (VOLUME UP + POWER) manualy delete xposed or magisk modules.

Run TWRP, go to advanced go to file manager, go to /data/adb/modules and remove modules. Then go to data/misc/riru and delete that folder. Reboot and u are ok to try again.

TIP: Every time when u install/upgrade firmware u have a possibility to keep old battery information. So its good to go to TWRP then go to Advance then find RM battery-info and remove it and reboot a device. Personaly i repair battery drain on my mi 10 with this.

I hope this tutorial will help someone. I tried to make it as simple as possible.

Special thanks to meowcat