Why deleting Mi Account on Xiaomi Mi5 can be a problem
The Xiaomi Mi5, launched in 2016, is still popular with users due to its balanced features and custom firmware support. However, its key feature β its binding to the Mi Account ecosystem β often turns into a headache. If you buy a used device, forget your password or encounter lockdown after resetting, standard login methods may not work. Xiaomi has tightly integrated protection: without an account confirmation, the phone turns into a brick with limited functionality.
Compounding the problem, the Mi5 is one of the first models to use the Mi Cloud Lock, which means that even after a Recovery reset, the system will require the previous owner to enter the username and password. In this article, we will look at all the current ways to delete the Mi Account in 2026, including bypassing the lock through the engineering menu, Fastboot and EDL mode β taking into account the specifics of this model.
Method 1: Delete Mi Account through settings (if the phone is unlocked)
The easiest way is to untie your account directly from the smartphone menu, which is fine if you have access to the device, you remember the Mi Account password, and the phone is not locked after the reset, and important, this method will not work if the Mi5 has firmware older than MIUI 10 installed, in which case the deletion point may not be available.
Instructions:
- π± Open the Settings. β Accounts. β Mi Account.
- π Enter your account password (if you request it).
- ποΈ Click on the three dots in the upper right corner and select Delete Account.
- β Confirm the action through SMS or email (if two-factor authentication is enabled).
After deleting, restart your phone. If you plan to sell the device, be sure to reset to factory settings via Settings β Additional β Restore and Reset. This will clear all data, including the Mi Cloud cache.
βοΈ Preparing for deletion of Mi Account
Method 2: Reset via Recovery Mode (if you forget your password but your phone is not locked)
If you donβt remember the Mi Account password, but the phone doesnβt require confirmation after turning on, you can try resetting your account via Recovery Mode.This method doesnβt guarantee 100% deletion β after a reboot, a login request may appear again. However, in 30% of cases (according to the 4PDA and XDA Developers forums), the lock is removed, especially if the account was previously undetached but the cache has not cleared.
Step-by-step:
- Turn off the Xiaomi Mi5.
- Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
- In the Recovery menu, select Wipe Data β Wipe All Data (control β volume buttons, confirmation β power button).
- After reset, go to Reboot β Reboot to System.
β οΈ Attention: On some firmware Mi5 (for example, MIUI 9 Global) after such reset, the error "This device is locked" appears. EDL.
What if the phone asks for an old Mi Account after a reset?
Method 3: Bypassing a lock through ADB (for power users)
The Android Debug Bridge (ADB) method is fine if the phone is debugging on USB, but login is blocked. This is rare, but if you've previously activated Developer Options, there's a chance. It works on MIUI 8-11 firmware.
What you need:
- π₯οΈ Computer with installed ADB and Fastboot.
- π USB-cable (preferably original).
- π File. mi_account_remover.zip (can be found 4PDA).
Instructions:
adb shell
su
mount -o rw,remount /system
rm /data/system/mi_account.xml
rebootIf the su command doesn't work, then there's no root rights on the phone, in which case, try an alternative script:
adb shell am start -n com.android.settings/.MiAccountSettings
adb shell input text "your password" # if you know the password
adb shell input keyevent 66β οΈ Attention: Use ADB It can cause soft-brick if you type in the wrong commands. Create a backup with adb backup before experimenting.
Method 4: Delete Mi Accounts via Fastboot (without losing IMEI)
One reliable way is to run your phone through Fastboot and remove the persist partition, which stores account binding information. This method is suitable for the Xiaomi Mi5 on any firmware, but requires an unlocked bootloader. If the bootloader is locked, first unlock it through the official Mi Unlock Tool (you will need to link to another Mi Account!).
Files required:
- π Fastboot firmware ROM for Mi5 (For example, Global Stable).
- π οΈ MiFlash utility (download from the official website).
- π§ Script for deleting the account (optional).
Step-by-step:
- Turn off the phone and press Volume Down + Power to log into Fastboot Mode.
- Connect the Mi5 to your PC and check for device detection by the command: fastboot devices
- Launch MiFlash, select the firmware folder and press Refresh.
- At the bottom of the utility, select Clean All (this will delete all data, including your Mi Account).
- Press Flash and wait until it is completed (5-10 minutes).
| MIUI version | Chance of deleting an account | Risk of losing IMEI |
|---|---|---|
| MIUI 7β8 | 90% | Low. |
| MIUI 9β10 | 70% | Medium (if not using Clean All) |
| MIUI 11+ | 50% | High (requires a patch to persist) |
π‘
If the phone is not networked after Fastboot, check IMEI with #06#. If zeros are displayed instead of the number, restore IMEI via the engineering menu (#4636##*) or the SN Writer Tool utility (NVRAM backup is required).
Method 5: EDL mode (for locked phones)
If the Xiaomi Mi5 is completely locked (requests Mi Account when turned on and does not respond to other methods), the last option is the firmware through Emergency Download Mode (EDL), which allows you to reflash the phone at a low level, bypassing all locks.
- π Authorized cable EDL (Or homemade with the closure of contacts Test Point).
- π» MiFlash or QFil (for Qualcomm-based firmware).
- π Firmware in.mbn or.elf format for Mi5 (gemini).
How to log into EDL:
- Turn off the phone.
- Close Test Point (on the Mi5 board, these are contacts next to the battery, see the diagram on 4PDA).
β οΈ Attention: Firmware through EDL erases all data without the possibility of recovery, including NVRAM (IMEI, MAC-Manual restoration may be required after the procedure IMEI And calibrate the sensors. Mi5 With Snapdragon 820 processor, there is also a risk of βbrickingβ when using incorrect firmware.
π‘
EDL mode is the only way to delete Mi Account with Xiaomi Mi5 if the phone is locked at the bootloader level. However, it requires technical skills and risks turning the device into a brick if you make a mistake.
What to do if nothing works: alternative solutions
If all of these methods have not worked, consider the following options:
- π§ Appeal in support of Xiaomi: Providing proof of purchase (check, contract), you can request unlocking through the official channel.
- π§ Service centers: Many workshops offer deletion of Mi Account for 500-1500 rubles (2026). IMEI.
- π Buying an unlock code: Online marketplaces like eBay or AliExpress sell unlock codes Mi5 (price ~$5β$10. Risk of fraud is high - check the seller's reviews.
- π Install custom firmware: LineageOS or Pixel Experience-based firmware bypasses checking your Mi Account, but requires an unlocked bootloader.
If you decide to sell the Mi5 with a tied account, honestly warn the buyer about the lock - it will save time for both. The average price for a blocked Mi5 in 2026 is 1,500-2,500 rubles (versus 3,000-4,500 rubles for an unlocked one).