How to Root Xiaomi Mi 5x (Mi A1) and Install TWRP Recovery

Learn how to root your Android device and install TWRP recovery. This guide is for the Xiaomi Mi 5x (also known as the Mi A1), but will work on other devices that have a version of MIUI 8 or higher.

The “how to install xiaomi usb driver” is a guide on how to root Xiaomi Mi 5x (Mi A1) and install TWRP Recovery. The guide also includes instructions on how to download the drivers.

How to Root Xiaomi Mi 5x (Mi A1) and Install TWRP Recovery

You’ve come to the correct place if you possess a Xiaomi Mi 5X [Code Name: Tiffany] and want to root it.

Xiaomi Mi 5X is the company’s newest smartphone, which was released in China in July 2017 and comes in three color options: black, gold, and rose gold. The smartphone is now available in two storage options: 64GB and 32GB. The smartphone boasts a picture-perfect dual camera with optical zoom that is 12 megapixels and 12 megapixels. The phone is 5.5 inches in size and has a complete metal unibody with rounded corners. The phone is powered by a 3080 mAh battery and comes with either 64GB or 32GB of storage, as previously stated. The DHS Audio Calibration Algorithm increases the sound output via the headphone or speakers, while the Standalone music amplifier captures the real capability of the headphones, resulting in high-quality audio on the smartphone. The 155.4mmx75.8mmx7.3mm phone weighs 165 ounces and features a 5.5-inch display. The phone’s smooth corners make it comfortable to hold, and the inconspicuous antenna design gives it an appealing appearance. Xiaomi’s Mi 5X is the company’s second smartphone to include a dual-camera system. It has a 5 megapixel front-facing camera for selfies, as well as a fingerprint sensor on the rear of the smartphone. The phone has the newest USB Type-C standard, as well as 4G VoLTE, dual-band Wi-Fi 802.11ac, and a USB Type-C connection.

If you’re an Android fanatic looking to root and install TWRP recovery on your device, you’ve come to the correct place. We’ll walk you through the process of rooting the Xiaomi Mi 5X further in the post.

The TWRP features the material design, and attractive user interface (UI), and by following this guide you can install the latest TWRP for Xiaomi Mi 5X. You can download TWRP Recovery from the links provided in the pre-requisite section of this article. Kindly note that this is an unofficial TWRP recovery and is only for Xiaomi Mi 5X (Kindly confirm the model by going to Settings>About). The process given below is merely for rooting and installing TWRP on Xiaomi Mi 5X, do not try out this method on any other device.

If you want to maximize the hardware capabilities of your Xiaomi Mi 5X, you’ll need to root it and install a custom recovery like TWRP. In terms of customization, stock ROMs often have restricted and unsupported capabilities. You may install any Custom ROMs, Mods, Kernel, and Xposed, as well as many applications that need root access to run correctly, after you’ve rooted your smartphone and installed TWRP recovery. With One Click Android Root Tool, you can simply root your smartphone using either a PC or an APK, which is a rapid procedure.

TWRP Recovery: A Quick Overview and Benefits

TWRP (Team Win Recovery Project) is a community-driven open-source project. TWRP allows you to install any custom firmware, root your phone, use mod zip files for modifications, use Xposed Modules for customizable functionality, and perform one-click root and unroot operations. Aside from that, it lets you to take a Full Nandroid Backup and restore it later, as well as one-click image file flashing, bloatware removal, and overclocking and underclocking. After flashing any image file, TWRP can simply wipe Wipe, Cache, and Data to reflect the changes and correct minor cache issues.

Your Xiaomi Mi 5X phone must have an unlocked bootloader in order to install TWRP. That implies you must first unlock the bootloader before rooting and customizing your smartphone.


Always double-check your model number, which should be:

  • [Code Name: Tiffany] Xiaomi Mi 5X

You must confirm that you have read the disclaimer properly and agree to continue at your own risk before rooting your phone.

