Forget it. PIN-Smartphone code is a bad situation, but it's not a bad one, especially if you're talking about Xiaomi phones, where the manufacturer has provided several official and unofficial unlock methods, the main thing is not to panic and not try to guess the code using the method of scientific poke: After 5-10 failed attempts, the device can lock for 24 hours or completely erase all data.
In this article, we will discuss all the current ways to unlock for Xiaomi, Redmi and phones. POCO (including models 2023β2026 yearly, taking into account the specifics of MIUI 14/15. From simple methods using a Mi Account to radical ones, through fastboot or service centers, you will also learn how to minimize data loss and what to do if the phone requires verification of the old one. PIN-post-reset.
Spoiler: If you have a Mi Account tied and the internet is on, you have a 90% or higher chance of unlocking your phone without losing data, or you'll have to donate files or contact the service.
1 Unblocking through Mi Account (the safest way)
This method works if:
- π± Your phone has a Mi Account attached (even if you donβt remember your password).
- π Internet access (Wi-Fi or mobile network).
- π In the settings enabled data synchronization.
After 5 failed attempts to enter PIN-If you have a password button on the screen, or Unblock it through Mi Account, click on it and follow the instructions:
- Enter the username (email or phone) from the Mi Account associated with the device.
- Confirm the login via SMS or backup email (if you forgot the password, use the recovery function).
- Create a new one. PIN-code.
If the buttons Forgot your password? no, try connecting to Wi-Fi manually (on some Xiaomi models this option is available even on a locked screen). To do this, swipe down from the top edge of the screen and hold the Wi-Fi icon.
β οΈ Note: If the phone was bought with hands and the previous owner did not untie his Mi Account, this method will not work. IMEI) Unblocking through the service center.
2. Recovery Mode reset (data loss)
If your Mi Account is not tied or you donβt remember the login details, youβll have to hard reset to factory settings, which will delete all the data from your phone, including photos, contacts and apps, but unlock the device.
Instructions for Xiaomi phones with MIUI Recovery 5.0 (relevant for most models of 2018-2026):
βοΈ Preparing for resetting through Recovery
- Turn off the phone (press the power button for 10 seconds if it freezes).
- Press the power button and volume button at the same time before the Mi logo appears.
- From the Recovery menu, select Wipe Data (use volume buttons for navigation and power button for confirmation).
- Confirm the reset by selecting Wipe All Data.
- After the process is complete, select Reboot.
On the newer models (Xiaomi 13/14, Redmi Note 12 Pro+), the Recovery menu may look different. If you see pictures instead of text, look for the bin icon (this is the data reset).
β οΈ Note: Some phones may need to enter old phones after reset via Recovery PIN-This is anti-theft protection. If you don't remember the old code, you'll have to use the Mi Unlock Tool (see section 4).
3. Unlock through ADB (for advanced users)
The method is suitable if the phone is enabled debugging by USB And you have access to a computer. That's rare, but if you've previously configured it. ADB For other purposes (for example, to install custom firmware), try this method.
Procedure:
- Connect your phone to your PC through USB-cable.
- Open the command line (Win + R β enter cmd) and check the connection with the command: adb devices If the device appears in the list, go further.
- Delete the file with PIN-The command is adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
- Reboot your phone: adb reboot
After restarting, the phone should start without a request. PIN-If there is a no error, devices/emulators found, so debugging by USB It is disabled and this method will not work.
π‘
If you often forget passwords, turn on Xiaomiβs Smart Lock (Security β Screen Lock settings) feature, which allows you to automatically unlock your phone in trusted places (such as at home) or when you connect to trusted devices (smartwatches, headphones).
4.Use of Mi Unlock Tool (official tool)
Mi Unlock Tool is Xiaomiβs official utility for unlocking the bootloader.It can help if the phone requires an old one after resetting via Recovery. PIN-But there are limitations to the method:
- β³ You need to wait 72β168 hours after linking your account to your device.
- π± Phone must be unlockable (some models for Chinese market locked permanently).
- π» You need a Windows computer and original USB-cable.
Instructions:
- Download Mi Unlock Tool from the official website.
- Turn off the phone and put it in Fastboot mode (clip Power + Volume down).
- Connect your phone to your PC and start the Mi Unlock Tool.
- Sign in to your Mi Account (should match the one linked to your phone).
- Press Unlock and wait for the process to be completed.
Once the bootloader is unlocked, you can flash the phone through fastboot or install a custom recavator (TWRP) to bypass the lock. However, this voids the warranty and can lead to a device blink if errors occur.
What is a brick?
5. Contact the Xiaomi Service Center
If all of the above methods have failed, you have to contact the official service center, which is the most reliable, but also the longest way.
- π Document confirming the purchase (check, warranty card or box with IMEI).
- π Passport of the owner (if the phone is purchased for an individual).
- π³ Payment for the service (from 1000 to 3 000 rubles depending on the model).
The service will identify the device by IMEI and remove the lock without loss of data (if possible).Some models (Xiaomi 13 Ultra, Redmi K60 Pro) have an extended warranty to cover such cases.
The service center addresses can be found on the official Xiaomi website or through the Mi Community app, with an average unlock time of 3-7 working days.
β οΈ Warning: Don't go to informal workshops promising to unlock your phone in 1 hour, there's a high risk of getting a device with corrupted firmware or stolen data (if the phone was synced to the cloud).
6.How to avoid blocking in the future
Not to face the problem of forgotten PIN-Once again, follow these tips:
| Problem. | Decision | Where to set up |
|---|---|---|
| Forgot. PIN-code | Use a pattern lock or fingerprint as a backup method | Settings β Screen Lock β Type of Lock |
| I don't remember Mi's account. | Link backup email and phone for recovery | Settings β Mi Account β Security |
| Phone locked after reset | Turn on automatic unlocking on Bluetooth devices (headphones, watches) | Settings β Connected devices β Smart Lock |
| I'm afraid I'm gonna lose my data. | Set up automatic backup in Mi Cloud | Settings β About the phone β Backup |
We also recommend writing down. PIN-code in an encrypted note (for example, in the Mi Notes application with a password) or save it in the password manager (Google Password Manager, 1Password).
π‘
If you are using the same thing PIN-The code for your credit cards and your phone, change it on at least one device, and if you steal it, the fraudsters will have access to all your data.