How to disable lock code on Xiaomi: the full guide 2026

Forgot the password from Xiaomi and can’t unlock your phone? This is a familiar situation β€” according to statistics, about 30% of users have experienced a locked device problem at least once. Fortunately, the manufacturer has provided several formal and informal ways to reset the lock code, and not all of them require a complete data cleanup.

In this article, we will discuss 5 working methods of unlocking Xiaomi (including the models of Redmi, POCO and Black Shark), relevant for devices on MIUI 12-14 and HyperOS. From a simple reset via Mi Account to complex manipulations with Fastboot - you will find a solution for even the most neglected cases. Important: some methods require preliminary preparation (for example, linking an account), so read carefully!

Before you start, check:

  • πŸ”‹ Battery level (minimum 30% – when discharged during the procedure, the device can turn into a β€œbrick")
  • πŸ“‘ Stable Internet connection (for authorization methods)
  • πŸ”§ Availability of original USB-cables (cheap cables often don't transfer data to Fastboot)

1 Unlocking through Mi Account (official method)

The most secure method that works on 90% of Xiaomi devices is provided that:

  • πŸ“± The phone was linked to the Mi Account before the lockdown
  • 🌐 Internet access (Wi-Fi or mobile data)
  • πŸ”‘ Remember the login/password from the account

Instructions:

  1. On the lock screen, click Forgot Password? (or Forgot Password?)
  2. Choose Restore with Mi Account
  3. Enter the linked phone number or email
  4. Confirm your identity through SMS/email-code
  5. Create a new lock password

Make sure the phone is connected to the network|Check the performance of the Mi Account on another device|Prepare a backup code (if any)|Have access to email/SMS confirm-->

Limitations of the method:

  • ❌ Does not work on devices with MIUI for Russia (due to localization features)
  • ❌ Requires mandatory account binding before
  • ❌ On some models (Redmi Note 10 Pro, POCO X3 Pro) may request additional confirmation via Google Account
What to do if your Mi Account is not tied?
If you have never registered a Mi Account on this device, an official reset via your account will not be available, in which case you will move to 2-4 methods (Hard Reset or Fastboot).

2.Reset via Recovery Mode (Hard Reset)

A Radical method that erases all data from the device but is guaranteed to remove any lock.Suitable for all Xiaomi models, including the Redmi 9A, POCO M4 Pro and Mi 11 Lite.

Procedure:

  1. Turn off the phone with a long press of Power + Volume Up
  2. Press Power + Volume Up 10-15 seconds before the Mi logo appears
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data
  4. Confirm the action by choosing Confirm
  5. After restarting, set your phone as new.
Xiaomi modelCombination for RecoveryFeatures
Redmi Note 8/9/10Power + Volume UpMenu in English/Chinese
POCO F3/X3Power + Volume UpRequires confirmation via Volume Down
Mi 11/12 SeriesPower + Volume Up (hold 20 seconds)Sensitive to retention time
Black Shark 4/5Power + Volume DownAnother Recovery menu

⚠️ Note: On HyperOS devices (2026), the standard Hard Reset may not work due to enhanced protection).

3 Unlocking through Find Device (remote)

A little-known method that works even if the phone is not tied to the Mi Account, but:

  • πŸ“ Find Device must be activated in the settings
  • πŸ“Ά The device must have access to the Internet
  • πŸ”‹ Battery charged at least 15 times%

Instructions:

  1. Go to i.mi.com from another device
  2. Sign in to your Mi Account
  3. Select a locked device in the list
  4. Press Unlock. β†’ Erase Device
  5. Confirm the action (the data will be deleted)

Reset via Mi Account|Hard Reset in Recovery|Find Device|Fastboot/EDL|Never blocked-->

Advantages of the method:

  • βœ… Remotely working (no need to physically touch your phone)
  • βœ… Suitable for devices with damaged screen
  • βœ… Official method from Xiaomi (without the risk of β€œbricking")

⚠️ Note: After remote unlocking on some models (Redmi) K40, Mi 10T) Additional authorization may be required through Google FRP. Prepare data from your linked Google account in advance.

4. Unlock via Fastboot (for advanced)

The method for users willing to work with ADB and Fastboot allows you to bypass the lock without losing data on some models, but requires:

  • πŸ–₯️ Computers with installed ADB Tools and Xiaomi drivers
  • πŸ”Œ Original. USB-cable (better from the set)
  • πŸ› οΈ Knowledge of working with the command line

Step-by-step:

1. Install ADB Tools from https://developer.android.com/studio/releases/platform-tools


2. Connect the phone off to your PC by clamping Power + Volume Down (Fastboot mode)




3. In the command line, do:




fastboot devices (serial number must be displayed)




fastboot oem unlock




4.On the phone, confirm the unlock (if you receive a request)




5.Reboot the device: fastboot reboot

fastboot flashing unlock

fastboot flashing unlock_critical

POCO F4 GT

Mi Unlock Tool

List of models with support for Fastboot-unlock:

  • βœ… Redmi Note 7/8/9/10/11 (except for the Pro versions)
  • βœ… POCO X3/X3 Pro/F3
  • βœ… Mi 9/10/11 Lite
  • ❌ Black Shark (requires) EDL-regime)
  • ❌ Mi Mix Series (limited support)

