Formatting a Xiaomi smartphone is a radical but sometimes necessary step to solve system problems, remove viruses or prepare a device for sale. Unlike a normal reboot, a full reset erases all user data, returning the phone to the βout of the boxβ state. However, many users confuse formatting with simply cleaning the cache or deleting files, which leads to incomplete problem solving.
In this article, we will discuss all the official and hidden ways to format Xiaomi devices (including the Redmi, POCO and Black Shark models) relevant to MIUI 12-14 and HyperOS firmware. You will learn how to properly prepare the phone for reset, what data can be saved, and how to avoid typical errors that can turn the device into a βbrick.β
1.When to format Xiaomi: 7 good reasons
Setting reset is not a universal solution, but in some cases it is really necessary.
- π¦ Viruses or malware that is not removed by antiviruses (for example, banner ads in the status bar or browser redirection).
- π’ Critical System Slowdown After Update MIUI or installation of applications (lags, hanging, overheating).
- π Cyclical reboot, when the phone is powered only up to the Xiaomi logo and rebooted again.
- π± Preparation for sale or transfer β deletion of all personal data (photos, messages, passwords).
- π§ Failures after a failed root or firmware (for example, the βNo Commandβ error in recovery mode).
- πΆ Network problems: the phone does not catch mobile Internet or Wi-Fi, although on other devices everything works.
- π Forgotten pattern lock or PIN-code (unlocked through your Mi Account).
It is important to understand that formatting will not help if the problem is related to hardware malfunctions (for example, a broken screen, a broken speaker or a charging connector), in such cases, repair is required, not a software reset.
β οΈ Note: If you format your phone due to viruses but have not deleted your Mi Account (Xiaomi account), after resetting, the device may require you to enter a login/password to activate!
Preparation for formatting: what to save and what to delete
Before resetting, you need to save critical data, because all the files on the internal memory will be erased.
| Type of data | Can we save it? | How to reserve | Notes |
|---|---|---|---|
| Photo/video | β Yes. | Google Photos, Mi Cloud, Computer | Eliminate the screenshots with passwords! |
| Contacts | β Yes. | Synchronization with Google or Mi Account | Check in Settings β Accounts |
| Messages (SMS) | β οΈ Partially. | Apps like SMS Backup & Restore | Do not save SMS with confirmation codes! |
| Annexes | β No. | The list can be exported through Mi Mover | After the reset, you will have to re-install. |
| Wi-Fi settings | β Yes. | Photo Credit QR-Exporting or exporting via Mi Home | Do not save passwords from public networks |
Pay special attention to the application data: progress in games, history of chats in messengers (WhatsApp, Telegram) and notes. Many services (for example, Viber) do not sync data automatically β they need to be reserved manually through the application settings.
Also check if your phone has a bank card or cryptocurrency wallet attached. After a reset, you may need to re-authorize in SberBank Online, Tinkoff or Binance. Some services (like Google Authenticator) are tied to your device β without a backup, you will lose access to two-factor authentication!
Make a backup photo/video |Sync contacts with Google |Record login/password from Mi Account |Remove bank cards from Google Pay |Untie phone from social media accounts-->
Method 1: Formatting through MIUI settings (soft reset)
The easiest and safest method is to reset via the settings menu, which is suitable if the phone is switched on and reacts to touch, and if you do not plan to remove system updates, instructions are relevant for MIUI 12-14 and HyperOS:
- Open Settings β About the phone β Reset settings.
- Select to erase all data (reset to factory).
- Enter. PIN-code or pattern lock (if installed).
- Confirm the action by clicking Delete Everything.
- Wait for the reboot (it will take 5-15 minutes).
This method does not remove MIUI updates, but erases all user files, apps and settings. If the phone is slow again after reset, the problem may be in the system cache - it needs to be cleaned separately (see method 4).
β οΈ Note: On some models (Redmi Note 10 Pro, POCO X3 Pro) after resetting through settings, an error may appear "This MIUI version cannot be installed on this device. This means that the firmware is damaged - you will need to flash through Fastboot (method 5).
π‘
If the phone is resetting, asks to enter the old PIN-If you've forgotten the code, try connecting to Wi-Fi and logging in to Mi Account. Sometimes that takes the lock off.
Method 2: Hard Reset via Recovery Mode (for locked phones)
If the phone is not turned on, locked with a pattern lock or cyclically rebooted, a Recovery reset will help, which works even without entering a password, but requires physical access to the device's buttons.
Instructions for all Xiaomi models (including Redmi and POCO):
- Turn off the phone (press the power button for 10 seconds).
- Press the Power button + Volume up and hold for 10-15 seconds until the Mi logo appears.
- Release the buttons and you will see the Recovery Mode menu (English or Chinese).
- Use volume buttons for navigation and power button for selection.
- Select Wipe Data β Wipe All Data (on some models β Factory Reset).
- Confirm the action and wait for the completion.
- Go back to the main menu and select Reboot β Reboot to System.
If the menu is in Chinese, focus on the icons:
- π± β dataset.
- β β confirm.
- π β restart.
On the newer models (Xiaomi 13, Redmi Note 12), Recovery Mode can require you to enter a password from Mi Account even after you reset. If you donβt remember your account details, youβll have to use Fastboot (mode 5).
What happens if the Recovery Mode does not open?
5. Method 3: Clearing the cache without losing data (alternative to reset)
If the phone is slowing down but you don't want to lose data, try clearing the partition cache. This will delete the temporary system and application files without affecting photos or settings. The method helps in 60% of MIUI slowdowns.
Instructions:
- Go to Recovery Mode (as in Method 4).
- Choose Wipe & Reset β Wipe Cache.
- Confirm the cleanup and wait until it is completed.
- Reboot your phone (Reboot to System)
If there are problems after cleaning the cache, try to remove the cache of specific applications:
- π± Go to Settings. β Annexes β Application management.
- π Select a problem app (such as Facebook or Instagram).
- π§Ή Click Clear Cache and Clear Data (Warning: This Will Delete Logins!).
On HyperOS models (e.g. Xiaomi 14), the path to clearing the cache may be different: Settings β Storage β Cleanup.
π‘
Clearing the cache does not delete personal data, but it can reset the settings of some applications (for example, in games or instant messengers).
Method 4: Formatting via Fastboot (complete cleaning of all partitions)
This is the deepest formatting method that removes not only user data, but also system partitions, including the remnants of old firmware.
- π§ The phone doesnβt even turn on in Recovery.
- π¦ After updating MIUI There were critical errors.
- π¦ Viruses are embedded in system files.
- π Remove root rights or custom recovery (TWRP).
For this method, you will need a computer with installed Xiaomi drivers and the Mi Flash Tool program (you can download it on the official website).
Step-by-step:
- Turn off your phone and put it into Fastboot mode: press Power + Volume down for 10 seconds. Connect to your PC via USB.
- Download the official firmware for your model (choose the Fastboot version, not Recovery).
- Unpack the firmware archive into a folder without Cyrillic characters (e.g., C:\Xiaomi\ROM).
- Open the Mi Flash Tool, press Select and point the path to the firmware folder.
- In the lower right corner, select Clean All (this is full formatting).
- Press Flash and wait until it is completed (10-20 minutes).
- After successful firmware, the phone will restart automatically.
If the Mi Flash Tool is an anti-rollback error, you are trying to install an older version of MIUI than the one on your phone, in which case you need to download a new firmware or use Clean All and Lock (but this will block the bootloader).
β οΈ Note: On models with a locked loader (Xiaomi) 12T, Redmi Note 11) before the firmware through Fastboot, you need to unlock the bootloader through the Mi Unlock Tool"!
π‘
If the phone doesnβt turn on after youβve run through Fastboot, try pinching Power + Volume up for 30 seconds β sometimes a forced reset helps.
7. Method 5: Formatting via ADB (for power users)
If standard methods donβt work and Fastboot seems too complicated, you can use ADB (Android Debug Bridge) which is suitable for deleting specific data or resetting settings without full formatting.
What you need:
- π₯οΈ Computer with installed ADB-driver.
- π± Included debugging by USB on the phone (Settings) β The phone. β Version. MIUI β Press 7 times, then return to Additional β For developers β Debugging by USB).
- π USB-cable (preferably original).
Formatting commands:
adb shell recovery --wipe_data # Soft discharge (analogue of the 1 method)
adb shell recovery --wipe_cache # Cache cleanup
adb shell fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img # Disable verification (for custom firmware)For full formatting of all partitions (the equivalent of Clean All in Fastboot) use:
adb reboot bootloader
fastboot erase userdata
fastboot erase cache
fastboot flash userdata userdata.img # (if there is an image)This method requires knowledge of the command line and accuracy - the wrong command can damage system files. If you are not sure, you should use the Mi Flash Tool (method 4).
8.What to do after formatting: setup and recovery
Once reset, Xiaomi's phone will start as new.
- Choose the language and region (we recommend Russia to avoid problems with Google services).
- Connect to Wi-Fi (if the network is hidden, click Add Network manually).
- Sign in to Mi Account (if you forgot your password, restore it through the official website).
- Set up a Google account to sync your contacts and emails.
- Restore data from a backup (if done via Mi Cloud or Google Drive).
- Install the required apps (use the Mi App Store or Google Play).
On HyperOS models, after a reset, you may be prompted to transfer data from your old phone over Mi Mover. If you formatted your device because of viruses, do not restore data from your old backup - this can bring back malware.
Also check:
- π Security: Enable screen lock and virus scan (Settings) β Security).
- πΆ Network: Update the settings APN for mobile Internet (relevant for MTS, Beeline, Tele2).
- π Battery: Calibrate the battery after reset (discharge to 0% and charge to 100% without interruptions).
π‘
After formatting the first 2-3 days, the phone can run slower than usual, which is normal. MIUI optimizes the system for your usage habits.