How to remove desktop protection on Xiaomi phones: from PIN-code to Mi Account

Forgot the pattern lock on Xiaomi Redmi Note 12? POCO X5 Is it a password that was linked to the previous owner? MIUI, Desktop protection on Xiaomi devices is not just about PIN-a code or fingerprint, but also a complex multi-level security system that includes a Mi Account, FRP-Factory Reset Protection and hardware encryption, and in this article, we will discuss all legal and technically feasible ways to remove protection, from official methods to engineering workarounds.

It is important to understand that Xiaomi is actively fighting unauthorized access to devices. The consequences of failed attempts to unlock can range from temporary blocking of the account to complete β€œbricking” of the phone (turning into a β€œbrick”). So if the phone was stolen or found, return it to the owner or the police. Bypassing the security on someone else’s device qualifies as hacking and is prosecuted by law (Article 272 of the Criminal Code of the Russian Federation).

We will focus on legitimate scenarios: regaining access to your device, unlocking after buying a used phone (with the consent of the previous owner) and fixing software failures. All instructions are tested on current versions of MIUI 14/15 and models from 2020-2026 (Redmi 10/11/12, POCO F4/F5, Xiaomi 13/14). For older devices (until 2019), additional steps may be required – we have put them in a separate section.

1. Official ways to unlock through Mi Account

If you remember the data from the Mi Account (mail and password) tied to your phone, this is the fastest and safest way. Xiaomi provides several tools to restore access:

  • πŸ”‘ Reset password through the site: go to account.xiaomi.com, select "Forgot your password?" and follow the instructions. Confirmation is possible via email, SMS or backup email (if listed).
  • πŸ“± Unlocking through Find Device: If the function has been activated, you can remotely reset the lock screen password (but not PIN Mi Account!).
  • πŸ“§ Proof of ownership: If the phone is officially purchased, link the check or warranty card to your account through Xiaomi support (Section Lost AccessΒ»).

⚠️ Attention: After 5 failed attempts to enter the Mi Account password, the account is blocked for 24 hours. If you are not sure about the data, do not try to guess.

πŸ“Š What kind of unlocking method have you tried?
Official reset via Mi Account
Reset to factory settings
Used ADB/EDL
I went to the service center.
I haven't tried it yet.

If official methods don’t work (for example, the previous owner didn’t untie the account), move to alternative solutions. But remember: resetting via Recovery or Fastboot will delete all data (photos, messages, apps) without the possibility of recovery!

2 Unlocking through Recovery Mode (Hard Reset)

Factory reset is a universal method that works on all Xiaomi devices, but with a serious drawback: total loss of user data.

  • πŸ”„ There is no important information on the phone (or it is synced to the cloud).
  • πŸ“¦ The device is not tied to the Mi Account (otherwise, after the reset, you will need to enter the data of the old account).
  • πŸ”§ You are ready to reset your phone from scratch.

Instructions for modern models (MIUI 12-15):

  1. Turn off the phone.
  2. Press the Power Button + Volume up for 10-15 seconds at the same time until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data (use volume buttons for navigation, power for confirmation).
  4. Confirm the action and wait for the process to be completed (5-10 minutes).
  5. Reboot your device with Reboot β†’ Reboot to System.

β˜‘οΈ Preparation for Hard Reset

Done: 0 / 4

⚠️ Note: On some models (Redmi Note 9 Pro, POCO X3) After the reset, you may be asked to enter your Mi Account data, even if you haven't installed it. FRP (Factory Reset Protection, which will require a bypass FRP.

FRP (Factory Reset Protection) bypasses Xiaomi

FRP-Locking is a setting reset protection that is activated if the phone has been tied to Mi Account and then executed Hard Reset. After the reboot, the system requires you to enter the account information that was on the device before the reset. If you bought a used phone and the previous owner did not untie the account – this is a problem.

Xiaomi doesn’t officially provide ways to bypass FRP, but there are a few working methods (relevant to MIUI 14 and later):

MethodDifficultyTools requiredRisks.
Through the Mi FRP ToolMediumComputer, USB-cableIt might not work on the new firmware.
Use of ADBTall.PC, ADB-drivers, commandsRequires an unlocked bootloader
A bypass through TalkBackLow.Just the phone.It doesn't work on all models.
Firmware through EDLVery high.Special. Cable, firmware, software.Risk of "bricking"

The most reliable way for beginners is to use the Mi FRP Tool:

  1. Download the program from the official website (for example, GSM Flasher).
  2. Connect your phone to your PC in Fastboot mode (press Power + Volume down when the phone is off).
  3. Run the Mi FRP Tool and select your device model.
  4. Follow the instructions of the program (usually you need to enter the command fastboot oem frp-unlock).
What to do if the Mi FRP Tool is not working?
If the program gives an error "Device not supported", try: 1. Update the phone firmware to the latest version via the Mi Flash Tool. 2. Use alternative utilities (for example, SP Flash Tool for devices on MTK). 3. Contact the service center with documents on the phone (check, warranty).

4. Unlock through ADB (for advanced users)

ADB (Android Debug Bridge) is an Android debugging tool that lets you execute commands on your phone from a computer.

  • πŸ”Œ The phone is enabled by the developer mode and debugging by USB (lock-in!).
  • πŸ–₯️ You have access to a PC with installed ADB-driver.
  • πŸ“± Device is defined in the system (check through adb devices).

Instructions for removing the pattern lock/PIN-code:

adb shell


su




rm /data/system/gesture.key




rm /data/system/password.key




reboot

