[Xiaomi Mi Mix 3 5g Guides, News, & Discussion] mxtuu222:
UNLOCK BOOTLOADER & ROOT DEVICE

1. Unlock Bootloader (Xiaomi procedure, 7 days via MI Unlock tool)

https://fossbytes.com/how-to-unlock-bootloader-on-xiaomi-devices-using-mi-unlock-tool/

2. Fastboot flash recovery TWRP and root the android 9 rom

(based on https://www.cyanogenmods.org/forums/topic/twrp-download-for-mi-mix-3-5g-and-rooting-guide/)

2.1 Install ADB for Windows and Xiaomi Drivers

2.2 Download TWRP for MI MIX3 5G Android 9 PIE - twrp-3.3.1-0-andromeda.img

https://androidfilehost.com/?fid=6006931924117900528

(based on https://xdaforums.com/showthread.php?t=3941867)

2.3 Rename file to recovery.img and put it into ADB folder on Windows

2.4 Turn off the phone, Reboot to Fastboot (Volume Down + Power)

2.5 Plug the phone into computer

2.6 Open Windows CMD

2.7 Go to your ADB directory

2.8 Type the commands in cmd

cd C:/adb

fastboot devices

fastboot flash recovery recovery.img

2.9 Download Disable Force Encryption and Magisk Zip

https://www.cyanogenmods.org/downloads/disable-force-encryption-twrp-flashable-zip-treble/

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

2.10 Copy the files to USB memory stick formatted to FAT32, you should have two files:

Magisk-v20.3.zip

DisableForceEncryption_Treble.zip

2.10 Turn on phone to recovery (Volume Up + Power)

2.11 Go to Menu > Wipe > Format Data > "yes" (this will format the data)

2.12 Go to Menu > Advanced > Fix Contents

2.13 Plug in your USB stick with files via OTG USB C connector

2.14 Go to Menu > Install > Select Storage > OTG

2.15 Select Magisk-v20.3.zip

2.16 Add more zips and select DisableForceEncryption_Treble.zip

2.17 Flash the zips and reboot device

UPDATE FOR TWRP

To gain root you may now only boot the recovery instead of flashing and proceed with flashing Magisk and Disable Force Encryption.

# fastboot boot recovery.img

TWRP 3.3.1-1 Xiaomi Mi Mix 3 5G (andromeda) by mauronofrio:

- Added Android 10 Support;

- Fixed compatibility.zip errors;

- Make the TWRP able to boot directly from fastboot;

- Removed TWRP app;

- Added dtbo and persist target to flash image menu;

- Fixed some problems with Stock ROMs flashing.

Download TWRP: https://androidfilehost.com/?fid=4349826312261701065

Thanks to [MENTION=4712355]mauronofrio[/MENTION]

## QUALCOMM DIAGNOSTIC PORT AND TOOLS

(based on https://xdaforums.com/oneplus-7-pro/help/force-enable-volte-vowifi-t3934227)

1.1 Download

https://androidfilehost.com/?fid=11410963190603864074

https://androidfilehost.com/?fid=11410963190603912872

QPST_2.7.474.zip

QUD.WIN.1.1 Installer-10037.3 Setup.zip

Just use the standard settings and click on OK, next,

1.2 OPEN DIAGNOSTIC PORT FOR THE SESSION FOR QPST (WINDOWS CMD ADB)

cd C:/adb

adb devices

adb shell

su (you need to add root permisions on android screen)

setprop sys.usb.config diag,serial_cdev,rmnet,adb

1.3 Once The Port is up you can use your Qualcomm Tools.

1.4 For example you can change the VOLTE/VOWIFI settings with PDC Tool

Select your device, right click on "Commercial" and deactivate Sub0 and Sub1

Click on Oversea-Commercial_DS again and click on remove -- DO NOT CLICK REMOVE, JUST DE-ACTIVATE IT - your settings stick after a reboot, so no longer need to remove the profile (at least on my device my profiles stick, also makes it easier to go back to default)

## FORCE ENABLE VOLTE AND VOWIFI BUTTONS IN ANDROID

cd C:/adb

adb devices

adb shell

su (you need to add root permisions on android screen)

setprop persist.dbg.ims_volte_enable 1; setprop persist.dbg.volte_avail_ovr 1; setprop persist.dbg.vt_avail_ovr 1; setprop persist.dbg.wfc_avail_ovr 1

######################## CODES FOR THE DIALER #####################

1. Diagnostic codes:

*#*#6484#*#*

2. Testing

*#*#4636#*#*

3. Calendar

*#*#225#*#*

4. Google Play services

*#*#426#*#*

5. Rlz Debug Ul.

*#*#759#*#*

6. Imei Information

*#06#

Enter these codes into the Dialer to enable the options in Settings. (Settings < SIM Cards & mobile networks < Sim Card Settings < VoLTE Enabled/Make Calls using WLAN) . THEY ARE ENABLED BY DEFAULT

VoLTE *#*#86583#*#*

VoWIFI *#*#869434#*#*

##### FLASH ROM AGAIN IF ANYTHING FAILS VIA FASTBOOT ###

01. You need to have unlocked bootloader

02. Download latest ROM based on your model (mine is 5G EEA n78)

Mi MIX 3 5G EEA	Stable	Fastboot	V10.3.21.0.PEMEUXM	9.0	Download	2.5 GB

https://xiaomifirmwareupdater.com/miui/andromeda/

03. Download Mi Flash Tool

https://www.xiaomiflash.com/

04. Open the Mi Flash Tool, install drivers (if the install fails go to Mi Flash directory and create folder logs and log; open app again and install drivers)

05. Unpack the rom fastboot tgz

06. Select the Folder where the rom is unpacked (it should containg numerous of flash files)

07. Tick the Clear Data at the bottom (don't choose the clear data and lock cause it will lock your bootloader again)

08. Turn off the phone, Reboot to Fastboot (Volume Down + Power)

09. Plug the phone into computer

10. Click refresh, phone should be visible

11. Click flash

12. After successfull flash there could be an error fastboot lock (don't bother since you want to be unlocked)

13. If you want root flash twrp and magisk again