Your phone must be at least 70% charged when testing; else, it may cause issues. Why take the chance when you can completely charge it?

It is a good practice to create a backup of your phone if you are about to root it or install a Custom ROM. Make a cloud backup of all your data, including photographs, videos, and documents, as well as your contacts.

(Applicable solely to the PC approach; if using the APK method, skip this step.)

By navigating to Settings, Applications, and Developer settings, you must enable USB debugging.

Xiaomi Mi 5x Rooting Downloads (Mi A1)

Universal ADB Drivers may be found here. (If your PC already has drivers loaded, skip this step.)

Download platform-tools/ SDK Tools package from Android SDK on PC from here. (Android command line tools> SDK Tools package)

Download the ‘XN Logos’ Toolkit for Xiaomi Mi 5X, which includes TWRP and all essential files:

Toolkit for Mi 5X (MediaFire Link)

3.2.3 TWRP Recovery

[AndroidFileHost Link for Xiaomi Mi A1 (Mi 5X)] TWRP Recovery 3.3.1

Chainfire’s SuperSU may be downloaded here.

Check that you have the necessary files downloaded (link in the pre-requisite section of this article). Then go through the instructions.

How to Unlock Xiaomi Mi 5x Bootloader (Mi A1)

Note: If your bootloader has previously been unlocked, you may skip these instructions.

Xiaomi’s smartphones used to come with an unlocked bootloader, but as time has passed, Xiaomi has begun selling devices with a locked bootloader, and the Xiaomi Mi 5X is part of that program. Unlocking the devices, often known as unlocking the bootloader, is a simple three-step procedure, as shown below.

Step 1: Go to the MiUnlock page on the MIUI website and sign in using your Mi ID. Make sure to create an account with accurate information; if it is already registered, which is likely given you are a Mi user, everything should be OK. Now, go to the website and seek unlocking permissions/Bootloader unlock, stating the right cause for the device unlock. The justification should be reasonable, and your device’s bootloader should be unlocked as a result.

Step 2: Download the MiUnlock app after gaining permission from Xiaomi to unlock your device’s bootloader. Simply unlock your device’s bootloader after installing the MiUnlock software.

Because your device’s bootloader has already been unlocked, you may now root it.

How to Root Xiaomi Mi 5x and Flash/Install TWRP (Mi A1)

Step 1: Verify that you’ve unlocked the bootloader using the steps outlined above, as well as that you’ve downloaded the necessary files from the prerequisites section.

Step 2: Go to the zipped toolkit file you downloaded earlier and unpack it on your computer. Install ADB and Fastboot Driver on the PC after navigating to the folder.

Step 3: Now, open the S-droid toolkit.exe file in the twrp/tool folder and start it.

Step 4: Then, with USB Debugging enabled, connect the device to the computer and either follow the on-screen instructions or enter 41 to flash the TWRP. That’s all; the TWRP flashing procedure has started and will take a few seconds to finish.


Step 5: Since you’re currently in ADB after installing TWRP, don’t boot the device back to normal; instead, enter ’45’ and then click ‘Enter.’ This will immediately transfer the essential files to the device and boot the Xiaomi Mi 5X into TWRP.

Step 6: Next, go to ‘Backup’ and generate a ‘Nandroid’ backup before doing a factory reset.

Step 7: Install and select the ‘No verity’ from the device’s storage, and confirm the install. Once again, navigate to the ‘Install’ and then select the file ‘magisk’ which is located in Device’s storage i.e. storage>sdcard, and then confirm the installation.

Step 8: You’re finished! If the device reboots into the recovery mode, choose the option ‘Reboot system immediately’ to finish the operation.

Congratulations, you have now rooted your Xiaomi Mi 5X and installed TWRP. You may now install the Xposed Framework and personalize your smartphone to your liking. If you want to double-check, you may use the Root Checker app to download and check the Root Status.

XN Logos are to be credited.

Source: XDA

  • how to root mi 5x without pc
You May Also Like