How to reflash Xiaomi Mi 6X: official and custom firmware

Xiaomi Mi 6X (codenamed wayne) is a popular smartphone of 2018, which is still in demand thanks to the powerful hardware (Snapdragon 660, 4/6 GB of RAM) and support for custom firmware. However, over time, the official MIUI updates stop coming out, and users face slowdowns, bugs or the desire to install the current version of Android. Flashing solves these problems, but requires care: wrong actions can turn the phone into a brick.

In this guide, we will examine all the ways of firmware โ€” from official updates through MIUI Updater to install custom builds like LineageOS or Pixel Experience. Special attention will be paid to unlocking the bootloader (without it custom firmware can not be installed), choosing the correct version of the software and typical errors. If you are a beginner, start with the official methods. Experienced users will find here the nuances of working with Fastboot, TWRP and ADB.

1. Firmware Preparation: What You Need to Know Before You Start

Reflashing the Xiaomi Mi 6X is an irreversible process, and its success depends on preparation.

  • ๐Ÿ”‹ The battery should be at least 60 percent charged, and when it is discharged during firmware, the phone may turn off, causing a failure.
  • ๐Ÿ“ฑ Backup: Save contacts, photos and app data. The firmware erases internal memory (except for official updates via the app). MIUI Updater).
  • ๐Ÿ” Unlocking the bootloader is mandatory for custom firmware. Official updates are installed on the blocked bootloader.
  • ๐Ÿ–ฅ๏ธ Drivers and tools: to work with Fastboot or ADB You need Xiaomi drivers and Mi Flash Tool or Platform Tools on PC.

Important: Xiaomi links unlocking the bootloader to your Mi Account. If you forgot your password or didnโ€™t link the device to your account, unlocking wonโ€™t be possible. Also, remember that after unlocking, all settings are reset and the warranty (if itโ€™s still valid) is canceled.

โš ๏ธ Attention: On Mi 6X version MIUI 12.5+ This means you can't roll back to the older firmware or the phone will lock. โ†’ The phone. โ†’ Version. MIUI.

If you plan to install custom firmware, select the right build in advance. For the Mi 6X, the following are relevant:

  • ๐Ÿ“ฑ LineageOS (Android 11-13) โ€“ stable, but without branded features Xiaomi.
  • ๐ŸŽจ Pixel Experience โ€“ pure Android with a Pixel shell.
  • โšก ArrowOS or HavocOS โ€“ customizable builds with advanced settings.
๐Ÿ“Š What kind of firmware do you plan to install?
Official MIUI
LineageOS
Pixel Experience
Another custom
I haven't decided yet.

2. Method 1: Officially Updated via MIUI Updater

The safest method is to upgrade through the built-in MIUI Updater app, which is suitable if:

  • ๐Ÿ”„ You want to upgrade to the latest official version. MIUI.
  • ๐Ÿ”’ Phone boot loader is locked (no unlock required).
  • ๐Ÿ“ฑ The phone is stable and you donโ€™t plan to install custom software.

Instructions:

  1. Open Settings โ†’ About the phone โ†’ System update.
  2. Click on the icon ยซโ‹ฎยป (three dots) in the upper right corner and select Select Service Package.
  3. If you can download the update, download it. If you can't, download the full firmware package (.zip) from MIUI Downloads for the Mi 6X (wayne) model.
  4. After downloading the file, click Update and wait for the process to be completed (the phone will restart automatically).

โš ๏ธ Note: If the update error โ€œCan not check the service packโ€, check the integrity of the downloaded file (compare the hash amount) MD5) Or try renaming the file to update.zip try again.

Advantages of the method:

  • โœ… Does not require unlocking the loader.
  • โœ… Stores user data (if the update is not global, but incremental).
  • โœ… Minimum risk of error.

Disadvantages:

  • โŒ Updates are rarely available (for Mi). 6X latest official version โ€” MIUI 12.5 based on Android 10).
  • โŒ There is no way to install custom software.

๐Ÿ’ก

Officially updating via MIUI Updater is the only method that does not require unlocking the bootloader and does not reset user data.

Method 3: Fastboot (Mi Flash Tool)

If the official update is not available or you want to install the full MIUI (for example, to change the region), use the firmware via Fastboot.

  • ๐Ÿ”„ Recovery of the phone after a failure.
  • ๐ŸŒ Changes in the firmware region (for example, from Chinese to global).
  • ๐Ÿ“ฅ Installation of the full version MIUI instead of incremental update.

