Why does the lock curtain appear and how to remove it correctly
Lock curtain on Xiaomi smartphones (including Redmi models and POCO) β It is not just a graphic element, but part of the security system. MIUI. It appears when activating any type of lock: PIN-In most cases, deleting it is reduced to disabling the lock itself, but sometimes users are faced with a situation where the curtain remains even after resetting the password or flashing the flash.
The reasons for the stubborn curtain can range from a MIUI Launcher malfunction to a shell conflict after an update. It is important to understand that simply removing the launcher app (as some forums advise) will not help, it will lead to complete inoperability of the interface, since MIUI is rigidly tied to system components. In this article, we will analyze all working methods from basic to advanced, including bypassing through ADB and Fastboot.
If you've forgotten your password and you can't unlock your phone, don't panic. The manufacturer has a few official ways to restore access, but they require you to pre-link your Mi Account, and without it, you only have radical methods that will lead to data loss.
Method 1: Disable locking through settings (if you know the password)
The most obvious and safe method is to disable the screen lock through the standard menu, which is suitable if you remember a PIN, a pattern lock or a tied Mi Account.
- Unlock your phone in the usual way (enter a password, hold a pattern lock, or use a fingerprint).
- Go to Settings β Passwords and Security β Screen Lock.
- Enter the current password for confirmation.
- Select the option No (or Disable Lock in newer versions of MIUI).
- Confirm the action and restart the device.
If after these actions the lock curtain still appears when the screen is turned on, try resetting the launcher settings:
- π Launcher reset: Clip the empty space on the home screen β Home screen settings β Resetting settings.
- π± Reboot: Turn off the phone for 1 minute, then turn it on again.
- π§ Cache cleanup: Settings β Annexes β Application management β Launcher β Clear the cache.
βοΈ Preparation for disabling the lock
β οΈ Note: If you use a corporate profile (for example, through Microsoft Intune or Knox), the administrator can block the ability to disable the password. IT-service.
Method 2: Unlocking with Mi Account (if you forgot your password)
If you forgot your password but previously linked your Mi Account to your phone, you can restore access through the official Find Device service, which works on most Xiaomi, Redmi and POCO models released after 2018, an important condition: the phone must be enabled with mobile Internet or Wi-Fi.
Instructions:
- Go to the Mi Account website from a computer or other phone.
- Sign in with the same account that is linked to the locked device.
- Select the Find Device tab (or Find the device in the Russian version).
- The map will show your smartphone. Click on it, then select Unlock Device.
- Confirm the action via SMS or email (depending on your account security settings).
After that, the phone should unlock automatically within 5-10 minutes.
- π Check your internet connection on a locked device (connect to Wi-Fi or insert) SIM-card).
- π Restart your phone manually (press the power button for 10-15 seconds).
- β³ Wait up to 30 minutes β sometimes Xiaomi servers take time to process the request.
β οΈ Note: If Factory Reset Protection is activated on your phone, you may need to enter your account login and password when you first turn on after unlocking your Mi Account.
Method 3: Recovery Mode (Data Loss)
If previous methods didn't work, there's a radical solution, hard reset, through recovery mode, that will remove all data from your phone, including photos, contacts, and installed apps. Use it only as a last resort!
Instructions for most Xiaomi models:
- Turn off the phone.
- Press the Power button and Volume up simultaneously (in some models, Volume down). Hold for 10-15 seconds until the Mi logo and Recovery menu appear.
- With volume buttons, select the language (usually English or ).
- Go to Wipe Data β Wipe All Data (or Clear Data β Clean Everything).
- Confirm the action by selecting Confirm.
- After the process is complete, select Reboot β Reboot to System.
The phone will reboot and suggest that you set it up as new, and at this point, the lock curtain will disappear, but you'll have to reconfigure all the settings.
| Xiaomi model | Combination for entering Recovery | Features |
|---|---|---|
| Redmi Note 10/11/12 | Food + Volume up | Menu in Chinese/English, volume button control |
| POCO F3/F4/F5 | Food + Volume up | Supports touch control in Recovery |
| Xiaomi 12/13/14 | Food + Volume up | Requires confirmation via Mi Account after reset |
| Redmi 9/9A/9C | Food + Volume up | Possible freezes during reset - wait until completion (up to 10 minutes) |
What happens if the Recovery does not open?
Method 4: Fastboot Firmware (for advanced users)
If Recovery resets don't work or the phone doesn't turn on at all, you'll have to use Fastboot to run the firmware, USB-Attention: wrong actions can turn a phone into a brick"!
Step-by-step:
- Download the official firmware for your model from MIUI Downloads. Choose the Fastboot version (not Recovery!).
- Unpack the archive in a folder on your computer (for example, C:\miui_fastboot).
- Download and install ADB & Fastboot Tools.
- Turn off the phone and put it in Fastboot mode: Press the Power button + Volume down for 10 seconds The screen should appear a bunny in a hat-eared (Fastboot logo).
- Connect your phone to your computer via USB.
- Open the command line (Win) + R β cmd) and execute the commands in order: cd C:\miui_fastboot If the device is determined (the serial number appears), continue: fastboot flash all (this will run the script for the firmware of all partitions).
It takes 5-15 minutes to complete, the phone will automatically restart, and if the firmware is interrupted or there are errors (such as anti-rollback), a more in-depth diagnosis will be required.
π‘
Before you run through Fastboot, check the version of your model's Anti-Rollback. Installing an older firmware can block the bootloader! a list of Anti-Rollback versions can be found on the Xiaomi.EU forum.
Method 5: Bypassing the lock through ADB (for unlocked bootloader)
If your phone has a Bootloader Unlocked, you can remove the lock curtain through ADB without losing data, a method that is suitable for users who have previously activated OEM Unlock in the developer settings.
Instructions:
- Turn on USB Debugging: Settings β About Phone β MIUI Version (click 7 times to activate Developer Mode) β Return to Settings β Additional β For Developers β Debugging by USB.
- Connect your phone to your computer and confirm your trust in that PC.
- Open the command line and execute: adb shell su rm /data/system/gesture.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
After the reboot, the lock will be reset. If the commands do not work, try an alternative method:
adb shell
pm uninstall --user 0 com.android.keyguardβ οΈ Note: Deleting com.android.keyguard may cause system instability, and this method is recommended only for temporary bypass of the lock, for example, if you need to copy data before resetting.
What do you do if nothing helps?
If all of these methods do not work, the following reasons are possible:
- π Hardware lock: On some models (e.g. Xiaomi Mi) A1/A2 With pure Android, the lock curtain is controlled at the firmware level from Google. In this case, only the firmware of the stock will help. MIUI.
- π οΈ Damage to section /data: If the phone fell or was repaired, memory damage is possible.
- π Operator lock: Phones purchased from mobile operators (e.g. Redmi for MegaFon) may have an additional lock.
In the most difficult cases, you need to contact an authorized Xiaomi service center, the cost of unlocking varies from 1,000 to 3,000 rubles depending on the model and the reason for the lock. Before visiting, check whether your data will be saved - some services perform a full reset by default.
π‘
If the phone is locked after a failed firmware or reset, DO NOT try to stitch it again without a diagnosis.This can result in a complete loss of IMEI or damage to the bootloader.