A forgotten PIN on a Xiaomi smartphone is a situation that one in five users face. According to service center statistics, 18% of device locks are due to the loss of the unlock password. Unlike a pattern lock or a fingerprint, a PIN requires accurate digit input, and after 5 failed attempts, the phone can be locked forever. But don't panic: there are legal ways to restore access that do not require contacting the service center.
In this article, we will discuss all the current methods of unlocking a PIN code on Xiaomi in 2026, including official tools from MIUI, bypassing through the Mi Account, as well as emergency measures for devices without connection to the account. Particular attention will be paid to the models of Redmi Note 12, POCO X5 and Mi 13, where the procedure may differ due to hardware features. Importantly, none of these methods guarantee the safety of data in a hard reset β but we will show how to minimize losses.
1.Official method: Unblocking through Mi Account
The most reliable and recommended Xiaomi method is to use a tied Mi Account. It works on all devices with MIUI 10 and later, including the latest HyperOS firmware. The main condition is that the phone must be connected to the Internet (Wi-Fi or mobile network), and you remember the username and password from the account.
Algorithm of action:
- π Enter the wrong PIN 5 times in a row until the message appears "Device locked. try later or log in via Mi Account".
- π± Click on the button "Unblock via Mi Account" (can be called "Forgot password?").
- π Enter the email or phone number associated with the account, then the password.
- π² Confirm the unlock through SMS or email (if two-factor authentication is enabled).
β οΈ Note: If you have previously disabled sync with Mi Account in settings (Settings) β Accounts. β Mi Account β Synchronization, this method will not work, and blocking through an account may not be available on devices with custom firmware (for example, LineageOS).
Make sure your phone is connected to the internet.
Check the battery charge (minimum 20%)
Prepare a login/password from Mi Account
Have access to email/SMS to confirm
-->
2 Unlocking through Find Device (Remote Control)
Find Device, which is similar to Google's Find Phone, not only tracks Xiaomi's location, but also remotely resets its PIN, which works even if the phone is not connected to the mobile Internet, but requires:
- π Actively linking the device to the Mi Account.
- π Connecting your phone to Wi-Fi (even if your mobile internet is off).
- π Battery charge of at least 15%.
Instructions:
- Go to i.mi.com from a computer or other phone.
- Sign in with the same account as on the locked device.
- Select your phone from the list of devices.
- Click "Delete data" β "Erase the device".
- Confirm the action via SMS or email.
Once reset, the phone will reboot and prompt it to be configured as new, which deletes all data but unlocks access. If the device has enabled MIUI Backup, some of the data (contacts, photos) can be restored after logging in.
What if the Device canβt see the phone?
3. Recovery Mode reset (without data loss?)
Recovery Mode is often marketed as βsafe,β but itβs a myth. On Xiaomi devices with MIUI 12 and newer resets, resetting through recoveries always results in data deletion unless the official Mi Unlock Tool is used. However, in some cases (for example, on older Redmi 4X or Mi A1) models, you can bypass the lock without completely resetting.
The procedure for the models until 2020 of release:
- Turn off the phone.
- Press Volume Up + Power before the Mi logo appears.
- In the Recovery menu, select "Wipe Data" β "Wipe All Data".
- Confirm the action and wait for the reboot.
β οΈ Note: On new devices (Redmi Note 11, POCO F4 This method will completely clean up internal memory, including photos and applications, and after reset, you may need to enter data from the Mi Account that was previously associated (Factory Reset Protection function).
Yeah, and I remember the password.
Yeah, but the password's forgotten.
No, not tied.
I don't know, I haven't checked.
-->
4.Use of ADB (for advanced users)
If the phone is enabled debugging via USB (Settings β About Phone β MIUI Version β 7 times press to activate developer mode β Settings β Additional β For developers β Debugging via USB), you can try resetting the PIN code through ADB. The method works only when connected to a previously authorized computer.
Instructions:
- Connect your phone to your PC through USB-cable.
- Open the command line (Win + R β enter cmd).
- Enter the commands in order: adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
- After rebooting, the PIN code will be reset.
β οΈ Note: This method requires root rights, which are disabled by default on Xiaomi. If you haven't had root access before, it won't work. MIUI 13+ HyperOS Xiaomi blocks such manipulations via Anti-Rollback β the phone can go to βFastbootβ mode with the requirement of authorization.
1. Install Mi PC Suite drivers from the official website.
2. Use the original USB-cable (not all cables support data transmission).
3. Reboot the phone and PC.
-->
5. Contact the Xiaomi Service Center
If all of the above methods did not work, the official service remains. Xiaomi provides an unlock service upon presentation of a document confirming the purchase (check, warranty card or box with IMEI). The cost of the service varies from 500 to 2000 rubles depending on the model and region.
What will be required:
- π Passport or other identification document.
- π Check or warranty card (if the phone is guaranteed).
- π± The device itself with a charge of at least 30%.
- π IMEI phone (can be found on the box or via the command *#06# on another device).
The unlock period is from 1 to 3 working days. Some service centers offer express service (for 1-2 hours), but its cost is higher by 30-50%. Please note: if the phone was purchased informally (for example, brought from abroad), the service may refuse to unlock without a document on legal import.
| Town | The cost of unlocking (β½) | Date(days) | Address of the service center |
|---|---|---|---|
| Moscow | 1200β1800 | 1β2 | 10 Letnikovsky St. (official SC Xiaomi) |
| St. Petersburg | 1000β1500 | 1β3 | 3 (Authorized Partner) (Authorized Partner) |
| ekaterinburg | 900β1400 | 2β3 | 8 March, 202 (Mi-service service center) |
| Novosibirsk | 800β1300 | 1β2 | Krasny Prospekt, 220 (official SC) |
Alternative methods (with risks)
On the Internet, you can find suggestions for unlocking Xiaomi through βmagicβ programs like Mi Account Unlock Tool or D&G Unlock Tool, which promise to reset the PIN code without losing data, but in practice:
- π¨ 90% of these programs are fraud (require payment but do not work).
- π The remaining 10% exploit vulnerabilities in older versions MIUI (until 2019).
- π‘οΈ Using informal tools can lead to blocking IMEI activate the anti-Rollback, after which the phone will become a brick".
If you do decide to experiment, follow the rules:
- Check out reviews on independent forums (e.g. 4PDA or XDA Developers).
- Do not enter data from Mi Account in suspicious applications.
- Create a backup via Fastboot (if you have access to this mode).
π‘
No program guarantees 100% unlocking of new Xiaomi models (2022 and later) without data loss.
7.How to avoid blocking in the future
To avoid the problem of a forgotten PIN code again, follow the simple rules:
- π Use biometric unlocking (fingerprint or facial recognition) as your primary method.
- π Write the PIN in a secure location (for example, in the Mi Password Manager or Google Passwords password manager).
- π Update regularly MIUI β New versions improve access recovery mechanisms.
- π± Link the phone to Mi Account and enable synchronization (Settings) β Accounts. β Mi Account β Synchronization).
We also recommend activating the Smart Lock function (Settings). β Lock screen β Smart Lock, which allows you to disable PIN code in secure places (such as at home or at work). On HyperOS devices, this option is called Smart Lock and supports geolocation, Bluetooth devices and voice recognition.
π‘
On Xiaomi models with NFC (such as the Redmi Note 12 Pro+), you can configure unlocking via a contactless card. Add the card to Settings β Connected Devices β NFC and activate the βUnlock Cardβ option.