Forgot the pin code from Xiaomi and can not unlock the phone? This situation is familiar to many users, especially after a long break in use of the device or changing the password. Fortunately, there are official and alternative methods of unblocking without contacting the service center. In this article, we will discuss all the current methods of removing the pin code, taking into account the features of the MIUI 14/15 firmware and the models of Redmi, POCO, Xiaomi 13/14.
It's important to understand that some methods require some pre-preparedness (e.g., Mi Account binding or USB debugging). If you haven't done these steps beforehand, some of the methods will be unavailable. We'll also show you how to minimize the risk of data loss and what to do if your phone is completely locked, and let's start with the safest options and move on to radical measures.
1. Pin code withdrawal via Mi Account (official method)
This is the most reliable method if your Xiaomi is tied to your Mi Account and has the Find Device feature enabled, which works even when the screen is locked, but requires access to the Internet on your phone (via mobile network or Wi-Fi).
Instructions:
- π Go to i.mi.com from a computer or other phone.
- π Sign in with the same account that is linked to the locked device.
- π Select the Find Device tab β Find your phone on the map.
- π Press Unlock Device and confirm the action.
After that, the pin code will be reset and the phone unlocked.If the Find Device feature has been disabled in the settings, this method will not work.
β οΈ Note: Xiaomi may request proof of identity (such as a linked phone number or email) to protect against unauthorized access.If you do not remember your account details, restore them through the official website.
2 Unlocking via Fastboot (for advanced users)
The method is suitable if you have a bootloader unlocked and USB debugging enabled. Otherwise, you will need to pre-unlock through the Mi Unlock Tool, which takes up to 720 hours of waiting (according to Xiaomi rules).
What you need:
- π» Computer with drivers installed ADB/Fastboot.
- π Cable USB (preferably original).
- π± Phone with a charge of at least 50%.
Step-by-step:
- Turn off your phone and press the Power button + Volume down to enter Fastboot mode.
- Connect the device to your PC and open the command line in the folder with ADB.
- Enter the command to check the connection: fastboot devices If the device is displayed, continue.
- Do a lock reset: fastboot erase frp or for older models: fastboot erase locksettings
- Reboot the phone: fastboot reboot
Once rebooted, the pin code will be reset, but all data on the device will be deleted.This method does not work on devices with a locked bootloader without an anlock beforehand.
βοΈ Preparing for Unlocking via Fastboot
3. Reset via Recovery Mode (full data cleanup)
If the previous methods didnβt work, itβs hard to reset through recovery mode, which will delete all data, including photos, contacts and apps, but is guaranteed to unlock the phone.
How to reset:
- Turn off the phone.
- Press the Power button + Volume up until the Mi logo appears.
- From the Recovery menu, select the language (if available) and go to Wipe Data.
- Confirm the reset by selecting Wipe All Data.
- After completion, press Reboot.
The newer models (Xiaomi 13/14, Redmi Note 12/13) may require data entry from Mi Account if Mi Cloud protection has been activated.
β οΈ Attention: On some firmware MIUI After resetting through Recovery, you may still have a pin request, in which case only flashing through Fastboot will help.
What if the phone asks for an old pin code after resetting?
4. Use of service codes (for older models)
Xiaomi devices until 2019 (e.g. Redmi 4/5, Mi A1/A2) sometimes use service codes to reset the lock. Current models (MIUI 12+) block this method, but it is worth trying.
Try entering in the dialer:
- π ##7780## - Resetting settings (saves data).
- π *2767*3855# β full reset (remove everything).
If the codes don't work, the phone will send a message, Connection problem or invalid MMI code, in which case move on to other methods.
π‘
Before entering service codes, extract SIM-This will prevent accidental blocking of the network.
5. Unlocking through EDL Mode (for power users)
EDL (Emergency Download Mode) is an emergency boot mode that allows you to reflash your phone even with a locked bootloader. The method requires special equipment (EDL cable or circuit contacts on the board) and firmware for your model.
Instructions:
- π§ Connect your phone to your PC in mode EDL (You need a cable or a test point closure).
- πΎ Download the firmware for your model from the Xiaomi Firmware Updater website.
- π₯οΈ Use the Mi Flash Tool to Firmware in Clean All Mode.
This is guaranteed to remove the pin code, but requires hardware skills, and the wrong actions can turn the phone into a brick.
| Method | Mi Account required | Data retained | Difficulty |
|---|---|---|---|
| Through Find Device | β Yes. | β Yes. | β |
| Fastboot | β No. | β No. | βββ |
| Recovery Mode | β No. | β No. | ββ |
| Service codes | β No. | β οΈ Partially. | β |
| EDL Mode | β No. | β No. | ββββ |
6. Contact the Xiaomi Service Center
If independent attempts were unsuccessful, the official service remains: Xiaomi provides a service of unlocking the passport of the owner (purchase confirmation is required).
What to bring with you:
- π Passport (to confirm possession).
- π Check or warranty card (if any).
- π± Charged phone (minimum 30%).
Service centers usually unlock within 1-3 days, and the device is guaranteed if the reset is performed by an authorized Xiaomi partner.
π‘
The official service is the only way to unlock the phone without risking damaging it if other methods donβt work.