5. Unlocking through EDL (Extreme Deep Flash)

The most complex, but also the most effective method for "brick" devices is used when:

  • πŸ”„ The phone does not turn on at all (black screen)
  • πŸ”§ Fastboot or Recovery is not working
  • πŸ“± The model does not support other methods (Black Shark, some of which are not available in the POCO)

What you need:

  • πŸ–₯️ Windows PC 10/11
  • πŸ”Œ Xiaomi Cable EDL (special, with the closure of contacts)
  • πŸ“¦ Firmware for your model (download from xiaomifirmwareupdater.com)
  • πŸ› οΈ Mi Flash Tool or QFil

Algorithm of action:

  1. Connect your phone to your PC in EDL mode (this may require disassembling the device and closing test points)
  2. Install the Qualcomm HS-USB QDLoader 9008 driver
  3. Start the Mi Flash Tool, select the firmware
  4. Press Flash and wait until it is completed (10-15 minutes)

⚠️ Note: Incorrect Firmware in the EDL-The mode can permanently disable the communication module or camera. Redmi Note 8 Pro models (with a Mediatek chip) require the use of a mobile phone. SP Flash Tool instead of Mi Flash.

πŸ’‘

EDL-The mode is the last hope for those who are blocked by Xiaomi, which allows you to reflash a device even with a damaged system, but requires technical skills and special equipment. 90% user-generate 1-3.

Frequent mistakes and their solutions

Even with the official instructions, users often face problems, and here are the most common errors and ways to fix them:

Mistake.Reason.Decision
Cann't verify device in Mi AccountUnstable Internet connectionConnect to another Wi-Fi network or use mobile internet
Fastboot not recognizedADB drivers not installedInstall Mi Phone Manager or drivers manually through Device Manager
The phone is not visible in the Mi Flash ToolIncorrect connection modeCheck that the device is in mode EDL (must be defined as QHUSB_BULK)
Anti-rollback checkTrying to flash the old version of MIUIUse only the latest stable firmware for your model

Additional advice:

  • πŸ”„ If after unlocking the phone asks for the old password – do another reset via Recovery
  • πŸ“± On models with HyperOS (Xiaomi 14, Redmi) K70) Additional authorization may be required through Xiaomi Cloud
  • πŸ”§ For devices with unlocked bootloader (Bootloader Unlocked) available alternative methods through TWRP
Can I unlock Xiaomi without losing data?
Yes, but only if: You have Mi Account tied and method 1 The device supports unlocking via Fastboot (method 4) without reset You have previously made a backup through Mi Cloud or Google Drive In all other cases, the data will be deleted.
What to do if you forget your Mi Account information?
Restore access via account.xiaomi.com: Click Forgot Password? Select recovery method (email or SMS) Follow the instructions for changing password If the linked phone number is no longer available – contact Xiaomi with proof of ownership of the device (check, box).
Why does a Hard Reset phone ask for an old password?
This is a feature of FRP (Factory Reset Protection) Solutions: Enter data from the last Google Account tied If you do not remember - use special tools to bypass FRP (for example, Mi FRP Tool) On models with HyperOS, you may need authorization through Xiaomi Cloud
How to unlock Xiaomi if the screen is not working?
Options: Find Device: Remote unlock via i.mi.com (method 3) ADB: If USB Debugging was previously enabled, you can connect to your PC and execute the command: adb shell rm /data/system/gesture.key EDL: Flash through emergency mode (method 5) For physically damaged screens (cracks, non-functioning touchscreen), only EDL or a replacement display is suitable.
Is it easy to use unofficial unlock methods?
From a legal perspective: βœ… Unlocking your own device is legal in most countries βœ… Methods 1-3 (official) does not violate the guarantee ⚠️ Methods 4-5 (Fastboot/EDL) may result in loss of warranty if interference with firmware is detected ❌ Use of grey tools (hacking) FRP, Code generators may be qualified as a violation of the license agreement Xiaomi officially allows the unlock of the bootloader through the Mi Unlock Tool, but warns about the risks.