To bypass FRP (if the phone requires Mi Account after reset):

adb shell am start -n com.google.android.gsf.login/


adb shell am start -n com.google.android.gsf.login.LoginActivity

⚠️ Attention: On new versions MIUI (14+) Xiaomi has closed many vulnerabilities ADB. If the commands don't work, try:

  • πŸ”„ Reboot your phone in Safe Mode (clip the power supply) β†’ Hold on to "Switch offΒ» β†’ Confirm the transition to safe mode).
  • πŸ“₯ Install the old firmware version via Fastboot (risky!).

1. Reinstall drivers (use Mi PC Suite).

2. Change. USB-cable (original or high quality cable required).

3. Enable in the phone settings "File transfer" (MTP) instead of "charging".-->

5. Unlock through EDL mode (emergency firmware)

EDL (Emergency Download Mode) is an emergency firmware mode that allows you to reflash your phone even with a locked bootloader.

  • πŸ’» Computer with Windows and Qualcomm drivers HS-USB QDLoader 9008.
  • πŸ“‚ Firmware file (.mbn or.elf) for your model.
  • πŸ”§ Mi Flash Tool or QFil.
  • πŸ”Œ Specialist EDL-cable (or ability to close test points on the board).

Step-by-step:

  1. Download the firmware for your model from the Xiaomi Firmware Updater website.
  2. Install Qualcomm drivers (you can use the Mi Flash Tool).
  3. Put the phone in mode. EDL: Turn off the device. Lock the test points on the motherboard (they are different for each model!) or use them. EDL-Connect to a PC, Qualcomm should appear in the Device Manager HS-USB QDLoader 9008.

Mi Flash Tool

Flash

Wait for the finish (10-20 minutes) and restart the phone.

πŸ’‘

Firmware via EDL deletes ALL data, including IMEI and serial number, and may require IMEI recovery through the engineering menu (#4636##) or service center.

⚠️ Note: Incorrect Firmware in the EDL-If you're not sure about your skills, you can go to the service center. EDL in the workshops is 1000-3000 rubles (depending on the model).

6. Features of unlocking on older models (until 2019)

Xiaomi devices of 2018 and older (Redmi 5/6, Mi A1/A2, POCO F1) have vulnerabilities that allow you to bypass the protection without complex manipulation.

  • πŸ“ž Call to locked phone: during incoming call you can open the contact menu and through it access the settings.
  • πŸ”§ Exploit through the camera: on some firmware, the swipe down from the camera icon opened the notification panel.
  • 🌐 Browser bypass: If the lock screen has an "Emergency Call" button, you can enter ##4636## and reset your password through the engineering menu.

For models on the MediaTek processor (for example, Redmi 4X, Redmi Note 5A), the method of firmware through the SP Flash Tool is suitable:

  1. Download the firmware in.scatter format.
  2. Open the SP Flash Tool and upload the scatter file.
  3. Connect the phone to the PC (drivers must be installed).
  4. Press Download and wait for the process to end.

⚠️ Attention: On devices with MediaTek after firmware can fly IMEI. You can restore it through the engineering menu (#3646633##) or the program. MTK Engineering Mode.

7. When to contact the service center?

If all of these methods fail, there are two options:

  1. Official Xiaomi service – unlocked if you have a check or warranty card (free or for free) 500–1500 Addresses of centres: mi.com/ru/service/location.
  2. Informal workshops – take on complex cases (bypassing FRP on new firmware, restoring IMEI), but the risk of running into fraudsters is high.

Signs that without the service can not do:

  • πŸ”΄ Phone after a failed firmware does not turn on (black screen, flashing red indicator).
  • πŸ”’ The screen says "This device is locked" or "Mi Account locked" even after the reset.
  • πŸ“΅ The device is not defined by the computer in any modes (Fastboot, EDL).
  • πŸ”§ Test points are required to enter the EDL (For example, on the Redmi Note 8 Pro).

1. Photo by IMEI (on the box or under the battery).

2. Screenshot of the error (if the phone is turned on).

3. prepare a check or guarantee (if any).

This will speed up the diagnosis and reduce the cost of repairs.-->

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: You remember the Mi Account password and the phone is not locked after reset. The phone has USB debugging enabled and you can use ADB. You have a backup in Mi Cloud (you can recover data after unlocking). In all other cases, the data will be lost.
What if the phone asks for an old Mi Account after a reset?
It's FRP-Solutions: Contact the previous owner to untie the account via account.xiaomi.com. FRP (See section 3, to send the phone through EDL (It's risky!! - Give the service center a check to buy a phone.
How to know if the bootloader is unlocked on Xiaomi?
Turn off your phone and press Power + Volume down to log into Fastboot. If the bottom of the screen says "Unlocked" - the bootloader is unlocked. If "Locked" - locked. Unlocking the bootloader is officially possible through the Mi Unlock Tool, but requires binding to Mi Account and waiting 7-30 days (on new devices).
Does flashing help with custom firmware (LineageOS, Pixel Experience)?
Theoretically, yes, but: It requires an unlocked bootloader. On new models (Snapdragon) 8 Gen 2/3) custom firmware is often unstable. FRP-The lock may remain even after the firmware, the warranty on the phone will be lost, we recommend first try the official methods.
Can I unlock Xiaomi through a communications operator?
No, operators (MTS, Beeline, MegaFon, Television)2) They can only help you: Unblock Xiaomi. SIM-map (PIN/PUK). Provide information about the owner of the room (at the request of law enforcement). To unlock the phone, contact only the Xiaomi service center.