Xiaomi Mi6: instructions for unlocking, firmware and setting up (2026)

Xiaomi Mi6

2017

Snapdragon 835

Mi6

Fastboot

TWRP

Despite its age, the device supports modern custom firmware like LineageOS 20 or Pixel Experience 13, but installing them will require unlocking the bootloader, a procedure that is complicated every year due to Xiaomi's policy. from obtaining permission to unlock to restoring the "brick" through EDL-You'll also learn how to get around the restrictions. MIUI 14 and return the device to its former performance.

⚠️ Attention: All manipulations with the bootloader and firmware Xiaomi Mi6 (codename sagit will be cancelled warranty (if it is still valid) and may result in the inability to restore through official Xiaomi tools after May 2026. MIUI In Settings β†’ About the phone - for models based on Android 10+ Additional steps will be required.

1.How to unlock a bootloader on Xiaomi Mi6 in 2026

Unlocking the bootloader is a must before firmware custom software. Since 2023, Xiaomi has tightened the rules: now to obtain permission, you need to link your Mi Account to the device and wait 72-168 hours (instead of the previous 72), the process consists of three stages: linking the account, waiting and actually unlocking through the Mi Unlock Tool.

First, make sure that on the phone:

  • πŸ“± Developer Mode Enabled: Go to Settings β†’ About the phone and 7 times click on the version MIUI.
  • πŸ”— Linked to Mi Account: in Settings β†’ Xiaomi account sign in under your account and activate synchronization.
  • πŸ”“ Debugging is permitted. USB and unlock OEM: In Settings β†’ Additionally. β†’ For developers, include both items.

Next, download the latest version of the Mi Unlock Tool from Xiaomi’s official website (only use the English version – the Chinese version may not work with foreign accounts). Connect the Mi6 to your PC in Fastboot mode (press Volume Down + Power when your phone is turned off) and run the utility. The system automatically checks the account status and starts counting down the waiting time.

⚠️ If the Mi Unlock Tool is running a "Couldn't unlock" or "Account not bound" error, check it out:

  • πŸ”„ Version of the utility (must be not lower than 5.5.224.30).
  • πŸ“‘ Internet connection stability (use wired Ethernet for PC).
  • πŸ•’ Waiting time (if less than 72 hours have passed, unlocking is not possible).
πŸ“Š What Unlocking Method You Used for Xiaomi Mi6?
Official Mi Unlock Tool Officially
Bypassing through EDL
Custom script
I haven't tried it yet.

2. Xiaomi Mi6 firmware via Fastboot: step-by-step instructions

Once the bootloader is unlocked, you can install official or custom firmware. Three types of firmware are relevant for the Mi6:

  1. Official MIUI (Stable/Development) – downloaded from Xiaomi’s website.
  2. Custom (AOSP) – for example, LineageOS or ArrowOS (requires TWRP).
  3. Port from other devices – for example, firmware for Mi 8 (risky!).

To install via Fastboot, download the archive with the firmware (.tgz format for official or.zip for custom) and unpack it into a folder with the Mi Flash Tool.

  1. Turn off the phone and press Volume Down + Power to log in to Fastboot.
  2. Connect the Mi6 to your PC and start the Mi Flash Tool (select the firmware folder).
  3. At the bottom of the window, select the β€œClean all” or β€œClean all and lock” mode (if you want to lock the bootloader after you have been firmware).
  4. Press Flash and wait until it is completed (the process will take 5-10 minutes).

⚠️ Warning: If after firmware the phone is getting stuck on the Mi logo, reset via Recovery (click Volume Up). + Power when turned on: If the device does not respond, try flashing again with the option "Save user data" (but this can lead to errors in the system operation).

Download the latest Mi Flash Tool |

Unpack the firmware in a folder without Cyrillic |

Disable antivirus (can block drivers)|

Check the battery charge (minimum 50%)|-->

3. Installation of TWRP and custom firmware

TWRP (Team Win Recovery Project) is a custom recovery that allows you to install informal firmware, make backups and restore the system. For the Xiaomi Mi6, the version of TWRP 3.7.0 from the developer mauronofrio (you can download XDA Developers).

To install TWRP via Fastboot:

  1. Download the twrp-3.7.0-sagit.img file and place it in the ADB folder.
  2. Open the command line in this folder and type: fastboot flash recovery twrp-3.7.0-sagit.img fastboot boot twrp-3.7.0-sagit.img
  3. After downloading to TWRP, run Wipe β†’ Format Data (this will remove encryption and prevent errors).

For custom firmware installation (e.g. LineageOS 20):

  • πŸ“ Download firmware (.zip) and GApps (if you need Google services).
  • πŸ”„ Reboot to TWRP and select Install β†’ Select Storage β†’ MicroSD/USB-OTG.
  • βš™οΈ Install firmware first, then GApps, and at the end – Magisk (for root rights).
  • πŸ”„ Run the Wipe. Cache/Dalvik and reboot.

⚠️ Attention: Castom firmware based on Android 12+ Cannot support the camera module Mi6 To fix, download the ANXCamera or GCam patch with the settings for sagit.

What to do if TWRP asks for a password?
After installation TWRP requesting a password, which means that the section /data It's encrypted: 1. V TWRP Choose "Wipe" β†’ "Format Data (enter "yes"). 2. Reboot to Recovery Again – Encryption Will Be Reset. 3. Install the firmware again. ⚠️ All data on the phone will be deleted!

4. Solving battery and overheating problems

Xiaomi Mi6 is known for two typical problems: fast battery discharge (especially after upgrading to MIUI 12+) and overheating due to old thermal paste.If the phone discharges in 3-4 hours with moderate use, the reasons may be as follows:

Problem.Possible causeDecision
Quick discharge.Battery wear (capacity < 70%)Replacement of the battery (original - MDY11EM)
Overheating during chargingFaulty controller or cableUse the original power supply (5V/2A)
Self-involved rebootsBattery connector damagedCleaning contacts with alcohol or replacing the plume
High consumption on standbyMIUI background processesDisable autosynchronization and geolocation

To diagnose the battery, use the AccuBattery application or enter the command in the engineering menu:

#4636## β†’ Battery β†’ Show statistics

If the capacity is below 2500 mAh (originally 3350 mAh), it is time to change the battery. To replace the battery from Xiaomi Mi 6X (similar to the connector), but you will need to solder the thermistor.

⚠️ Warning: When replacing a battery, don't use cheap ones without a controller - this can cause the battery to bloat and damage the motherboard. MBJ405420 (Chinese version) or MDY11EM (global).

πŸ’‘

If the phone is too hot when gaming, reduce the maximum CPU frequency through the Kernel Adiutor app (root rights required).The optimal value for the Snapdragon 835 is 2.2 GHz instead of the standard 2.45 GHz.

5.Restore the "brick" through EDL-regime

If Xiaomi Mi6 It does not turn on, load in Fastboot and does not respond to buttons, most likely there was a critical firmware error (for example, an interrupted process through the Mi Flash Tool). EDL-Emergency Download Mode, which allows you to flash the device at a low level.

For EDL entry:

  1. Turn off the phone.
  2. Press Volume Up + Volume Down and connect the USB cable to the PC.
  3. Hold the buttons for 10-15 seconds until the PC identifies the device as Qualcomm HS-USB QDLoader 9008.

You will need to use.mbn firmware (for example, sagit_global_images_...) and Mi Flash Pro or QFil. EDL:

  • πŸ“₯ Download the firmware for EDL (Look for Xiaomi Firmware Updater).
  • πŸ–₯️ Install Qualcomm drivers (for example, via Zadig).
  • πŸ”§ In Mi Flash Pro, select the firmware and press Flash (Clean all mode").

⚠️ Attention: Firmware through EDL drop off IMEI And the serial number, and it'll take a backup to recover. NV-Partitions (made before the firmware is made through QPST) or service center.

πŸ’‘

EDL-The mode is the last chance to restore the brick, but it requires special drivers and firmware. If the PC doesn't see the device as a QDLoader 9008, check the cable (you need the original USB-Type-C) and port (better use it). USB 2.0).

6. Performance and camera optimization

Despite the powerful β€œiron”, the Xiaomi Mi6 on modern firmware can slow down due to lack of memory or unoptimized software.

To accelerate the system:

  • πŸš€ Install a custom core (such as FrancoKernel or Perseus) for better management CPU/GPU.
  • 🧹 Turn off unnecessary services MIUI through ADB: adb shell pm uninstall --user 0 com.miui.analytics adb shell pm uninstall --user 0 com.xiaomi.ab
  • πŸ”„ Use Greenify to hibernate background apps.

To improve the camera:

The stock camera app on the Mi6 is software-limited. To unlock the potential of the dual module (12 MP + 12 MP), install:

  • πŸ“Έ GCam (version 8.1 of BSG sagit-configurable).
  • πŸŽ₯ ANXCamera (for manual shutter speed settings and ISO).
  • πŸ” Footage (for recording video in the video) 4K@60fps, if the firmware supports).

⚠️ Note: When using GCam, turn off HDR+ in settings - this will reduce the heating of the processor and eliminate lags when shooting.

7. Frequent errors and their solutions

Owners of Xiaomi Mi6 often face typical problems that can be solved without contacting the service:

Mistake.Reason.Decision
NFC's not workingThere is no module firmware.Sweep NFC-fix TWRP
Wi-Fi is off.Flew. WCNSS_qcom_cfg.iniCopy a file from the backup to /vendor/firmware
The sensor is not working.The plume or firmware of the touch screen is damaged.Sweep touch_fw via Fastboot
Not defined SIM-mapIMEI crashed or damaged modemRestore IMEI through QPST maui META

If after firmware loss of sound in the speaker, check the file mixer_paths.xml into /vendor/etc β€” it can be downloaded from XDA replace TWRP.

FAQ: Answers to Frequent Questions

Can I unlock the bootloader on the Mi6 without waiting 72 hours?
Officially, no. But some users bypass the restriction through EDL-mode using paid services (for example, UnlockBoot).Risk: it is possible to block the Mi Account.
Which custom firmware is better to choose for the Mi6 in 2026?
Top.-3 Options: LineageOS 20 (Android 13) β€” stable but no feature MIUI. Pixel Experience 13 β€” Pure Android with Google chips. MIUI 14 Ported – if you need branded features Xiaomi.
How to recover IMEI after firmware through EDL?
It'll take a backup. NV-(Advanced before the sleeve) and the sleeve QPST maui META. If there is no backup, contact the service - self-recovery without files can lead to the loss of the network forever.
Why does the Mi6 not see the memory card?
The problem is typical for firmware based on Android 10+. Solution: Format the map in FAT32 (Not exFAT. TWRP run the Wipe β†’ Format Data β†’ If it doesn't work, patch it. sdcard_fix.zip.
Can I install Android 14 on the Xiaomi Mi6?
Technically yes, but with reservations: πŸ”΄ There are no official assemblies - only ported. πŸ”΄ Camera and NFC They may not work properly. πŸ”΄ Performance is lower than on Android 11-12.We recommend to stay on Android 13 (for example, LineageOS 20).