Xiaomi’s Complete Cleanup Before Selling: 7 Steps to Safely Reset

Selling a Xiaomi smartphone requires not only physical preparation of the device, but also the complete deletion of personal data so that the new owner does not get access to your information. Even after a standard reset, account traces, files in hidden memory areas or tied services can remain in the settings on the device.

Xiaomi smartphones feature deep integration with the Mi Account ecosystem, which can lock the device after reset, if you do not uncoup in advance. β†’ Reset, but also hidden nuances: cleaning MIUI from cache, deleting data from EEPROM (for advanced users, as well as checking for FRP-We will pay special attention to models with HyperOS, the new firmware that replaced the new system. MIUI 2026.

1.Reset preparation: what to do before cleaning

Before you start resetting, make sure you follow all the critical steps, and failing to do so can result in the device being locked after the reboot, especially on models with Mi Account tied and Find Device enabled.

First, unplug all accounts:

  • πŸ“± Mi Account: Go to Settings β†’ Xiaomi account β†’ If the device is linked to the account, you'll need to enter a password.
  • πŸ”‘ Google Account: Remove it from Settings β†’ Accounts. β†’ Google. It's preventing it. FRP-lock-up.
  • πŸ’³ Banking applications: deactivate them through settings (e.g. SberBank Online, Tinkoff) or delete them in Settings β†’ Annexes.

Second, keep important data:

  • πŸ“ Transfer your photos/videos to your PC or cloud (like Google Photos) and remember that you can’t recover them after resetting them.
  • πŸ“± Export contacts to VCF-file through Contacts β†’ Management β†’ Exports.
  • πŸ” Save passwords from Mi Browser or Google Chrome if they are not synced to the cloud.

πŸ’‘

If you sell a device with a memory card, format it separately through Settings. β†’ Warehouse β†’ Cleanup SD-Even after the reset, it may still have your files on it.

⚠️ Note: On Redmi Note models 12 and newer with HyperOS, a standard reset via settings may not delete data from the partition /vendor. For complete cleaning, you will need to use Fastboot (see section). 4).

2. Standard reset via settings: when this is sufficient

For most users, resetting via the settings menu is a sufficient option.

  • πŸ“± All installed applications and their data.
  • πŸ“‚ Personal files (photos, videos, documents).
  • πŸ”§ System settings (Wi-Fi, Bluetooth, wallpaper, etc.).

But it does not guarantee removal of:

  • πŸ”’ Data from protected sections (e.g, DRM-keyboard L1).
  • πŸ“‘ Modem settings (IMEI It remains, but network logs can be stored).

Instructions for MIUI and HyperOS:

  1. Open Settings β†’ About the phone β†’ Reset settings.
  2. Select Erase All Data (on HyperOS – Delete All Data and Settings).
  3. Enter. PIN-code or pattern lock if the system requests.
  4. Confirm the action and wait for the reboot (it will take 5-15 minutes).

Deleted all accounts (Mi, Google, social networks)

Important data (photos, contacts, passwords)

Find Device in Mi Cloud is disabled

Extracted. SIM-card and memory card (if any)

At least 50% of the battery is charged-->

Once reset, the device will load into a box-like state.

  • πŸ”„ No request to enter the old Mi Account (if it appears, see Section 5).
  • πŸ“± Absence of personal files in folders DCIM, Downloads (sometimes they stay).

3. Deep Cleanup: Delete Data via Fastboot

If you sell a flagship model (Xiaomi 13/14, Redmi K60) or a HyperOS device, a standard reset may not be enough, in which case use Fastboot mode to fully format all partitions.

You'll need:

  • πŸ–₯️ Computer with drivers installed ADB/Fastboot (Download from the official Android website).
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“„ Fastboot.exe (part of Platform Tools).

Step-by-step:

  1. Turn off your smartphone and press the Power button + Volume down to log into Fastboot.
  2. Connect the device to your PC and open the command line in the folder from fastboot.exe.
  3. Enter the commands in turn: fastboot devices (should display the serial number of the device) fastboot erase userdata fastboot erase cache fastboot erase system fastboot flash userdata empty.img (for complete data erase cache fastboot)
  4. Reboot the device: fastboot reboot

