Forgot the pattern lock or PIN-Can't unlock the device, and you have important data inside? Factory reset is the only way to get back access to the phone if other password recovery methods don't work. But how do you do that without knowing the current lock code?
In this article, weβll look at 5 proven Xiaomi reset methods (including Redmi, POCO, Black Shark) that work even when the screen is locked. Itβs important to understand that all data on the phone will be deleted β photos, contacts, messages and installed apps. If you have synced with Mi Account or Google, some of the information can be restored after the reset.
Some methods require pre-preparedness (e.g., USB debugging enabled), others work on any device, and choose the right option depending on the phone model and the tools available.
1. Reset via Recovery Mode (most versatile way)
Recovery Mode is on every Xiaomi smartphone, and can be launched from a locked screen, a method that is suitable for most models, including the Redmi Note 10/11/12, POCO X3/X4/X5, Mi 11/12/13 and others.
Instructions:
- π Turn off the phone with a long press of the power button (if it does not respond - pinch the power supply). + Volume up for 10-15 seconds).
- π± Keep the combination of food + Volume up until the Mi logo and Recovery menu appear.
- π From the menu, select the language (usually English or Chinese) and find the Wipe Data item (or Chinese firmware).
- βοΈ Confirm the reset by selecting Wipe All Data (can be called Factory Reset).
- β Wait for the process to be completed (5-10 minutes) and restart your phone via Reboot.
If the Recovery menu is in Chinese, look for icons: the bin or factory box icon usually denotes a reset. Some models (POCO F3, Redmi K40) may require you to enter a password from Mi Account after a reset β read about this in the next section.
βοΈ Preparing for resetting through Recovery
β οΈ Warning: Phones with a bootloader locked after reset via Recovery may require authorization to the Mi Account previously linked to the device. If you don't remember your account details, the phone will turn into a brickΒ».
2. reset via Mi Account (if the phone is linked to the account)
If your Xiaomi has enabled Find Device, you can reset your password remotely via the Mi Cloud website, which works even if your phone is turned off β it will execute a command the next time you connect to the Internet.
Step-by-step:
- Go to i.mi.com and log in to the same Mi Account that is linked to your phone.
After this procedure, the phone will restart and suggest that you configure it as new, and if the device has turned on a security bootloader and you do not remember the Mi Account data, you will not be able to unlock it - you will need to contact the service center with proof of purchase.
| Xiaomi model | Does it support reset via Mi Cloud? | Is authorization required after resetting? |
|---|---|---|
| Redmi Note 10/11/12 | Yes. | Yes, if the Mi Account was turned on. |
| POCO X3/X4/X5 | Yes. | Yeah, on global firmware. |
| Mi 11/12/13 | Yes. | Yes, I will. |
| Black Shark 4/5 | No (using a separate system) | No. |
3. Reset via Fastboot (for advanced users)
If the Recovery menu is not available or the phone is getting stuck on the Mi logo, you can use Fastboot mode. ADB/Fastboot and suitable for models with unlocked loader.
What you need:
- π» Computer with Windows/Linux/macOS.
- π Cable USB (preferably original).
- π οΈ Utilities. ADB Fastboot (you can download from the official Android website).
- π Unlocked bootloader (if not, read the section about unlocking).
Instructions:
- Turn off the phone and press Power + Volume down to enter the Fastboot Mode (a hare in a hat-eared image will appear).
- Connect your phone to your computer and open the command prompt (cmd in Windows or Terminal on macOS/Linux).
- Enter the command to check the connection: fastboot devices If the phone is determined (its serial number will appear), continue.
- Run reset: fastboot erase userdata fastboot erase cache fastboot reboot
Once the phone is rebooted, it will look like new. If the bootloader is locked, this method won't work, you'll need to unlock it first through the Mi Unlock Tool.
What if Fastboot canβt see the phone?
β οΈ Attention: fastboot erase commands delete data permanently. Don't interrupt the process, otherwise you risk getting a brick (POCO F5, Redmi K60) After resetting via Fastboot, you may need to flash through the Mi Flash Tool.
4. Reset via ADB (if USB debugging is enabled)
If the phone previously had USB debugging enabled (Settings β About Phone β MIUI Version β 7 times press to activate developer mode), you can reset your password through your computer without losing data (in some cases).
Step-by-step:
- Connect the phone to your computer and open the command line.
- Check Connection: Adb devices If the device is displayed as unauthorized, confirm access on the phone screen (if it is unlocked).
- Delete the password file: adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
- Reboot your phone: adb reboot
After rebooting the pattern lock or PIN-If this method doesn't work, try a full reset through ADB:
adb shell recovery --wipe_dataπ‘
If debugging is on USB It was on, but the phone is locked, try connecting to it through ADB Blind mode: Enter adb shell input text 1234 (where 1234 is possible) PIN-This will only work if the lock screen has an active input field.
5.Reset via Xiaomi Service Center
If none of these methods worked or you are afraid of damaging your phone, contact the official Xiaomi Service Center.This is the only legal way to unlock your device without losing warranty if:
- π You donβt remember the Mi Account data tied to your phone.
- π± This device is locked after resetting.
- β οΈ The device does not turn on or βhangsβ on the logo.
- π οΈ Requires flashing through the Mi Flash Tool (for example, after a failed update).
What will be required to unlock:
- π Check or warranty card (proof of purchase).
- π Passport of the owner.
- π± The phone itself (preferably with a charge) >50%).
The cost of the service varies from 500 to 2000 rubles depending on the model and complexity of the work, in some cases, the service center may refuse if the phone was purchased informally (for example, brought from China).
How to unlock the bootloader on Xiaomi before resetting
Most Xiaomi smartphones have a bootloader blocked by default, which means that a Fastboot or firmware reset will be impossible without first unlocking. If you plan to change your firmware often or reset your phone, itβs best to unlock the bootloader beforehand.
Instructions for unlocking:
- Download Mi Unlock Tool from the official website.
- Sign in to the program under the same Mi Account as on the phone.
- Connect your phone in Fastboot mode (clip Power + Volume down).
- In the program, press Unlock and wait until it is completed (usually takes 3-5 minutes).
Once unlocked, you can freely reset your phone via Fastboot or install custom firmware. Note: unlocking the bootloader resets all data and can void the warranty.
β οΈ Note: On new models (Xiaomi) 13/14, Redmi Note 12) Unlock bootloader requires linking Mi Account to the phone at least 7 Without it, the Mi Unlock Tool will give you an error.
Frequent Mistakes and How to Avoid Them
When resetting Xiaomi, users often face preventable problems, and here are the most common mistakes and solutions:
| Mistake. | Reason. | Decision |
|---|---|---|
| This device is locked after resetting | Your phone is linked to your Mi Account and you are not logged in. | Enter your account details or contact the service center |
| The phone doesnβt turn on after the Fastboot | Discharge process interrupted or damaged firmware | Use the Mi Flash Tool in Clean All mode |
| ADB device unauthorized | Unconfirmed access to debugging via USB | Unlock your phone and confirm the connection on the screen |
| Recovery menu in Chinese | Chinese firmware installed | Focus on icons or stream a global version |
If the phone requires an old password to be entered after reset (e.g., on the Enter last Google account screen), this means that FRP (Factory Reset Protection) protection has been enabled. To get around it, you need to enter the Google account data that was linked to the phone before the reset.
π‘
Before reset, check if sync is enabled with Google Drive or Mi Cloud.This will help restore contacts, photos and notes after setting up the phone as new.