Forgot the pattern lock or PIN-Is it a Xiaomi code? Or do you just want to turn off the lock because it's getting in the way? In this article, we'll look at all the current ways to remove passwords on Redmi devices, POCO Mi β from standard settings to advanced methods via Fastboot and Recovery.
It is important to understand that some methods require prior preparation (for example, Mi Account binding or USB debugging enabled), while others will lead to a complete data reset, and we will describe each option in detail, its pros, cons and nuances, so that you can choose the best way to suit your situation.
If you are looking for a solution for a particular model (such as the Redmi Note 12 or the POCO X5 Pro), look at the compatibility table at the end of the instructions section.
1. Delete password through settings (if phone unlocked)
The easiest method is when you remember your current password and can log in.It works on all Xiaomi devices with MIUI 12 and later, including the latest versions of MIUI 14/15 based on Android 13/14.
You don't need a computer, you don't need cables, you don't need software, you do it right on the menu of the phone. PIN-code, pattern lock or fingerprint.
- π± Open the Settings. β Passwords and security
- π Select Screen Lock (can be called Screen Protection)
- π Enter the current password to confirm
- β‘οΈ Click Delete Password or No (depending on version) MIUI)
Please note that if you have two-factor authentication set up (e.g. fingerprint + PIN), the system may require both data to be entered.
π‘
If you delete your password, the phone asks for it again, restart the device, and sometimes MIUI caches the old lock settings.
2. Reset password through Mi Account (without loss of data)
This is a good way to do it if you forgot your password but previously linked your phone to your Mi Account.The method works on most Xiaomi, Redmi and POCO models released after 2018 and does not require a factory reset.
Important: the phone must be connected to the Internet (via mobile network or Wi-Fi), and the Find Device function must be activated in the settings. If these conditions do not exist, move to the next section.
- π Go to the Mi Cloud website and log in.
- π In the Find Device section, select your phone.
- π Click Unlock Screen (may be called Reset Password).
- β Confirm the action through SMS email.
After 5-10 minutes, the phone unlocks automatically, and if that doesnβt happen, check your internet connection or try to reboot the device.
β οΈ Note: If the phone has the option of Data Protection in case of loss (in some regions), after unlocking through Mi Cloud, you may need to enter the old password.
3 Unlocking through Recovery and Fastboot modes
If the previous methods didn't work, you'll have to use hardware modes. These are more complex methods that require a computer, USB-And they work without the Mi Account attached.
We will consider two options:
- π§ Through Recovery β reset to factory settings (deletes all data).
- β‘ Through Fastboot β Delete the password file without completely resetting (requires an unlocked bootloader).
For both methods, you will need:
- π» Computer with Windows/Linux/macOS
- π Original. USB-cable (better from the set)
- π οΈ Utilities. ADB Fastboot (you can download from the official website)
Install Xiaomi drivers on PC|
Download Platform Tools (ADB/Fastboot) |
Connect the phone to the computer |
Disable antivirus (can block commands)|
Charge your phone at least 50 times%-->
Method 1: Recovery Reset (complete cleaning)
This will erase all the data on your phone, including photos, contacts and apps, and only use it if you don't have any other options.
- π Turn off the phone, then press the power button. + Loudness up before the appearance of the Mi logo.
- π± In the Recovery menu, select Wipe Data β Wipe All Data (Manage volume and power buttons).
- β Confirm the reset and wait for the reset.
After that, the phone will turn on as new, and you can create a new password or skip this step at the setup stage.
Method 2: Delete password via Fastboot (without data loss)
This only works on devices with the bootloader unlocked, and if you've never unlocked the Bootloader, it won't work.
fastboot erase userdata
fastboot erase locksettings
fastboot rebootIf after restarting the phone still asks for a password, try repeating commands or using an alternative method:
fastboot flash userdata userdata.img
fastboot rebootWhere userdata.img is a partition backup that can be created in advance through TWRP.
What if Fastboot doesnβt recognize your phone?
4.Use of ADB to delete password (advanced method)
If you have USB debugging enabled and your phone is connected to your computer, you can delete your password through ADB without resetting, which works on MIUI 11-15 and requires prior preparation.
You'll need:
- π§ Included debugging by USB (Settings β The phone. β Version. MIUI β 7 times tap to unlock the developer mode).
- π» Computer with installed ADB and drivers.
- π Connected phone (even if the screen is locked).
Instructions:
- Open the command line in the ADB folder.
- Enter adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksetting.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
After the reboot, the lock will be reset, and if the commands don't work, try replacing gesture.key with pattern.key.
β οΈ Note: On some models (Xiaomi) 12T, Redmi K50) The password files are stored elsewhere, in which case use the command adb shell am start. -n com.android.settings/.ChooseLockGeneric, to reset the lock settings.
5 Unlocking through Xiaomi Service Center
If all the independent methods did not work, the official service remains. Xiaomi provides the unlock service through authorized centers, but there are nuances:
- π You will need a confirmation of purchase (check, box or binding to Mi Account).
- π° Cost of service: from 500 to 2000 rubles (depending on the model and region).
- β³ Term of execution: 1-3 working days.
To find the nearest service center:
- Go to the official website.
- Choose a country and a city.
- Check the reviews about the center (some informal workshops may refuse to unlock).
The advantage of this method is to ensure that data is kept safe (unless the phone has been encrypted), but on newer models (Xiaomi 13, Redmi Note 12 Pro+), even service centers may require a factory reset.
π‘
Officially unlocking through the service center is the only legal way if the Mi Account password is forgotten and debugging is disabled via USB.
6. Alternative methods (for experienced users)
If the standard methods don't work, you can try non-obvious solutions that are suitable for specific situations and require technical knowledge.
| Method | Conditions | Risks. | Models on which it works |
|---|---|---|---|
| Reset via EDL Mode | You need an authorized Xiaomi account and boxing (such as UFi) | Could block IMEI | Redmi 9/10, POCO X3, Mi 10 |
| Firmware via SP Flash Tool | You need an official firmware for your model | Data loss, possible brick | Redmi Note 8/9, Mi A3 |
| Use of TWRP | Established custom recovery | Violation of guarantee | Any model with an unlocked loader |
For example, to unlock through EDL Mode, you will need:
- Transfer the phone to Emergency Download (closing contacts on the board).
- Connect via UFi box or EasyJTAG.
- Switch the security module (modemst1 and modemst2).
This method is used by service centers, but self-use can lead to the loss of IMEI or complete inoperability of the phone.
Comparison of methods: which one to choose?
To make it easier for you to determine, we have collected the key parameters of each method in one table:
| Method | Data security | Difficulty | Conditions required | Implementation time |
|---|---|---|---|---|
| Through settings | β Preserve. | β (simple) | Knowledge of the current password | 1-2 minutes |
| Mi Account | β Preserve. | ββ (middle-of-the-road) | Linked account, Internet | 5-15 minutes |
| Recovery (dumping) | β Removed | ββ (middle-of-the-road) | No condition. | 10 minutes. |
| Fastboot | β /β (model) | βββ (difficult) | Unlocked bootloader, PC | 15-30 minutes |
| ADB | β Preserve. | βββ (difficult) | USB debugging enabled | 10-20 minutes |
If you're not sure about your abilities, start with the simplest methods (Mi Account or Recovery reset, EDL) leave it to the last resort.