Owners of Xiaomi, Redmi and Poco smartphones often face a situation where an attempt to reset a device through a computer fails. Instead of successfully cleaning the data, the user sees a frightening message erase is not allowed in lock state. It is not just a program failure, but a security mechanism that blocks unauthorized access to memory partitions.
This error means that the bootloader of your device is locked, in which the manufacturer prohibits low-level operations with the file system from outside, so that attackers can not steal your personal data or install malware. However, for the legitimate owner, this becomes a serious obstacle, especially if you need to urgently unlock the phone after a forgotten password or reflash the device.
Ignoring this locking status leads to endless reboot cycles or inability to log in. It is critical to understand that standard reset via the Recovery menu is often impossible without first unlocking the bootloader or using special workaround methods. In this article, we will discuss all legal and technical ways to solve the problem, from official methods to advanced tools.
Causes of Error and Protection of FRP
The main reason for the message is that FRP (Factory Reset Protection) is activated in conjunction with the blocked bootloader. When you try to erase a userdata or frp partition through Fastboot commands, the system checks the lock status. If the locked status, the command is rejected. This is a fundamental feature of the Android architecture that Google has implemented to protect against theft.
Often users get into this situation by buying a used device with an active Mi or Google account that was not untied by the previous owner, and the error occurs when trying to install custom firmware or obtain root rights without first official unlocking, the system perceives such actions as a potential threat to data integrity.
There is also a risk of damage to system partitions when the firmware process is interrupted. If power is cut or USB connection is broken at the time of data recording, the memory controller may block further write operations until full flashing is completed, in which case standard recovery methods may not work.
β οΈ Warning: Attempting to force unlock the bootloader on a locked device with an active Mi Account can lead to a complete lock of the device on the device. IMMI (via Xiaomi servers).
Understanding the nature of the bug helps you choose the right solution, so if your goal is to just reset the forgotten password, you need the tools you need, and if you want to reflash the phone, the algorithm will be completely different and require more in-depth intervention.
Checking the status of the loader and preparation
Before you start active, you need to accurately determine the current state of your Xiaomi. The status of the bootloader dictates the available recovery methods. To check, you need to switch the smartphone to Fastboot mode. To do this, turn off the device completely, and then press the volume reduction and power buttons simultaneously until an image with a hare repairing an android appears.
Connect your phone to your computer through the original USB-The top corner of the smartphone screen usually shows a status of Locked or Unlocked. If it says Locked, then erase is indeed forbidden software. It's also worth checking if the device in Windows Device Manager is displayed as Android Bootloader Interface.
βοΈ Diagnosis before reset
It is important to make sure that the computer has the latest drivers installed.The absence of drivers can lead to false communication errors that the user can confuse with state lock.Use official tools from Xiaomi or universal Google USB Driver drivers for proper operation.
If the bootloader status is unknown or the screen is not responding, you can try to type a command in the command line. Open the terminal in the tool folder and type: fastboot getvar all. In the output, look for the line (bootloader) locked or (bootloader) unlocked. This will give an exact answer to what we are dealing with.
Unlocking with Mi Unlock Tool
The most reliable and secure way to remove the βerase is not allowedβ restriction is to officially unlock the bootloader, which requires the Mi Unlock Tool utility and the Mi Account associated with the device, a process that is legal but requires time and Internet access on the smartphone itself (if you have access to the system).
The procedure starts with applying for unlock through the phone's settings. You need to go to the Settings menu. β The phone. β Version. MIUI and press the build number several times to activate the developer mode. Then, in the advanced settings, turn on the item. OEM-Unlock and connect your account Mi.
Once you submit an application through the Unlock Status app, you will have to wait, and the waiting period is usually 7 to 168 hours (up to 7 days), Xiaomi introduces this period so that the owner has time to realize their actions and cancel the application if the phone was stolen.
| Phase | Action. | Requirements |
|---|---|---|
| 1 | Account binding | Access to the system, the Internet |
| 2 | Application | SIM card, SMS |
| 3 | Waiting. | 7 to 168 hours |
| 4 | Unlocking | PC, cable, Mi Unlock |
Once the timer is over, you re-connect the phone to Fastboot mode, launch Mi Unlock on your PC, and press the Unlock button. The device will be completely cleared, the status will change to Unlocked, and the partition erasure error will no longer appear. This is the only guaranteed way to remove all restrictions.
π‘
Officially unlocking via Mi Unlock is the only way to permanently remove Locked status and avoid errors when erasing partitions in the future.
Using EDL Mode for Deep Recovery
If access is closed and the bootloader is blocked, the only option is EDL (Emergency Download Mode), a low-level Qualcomm mode that allows you to flash the phone directly without bypassing standard Android protocols, but this mode often requires special authorized accounts.
For the entrance EDL Most modern Xiaomi models require disassembly of the case and closure of contacts on the board (Test Point). Some older models work with a key combination or command adb reboot edl, but if the phone is locked, ADB It may not work. It allows you to close the contacts even on the device that is off.
In EDL mode, the computer sees the device as a Qualcomm HS-USB QDLoader 9008. You use the Mi Flash Tool for firmware. You select the Fastboot version and start the process. It's important to choose Clean all, but not Clean all and lock, if you're not sure of the firmware's origin, so you don't get a brick.
β οΈ Attention: Firmware through EDL On new models (after 2019), it often requires an authorized Xiaomi service center account.
There are paid services and tools that emulate authorization, but there are risks to using them. Incorrectly selected firmware for EDL can change the region of the device or block it by the hardware ID. Use this method only if other methods are exhausted.
How to find Test Point for your model?
FRP bypass and reset without unlocking
If your goal is simply to remove the lock on your screen or Google account, rather than reflashing the phone entirely, you can try FRP bypassing methods. These methods exploit vulnerabilities in the initial configuration interface. They do not remove the "Locked" status from the bootloader, but allow you to access the system, after which the erase is not allowed error can be bypassed by a regular reset from the menu.
One of the most popular ways to use TalkBack or special ones APK-The method is to trigger a pop-up window or menu that will allow you to start installing applications or open Wi-Fi settings with the ability to log in to your account.
There are specialized utilities, such as Xiaomi ADB/Fastboot Tools or SamFw Tool scripts, that automate the process. They send certain sequences of commands that, when set up, can throw the user to the desktop or give access to debugging.
- π± TalkBack Method: Activating the voice assistant allows you to draw gestures, open context menus and launch YouTube or browser.
- π Wi-Fi Method: Using proxy services or special services APK bootloader.
- π§ Scripts ADB: Using vulnerabilities in the debugging protocol during the setup stage (requires debugging enabled, which is difficult without access).
It's important to understand that these methods are temporary. Once you have a security update from Google or MIUI, the vulnerabilities are closed, so once you have access, immediately add your account and make a full reset from the system that is already working to consolidate the result.
Frequent Questions and Challenges (FAQ)
Can I unlock the bootloader without linking the Mi Account?
What happens if you interrupt the erasure process in the lock state?
Does Erase Error Reset Data Not Allowed?
Will the reflashing of the Recovery (TWRP) help?
How to know if your phone is locked by IMEI?
The solution to erase is not allowed in lock state requires a clear understanding of the status of your device. If you are the legitimate owner, the path through the official Mi Unlock unlock is the most correct, albeit long. EDL-The mode requires caution and technical knowledge, as the risk of turning a smartphone into a brick remains high. Always back up and check firmware compatibility before starting work.