Unlocking Xiaomi via Main Menu: Secret ways to bypass the lock 2026

Forgotten passwords, Mi Account blocked or accidental security activation are problems that one in five Xiaomi smartphone owners face. Official unlock methods often require confirmation via account or reset to factory settings with loss of data. But there is a hidden Main Menu (engineering menu) that allows you to bypass locking at the firmware level. This method works even on new models from 2023-2026, including the Redmi Note 12 series, POCO X5 and Xiaomi 13.

In this article, we will analyze all working methods of unlocking through Main Menu: from simple password reset to complex firmware manipulations in modes. FASTBOOT and EDL. You will learn how to log into a hidden menu on a locked phone, what commands to use to bypass Mi Account, and how to avoid a brick when you fail. EDL-The regime requires authorization in the Xiaomi service – without it, the phone can forever turn into a β€œbrick” after 3 unsuccessful attempts.

Before you start, check:

  • πŸ”‹ Battery level (minimum 30%, otherwise the risk of shutdown during the process)
  • πŸ”Œ Availability of original USB-cables (cheap cables often don't transmit data to the cables) FASTBOOT)
  • πŸ’» Windows computer 10/11 (c ADB and Mi Flash Tool)

What is Main Menu on Xiaomi and how does it help unlock your phone?

Main Menu (or Engineering Mode) is a hidden service menu that manufacturers (including Xiaomi) use to diagnose and test devices. Unlike the standard Recovery Mode, it allows you to interact with firmware at a low level, including:

  • πŸ”“ Screen lock circumvention (PIN, pattern lock, password)
  • πŸ“± Resetting the Mi Account without confirmation SMS/email
  • πŸ”§ Change of change IMEI Serial number (on some models)
  • πŸ› οΈ Restore the sensor or camera after a failed update

On new Xiaomi smartphones (released after 2021), access to Main Menu is limited, and the manufacturer closed most of the holes due to massive cases of fraud to unlock stolen phones.

  1. Hardware Test Mode (button combinations when booting)
  2. FASTBOOT using ADB and Mi Flash Tool
  3. EDL-mode (emergency firmware, requires authorization)

⚠️ Attention: Methods using EDL This can lead to permanent locking of the bootloader (hard-brick) if you do not have an authorized Xiaomi account for service centers. On Redmi Note 11 and later, this means that it is impossible to restore even in the service.

πŸ“Š What Unlocking Method Have You Tried Before?
Reset via Recovery
Bypassing ADB
Service centre
I've tried nothing.

Method 1: Unlocking with Hardware Test Mode (without PC)

This is the simplest method that works on Xiaomi until 2020 (Redmi Note 8/9, Mi 9, POCO F1, etc.) It does not require a connection to a computer and allows you to reset your password through a hidden test menu.

Instructions:

  1. Turn off the phone (press the power button for 10 seconds).
  2. Press the combination: Power button + Volume up + Volume down Hold 10-15 seconds until the Xiaomi logo with the words Test Mode appears.
  3. Select the Manual Test item from the menu β†’ Version Info.
  4. Click 5 times in a row on the Baseband Version line and the hidden submenu will open.
  5. Select Factory Reset and confirm the reset.

⚠️ Attention: On models with MIUI 13+ This method may not work, because the manufacturer has removed the ability to reset through Test Mode. FASTBOOT or EDL.

Charge your phone to 50% |

Prepare the paper clip for extraction SIM-cards (required for resetting)|

Check the phone model (the method does not work on new firmware)|

Backup important data (if the phone is sometimes unlocked)

-->

Method 2: Unlock via FASTBOOT and ADB (for advanced)

If the Hardware Test Mode is not available, the next step is to use FASTBOOT and the ADB (Android Debug Bridge) utility.This method requires a computer and basic command-line knowledge, but works on most models, including the Redmi Note 10/11, POCO X3/X4 and Xiaomi 12.

What you need:

  • πŸ’» Computer with Windows/Linux
  • πŸ”Œ Cable USB (preferably original)
  • πŸ“¦ Installed drivers ADB and FASTBOOT (download from Android)
  • πŸ“± Phone with unlocked bootloader (if not - see the instructions below)

Step-by-step:

  1. Turn off your phone and put it in FASTBOOT mode: Power button + Volume down Hold until the Fastboot logo appears (robot with open stomach).
  2. Connect your phone to your computer and open the Command Prompt (CMD) in the ADB folder.
  3. Check the connection command: fastboot devices If the phone is determined (the serial number appears), continue.
  4. Run the command to reset the lock: fastboot erase userdata fastboot erase frp This will delete user data and reset Mi Account.
  5. Reboot the phone: fastboot reboot

⚠️ Note: On models with a locked bootloader (Bootloader Locked), fastboot erase commands will not work. First, you need to unlock the bootloader through the official Mi Unlock Tool (see next section).

What if the fastboot erase team doesn’t work?
If you see an FAILED error after you enter the command (remote: 'Flashing is not allowed in Lock State'), this means that the bootloader is locked. You will need: 1. Get permission to unlock through the Mi Unlock Tool (you need a Mi Account tied to the phone). 2. Wait 7-30 days (the time depends on the model). 3. Unlock the bootloader and repeat the procedure.

Method 3: Unlock the bootloader via Mi Unlock Tool (official method)

If previous methods didn’t work, you probably have a Bootloader locked, Xiaomi locks it on all new devices to protect against unauthorized access, and to unlock your phone through FASTBOOT or EDL, you first need to officially unlock the bootloader.

Requirements:

  • πŸ“± Phone with Mi Account tied (must be active on the device before locking)
  • πŸ’» Windows computer 7/10/11
  • πŸ”— Installed Mi Unlock Tool (download from official website)
  • ⏳ Waiting time: 7 to 30 days (depending on the model)

Instructions:

  1. Turn on the phone Developer Options: Settings β†’ About Phone β†’ MIUI version (click 7 times)
  2. Activate OEM Unlock and USB Debugging in the Developer Menu.
  3. Link your Mi Account to your phone (if not done before).
  4. Turn off the phone and transfer to FASTBOOT (Power + Volume Down).
  5. Connect to your computer, launch the Mi Unlock Tool and log in to your account.
  6. If you see a message saying "Couldn't unlock, try again after XX days," wait until the deadline is set.

⚠️ Attention: On Xiaomi models 12/13 Redmi Note 11/12 waiting period may be 30 If your phone is locked in Mi Account and you don't remember your account information, this method won't help. EDL authorization.

πŸ’‘

If the Mi Unlock Tool gives an error "Current account is different from the account info on the device", then the phone was reset without retraction Mi Account, in which case only the service center or authorized EDL will help (see next section).

Method 4: Unlocking through EDL-The mode (for experienced users)

EDL (Emergency Download Mode is a firmware emergency mode that allows you to restore a phone even with a damaged system, it works at the level of the Qualcomm processor and requires special equipment (EDL-cable) or authorization in the service Xiaomi.

When you need an EDL:

  • πŸ”’ Phone blocked by Mi Account and account details lost
  • πŸ“΅ The screen or sensor is not working (you need to flash the blind oneΒ»)
  • 🚫 bootloader is blocked and Mi Unlock Tool does not help
  • 🧱 Phone turned into a β€œbrick” after a failed update

What you need:

ComponentDescriptionWhere to find it.
EDL-cableSpecial cable for forced transfer to EDL or closure of contacts on the boardAliExpress, service centers
Mi Flash ToolOfficial utility for firmware in EDL-modeOfficial website
Authorization of XiaomiLogin and password from the service account (for new models)Buying from trusted sellers
Firmware.tgz or.mbnFirmware file for your model (version must match)Xiaomi Firmware Updater

Step-by-step instruction (simplified):

  1. Download and install the Mi Flash Tool + Qualcomm drivers.
  2. Transfer the phone to EDL: Method 1: Use EDL-cable (plug to phone switched off) Method 2: Close Test Point on motherboard (requires disassembly).

Mi Flash Tool

Refresh

COM-port

Flash

After firmware, the phone will restart in factory condition.

⚠️ Note: On Xiaomi models 2022-2026 (Redmi Note 12, Xiaomi 13 and newer) firmware through EDL If you don't log in, you can lock the bootloader permanently, and you can only restore it in an authorized service center.

πŸ’‘

EDL-Mode is the most powerful, but also the most dangerous method. Without Xiaomi authorization, using it on new models will lead to irreversible failure.

Frequent Mistakes and How to Avoid Them

Even experienced users face problems unlocking Xiaomi, and here are the most common mistakes and ways to solve them:

Mistake.Reason.Decision
FAILED (remote: 'Flashing is not allowed')bootloader lockedUnlock the device through the Mi Unlock Tool (see section above)
Device not found in ADBDrivers not installed or cable is faultyInstall Google USB Driver Drivers and Try a Different Cable
Phone is not included in the FASTBOOTThe power button or firmware is damagedTry charging your phone for 30 minutes or use Test Point for EDL
Mi Account Locked After ResettingMi Account was not untied before resetUse EDL with authorization or contact the service
The phone has become a brick.Incorrect firmware or interrupted processFly through EDL with the correct version of the software

Tips for successful unblocking:

  • πŸ”‹ Always check the battery power before manipulation (minimum 50%).
  • πŸ“‹ Backup your data if your phone is unlocked sometimes.
  • πŸ” Check the phone model and firmware version before downloading files.
  • πŸ›‘οΈ Do not use unofficial firmware – it may contain viruses.

Can I unlock Xiaomi without losing data?
On the newer models (2021 and later), there is no way to unlock a phone without resetting data if the screen or Mi Account is locked. The only option is if the phone is sometimes unlocked (for example, through a fingerprint), you can copy the data through the ADB or Mi PC Suite before resetting.
What to do if you forget your Mi Account information?
If the phone is linked to Mi Account and you do not remember the username / password: Try to restore access through the official website (you need access to email or phone). If recovery is not possible, only the firmware through the official website remains. EDL On models up to 2020, sometimes resetting through Test Mode (mode 1) helps). ⚠️ Warning: Services offering "5 Minutes Mi Account Deletion" are often fraudulent.They can lock your phone permanently.
Does the ADB unlock work on MIUI 14?
On MIUI 14 (and newer), ADB password reset commands don't work because of the enhanced security. The only working methods are: Reset via FASTBOOT (if the bootloader is unlocked); Firmware via EDL (requires authorization); Official reset via Find My Device (if the feature is enabled).
How much does it cost to unlock in the service center?
The cost depends on the type and type of lock: πŸ”“ Screen unlock (without Mi Account): 1000–2500 β‚½. πŸ“± Reset Mi Account (authorized): 2500–5000 β‚½. 🧱 Recovery from the Brick: 3000–8000 β‚½ (Xiaomi can request proof of ownership (checks, boxes) in official service centers, and informal services can be used for any phone, but the risk of fraud is higher.
Can I unlock Xiaomi without a computer?
Yes, but only on older models (until 2020) through Hardware Test Mode (method 1). Newer smartphones (Redmi Note 11, Xiaomi 12 and later) need a computer to work with FASTBOOT or EDL. Except if you have Find My Device enabled and the phone is connected to the Internet, in which case you can reset the password remotely via the Xiaomi web interface.