What you need:

  • ๐Ÿ–ฅ๏ธ Windows computer (for Mi Flash Tool).
  • ๐Ÿ”Œ Cable USB Type-C (original, undamaged).
  • ๐Ÿ“ Firmware in.tgz or.zip format for Mi 6X (wayne MIUI Downloads.
  • ๐Ÿ› ๏ธ The Mi Flash Tool (you can download it here).

Step-by-step:

  1. Unpack the downloaded firmware in a folder without Cyrillic characters (for example, C:\MIUI\wayne_global_images_...).
  2. Install the Mi Flash Tool and Xiaomi drivers on your PC.
  3. Turn off the phone and press Volume Down + Power to enter Fastboot mode (the image of a hare in a hat-eared will appear).
  4. Connect your phone to your PC. In the Mi Flash Tool, press Select and point the path to the firmware folder.
  5. Select firmware mode: Clean all - complete cleaning (recommended when changing region); Clean all and lock - cleaning + lock bootloader (only if you return to the official firmware); Save user data - data storage (not always stable).

Flash

Typical errors and decisions:

Mistake.Reason.Decision
Can't receive hello packetProblems with drivers or cable.Reinstall the drivers, try another cable or USB port.
Flash is not doneThe wrong firmware or mode is chosen.Check the compatibility of the firmware with the wayne model.
Anti-Rollback check failTrying to roll back to an older version.Install firmware no older than the current version of MIUI.

โš ๏ธ Note: If after firmware the phone is stuck on the logo MI, Try to go to Recovery (clamb the Volume up). + Power and reset (Wipe Data) If that doesn't work, repeat the firmware with Clean all choice.

Download the firmware for the Wayne model|Install Mi Flash Tool and Drivers|Unpack the firmware in a folder without Cyrillic|Charge the phone to 60%+|Prepare original USB-cable-->

Method 3: Install custom firmware (TWRP + ADB)

Custom firmware opens up new possibilities: current versions of Android, no advertising in MIUI, advanced settings, but installing them requires:

  • ๐Ÿ”“ Unlocked loader.
  • ๐Ÿ“ฑ Established custom recaveri TWRP.
  • ๐Ÿ› ๏ธ Knowledge of working with ADB and Fastboot.

Suitable firmware for the Mi 6X:

FirmwareAndroid versionFeatures
LineageOS11โ€“13Stable, minimalist interface.
Pixel Experience12โ€“13The interface is like Google Pixel, regular updates.
ArrowOS12โ€“13Maximum customization, optimization of productivity.

Installation instructions:

  1. Unlock the bootloader (instructions in the next section).
  2. Install. TWRP: Download the latest version TWRP for wayne from twrp.me. Rename the file to twrp.img and put it in a folder with ADB. Turn on Debugging. USB In Settings โ†’ The phone. โ†’ Version. MIUI (press 7 Once on the line with the version, then go back to Settings โ†’ Additionally. โ†’ Connect the phone to a PC and execute the command: adb reboot bootloader Install TWRP Team: Fastboot Flash Recovery twrp.img Reboot to TWRP: fastboot boot twrp.img

Sweep through the custom firmware

  • Download firmware (.zip) and GApps (if you need Google services).
  • Transfer the files to your phone or flash drive.
  • In TWRP, select Wipe โ†’ Advanced Wipe and select Dalvik, Cache, System, Data.
  • Press Install, select a firmware file and confirm the installation.
  • After installing the firmware, repeat the step for GApps (if needed).
  • Reboot your phone (Reboot โ†’ System)

Important nuances:

  • ๐Ÿ”„ After installing custom firmware official updates MIUI through MIUI Updater will not work.
  • ๐Ÿ”’ Some firmware (like LineageOS) require monthly manual updates.
  • ๐Ÿ“ฑ If the phone doesnโ€™t turn on after the restart, try re-installation or select another build.
What to do if TWRP is not installed?
If you try to flash TWRP, you get a FAILED error (remote: 'Not allowed in Lock State'), you don't unlock the bootloader. Go back to the unlock section. If the error is different (e.g. Invalid sparse file format at header), download another version of TWRP or check the integrity of the file.

5. How to unlock the bootloader on Xiaomi Mi 6X

Unlocking the bootloader is a must-have for custom firmware installation. Xiaomi has made it harder in the latest versions of MIUI, but it remains standard for the Mi 6X.

  • ๐Ÿ“ฑ Mi Account tied to phone (required!).
  • ๐Ÿ–ฅ๏ธ Computer with Mi Unlock Tool.
  • ๐Ÿ”Œ The original cable. USB Type-C.
  • โณ Time: The process takes up to 72 hours (due to Xiaomi restrictions).

Step-by-step:

  1. Download Mi Unlock Tool from the official website.
  2. Enable OEM Unlock and USB Debugging in Settings โ†’ For Developers.
  3. Link your Mi Account to your phone: Settings โ†’ Mi Account โ†’ Synchronization.
  4. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  5. Connect your phone to your PC, launch the Mi Unlock Tool, and log in to your Mi Account.
  6. Press Unlock. If you receive a message to wait, wait for the specified time (usually 72 hours) and try again.
  7. After successful unlocking, the phone will automatically restart.

โš ๏ธ Note: If a Couldn't unlock error occurs when unlocking, check: Is your Mi Account linked to your phone (Settings) โ†’ Mi Account should be written "Device tethered"). USB and is access to data allowed from the PC (when you connect the phone to the computer, you should notice that you allow debugging). VPN Proxies (they can block access to Xiaomi servers).

Once the bootloader is unlocked, all the data from the phone will be erased!

๐Ÿ’ก

If the Mi Unlock Tool doesnโ€™t recognize the phone, try using a different version of the utility (e.g. 3.5.1118.51 instead of the latter). USB-port or disable antivirus on PC.

Typical errors and their solutions

Even if you follow the instructions, you can get errors. Consider the most common ones for the Mi 6X:

Mistake.Reason.Decision
The phone does not turn on after the firmwareIncompatible firmware or interrupted process.Repeat the firmware through Fastboot with the choice of Clean all.
Error 7 in TWRPThe firmware is not suitable for your model.Download the firmware for wayne (not for Mi A2, despite the similarity!).
Hanging on the MI logoThe conflict between the firmware and the core.Install the firmware with full cleaning (Wipe System/Data/Cache in TWRP).
Anti-Rollback check failAn attempt to roll back the old version of MIUI.Install firmware no older than the current or newer.
The mobile network is not workingModules of modem are missing in custom firmware.Install a separate package with a modem for your firmware.

Additional advice:

  • ๐Ÿ”„ If Wi-Fi or Bluetooth doesnโ€™t work after firmware, check if your firmware supports these modules (for example, LineageOS sometimes requires a separate patch).
  • ๐Ÿ”‹ If the phone discharges quickly after firmware, perform battery calibration: fully discharge and charge up to 100% without interruptions.
  • ๐Ÿ“ฑ If gestures or touch buttons donโ€™t work, check the settings in Settings โ†’ System system โ†’ Gestures.
How to return the official MIUI after custom firmware?
To get back to the official firmware: 1. Download the full MIUI firmware for wayne in.tgz. 2. Sweep it through Fastboot with the Clean all and lock option (this will lock the bootloader back). 3. If the phone doesn't turn on, repeat the firmware with a full clean.

7. Post-firmware recommendations

Successful firmware is only half the battle, so that the phone is stable.

  • ๐Ÿ”„ Update the firmware (if it's custom build). Many firmwares require manual updates through TWRP or built-in updater.
  • ๐Ÿ›ก๏ธ Install Magisk for root rights (if necessary). Download the latest version of Magisk (.zip) and run through TWRP.
  • ๐Ÿ“ฑ Set up performance: Enable Overclocking CPU (If the firmware supports. Turn off animations in Settings โ†’ For developers to speed up the interface.
  • ๐Ÿ”‹ Optimize the battery: Turn off background activity of unnecessary applications. Use a dark theme (AMOLED-mi 6X charge-saving).

If you have installed custom firmware, check the key functions:

  • ๐Ÿ“ถ Mobile network (2G/3G/4G).
  • ๐ŸŽง Sound in speakers and headphones.
  • ๐Ÿ“ท Camera (some firmware requires separate patches for the camera).
  • ๐Ÿ”„ Touch buttons or gestures.

Useful applications after firmware:

  • ๐Ÿ”ง FrancoKernel Manager โ€“ for fine-tuning the kernel (if the firmware supports).
  • ๐Ÿ“Š AccuBattery โ€“ Monitoring the status of the battery.
  • ๐Ÿ›ก๏ธ Magisk Manager โ€“ Root rights and modules management.

Frequently Asked Questions (FAQ)

Can I flash the Mi 6X without unlocking the bootloader?
Yes, but only official updates via MIUI Updater. Custom firmware (LineageOS, Pixel Experience, etc.) require an unlocked bootloader.
How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power. If you see Unlocked at the bottom of the screen, the bootloader is unlocked. If Locked is locked.
Why doesn't the camera work after the firmware?
Some custom firmware doesnโ€™t include proprietary camera drivers. Set a separate patch (like the ANX Camera or GCam) or reflash the firmware with camera support.
Can I revert to an older version of MIUI?
Not if your current firmware supports Anti-Rollback. Attempting to roll back will lock your phone. Check the current version in Settings โ†’ About Phone.
How to restore IMEI after firmware?
If you have lost your IMEI after the firmware, try: Restore the EFS backup (if you did a backup in TWRP); Swipe the original modem through Fastboot; Use utilities like the SN Write Tool (requires an authorized service center account).