Install MTZ on Xiaomi: a complete guide with unlocking the bootloader and solving errors

Installation MTZ-Firmware on Xiaomi smartphones is a process that requires attention and preparation. This file format (.mtz) is used for full firmware via MiFlash or Fastboot, and is often the only way to recover a device after major failures or failed experiments with custom software. However, the wrong actions can turn a phone into a brick, so it’s important to understand every step from unlocking the bootloader to choosing the right firmware version.

In this article, we will discuss the current methods of installing MTZ on Xiaomi in 2026, including nuances for new models with HyperOS and older devices on MIUI 12-15. You will learn how to avoid anti-rollback errors, where to download official files, and what to do if the process is frozen in the flashing stage.

What is it? MTZ-Firmware and why you need it

A file with the.mtz extension is a full-firmware archive for Xiaomi, Redmi and POCO devices. Unlike.zip firmware for recovery, MTZ is installed via Fastboot and overwrites all partitions of the device’s memory, including boot, system and. This makes it an indispensable tool for:

  • πŸ”„ Restore a β€œbrick” phone (for example, after a failed upgrade or reset).
  • πŸ”’ Bypassing lockdowns MIUI, If the device is not loaded even in recovery.
  • πŸ“‰ Downgrade firmware version (with anti-rollback limitations).
  • πŸ› οΈ Removing system errors that cannot be solved by OTA-update.

It is important to understand that the installation MTZ It erases all data on the device, including internal memory (userdata), and the process requires an unlocked bootloader - without this, MiFlash simply will not start firmware. If you have never worked with Fastboot, we recommend that you first familiarize yourself with the basic commands or use alternative methods (for example, for example, the first time you have worked with Fastboot, EDL-critical-case regime).

⚠️ Attention: Firmware through MTZ On devices with HyperOS (such as Xiaomi 14 or Redmi Note 13) you may need additional drivers and versions of MiFlash.

πŸ“Š What are you setting up for? MTZ-firmware?
Recovery after failure
Update/downgrade MIUI
Installation of custom software
Another option

Preparation of the device: unlocking the loader

The first and mandatory step is to unlock the bootloader. Without it, MiFlash won't be able to write the firmware. The process takes 3 to 7 days due to Xiaomi's policy, so start with it in advance.

  • πŸ“± Smartphone Xiaomi/Redmi/POCO battery-charged >50%.
  • πŸ’» Windows computer 10/11 (For the Mi Unlock Tool).
  • πŸ”Œ Original. USB-cable (preferably from the set).
  • πŸ”‘ Mi Account Linked to the Device.

Instructions for unlocking:

  1. Activate Developer Options: Go to Settings β†’ About Phone β†’ MIUI version and tap 7 times on this item.
  2. Enable USB Debugging and OEM Unlocking in the Developer Menu.
  3. Connect your phone to your PC, launch the Mi Unlock Tool and log in to your Mi Account.
  4. Follow the instructions of the program. After sending a request, wait for the confirmation SMS (usually 3-7 days).

If the unlocking does not pass, check:

  • πŸ”Ή Mi Accounts on your phone and Mi Unlock Tool.
  • πŸ”Ή Are antivirus/firewalls disabled on PCs (they can block the connection).
  • πŸ”Ή Do you use the latest version of the Mi Unlock Tool (you can download it on the official website).

πŸ’‘

If unlocking is stuck at the 50% stage, try using another one. USB-port (preferably) USB 2.0) or disable all others USB-computer-operated.

Choosing the right one MTZ-firmware for your model

Mistake in firmware selection is the most common reason for β€œbrickingΒ». MTZ-files are strictly linked to model code (e.g. Redmi Note 10 Pro has sweet code), region (Global, China, EEA) version MIUI. To avoid problems:

  1. Find out the code for your model: adb shell getprop ro.product.device Or look at Settings β†’ About Phone β†’ Model (e.g. M2101K7AG for Redmi Note 10 Pro Global).

China

Global

Pay special attention to the anti-rollback version. If you try to install firmware older than the current one, the device will lock.

fastboot getvar anti

Compare it to the version in the name. MTZ-file (e.g, V13.0.4.0.SKFMIXM_20221107.0000.00_12.0_global, where 12.0 β€” It's an anti-rollback).

ModelDevice codeSupported regionsAnti-Rollback
Xiaomi 13 PronuwaGlobal, China, EEA4.0
Redmi Note 12 Pro+rubyGlobal, India, China3.0
POCO F5marbleGlobal, EEA2.0
Xiaomi Pad 6pipiChina, Global1.0

⚠️ Note: Firmware for HyperOS (for example, for Xiaomi) 14) They can have a different packaging format, if there's no file in the archive. flash_all.bat, Use MiFlash 2023+ manually.

MTZ step-by-step installation via MiFlash

When the bootloader is unlocked and the firmware is downloaded, you'll need to start installing it.

  • πŸ–₯️ Computer with installed Xiaomi drivers (you can download through MiFlash).
  • πŸ“‚ Unpacked MTZ-archive (must be files) images/ and flash_all.bat).
  • πŸ”Œ Cable USB (better-than-original).

