Hey, guys! Recently we have wrote a tutorial on how to use XiaoMiTool to flash your Mi 5X device and right now we would like to share another method. This tutorial also includes the part on how to unlock bootloader on your Xiaomi phone.
Official Mi 5X firmware: the latest MIUI 11 Recovery and Fastboot ROMs for all regions (1), direct from Xiaomi's servers with file checksums.
Guide on how to unlock bootloader, install custom recovery and root Mi 5X
Here’s what you’ll need to do:
- Let’s assume you’ve just bought Xiaomi Mi 5X phone and finally get it in your hands.
- Start with creating Mi-Account or use the existing one.
- Request unlock bootloader permission from official MIUI website.
- Enable developer options and open them, go to “MiUnlock status”, press “Add account and device”.
- If the account wasn’t added, try again later on Wi-Fi with a SIM card inserted.
- Now wait 360 hours (15 days) from the moment you added the device. The timer can’t be skipped or shortened.
- Now let’s assume 72 hours has passed and now we can continue with unlocking the bootloader on Mi 5X phone.
- Download the official Mi Unlock tool.
- Open Mi Unlock tool and sign into your Mi Account.
- Boot your Mi 5X in fastboot mode and connect to PC via USB cable.
- Now you can unlock the bootloader.
- To flash TWRP Custom Recovery on your Mi 5X phone, download a TWRP for Mi 5X (tiffany) from the 4pda Mi 5X header (the “with bootloader protection” builds). If your phone is the Mi 5X “Oxygen” type, never flash anything that contains a non-Oxygen aboot (emmc_appsboot), or it will be bricked. to the Mi Unlock folder.
- Boot your phone in fastboot mode, go to Mi Unlock folder and press “Shift” + “Right mouse” buttons at the same time, then select “Open command window here”.
- In the opened command window type these commands (where twrp.img is the name of custom recovery .img file):
fastboot flash recovery twrp.img fastboot boot twrp.img
- Your phone will be automatically booted in TWRP custom recovery mode.
- Go to “Wipe” menu and swipe to continue.
- Go to “Install” menu and select downloaded ROM. Swipe to confirm installation.
- Again go to “Wipe” and wipe “Dalvik / Cache” after ROM installation.
- If you also want to enable root, install Magisk (see our Magisk guide) instead of the discontinued SuperSU to phone memory before flashing, then in the end go to “Install” menu, select previously copied .zip archive and swipe to confirm installation.
- Reboot into system.
- Good luck in your experiments and have fun with your Xiaomi smartphone!
Use only a ROM built for Mi 5X (tiffany). Never relock the bootloader while a custom ROM is installed: that bricks the phone (4pda).
Sources: 4pda Mi 5X firmware header (Hondzo, 03.09.17, edited ShtrihKot 15.10.25); "Про разблокировку загрузчика", Lefey, 21.11.17: 360 h since 13.11.2017, counted from "Add account and device"; "Про 2 вида кирпичей", Lefey, 15.10.17. Type 1: relocking with a custom ROM. Type 2: on Mi 5X "Oxygen", flashing any aboot (emmc_appsboot) that isn't oxygen's.
Xiaomi no longer updates the Mi 5X
Xiaomi has ended software updates for the Mi 5X, so no new firmware is expected. For new Xiaomi firmware, HyperOS 4 news and guides, follow our Telegram channel.

