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).
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:
- Official MIUI (Stable/Development) β downloaded from Xiaomiβs website.
- Custom (AOSP) β for example, LineageOS or ArrowOS (requires TWRP).
- 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.
- Turn off the phone and press Volume Down + Power to log in to Fastboot.
- Connect the Mi6 to your PC and start the Mi Flash Tool (select the firmware folder).
- 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).
- 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:
- Download the twrp-3.7.0-sagit.img file and place it in the ADB folder.
- 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
- 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?
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 cause | Decision |
|---|---|---|
| Quick discharge. | Battery wear (capacity < 70%) | Replacement of the battery (original - MDY11EM) |
| Overheating during charging | Faulty controller or cable | Use the original power supply (5V/2A) |
| Self-involved reboots | Battery connector damaged | Cleaning contacts with alcohol or replacing the plume |
| High consumption on standby | MIUI background processes | Disable autosynchronization and geolocation |
To diagnose the battery, use the AccuBattery application or enter the command in the engineering menu:
#4636## β Battery β Show statisticsIf 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:
- Turn off the phone.
- Press Volume Up + Volume Down and connect the USB cable to the PC.
- 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 working | There is no module firmware. | Sweep NFC-fix TWRP |
| Wi-Fi is off. | Flew. WCNSS_qcom_cfg.ini | Copy 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-map | IMEI crashed or damaged modem | Restore 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.