Unlocking the Bootloader and Installing TWRP on Xiaomi 13
Disclaimer: Unlocking the bootloader and installing a custom recovery like TWRP will void your device’s warranty. Proceed with caution and at your own risk.
Prerequisites:
- Xiaomi 13 smartphone
- USB cable
- Computer with ADB and Fastboot drivers installed (Download from the Android Developers website)
- Mi Unlock Tool (Download from the official Xiaomi website)
- TWRP image file for Xiaomi 13 (Download from the official TWRP website or a trusted source)
Step-by-Step Guide:
Enable Developer Options:
- Go to Settings > About phone > Tap on MIUI version 7 times until you see a message saying “You are now a developer.”
- Go back to Settings > Additional Settings > Developer Options
- Enable OEM unlocking and USB debugging.
Link your Mi Account:
- Go to Settings > Mi Account > Mi Cloud > Mi Unlock Status.
- Tap on “Add account and device” and follow the instructions to link your Mi Account.
- Wait for at least 7 days before proceeding to unlock the bootloader.
Unlock the Bootloader using Mi Unlock Tool:
- Install and launch the Mi Unlock Tool on your computer.
- Sign in with the same Mi Account linked to your device.
- Boot your Xiaomi 13 into Fastboot mode (Power off, then hold Volume Down + Power button simultaneously).
- Connect your device to the computer using the USB cable.
- The Mi Unlock Tool should automatically detect your device.
- Click on “Unlock Now” and follow the on-screen instructions.
- Note: Unlocking the bootloader will erase all data on your device.
Install TWRP Recovery:
- Download the TWRP image file for your Xiaomi 13.
- Rename it to
twrp.img
and place it in the ADB and Fastboot installation folder on your computer. - Open a command prompt or terminal window in the ADB and Fastboot folder.
- Boot your device into Fastboot mode again.
- Connect your device to the computer.
- Type the following command and press Enter:
fastboot flash recovery twrp.img
- Once the flashing process is complete, type the following command and press Enter:
fastboot reboot recovery
Congratulations! You have successfully unlocked the bootloader and installed TWRP recovery on your Xiaomi 13. You can now use TWRP to flash custom ROMs, kernels, mods, and more. Remember to always make a backup of your data before making any modifications to your device.