How to clean up PIN-Xiaomi smartphone code: official and alternative methods

Why Xiaomi Phones Need to Be Used PIN-What to do if you forget the code

Smartphone protection PIN-code is a standard security measure that manufacturers, including Xiaomi, implement to prevent unauthorized access, but situations where users forget the combination occur regularly. This is especially true after a long break in the use of the device, resetting the settings or buying a used phone, PIN-Xiaomi code is tied to hardware encryption, making it difficult to bypass without the right sequence of actions.

It’s important to understand that the methods of unblocking will depend on several factors – the version of MIUI, the presence of a tied Mi Account, the status of OEM Unlock and even the smartphone model. For example, on the Redmi Note 12 Pro+ with MIUI 14, the unlock algorithm through Fastboot will differ from the procedure for POCO X3 on MIUI 12.5. This article covers current methods for devices from 2020 to 2026, including bypassing the lock without loss of data (where possible).

Before you start, answer the key question: is your Xiaomi account tied to your phone? If so, the chances of successfully unlocking without a data reset are ~80%. If not, you will need to reset hardware through Recovery mode, which will result in the deletion of all information on the device.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi (Note/Pro series)
POCO (F/X/M)
Mi (11/12/13)
Black Shark
Other

Method 1: Unlocking with Mi Account (official method)

The most reliable and recommended way Xiaomi uses is a tied Mi Account, which works on all devices with MIUI 10 and newer, but requires:

  • πŸ“± Access to another device (PC, tablet, phone) with the Internet.
  • πŸ”‘ Login and password from the Mi Account that was tied to the locked smartphone.
  • 🌐 Stable network connection (Wi-Fi or mobile Internet on a locked phone).

Instructions:

  1. On the lock screen Xiaomi enter the wrong PIN-5 times in a row, you'll see a message like "Forgot your password?" or "Unblock it with your Mi AccountΒ».
  2. Click on the link and enter the associated account details (email/phone + password).
  3. Confirm unlocking via SMS or email (if two-factor authentication is enabled).
  4. Create a new one. PIN-code.

⚠️ Note: If the phone has previously disabled Find Device, this method may not work, and Xiaomi limits the number of attempts to enter an account - after 3 unsuccessful attempts, the device will be locked for 24 hours.

πŸ’‘

If you don’t remember the password from Mi Account, restore it through the official account.xiaomi.com. Use a backup email or linked phone number.

Method 2: Reset PIN-Recovery Mode (with loss of data)

If your Mi Account is not tied or you don’t remember the login details, the only officially supported way is hard resetting via Recovery Mode, which deletes all data on your device, including photos, contacts and apps, but is guaranteed to unlock the phone.

Step-by-step:

  1. Turn off the smartphone with a long press of the Power button.
  2. Press the button combination: For most models: Power + Volume Up (hold 10-15 seconds). For POCO F1/F2/F3: Power + Volume Down.

Recovery

Wipe Data β†’ Wipe All Data

Confirm the action and wait for the process to be completed (5-10 minutes).

Reboot β†’ Reboot to System

After the reboot, the phone will be like new – you will need to re-set up, including linking your Mi Account and installing it. PIN-code.

⚠️ Note: Some models (e.g. Redmi) 9A or POCO M3) After the reset, you may need to enter data from the Mi Account that was previously tied. If you do not remember them, the phone will turn into a β€œbrick” (locking). FRP).

Turn off the phone from charging.

Make sure the battery is at least 30% charged.

Prepare a backup of important data (if available)

Remember the data from the Mi Account (if tied)-->

Method 3: Bypass PIN-code via Fastboot (for advanced users)

The method through Fastboot is suitable for devices with an unlocked bootloader (OEM Unlock) or if you're willing to unlock it. It lets you reset it. PIN-code without a complete data reset, but requires a PC, USB-cable and basic knowledge of working with ADB/Fastboot.

Algorithm of action:

  1. Install Platform Tools on PC (includes fastboot and adb).
  2. Connect the phone to your PC by holding Volume Down + Power to log into Fastboot Mode.
  3. In the command line (on behalf of the administrator) run: fastboot oem unlock fastboot flashing unlock (some models will require confirmation on the phone screen).
  4. After unlocking the bootloader, type: fastboot erase frp fastboot erase userdata This will delete your account data and reset PIN-code.
  5. Reboot the device with the command fastboot reboot.

⚠️ Warning: If after resetting via Recovery, the phone requires data input from Mi Account that you do not remember, do not try to guess the password - this will lead to final locking. EDL.

Can I take it down? PIN-Xiaomi code without data loss?
Yes, but only if you have a Mi Account attached to your phone and sync enabled, in which case use Method 1 (unlock through your account), if you are not tied to your account, you can only save data via Fastboot (for advanced users) or in a service center.
What if after resetting via Recovery, the phone asks for an old PIN?
This means that the device has FRP-locking (Factory Reset Protection) activated, you will need to enter data from the Mi Account that was tied before the reset, and if you do not remember them, contact the service center with documents on your phone.
Does the method work with service codes on the Redmi Note 10 Pro?
No, service codes for resetting. PIN-The code has stopped working on devices with MIUI 12 and newer (released after 2020) on the Redmi Note 10 Pro, this method is useless.
Can I unlock Xiaomi via Find Device (like Samsung)?
Xiaomi does not provide remote unlock through Find Device (unlike Samsung Knox or Google Find My Device).The only official way is to unlock through Mi Account on the device itself.
How much does it cost to unlock? PIN-code in informal services?
Informal services offer a service for 1,000-3,000 rubles, but the risks are high, from installing spyware to the final breakdown of the phone.