How to find out IMEI on Xiaomi via MiFlash: all ways to lock phones

Find out. IMEI On a Xiaomi smartphone, it's usually easy to type *#06# or look at the settings. But what if the phone doesn't turn on, locks after firmware, or the screen doesn't respond to touch? In such cases, the MiFlash utility, Xiaomi’s official firmware and device recovery tool, comes to the rescue, not only to flash the device, but also to extract critical data, including critical data. IMEI, Even if the smartphone has become a brickΒ».

In this article, we will discuss all working methods for obtaining IMEI via MiFlash Pro and MiFlash Unlock, including methods for devices with corrupted firmware, locked bootloader, or missing display. You will learn which models support this method, how to avoid connection errors, and what to do if IMEI is not displayed. Particular attention will be paid to the hidden commands ADB, which allow you to extract IMEI without fully unlocking the bootloader – this is true for the new models of the Xiaomi 13/14 series and Redmi Note 12 with enhanced protection.

What is IMEI and why you need to know it through MiFlash

IMEI (International Mobile Equipment Identity) is a unique 15-digit code that is assigned to each mobile device, used by carriers to identify a phone on the network, and also helps:

  • πŸ” Restore access to the device after theft or loss (through locking on IMEI).
  • πŸ“‘ Check the legality of the smartphone β€” by IMEI you can see if it is listed on the blacklist of operators.
  • πŸ”§ Restore communication after a failed firmware when the phone stops catching the network.
  • πŸ“¦ Confirm the originality of the device when purchased from hand (IMEI must match the box and sticker under the battery).

