Selling a Xiaomi smartphone is not only a matter of price and presentable appearance of the device, but also a guarantee of the security of your personal data. Even after a standard reset to factory settings, experienced attackers can recover photos, correspondence or passwords using specialized software. In this article, we will discuss how to properly prepare Xiaomi for sale to prevent leakage of information and avoid problems with the new owner.
Xiaomi phones are deeply integrated with the Mi Account ecosystem, which connects the device to cloud services, payment systems, and even a smart home. Simply deleting files is not enough: untie the account, deactivate MIUI protection, and make sure the reset is error-free. We'll look at all the steps from backing up to checking the device after cleaning.
Why a routine reset is not enough: the risks of data recovery
Many users mistakenly believe that the factory reset option in Xiaomi's menu completely erases information.
- ๐ Files remain on the disk โ reset only removes links to them in the file system. Special utilities (for example, DiskDigger or Recuva) can recover up to 80% of data.
- ๐ Logins and passwords are saved โ browsers, messengers and applications often cache authorization data in protected memory areas.
- ๐ฑ Mi Account remains tied โ the new owner will not be able to activate the device without your login / password (risk of locking through Find Device).
V 2023 In the past year, researchers from Kaspersky conducted an experiment: 10 Xiaomi smartphones after reset and recovered from them more 3000 photo, 500 The reason is the lack of full disk encryption and the use of outdated cleaning methods (for example, fastboot erase userdata without a flag). --force).
โ ๏ธ Note: If you sell Xiaomi with an unlocked bootloader, an attacker can reflash the device and access your backups in the Mi Cloud. Be sure to check the lock status through the fastboot oem device-info command.
Step 1: Backing up important data
Before cleaning, save everything you need. Xiaomi has built-in redundancy tools, but they don't cover all scenarios:
- โ๏ธ Mi Cloud โ automatically syncs contacts, notes, photos (if enabled). โ Mi Account โ Mi Cloud.
- ๐ฑ Local copy โ created through Settings โ The phone. โ Backup. Select "System Data" and "Applications".
- ๐พ Manual copying โ transfer to PC or external drive: Folder DCIM (Photo/video) Downloads folder (downloads) Files from Android/data (play-off)
What is NOT automatically saved:
- ๐ Wi-Fi Passwords (Export through Settings) โ Wi-Fi โ Save networks).
- ๐ฎ Save games (use Google Play Games or manual copying).
- ๐ SMS/MMS (apps SMS Backup & Restore will help you).
Synchronize with Mi Cloud|Create a local backup copy|Copy the folder. DCIM PC-only|Exporting Wi-Fi passwords|Save. SMS third-party|Checking game saves-->
If you use Google Photos for backup, make sure all media files are uploaded in their original quality. Open the app, go to Settings โ Backup and Sync, and check status.
Step 2: Delete your Mi Account and untie your device
The most common mistake when selling Xiaomi is forgetting to exit the Mi Account, which leads to:
- ๐ซ Locking the device via Find Device (new owner will not be able to use the phone).
- ๐ Automatically synchronize your data to someone elseโs device.
- ๐ณ Access to Mi Pay and other payment services.
Step-by-step:
- Open Settings โ Accounts and Sync โ Mi Account.
- Click on your profile and select Delete Account.
- Enter the password for confirmation.
- Reset the device.
If the option to delete the account is inactive:
- ๐ง Check if the unlock is enabled OEM In Settings โ For developers (if not, turn on and try again).
- ๐ถ Make sure your phone is connected to the internet (required to be checked by Xiaomi server).
- ๐ Try to delete your account through the web version of Mi Account (Device Management section").
โ ๏ธ Note: On Xiaomi models with MIUI 14+ After deleting the account, you may need to enter a password the next time you log in to Settings โ It's normal -- that's how theft protection works.
๐ก
If your phone is locked after deleting your account, try resetting it via fastboot with a flag. --erase_frp. This will remove the link to the Google account (FRP).
Step 3: Complete reset to factory settings
Now, to reset itself, Xiaomi has two ways:
| Method | Advantages | Deficiencies | Suitable for |
|---|---|---|---|
| Through the settings menu | Just, it doesn't require a PC. | It is not always possible to delete data completely. | Models on MIUI 12-14 |
| Through fastboot. | Guaranteed removal of all sections | Requires a computer and drivers | All models, especially those with unlocked bootloader |
| Through Recovery. | It works without a PC, clears the cache | Does not delete Mi Account on new firmware | Devices with a locked bootloader |
Method 1: Reset via Settings (for most users)
- Go to Settings โ About the phone โ Reset settings.
- Choose to erase all data.
- Check the box to clear internal memory (if you have an option).
- Confirm the action and wait for the reboot (it will take 5-10 minutes).
Method 2: Reset via fastboot (maximum cleaning)
This is a method that's suitable for advanced users, and you'll need to:
- A computer with ADB/Fastboot drivers installed.
- USB Type-C cable (original)
- Unsealed Platform Tools from Google.
fastboot devices # Check the connection
fastboot erase userdata # Deletion of user data
fastboot erase cache #Cache cleanup
fastboot erase frp # Delete FRP (Google account)
fastboot rebootFor models with Dynamic Partitions (e.g. Xiaomi 12/13), use:
fastboot erase --allโ ๏ธ Note: On certain devices (e.g, POCO F5) The fastboot erase userdata command can lead to a "brick" (unbootable state) if you do not first unlock the bootloader. XDA Developers.
Through the settings menu | Through Recovery | Through fastboot |I don't know what this-->
Step 4: Checking the device after resetting
Don't rush to hand over the phone to the customer, make sure all data is deleted.
- ๐ฑ First start โ the device must prompt you to select a language and region, as in the first setup.
- ๐ Memory Check โ Open the File Manager and make sure the folders are DCIM, Downloads and Android are empty.
- โ๏ธ No Accounts โ in Settings โ Accounts should not be linked to Mi Account or Google.
- ๐ Security โ Enable Find Device through your new account and check that the old owner canโt remotely lock the phone.
For a thorough check:
- Install DiskUsage from Google Play, and it shows you occupied space, and if you have more than 1-2 GB of data taken after reset, the data is not completely deleted.
- Connect your phone to your PC and check through ADB: adb shell ls /data/data The folder should be empty (except for system files).
How to check residual data through ADB?
Step 5: Additional Security Measures (for Paranoids)
If you sell a phone with sensitive information (like a Xiaomi worker), a standard reset isn't enough.
- ๐ Encrypting data before reset: Go to Settings โ Security โ Encrypt your phone. Set your password and wait until it's done (it can take an hour.
Replacement of IMEI (for experienced)
Redmi Note 10 Pro
POCO X3
#
#
Physical clean-up
eMMC
Xiaomi
dd
ADB
adb shell
su
dd if=/dev/zero of=/dev/block/mmcblk0 bs=1Mโ ๏ธ It will destroy all partitions, including firmware! Use only if you are confident in your actions.
Which won't help:
- โ Delete files manually โ they remain in memory and are restored.
- โ Recovery formatting without fastboot โ does not affect system partitions.
- โ Use Clean Master Apps โ They Only Clear Cache.