Resetting the Xiaomi Mi 5 to factory settings is a necessary procedure when selling a device, fixing software failures or preparing for firmware. However, missteps can lead to Mi Account locking, data loss or even a smartphone bricking up. In this article, three proven reset methods (including hidden Recovery 3.0 features) that work even on devices with a locked bootloader.
The Mi 5 is a feature that uses the older version of MIUI Recovery, which doesn't have the usual "Wipe Data" option, so instead you have to combine commands or use Fastboot, and we'll take each method into account nuances, from saving IMEI to bypassing the "This device is locked" error.
Preparation for resetting: what to do before zero
Before resetting the Xiaomi Mi 5, follow the mandatory steps to avoid losing important data and activation issues:
- π± Save it. IMEI: Write down numbers from a battery sticker or type in *#06#. After resetting, they can be reset if the device has been unlocked.
- π Unplug Mi Account: Go to Settings β Xiaomi account β Without this, after resetting, the phone will require entering the username / password of the previous owner.
- π Copy data: photos, contacts and messages. Use Mi Cloud or a physical connection to your PC (folder) DCIM For photos, Downloads for files).
- π Charge the battery to at least 50%. interruption of the reset process due to discharge can lead to a load cycle.
If you reset your phone before selling, be sure to delete all Google accounts in Settings β Accounts. Otherwise, the new owner will not be able to log in to their profile due to Factory Reset Protection (FRP).
π‘
To speed up backup, connect the Mi 5 to your PC via the original cable and use the Mi PC Suite program.It automatically saves SMS, call log and applications to the cloud.
Method 1: Reset via the settings menu (the safest)
This method is suitable if the phone turns on and you remember the pattern lock/password. the interface may vary depending on the version of MIUI (on the Mi 5 it usually costs MIUI 8-10):
- Open the settings (cog on the desktop).
- Go to Additional Settings β Recovery and Reset.
- Select Settings Reset (not to be confused with Network Reset!).
- Confirm the action by entering the lock password.
- Wait for the reboot (it will take 3-5 minutes).
If there is no Recovery and Reset, try an alternative route:
Settings β About phone β System update β Menu (three dots) β Reset settingsMake sure your phone is charged | Disable two-factor authentication in Mi Account | Copy files from internal memory |Remember your Google account password-->
β οΈ Note: Some firmware may have a "This device is locked" error after a reset, which means that the bootloader is locked. The solution is to link the device to Mi Account in Fastboot (see Method 3).
Method 2: Hard Reset via Recovery (if the phone is not turned on)
If the Mi 5 is stuck on the logo or does not respond to touch, use Recovery Mode. This model has MIUI Recovery 3.0, where there is no standard Wipe Data item.
- Turn off the phone (press Power + Volume up for 10 seconds).
- Press Power + Volume up until the Mi logo appears.
- In the Recovery menu, select the language (English is recommended).
- Go to Wipe & Reset β Wipe All Data.
- Confirm the action by selecting Confirm.
- After reset, select Reboot β Reboot to System.
If you donβt have Wipe All Data in Recovery, use the following combination:
Wipe & Reset β Wipe Cache β (return) β Wipe User Data| Problem. | Reason. | Decision |
|---|---|---|
| Recovery doesn't open | Recovery section damaged | Swipe Recovery through Fastboot (see Method 3) |
| E:unknown command error | Incompatible version of Recovery | Install TWRP for Mi 5 (twrp-3.5.2-gemini.img file) |
| After reset, asks for a password | Actively linked to Mi Account | Log in or reset via Mi Unlock Tool |
What if Recovery asks for a password?
Method 3: Fastboot Reset (for power users)
This method requires a computer and an unlocked bootloader, and it's the only way to help if:
- π The phone is stuck in bootloop (cyclical reboot).
- π Forgot the lock password and Mi Account.
- π± We need to do custom recovery (TWRP).
Procedure:
- Install Mi PC Suite and ADB/Fastboot drivers.
- Turn off the Mi 5 and press Power + Volume down to log into the Fastboot.
- Connect your phone to your PC and open the command line in the folder with the platform-tools.
- Type commands in order: fastboot oem unlock fastboot flash recovery twrp.img fastboot boot twrp.img fastboot erase userdata fastboot erase cache fastboot reboot
If the bootloader is locked, unlock it first through the Mi Unlock Tool (requires Mi Account binding to the device 72 hours before unlocking).
β οΈ Attention: The fastboot erase userdata and fastboot format userdata commands delete all data without recovery, including photos in internal memory. If you need to save files, first remove the memory card (if you have one).
Frequent mistakes after resetting and how to fix them
Even after a successful Xiaomi Mi 5 reset, there may be problems, and here are the most common solutions:
- π΅ No network: IMEI Reset it to 0 or Null. Restore it via the engineering menu (#4636##) or program SN Writer Tool.
- π Requires Mi Account: Device is tied to old account.Use Mi Flash Tool with clean all and lock option).
- π Logo hovers: System partition damaged. Run your phone through Fastboot with official firmware.
- π± It doesn't work: Maybe the battery's dead. Connect the charger for 30 minutes, then try again.
If the phone stopped seeing after the reset SIM-maps, check network settings:
β SIM-maps and mobile networks β Access point settings (APN)Make sure you select the right operator (not "Select automatically").
π‘
After resetting via Fastboot, always check the integrity of the modem partition. If the IMEI is missing or there is no network, reflash this partition separately with the command fastboot flash modem NON-HLOS.bin.
How to Avoid Mi Account Lockdown After Resetting
The main problem when selling Xiaomi Mi 5 is blocking Mi Account, which requires entering the username / password of the previous owner.
- Before resetting, untie your account in Settings β Xiaomi Account β Sign out.
- If the phone is already reset and asks for an account, try: Enter the previous owner's details (if the phone is purchased by a used one); Use the Mi Flash Tool with the clean all and lock option (removes the binding, but requires an unlocked bootloader); Contact Xiaomi Support with proof of purchase.
Since MIUI 12, Xiaomi has tightened its security policy: If a device has been stolen, it is impossible to unlock it without proof of purchase.