Unlocking Xiaomi without data loss: proven methods for MIUI 2026

Forgot the pattern lock, PIN-Xiaomi code or password, and the phone stores important photos, correspondence and documents? Standard ways of unlocking (for example, through Find My Device or reset to Recovery) erase all data from the device. But there are alternative methods that allow you to bypass the lock screen or Mi Account without formatting internal memory.

In this article, the current 2026 ways to unlock for smartphones Xiaomi, Redmi and POCO based on MIUI 12-14 (including global and Chinese firmware).

  • πŸ”“ Bypassing the screen lock through ADB and Fastboot (for devices with debugging enabled).
  • πŸ“± Unblocking your Mi Account without deleting data (including if your phone is not activated).
  • πŸ› οΈ Software Methods for Models with Qualcomm and Mediatek Processors.
  • ⚠️ Risks and Limitations of Each Way – What Could Go Wrong.

Important: Not all methods are universal. Success depends on the smartphone model, MIUI version, Bootloader status, and other factors. If you are not sure about your actions, contact Xiaomi Service Center (but be prepared to provide proof of ownership of the device).

πŸ“Š What is your Xiaomi model?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Another Xiaomi model
I don't know.

1. Unlock via ADB (if USB debugging is enabled)

If your Xiaomi has previously activated USB debugging (Settings β†’ About Phone β†’ MIUI β†’ 7 times tap, then Additional β†’ For developers β†’ USB debugging), the chances of unlocking the device without losing data are maximum.

You'll need:

  • πŸ–₯️ Computer with Windows/Linux/macOS and installed Xiaomi drivers.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“¦ ADB Fastboot Tools by Google.

Instructions:

  1. Connect your smartphone to your PC. On the lock screen, you will see a request for debugging permission - click "Allow" (if the screen responds to touch).
  2. Open the command line (cmd) in the adb folder and do:
adb devices

If the device appears in the list, enter:

adb shell am start -n com.android.settings/.ChooseLockGeneric

This command should open the lock change menu. If not, try the alternative:

adb shell content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1

Install Xiaomi drivers on PC|Download ADB Tools and unpack into a separate folder|Connect your phone to your PC with the original cable|Check the display of the device in adb devices-->

⚠️ Note: On some models (for example, Redmi Note 10 Pro with the MIUI 13+) This method may not work due to the increased protection, in which case try the method with Fastboot (section 3).

2. bypassing the lock screen via Safe Mode (for older versions of MIUI)

If your Xiaomi is running MIUI 11 or older, you can try booting into Safe Mode, where some stock locking apps may not work.

How to start Safe Mode:

  1. Turn off the phone (press the power button and select Turn off).
  2. Press the Power button and hold it until the Mi logo appears.
  3. Once the logo appears, press and hold the volume button until the system is fully loaded.

In the lower right corner of the screen, you'll see the Safe Mode message.

  • πŸ“± Try to install a new one. PIN/Password in Settings β†’ Screen locking.
  • πŸ”„ If you don’t, remove locking apps (like Screen Lock) that may have been installed by third-party launchers.

πŸ’‘

If Safe Mode doesn’t start, try an alternative way: Hold both Volume Up + Volume Down buttons until the recovery menu appears, then select Safe Mode (if there is one).

⚠️ Attention: MIUI 12+ Safe mode is often disabled or does not allow you to change the lock settings, and after rebooting to normal mode, the old password can return.

3. Unlock via Fastboot (for unlocked Bootloader)

If your Xiaomi has a Bootloader unlocked, you can try removing the lock files via Fastboot, which does not erase user data, but requires technical skills.

What do you need?

  • πŸ”§ Unlocked Bootloader (checked by the fastboot oem device-info team - look for Device unlocked: true).
  • πŸ–₯️ Computer with installed ADB/Fastboot and drivers.
  • πŸ“„ Backup of data (in case of error).

Instructions:

  1. Turn off the phone and press Power + Volume Down to log into Fastboot.
  2. Connect the device to the PC and check for its detection:
fastboot devices
  1. Delete the lock files (for MIUI 12-14):
fastboot erase locksettings


fastboot erase gatekeeper

  1. Reset the device:
fastboot reboot
Xiaomi modelSupport for the methodNotes
Redmi Note 9/10/11βœ… Yes.It works on most firmware, except the Chinese version with Anti-Rollback.
POCO X3/X4βœ… Yes.You need to pre-unlock Bootloader via Mi Unlock Tool.
Mi 11/12/13⚠️ Partially.On global firmware works, on Chinese - you may need an additional command fastboot erase frp.
Redmi K40/K50❌ No.Anti-Rollback 4+ protects the changes via Fastboot.

⚠️ Note: On devices with Bootloader blocked, this method will not work. FAILED (remote: 'Flashing is not allowed in Lock State').

πŸ’‘

If Bootloader is blocked, it is impossible to unlock it without data loss - official permission from Xiaomi via Mi Unlock Tool will be required (binding to the Mi Account is mandatory).