But why MiFlash? Because standard IMEI (*#06#, settings, box) methods are not available in critical situations:

  • πŸ“΅ The phone does not turn on or hovers on the Mi logo.
  • πŸ”’ The screen is locked and the fingerprint/pattern lock is not recognized.
  • πŸ› οΈ The firmware crashed after a failed update (called a "soft brick").
  • πŸ–₯️ The display crashed and the image is not displayed.

In these cases, MiFlash allows you to connect to a smartphone at a low level (via Fastboot or EDL) and extract the IMEI directly from the device’s memory. This is especially important for Xiaomi models with a locked bootloader, where other methods (for example, through ADB) may not work.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
Xiaomi 11/12/13/14
POCO F3/F4/F5
Redmi 9/10/11
Other

Preparation for work: what will be needed to extract IMEI

Before you start, make sure you have everything you need, and missing at least one component can lead to errors or inability to connect.

ComponentWhat do you need?Where to find it.
MiFlash Pro or MiFlash UnlockOfficial utilities for working with firmware and unlocking the bootloaderOfficial Xiaomi website (Unlock section)
USB Type-C Cable (original)Poor quality cables can interrupt the connection in Fastboot/EDL modeComplete supply of a smartphone or a certified accessory
Qualcomm or MediaTek driversRequired for phone recognition in EDL (emergency boot) modeQualcomm or MediaTek
Mi Account with a tied phoneTo unlock the loader (if required)Register at account.xiaomi.com
Laptop/PC on Windows 7/10/11MiFlash does not support macOS/Linuxβ€”

⚠️ Warning: If your XiaomiReleased smartphone is after 2021 (e.g., Xiaomi 12/13/14, Redmi Note 11/12, POCO F4/F5), you will need an authorized account (with permission from Xiaomi) to operate in EDL mode.

Install MiFlash Pro/Unlock|

Download drivers for your processor (Qualcomm/MediaTek)|

Connect the original USB-cable|

Disable antivirus (can block drivers)|

Charge your phone at least 30 times%-->

Method 1: Getting IMEI via MiFlash in Fastboot mode

This method is suitable for devices that are turned on but do not boot the system (look stuck on the logo, bootloop) or have a locked screen.

Step-by-step:

  1. Turn off the smartphone (if it freezes – press the power button for 10-15 seconds).
  2. Press the combination Loudness down + Nutrition and hold until the image of the hare in the hat-eared (Fastboot mode) appears.
  3. Connect your phone to your PC via USB.
  4. Open MiFlash Unlock (if you want to unlock) or MiFlash Pro.
  5. In the command line (you can open via Win + R β†’ cmd) enter: fastboot getvar imei If the phone has two slots for SIM- cards, use: fastboot getvar imei1 fastboot getvar imei2
  6. The IMEI will appear in the response bar (e.g. imei: 123456789012345).

πŸ”Ή What to do if the team is not working?

  • πŸ”Œ Check the cable connection - try another port USB (preferably USB 2.0).
  • πŸ–₯️ Install Google USB Driver (you can download from Android Studio).
  • πŸ”’ If the phone is locked (bootloader), unlock it first through MiFlash Unlock.

πŸ’‘

If the fastboot getvar imei command returns an empty line, try an alternative command: fastboot oem device-info. In some models, IMEI is displayed in the Device Info section.

Method 2: Extract IMEI in EDL mode (for β€œbricks”)

EDL (Emergency Download Mode) is an emergency boot mode that allows you to connect to your phone even if the firmware is completely erased. It works at the processor level and is independent of the status of Android.

  • 🧱 Phones that do not respond to hard bricks.
  • πŸ“± Devices with damaged firmware (bootloop, no command errors).
  • πŸ”§ Devices after a failed downgrade (downgrade of MIUI).

How to log into EDL:

  1. Turn off the phone (if it doesn’t respond, remove and insert the battery if it’s removable).
  2. Press the button combination: For Qualcomm: Volume up + Volume down + Power (hold 10-15 seconds). For MediaTek: plug the phone off to a PC with the Volume down button pressed.

Device Manager

Qualcomm HS-USB QDLoader 9008

MediaTek Preloader

Extract IMEI through MiFlash Pro:

  1. Open MiFlash Pro and select EDL mode.
  2. Press Select and specify the path to the firmware folder (you can use any compatible version of MIUI for your model).
  3. In the program logs, find the lines with IMEI1 and IMEI2 (usually they appear when reading the device information).
  4. If IMEI is not displayed, use the QFil utility (for Qualcomm) or the SP Flash Tool (for MediaTek) to read the nvram section where the IMEI is stored.

⚠️ Warning: On new Xiaomi models (e.g., Xiaomi 13 Pro, Redmi Note 12 Pro+), logging in to EDL without authorization may result in a Mi Account being blocked. If the phone is linked to an account, use the official MiFlash Unlock with permission to unlock.

What is an authorized Mi Account?
An authorized account is a Xiaomi account that the company has granted permission to unlock the bootloader and work in EDL mode. Such accounts are issued to service centers or developers after verification. Without authorization, new Xiaomi models (2022+ years) will not be identified in MiFlash in EDL mode, even if the drivers are installed correctly.

Method 3: Alternative methods (ADB, engineering menu)

If MiFlash doesn't work or the phone is partially operational, other ways can be tried, which are less reliable, but sometimes save in situations where Fastboot/EDL is not available.

Method 1: Through ADB (if debugging is enabled)

If USB debugging was previously enabled on the phone, you can extract the IMEI via ADB:

adb shell service call iphonesubinfo 3


adb shell getprop gsm.baseband.imei

If your phone supports two slots for SIM- cards, use:

adb shell service call iphonesubinfo 1  # IMEI 1


adb shell service call iphonesubinfo 2  # IMEI 2

Method 2: Engineering Menu (for MediaTek)

On smartphones with a MediaTek processor (for example, Redmi 9/10, POCO M3/M4) you can try to enter the engineering menu:

  1. Open the Phone app.
  2. Dial the combination: ##36446337##.
  3. Go to Connectivity β†’ CDS Information β†’ Radio Information.
  4. Phone 1 or Phone 2 will be listed as IMEI.

⚠️ Warning: Not all Xiaomi models support the engineering menu. On some devices (e.g., Xiaomi 11T Pro), this method can result in resetting network settings.

πŸ’‘

If the phone is turned on but not catching the network, first check the IMEI via *#06#. If it shows as "Null" or "0", this means that the IMEI is erased from memory and requires recovery through MiFlash or a service center.

Compatibility table: which Xiaomi models support IMEI extraction via MiFlash

Not all Xiaomi smartphones work equally well with MiFlash when extracting IMEI. Below is a compatibility table for popular models. If your device isn't on the list, focus on the processor:

  • πŸ”Ή Qualcomm Snapdragon β€” supports Fastboot and EDL.
  • πŸ”Ή MediaTek Helio/Dimensity β€” Fastboot only (EDL mode requires special drivers).
ModelProcessorFastbootEDLNotes
Xiaomi 13/13 ProSnapdragon 8 Gen 2βœ…βš οΈAn authorized account is required for EDL
Redmi Note 12 Pro+MediaTek Dimensity 1080βœ…βŒEDL is not supported without special drivers
POCO F4Snapdragon 870βœ…βœ…β€”
Redmi 10MediaTek Helio G88βœ…βŒUse the engineering menu
Xiaomi Mi 11Snapdragon 888βœ…βœ…In EDL, unlocking may be required

πŸ”Ή What to do if your model is not in the table?

  • Check your phone’s processor through GSMArena.
  • For Qualcomm, use Fastboot or EDL (if the bootloader is unlocked).
  • For MediaTek, try the ADB or Engineering Menu.

Frequent mistakes and their solutions

When working with MiFlash, users often encounter errors that prevent them from extracting IMEIs. Let’s consider the most common ones and how to fix them.

Error 1: Phone is not detected in Fastboot/EDL

Causes and solutions:

  • πŸ”Œ Cable/port problem: Use the original cable and port USB 2.0 (blue ports USB 3.0 may not work).
  • πŸ–₯️ No Drivers: Install Mi Phone Driver or Qualcomm Driver manually through Device Manager.
  • πŸ”’ bootloader locked: Unlock it through MiFlash Unlock (requires a Mi Account binding and wait 7-15 days).

Error 2: The command fastboot getvar imei returns the empty value

Possible causes:

  • πŸ“΅ IMEI erased: This often happens after a failed firmware. Restore it via MiFlash (needs nvram backup).
  • πŸ› οΈ Modem section is damaged: Flash your phone with official firmware via MiFlash (select Clean All option).
  • πŸ”§ MiFlash incompatible: Use MiFlash Pro 2023 or later.

Error 3: In EDL mode, the phone is identified as Unknown Device

Decision:

  • Install the Qualcomm HS-USB QDLoader 9008 driver manually: Download the driver from XDA Developers. Open Device Manager β†’ find Unknown Device. Update the driver by specifying the path to the downloaded file.

MediaTek

MTK Driver Auto Installer

⚠️ Warning: If the phone stops turning on completely after connecting to EDL (black screen, no button response), it may mean that the firmware has been damaged. In this case, you will need to completely flash through MiFlash with the Clean All and Lock option option (but this will erase all data, including IMEI if it is not backed up!).

FAQ: Answers to Frequent Questions

Can I find out IMEI through MiFlash if my phone is locked with a pattern lock?
Yes, if the phone is turned on and detected in Fastboot mode. Use the fastboot getvar imei command - it does not require unlocking the screen. If the phone is turned off or does not respond, connect in EDL mode (but it may require unlocking the bootloader).
Why does MiFlash not see my Xiaomi 12 Pro in EDL mode?
You probably don’t have an authorized Mi Account to work with new models. Xiaomi has tightened security policies and requires special permission for 2022+ devices. Contact Xiaomi Service Center or use alternative methods (e.g. ADB if the phone turns on).
Can I restore the IMEI if it is erased?
Yes, but it requires a backup of the nvram partition (where it is stored). IMEI). If there is no backup, restore the original IMEI impossible - you will have to contact the service center with proof of purchase (check or box, where it is indicated) IMEI). Self-reform IMEI illegally in most countries!
Which Xiaomi models do not support IMEI extraction via MiFlash?
Problems most often occur with models on MediaTek (for example, Redmi 9/10, POCO M3), as they have limited access to EDL. Also new flagships (Xiaomi 13 Ultra, 14 Pro) require authorization to work in EDL. In such cases, use Fastboot or engineering menu.
What if after IMEI retrieval, the phone stopped catching the network?
This means that IMEI has been damaged or erased. Try: Flash the phone with official firmware through MiFlash (Clean All option); Restore IMEI from the nvram backup (if any); Contact the service center with the phone's documents. ⚠️ Don't use the IMEI generation software β€” this is illegal and can lead to the phone being locked by the operator.