⚠️ Note: The fastboot erase system and fastboot flash userdata will remove the firmware, then you will need to reflash the device through the Mi Flash Tool (instruction in section 6!

What's empty.img?
This is an empty partition image that completely rewrites data to userdata, which can be downloaded from the XDA Developers forums or created independently through the command fastboot getvar max-download-size (the size must match the partition).

4.Mi Account Deletion: How to Avoid Locking After Reset

One of the most common problems with Xiaomi is blocking the Mi Account after a reset.

  • πŸ”’ The device was tied to the account but not untied before resetting.
  • πŸ“‘ Find the device in Mi Cloud enabled.
  • πŸ“± The phone was stolen and blocked by the previous owner.

To avoid blocking:

  1. Before reset, log out of Mi Account in the settings.
  2. Disable Find the device in Mi Cloud β†’ Find the device.
  3. If the device is already locked, it will be required: πŸ“§ Enter the login/password from the linked account. πŸ“ž Or provide the buyer with a check/guarantee pass to unlock through Xiaomi Service.

Xiaomi modelProbability of blocking after resetMethod of unlocking
Redmi 9/10/Note 11MediumEntering a Mi Account password or contacting the service
Xiaomi 12/13/14High (if "Find the device" is enabled)Only through official service with documents
POCO F3/F4/F5Low (if the account is untied)Reset via Fastboot without linking to your account
Black Shark 5/6High (Gaming devices with enhanced protection)Requires bootloader unlock (OEM Unlock)

Yes, I had to unblock it through the service.

I always untied my account in advance.

I don't know, I haven't tried to throw.

I have a different brand.-->

5. Checking the device after reset: what should disappear

After cleaning, make sure that all data is deleted.

  • πŸ“ Folders with personal files: DCIM (Photos, Downloads (downloads), Documents.
  • πŸ“± Installed applications: check in Settings β†’ Applications – only standard applications (Mi Browser, Camera, etc.).
  • πŸ”§ Settings: Wi-Fi networks, saved passwords, wallpaper, sound profiles.
  • πŸ”’ Accounts: in Settings β†’ Your accounts should not be your Mi or Google accounts.

How to check the hidden data:

  1. Connect your smartphone to your PC and use ADB to view content: adb shell ls /data/data/ (you should not have folders with your apps).
  2. Check the IMEI with *#06#, which must match what is on the box.
  3. Make sure that the Widevine L1 does not degrade to L3 (checked in the DRM Info app).

πŸ’‘

If the device requests the old Mi Account password after the reset, the account has not been untied. The only solution is to enter the password or contact the Xiaomi service center with purchase documents.

6. Flashing the device: when necessary

In some cases, after deep cleaning through Fastboot, the device may not boot or work unstable, this happens if critical parts of the firmware have been removed, in which case you will need to reflash the smartphone.

You'll need firmware.

  • πŸ–₯️ Mi Flash Tool (download from official website).
  • πŸ“¦ Firmware for your model (choose Fastboot) ROM).
  • πŸ”Œ Cable USB Type-C (for new models).

Instructions:

  1. Unpack the archive with firmware in a folder without Cyrillic characters.
  2. Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
  3. Connect the switched off smartphone in Fastboot mode (clamp Power + Volume down).
  4. Press Refresh in the program, then Flash.
  5. Wait until the end (10-20 minutes) and restart the device.

⚠️ Note: Firmware via the Mi Flash Tool will reset all data, including IMEI and DRM-keys, if you select the Clean All option. IMEI Use Clean All and Lock.

7. Physical preparation of the device for sale

In addition to software cleaning, pay attention to the appearance of the device:

  • 🧼 Wipe the screen and body with a microfiber wipe (without alcohol!).
  • πŸ”‹ Check the battery charge - optimally 50-80%.
  • πŸ“¦ Make sure you have: Charger (if you sell with it), Cable (original or certified), Box and documents (increase cost).

What to do if:

  • πŸ’₯ Screen is broken: specify this in the ad and reduce the price by 30-50%.
  • πŸ”‹ Battery worn out: check status via ##4636## (menu Battery Information). > 20%, offer a replacement.
  • πŸ“‘ Network problems: check out IMEI (It should match the box and test the connection with two. SIM-map.

πŸ’‘

If you sell a device with non-original firmware (for example, LineageOS), return the stockware MIUI/HyperOS. Buyers often abandon custom firmware due to problems with banking applications and Widevine.

FAQ: Frequent questions when cleaning up Xiaomi before selling

πŸ”Ή Should I remove it? SIM-pre-reset?
Yes, you must. SIM-card and memory card: the reset does not affect external media, but some data (for example, messages) may be stored in memory SIM. The memory card is better formatted separately.
πŸ”Ή Can you sell Xiaomi without a Mi Account?
Technically, it can, but the new owner won't be able to use the device -- once reset, it will require you to enter your login/password, which violates the rules of sale and can be considered fraud. Always untie your account!
πŸ”Ή How to verify that all data is deleted?
Connect your smartphone to your PC and use programs like DiskDigger or Recuva to scan your memory. If they can't find your files, the cleanup was successful. Also check the Android/data and Android/obb folders, which often leave traces of games.
πŸ”Ή What to do if you disappear after the reset IMEI?
This happens when the firmware or partition is not properly cleaned or nvram is not properly cleaned, and you can restore the IMEI by using the engineering menu (#3646633## β†’ Connectivity β†’ CDS Information β†’ Radio Information) or by using the Mi Flash Tool (select Clean All and Lock option). Without IMEI, the device will not catch the network!
πŸ”Ή How to Clean Xiaomi if it Doesn’t Turn on?
If the device doesn't respond to the buttons, try: Charge it for 30 minutes (sometimes a discharged battery blocks the onset); Hold Power + Volume up for 15-20 seconds for a forced reboot; If it doesn't help, flash it through Fastboot (see Section 6) or contact the service.