The forgotten lock code on Xiaomiβs smartphone can be a serious problem β especially if you donβt remember the data from your Mi Account or have not made backups. Unlike other brands, Redmi, POCO or Mi phones have additional layers of protection that make unlocking difficult. In this article, we will discuss all the current ways of deleting code β from official to technical β and also explain what methods can lead to data loss or βbrickβ of the device.
It is important to understand that there is no universal solution. The effectiveness of the method depends on the phone model (Xiaomi 13 Pro or Redmi Note 10), the version of the phone. MIUI, You have a Mi Account attached and you even have a region of purchase, like on devices for the Chinese market (CN-Some methods may not work due to the manufacturer's strict limitations. Before proceeding, check if your case is suitable for frequent exceptions.
If you're looking for a way to get around lockdowns without losing data, we'll warn you that these are one-off methods, and they only work under strict conditions (e.g., USB debugging or root access enabled). In 90% of cases, unlocking leads to factory resets. But don't worry, we'll show you how to minimize risks and recover information after unlocking.
1 Unlocking through Mi Account (official method)
The most legal and secure method is to use a linked Mi Account, which works on all Xiaomi models if:
- π± The phone is connected to the Internet (Wi-Fi or mobile network).
- π You remember. email/Phone and password from Mi Account.
- π The device was not linked to another account after blocking.
To unlock the phone:
- On the lock screen, tap Forgot password? (or Forgot password? on English firmware).
- Select Sign in via Mi Account.
- Enter email/phone and password. If two-factor authentication is enabled, confirm the login via SMS or Mi Security app.
- Follow the instructions on the screen to reset the lock password.
If the system requests a confirmation code from SMS, but the sim card is blocked or missing, try:
- π² Insert another sim card with the same number (if the phone supports two sims).
- π» Go to the personal account Mi Account from the computer and send the code to email.
β οΈ Warning: If the phone was bought with hands and tied to someone else's Mi Account, this method will not work. In such cases, you need to unlock the bootloader or contact the service center with proof of purchase.
2. Recovery Mode reset (data loss)
If you donβt remember the Mi Account data or the phone isnβt connected to the network, the only option is hard resetting through Recovery Mode, which will delete all data, including photos, messages and apps, but return access to the device.
Instructions for most Xiaomi models (including Redmi Note 12, POCO X5, Mi 11 Lite):
- Turn off the phone with a long press of the power button.
- Press the combination Volume up + Power button and hold for 10-15 seconds until the Mi logo appears.
- In the Recovery menu, select the language (if available) then:
On some models (such as Xiaomi 13 Ultra), the Recovery menu may be in Chinese.
- π± Look for an icon with a trash can image (this is Wipe Data).
- π You may need to enter Yes manually to confirm.
Turn off the phone from charging.
Make sure the battery is at least 30% charged.
Prepare a backup sim card (if you need to confirm your account)
Download the firmware for your model (in case of errors)
-->
β οΈ Warning: Devices with a locked bootloader may be reset with a Mi Account request that was previously tied, and if you don't know that, the phone will turn into a brick!
3. Unlock via Fastboot (for advanced)
The method via Fastboot is suitable if:
- π Bootloader (Bootloader) is unlocked.
- π₯οΈ You have a computer with drivers installed. ADB/Fastboot.
- π₯ There is an official firmware for your model.
Step-by-step:
- Download and install Android SDK Platform-Tools (or Mi Flash Tool for Xiaomi).
- Put your phone to Fastboot: Hardware: Volume down + Power button (hold 10 seconds) Through ADB: adb reboot bootloader
- Connect the phone to your PC and check the connection with the command: fastboot devices (should display the serial number of the device).
- Flush stock firmware (e.g. for Redmi Note 11): fastboot flash boot.img fastboot flash system.img fastboot erase userdata
- Reboot the phone: fastboot reboot
If the bootloader is locked, first unlock it through the Mi Unlock Tool (requires binding to the Mi Account and waiting 7-30 days).
What if the Fastboot canβt see the device?
| Xiaomi model | Supports Fastboot? | Do you need to unlock Bootloader? | The risk of a brick |
|---|---|---|---|
| Redmi Note 10/11/12 | β Yes. | β Yes. | Medium. |
| POCO F3/F4/F5 | β Yes. | β Yes. | Low. |
| Xiaomi 12/13 Series | β Yes. | β Yes. | High (due to Anti-Rollback) |
| Black Shark 4/5 | β No, only. EDL) | β No. | Very tall. |
4. Unlock Bootloader (for firmware)
If you want to flash your phone through Fastboot or EDL, you first need to unlock the bootloader. Xiaomi made this procedure more complicated in 2023, so it now takes up to 30 days and requires:
- π§ Related Mi Account (not older than 30 days).
- π± Phone with version MIUI less than 12.5.
- π₯οΈ The Mi Unlock Tool.
Unlocking algorithm:
- Enable OEM Unlock in the developer settings (Settings β About Phone β MIUI Version (Tap 7 times) β For Developers β Unlock OEM).
- Link Mi Account to the Settings menu β Xiaomi Account.
- Download Mi Unlock Tool and log in to your account.
- Connect your phone in Fastboot mode and follow the program instructions.
- Wait for the confirmation SMS (can come in 7-30 days).
1. Use another. USB-port (preferably 2.0).
2. disable driver verification in Windows (Selective installation β Install without signature).
3. Run the utility on behalf of the administrator in Windows 7 compatibility mode.-->
On 2023-2026 models (such as the Xiaomi 14 or Redmi Note 13 Pro+), unlocking the bootloader may require additional confirmation through the service center, due to Xiaomiβs tightening security policy after cases of illegal unlocking of stolen devices.
5. Bypassing the lock via EDL (Emergency Mode)
EDL (Emergency Download Mode) is the last chance to unlock if other methods have failed, allowing you to flash your phone at a low level, but has serious risks:
- β οΈ The ability to turn the phone into a βbrickβ in case of firmware error.
- π Requires an authorized Xiaomi account (for new models).
- π» Special tools (Mi Flash Pro, QFil or other) are needed. EDL Tool).
How to log into EDL:
- Turn off the phone.
- Hold the Loud up. + Loudness down + plug in USB-cable.
- If the phone is identified as Qualcomm HS-USB QDLoader 9008 in Device Manager β the mode is activated.
For firmware via EDL:
- Download firmware in.mbn or.elf format for your model.
- Use Mi Flash Pro (for Xiaomi) or QFil (for Qualcomm).
- Select the firmware file and press Flash.
β οΈ Attention: Firmware through EDL on models with a MediaTek processor (for example, Redmi) 10A) It requires an authorization file (auth.ini) that can only be obtained from official Xiaomi partners. SLA Auth Fail.
Alternative methods (with limitations)
If the standard methods do not help, you can try:
- π Find My Device Reset: Go to i.mi.com, select a locked phone and click Delete Data. only works if the device is connected to the network.
- π Appeal for Xiaomi: Provide proof of purchase (check, box with) IMEI) In some cases, support can remove the link to the Mi Account remotely.
- π§ Use exploits (for older models): On Xiaomi until 2019 (for example, Redmi 5 Plus) there are vulnerabilities that allow you to bypass the lock through the Internet. ADB. But on the new firmware, they're closed.
For models with biometric locking (print or face) sometimes helps:
- π Connect the phone to charge and wait for the discharge to 0% - sometimes after a restart, the lock is reset.
- π Use Safe Mode (hold off power) β Safe Mode, but it rarely works.
π‘
None of the alternative methods guarantee 100% results, and if the phone is important, it is better to contact the service center with an official Xiaomi license, this will reduce the risk of data loss.