How to flash Xiaomi in EDL mode with a locked bootloader: the full guide 2026

Firmware Xiaomi smartphones through EDL (Emergency Download Mode) is an extreme measure, which is resorted to when the device is not turned on, stuck on the logo or requires recovery after a failed update. Especially difficult task becomes if the bootloader is locked β€” in this case, standard methods through fastboot or recovery will not work. However, even with a locked bootloader, there are ways to bring the phone back to life, but they require accuracy and understanding of processes.

In this article, we will look at all available firmware methods through EDL, including official tools from Xiaomi (for example, Mi Flash Tool) and alternative solutions for models with a locked bootloader. You will learn what risks exist, how to avoid a β€œbrick” (complete failure), and which models (Redmi Note 10 Pro, POCO F3, Mi 11, etc.) support one or another method. Important: the procedure can void the warranty and lead to loss of data, so only proceed if there are no other options.

If your Xiaomi doesn’t respond to buttons, doesn’t load, or shows an Anti-Rollback error, EDL may be the only way out. But remember, doing the wrong thing in this mode often leads to permanent damage to the device.

What is EDL mode and why it is needed with a blocked bootloader

EDL (or 9008 Mode) is an emergency boot mode that allows you to flash your smartphone at a low level, bypassing standard bootloader checks. Unlike fastboot, which requires unlocking, EDL works even with a locked bootloader, but with limitations.

The main cases when EDL is needed are:

  • πŸ”„ The device hung on the Mi logo or bootloop (cyclic reboot).
  • 🚫 bootloader is blocked and fastboot refuses to accept commands.
  • πŸ”§ Failed software update that led to a "brick" (for example, an Anti-Rollback error).
  • πŸ“± Resetting to factory settings does not help (for example, after rooting).

It is important to understand that firmware through EDL with a locked bootloader is possible only with official firmware from Xiaomi or special authorized files. Using custom firmware (for example, LineageOS) in this mode will lead to an error and possible loss of IMEI.

Technically, in EDL mode, the smartphone connects to the PC as a Qualcomm HS-USB QDLoader 9008 β€” a signal that the device is ready for firmware at the chipset level. But without the right files and tools, the process will not begin.

πŸ“Š What tool do you use for Xiaomi firmware?
Mi Flash Tool
Fastboot
TWRP
Other

Preparation for firmware: what will be required

Before you switch to EDL, make sure you have everything you need, and the absence of at least one component can make the procedure impossible.

List of required tools and files:

  • πŸ–₯️ Windows computer 7/10/11 (on macOS/Linux There may be problems with drivers).
  • πŸ”Œ Cable USB Type-C (preferably original, without damage).
  • πŸ“‚ Official firmware for your model in.tgz or.zip format (download only from the official Xiaomi website).
  • πŸ› οΈ Mi Flash Tool (last version).
  • πŸ”‘ Qualcomm drivers USB (If Windows does not install them automatically).
  • πŸ”§ For some models – the authorization file auth (about it below).

Pay special attention to the choice of firmware. It should correspond to:

  1. Device models (e.g. Redmi Note 12 Pro)+ 5G β‰  Redmi Note 12 Pro 5G).
  2. Region (Global, China, EEA) – Mixing regions can lead to network problems.
  3. Anti-Rollback versions (if you are running the old version on a new model).

β˜‘οΈ Preparation for firmware through EDL

Done: 0 / 5

⚠️

Note: If your device was purchased in China (CN version), Global/EEA may block 4G/LTE networks due to differences in modem settings, in which case additional editing of modem files is required.

How to Enter EDL Mode on Xiaomi with a Locked bootloader

Signing into EDL on locked bootloaders is different from the standard method (via fastboot oem edl, which won't work).

1. Hardware method (for most models)

  1. Turn off the phone (if it doesn’t respond, hold the power button for 10+ seconds).
  2. Press the Volume Up + Volume Down buttons and connect the USB cable to the PC.
  3. Hold the buttons for 10-15 seconds until Qualcomm HS-USB QDLoader 9008 appears in Device Manager.

2. Software method (if the phone is switched on)

  • πŸ“± Install the app EDL Mode Trigger (requires root or unlocked bootloader – not suitable for our case).
  • πŸ’» Use it. ADB-command (if debugging is included) USB): adb reboot edl But on a locked bootloader, this command usually doesn't work.

If none of the methods worked, it is possible that your model (POCO X3 Pro, Redmi K40, etc.) uses protection against unauthorized login to EDL. In this case, you will need an authorization file (about it in the next section).

Why can't I get into the EDL?
On some models (such as the Mi 11 Ultra or Redmi Note 11 Pro+ 5G), Xiaomi blocks EDL login without authorization, which is done to protect against illegal firmware, in which case you need an auth file from the manufacturer or service center.

Authorization file (auth) for firmware via EDL

Since 2020, Xiaomi has introduced additional protection for firmware via EDL – now many models require an authorization file (.auth).

Flash is not allowed in locked state

Where to get the auth file:

  • πŸ”§ Officially – through the Xiaomi service center (you need a check or a warranty card).
  • πŸ’» Informally, in forums (e.g, XDA Developers or 4PDA), It is risky (may contain malicious code).
  • πŸ› οΈ Through paid services (such as UnlockTool), but there is no guarantee that the file will fit your model.