4 Unlocking your Mi Account without reset (if your phone is tied)

If your Xiaomi is locked because of a link to your Mi Account (for example, after resetting or buying a used phone), you can try bypassing the check without deleting the data.

  • πŸ“§ You have access to email/phone linked to your Mi Account.
  • πŸ”— The device is connected to the Internet (via Wi-Fi or SIM-map).
  • πŸ›‘οΈ Factory mode is not activated on the phone (Factory Mode).

Methods of unlocking:

  1. From the official Mi website: Go to account.xiaomi.com and log in. In Devices, find your smartphone and click Unblock. Confirm the action via SMS/email.
  2. Using Find Device: Install Find Device on another phone. Sign in with the same Mi Account. Select a locked device and send a command to Unlock the screen.
What if you don’t have access to your email/phone?
If you lose access to your Mi Account, the only official way to recover is to contact Xiaomi with documents confirming the purchase of the device (check, warranty card). Unofficial methods (for example, through Mi Account Unlock Tools) often lead to the blocking of IMEI or complete loss of data.

⚠️ Attention: On devices with MIUI 14 and later unlocking through Find Device may require confirmation SMS to a number linked to a phone (not an account!) SIM-The card is missing, the method will not work.

5. Software Methods for Qualcomm and Mediatek

If standard methods fail, you can use specialized utilities for Qualcomm or Mediatek chipsets, which require technical knowledge and are suitable for advanced users.

For Qualcomm (Snapdragon) processors:

  • πŸ”§ Use the QFil or Mi Flash Tool in mode EDL (Emergency Download Mode).
  • πŸ“‚ You need firmware with deleted lock files (locksettings.db, gatekeeper.password.key).
  • ⚑ Risk: Wrong firmware can turn a phone into a brickΒ».

For Mediatek processors (Helio, Dimensity):

  • πŸ”§ It's fine. SP Flash Tool or MCT (Mediatek Flash Tool).
  • πŸ“‚ Requires a scatter.txt file and a modified boot.img.
  • ⚑ Risk: Possible loss IMEI or sensor errors.

Important: Qualcomm devices with MIUI 13+ often require authorization through the Firehose Programmer, which can only be obtained from official Xiaomi partners.

πŸ’‘

Before using any third-party utilities, check the processor model in your phone through Settings β†’ About Phone β†’ Full Specification. Failure to fit the firmware to the chipset is guaranteed to damage the system.

6. Alternative methods (for advanced users)

If none of these things worked, there are radical methods that require disassembling the device or using professional equipment.

Methods with physical access:

  • πŸ”§ ISP (In-System Programming: Connecting to flash memory via test points and reading data using a programmer (e.g. EasyJTAG or Medusa Pro).
  • πŸ”Œ UFI Box: Universal box for unlocking smartphones, supports many Xiaomi models (requires the purchase of a license).
  • πŸ› οΈ Replacement of motherboard: Last resort if data is critical (cost 30-70% of the phone price).

⚠️ Attention: Methods ISP and UFI Box requires experience with soldering equipment. An error when connecting to test points can disable a memory module or processor.

Cost of services in service centers:

MethodAverage price (β‚½)Implementation timeData retention guarantee
Unlocking through ISP3 000 – 8 0001-3 hoursβœ… 90%
UFI Box (license)5 000 – 12 00030-60 minutesβœ… 95%
Replacement of fees10 000 – 25 0001-2 days❌ Data is lost.

FAQ: Frequent questions about unlocking Xiaomi

❓ Can you unlock Xiaomi without data loss if debugging is not enabled? USB?
Yes, but the odds are much lower. Try methods through Safe Mode or Fastboot (if the Bootloader is unlocked). If nothing works, only hardware methods (ISP, UFI Box) that require specialized hardware are left.
❓ Why, after unlocking the ADB The old password is coming back?
This is because of the KeyStore engine in MIUI, which stores lock data in a secure partition. To completely delete the password, you need to erase locksettings.db, locksettings.backup and gatekeeper.password.key files via Fastboot or TWRP.
❓ Does Mi Account unlock work on Chinese versions of Xiaomi?
No. The Chinese versions (China ROM) have enhanced protection and require a Chinese phone number to be tied to unlock, and are officially unlocked only through Xiaomi’s service center in China.
❓ What is Anti-Rollback and why does it prevent unlocking?
Anti-Rollback (ARB) is a protection mechanism in MIUI that blocks rollbacks to older firmware versions. On devices with ARB 4+ (e.g. Redmi K50, Xiaomi 13), any changes through Fastboot or EDL without official authorization result in hard-brick (complete failure).
❓ Can you unlock Xiaomi through service codes (##)?
No. Service codes (e.g. ##7780##) on Xiaomi don't work to reset locks; they're only for hardware testing; any sites offering "secret codes" to unlock are fraud.