Instructions:

  1. Turn off the phone and press Volume Down + Power to enter the Fastboot (a screen with a rabbit and a Fastboot inscription).
  2. Connect the device to a PC. Check the connection with the command: fastboot devices If the device does not appear, install the drivers manually through Device Manager.
  3. Launch MiFlash.exe, click Select and select the folder with the unpacked firmware.
  4. At the bottom, select Clean All or Clean All and Lock (if you want to lock the bootloader after you have firmware).
  5. Press Flash and wait until it is completed (usually 5-10 minutes).

β˜‘οΈ Pre-firmware check

Done: 0 / 4

If the process is suspended during the waiting for the device:

  • πŸ”Ή Reconnect. USB-cable (try another port).
  • πŸ”Ή Run MiFlash on behalf of the administrator.
  • πŸ”Ή Check if the antivirus is blocking fastboot access.
What to do if MiFlash shows a β€œflash not done” error
The error may be due to a mismatch between the firmware and anti-rollback versions, corrupted MTZ files, or driver problems. Try: 1. Upload the firmware (maybe the archive hasn't been downloaded completely). 2. Use a different version of MiFlash (e.g., 2020 for older devices). 3. Swipe manually through fastboot commands (see next section).

Manual firmware via Fastboot (alternative method)

If MiFlash doesn't work, you can manually flash MTZ through fastboot, which requires command knowledge, but gives you more control over the process, and you'll need an archive with firmware and a computer with ADB/Fastboot installed.

Steps:

  1. Unpack. MTZ-file-to-folder (e.g, C:\mtz\).
  2. Open the command prompt in this folder (Shift + PCM β†’ Open the PowerShell window here).
  3. Connect your phone to Fastboot and check the connection: fastboot devices
  4. Run the firmware command (example for Redmi Note) 10 Pro): fastboot flash boot boot.img fastboot flash dtbo dtbo.img fastboot flash recovery recovery.img fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot flash product product.img fastboot flash odm odm.img fastboot erase userdata fastboot reboot

For devices with HyperOS, an additional command for super.img may be required:

fastboot flash super super.img

⚠️ Note: If you miss the command --disable-verity For vbmeta, the device may not boot due to an integrity check error.

πŸ’‘

Hand-held firmware via fastboot allows you to bypass MiFlash errors, but requires accurate adherence to the sequence of commands. An error in the order of the partition firmware (for example, system to vendor) can lead to a failure.

Solving Common Errors When Installing MTZ

Even with the correct following of the instructions, errors can occur, and here are the most common ways to solve them:

Mistake.Reason.Decision
anti-rollback check failTry to install firmware with a lower anti-rollback.Use firmware with an equal or higher version of anti.
device not foundDrivers are not installed or the cable is faulty.Install drivers manually through Device Manager or try another cable.
Flash not done in MiFlashDamaged firmware files or MiFlash version incompatibility.Upload the firmware or use manual firmware through fastboot.
The device hung on the logo after firmwareIncorrect firmware version or miss the vbmeta section.Repeat firmware with the team --disable-verity for vbmeta.

If the phone does not turn on after the firmware:

  1. Try going to Fastboot (Loudness Down + Power) and repeat the firmware.
  2. If the device does not respond, use EDL-Mode (requires an authorized Xiaomi account and a special cable).
  3. Newer models (such as the Xiaomi 13T) may require firmware via the XiaomiTool V2.

Firmware through EDL: the extreme case for "bricks"

If the device does not respond to buttons and is not detected in Fastboot, it remains. EDL-This is an Emergency Download Mode:

  • πŸ”§ Authorized Xiaomi Account (for new devices).
  • πŸ”Œ Specialist EDL-cable-closure.
  • πŸ’» MiFlashPro or QFil.

Instructions (for experienced users):

  1. Connect your phone to your PC in EDL (via cable or test points).
  2. Device Manager should appear Qualcomm HS-USB QDLoader 9008.
  3. Start MiFlashPro, select firmware and press Flash.

⚠️ Attention: Firmware through EDL On HyperOS devices, you may need to have auth files (signatures from Xiaomi), without which you will end up with a Sahara fail error.

πŸ’‘

If you don't. EDL-cable, you can temporarily close the test points on the board (for example, for the Redmi Note 9 Pro, these are contacts near the battery connector). 4PDA for your model.

FAQ: Frequent questions about installing MTZ on Xiaomi

Can I install MTZ without unlocking the bootloader?
No, unlocking the bootloader is mandatory. Without it, MiFlash won't be able to write the firmware to the device's memory. The only exception is the firmware via EDL with an authorized account, but that requires special hardware.
How do I know which firmware is suitable for my model?
Use the device code (e.g., suryain for POCO X3 NFC) and check for the region (Global/China/EEA) and anti-rollback versions. Download firmware only from official sources: MIUI Downloads or Xiaomi Firmware Updater.
What to do if the phone does not turn on after the firmware?
Try flashing the device over Fastboot first. If it doesn't help: Check if you missed the fastboot flash vbmeta command --disable-verity. Make sure the firmware is suitable for your model and region. EDL-Regime (authorization required).
Can I revert to an older version of MIUI via MTZ?
Yes, but only if the anti-rollback version in the old firmware is as low as the current one. For example, if you have anti 3.0, you can install the firmware with anti 3.0 or higher, but not lower. Check this before you run the firmware!
Do I need to block the loader after the firmware?
Not necessarily. Fastboot oem lock increases security, but makes it impossible to install custom firmware. If you plan to experiment further (like LineageOS), leave the bootloader unlocked.