How to use the auth file:

  1. Place the file in a firmware folder (for example, auth_edl.elf).
  2. In the Mi Flash Tool, select the Advanced option and specify the path to the file.
  3. Start firmware – if the file is correct, the process will go without errors.

⚠️

Note: Using unofficial auth files can result in IMEI blocking or activation of Anti-Rollback protection, after which the device becomes a brick without recovery.

Xiaomi modelDo you need an auth file?Notes
Redmi Note 10 ProYes (from 2021)Without auth, firmware is only available on older versions of MIUI.
POCO F3 / Redmi K40Yes.Auth is required for firmware newer than MIUI 12.5
Mi 11 / Mi 11 UltraYes.Without auth, only a downgrade is possible for a version below 12.5.1.
Redmi 9A / 9CNo.Stitched without auth, but requires the correct firmware version

Step-by-step: Firmware via Mi Flash Tool

When you're done (firmware, drivers, auth file), you can start the firmware. Follow the instructions carefully, and a mistake at any stage can lead to irreversible consequences.

Step 1: Installation of drivers

  • Connect your phone in EDL mode to your PC.
  • Open Device Manager and find a device with a yellow exclamation point (usually a Qualcomm HS-USB QDLoader 9008).
  • Update the driver manually by specifying the folder with drivers from the Mi Flash Tool archive.

Step 2: Set up the Mi Flash Tool

  1. Run the Mi Flash Tool on behalf of the administrator.
  2. Press Select and select the folder with unpacked firmware.
  3. At the bottom, select firmware mode: Clean all – complete cleaning (recommended when changing region); Clean all and lock – cleaning + lock bootloader (dangerous!); Save user data – data storage (does not always work).

auth

Step 3. Starting the firmware

  • Press Refresh – the program must detect the device in 9008 mode.
  • Click Flash and wait until the end (usually 5-15 minutes).
  • When finished, the phone will automatically restart.

⚠️

Note: If the process is stuck in the Waiting for device step, check: Correctness of installed drivers (it should be Qualcomm... not Other devices); Integrity of USB cable (try another port or cable); Disabling antivirus (it can block Mi Flash Tool).

πŸ’‘

If the firmware ended with an Anti-Rollback error, try downloading a newer version of MIUI. Mixing old and new firmware on modern Xiaomi models often leads to a blink.

Alternative methods: firmware without Mi Flash Tool

If the Mi Flash Tool doesn't work (for example, because there's no auth file), you can try alternative tools that are less reliable, but sometimes save in desperate situations.

1. QFil (Qualcomm Flash Image Loader)

  • πŸ”§ Suitable for Qualcomm chipset devices (most Xiaomi).
  • πŸ“‚ Requires firmware in.mbn format (you need to convert the official firmware).
  • ⚠️ High risk of errors – only use if other methods have not worked.

2. EDL Mode + Fastboot (for some models)

  1. Sign in to EDL, then use the command: fastboot oem edl (but this will only work if the bootloader is partially unlocked).
  2. Use fastboot flash to run the firmware in parts.

3. Service firmware (for advanced users)

  • πŸ”§ Some service centers share "raw" firmware (firehose), which can be flashed through QFil.
  • πŸ’» Requires command line knowledge and work with XML-file.

⚠️

Warning: Alternative methods often result in loss of IMEI or damage to the modem partition. If you are not sure about your actions, it is better to contact the service center.

πŸ’‘

Firmware via EDL with a locked bootloader is only possible with official Xiaomi firmware. Castom firmware (TWRP, LineageOS) in this mode will not install and will lead to a breeze.

Frequent mistakes and their solutions

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

Mistake.Reason.Decision
Flash is not allowed in locked stateThere's no auth file.Find an official auth or contact the service
Sahara communication failedProblems with drivers or cableReinstall drivers, try another USB port
Anti-Rollback check failThe firmware is older than the current versionDownload a newer firmware
Device not foundPhone not in EDL modeRepeat EDL login (click buttons + connect USB)

If after firmware the phone does not turn on or hovers on the logo:

  1. Try repeating the firmware with the Clean All option.
  2. Check if the firmware matches the model and region.
  3. If the screen is black, but the phone vibrates, the boot section may be damaged (reflashing is needed).

FAQ: Answers to Frequent Questions

Can I flash Xiaomi through EDL without an authorization file?
On models older than 2020 (e.g. Redmi Note 8 Pro, Mi 9) – yes. on new ones (e.g. POCO X4 Pro, Redmi Note 12) – no, you will need an auth file.
What if there is no network after the firmware (IMEI is missing)?
This means that the modem partition is corrupted. Only modem and nvdata files need to be re-swifted through the Mi Flash Tool (by manually selecting them in the settings), if it does not help, restore the IMEI through the engineering menu (#4636###).
Can I use Custom Recovery (TWRP) through EDL?
No. EDL is for official firmware only. TWRP requires an unlocked bootloader and fastboot mode to install.
How do I know if my Xiaomi bootloader is blocked?
Turn on the phone in fastboot mode (clamp Power + Volume down) and connect to the PC. Enter the command: fastboot oem device-info If the answer has a line Device unlocked: false, the bootloader is locked.
What is Anti-Rollback and why does it interfere with firmware?
This is Xiaomi's protection, which prohibits rollbacks to older versions of the firmware. If you try to flash an older version of MIUI, you get the Anti-Rollback check fail error and the bric, the solution is to flash only new versions or those that are allowed for your model.