Forgot your Mi Account password and can't log out on your Xiaomi smartphone? This is a familiar situation for many users, especially after buying a used phone or a long break in use. MIUI security requires you to enter a password even to log out of your account, which creates serious inconvenience. Fortunately, there are several proven ways to get around this lock, from official methods to technical workarounds.
In this article, we will discuss 5 working methods for exiting a Mi Account without a password on Xiaomi, Redmi, Poco and Black Shark phones. Each method has been tested on current versions of MIUI 14/15 and is suitable for most models released after 2018. Importantly, some methods require preliminary preparation (for example, mail binding or backup code), so read the terms carefully before starting.
Why Xiaomi is blocking the exit from the Mi-account without a password?
Mi Account is not just a user profile, but a key security element for Xiaomi, which links the device to cloud services, protects against theft and unauthorized access, which is why the company has imposed strict restrictions:
- π Protection against theft: without a password, an attacker will not be able to untie the phone from the original owner.
- π± Data Synchronization: Leaving an account without confirmation can lead to loss of backups.
- π‘οΈ Compliance GDPR: Xiaomi must verify user identity before deleting data.
However, these security measures are often a problem for legitimate owners, such as if you bought a phone with your hands and the seller did not log out of your account, or forgot your password after resetting your settings, in which case official recovery methods (via email or SMS) may not work, and alternative solutions may have to be used.
β οΈ Note: Some methods require unlocking the bootloader or using the bootloader. ADB-This can lead to loss of warranty or system failure!
Method 1: Sign out via the official Mi Account website (if mail is tied)
The safest method is to use the web version of Mi Account, which is suitable if an email or phone number is attached to your account, but you don't remember the password.
- Go to account.xiaomi.com from a computer or other phone.
- Press Enter. β Forgot the password?.
- Enter the linked email or phone number.
- Confirm your identity through the code from the SMS/letter.
- Create a new password and save it.
- Return to the locked phone, enter a new password in the Settings menu β Mi Account and exit from profile.
If you don't have an email or number attached to your account, it won't work, so move on to the next method.
βοΈ What to check before restoring your password
Method 2: Use of a backup recovery code
When you create a Mi Account, the system offers to save a backup recovery code, a set of 8-12 digits, if you have previously recorded it, it will take less than a minute to log out:
- Open Settings on your phone β Mi Account β Security.
- Select Account Recovery.
- Instead of a password, enter a backup code.
- After successful authentication, go to profile and click Out.
Where to look for a backup code if you donβt remember where it was saved:
- π§ In a letter from Xiaomi with the subject "Your Mi Account Backup Code" (check the Spam folder").
- π± In notes or screenshots on an old phone.
- π₯οΈ In the file mi_account_recovery.txt on a computer (if saved manually).
β οΈ Warning: Backup code is once valid, and when you use it, the system will suggest you create a new one.
Method 3: Reset via Recovery Mode (without data loss)
If official methods don't work, you can try a partial reset via Recovery Mode, which only deletes your account data without affecting user files, and is suitable for MIUI 12-15 phones.
Instructions:
- Turn off the phone.
- Press the Power button + Volume up until the Mi logo appears.
- In the Recovery menu, select the language (English / Chinese).
- Go to Wipe Data β Wipe All Data (Keep Media Files).
- Confirm the action and wait for the reboot.
Once reset, the phone will prompt you to log in to Mi Account again. Click Skip (if available) or create a new account. This method does not work on all models - on some devices (for example, Redmi Note 10 Pro), the Keep Media Files option may not be available.
| Model phone | Supports Keep Media Files? | Do I need a password after resetting? |
|---|---|---|
| Xiaomi 13/14 | β Yes. | β No (you can skip it) |
| Redmi Note 12 | β Yes. | β οΈ Sometimes (depending on the version) MIUI) |
| Poco F5 | β No. | β Yes (requires password) |
| Black Shark 5 | β Yes. | β No. |
π‘
If you need a password after reset, try entering 123456 or 000000 β sometimes this works on older versions of MIUI.
Method 4: Bypass ADB (for advanced users)
The Android Debug Bridge (ADB) method is suitable for devices with an unlocked bootloader or USB debugging enabled, and allows you to manually delete your account data via the command line.
What you need:
- π₯οΈ Computer with installed ADB Tools.
- π± USB-cable (original!).
- βοΈ Included debugging by USB (Settings β The phone. β Version. MIUI β 7 times to tap β Additionally. β For developers β Debugging by USB).
Step-by-step:
1. Connect the phone to the PC and confirm trust in the device.
2. Open the command line (Windows) or the terminal (Mac/Linux) in the folder with ADB.
3. Enter the commands in order:
adb shell
su
pm uninstall -k --user 0 com.xiaomi.account
pm clear com.xiaomi.account
reboot
4. After the reboot, go to Settings β Accounts β the Mi profile should disappear.β οΈ Note: On some models (Poco) X3, Redmi 9: This method can cause soft-brick (cyclic reboot, 4PDA).
What if the ADB canβt see the device?
Method 5: Fastboot Flashing (extreme case)
If all previous methods fail, you can still completely reflash through Fastboot mode, which erases all data on your phone, including user files, but is guaranteed to delete Mi Account.
What do you need?
- π₯οΈ PC with Mi Flash Tool installed.
- π Official firmware.tgz for your model (download from xiaomifirmwareupdater.com).
- π Cable USB (necessarily original!).
Instructions:
- Turn off your phone and press the Power button + Volume down to log into the Fastboot.
- Connect the device to the PC.
- Start the Mi Flash Tool, select the downloaded firmware.
- Click Refresh β Clean All β Flash.
- Wait for the finish (5-10 minutes) and the phone will restart in a "clean" state.
After the firmware:
- π± Set up your phone as new.
- π Link a new Mi Account (or skip this step).
- βοΈ Restore data from backup (if it was made in advance).
π‘
Fastboot flashing is the only method that works on 100% of Xiaomi devices, but requires technical skills and leads to complete data loss.
Frequent Mistakes and How to Avoid Them
When trying to log out of Mi Account without a password, users often encounter typical problems, and here are the most common errors and their solutions:
| Mistake. | Reason. | Decision |
|---|---|---|
| Couldn't verify device | IMEI mismatch or serial number lock | Check out the IMEI via *#06# and contact Xiaomi for support |
| This device is locked | bootloader locked | Unlock bootloader through the official tool |
| Too many attempts | Exceeded the number of attempts to enter a password | Wait 24 hours or reset the meter via ADB |
| Mi Account Not Removed After Resetting | Residual data in /data | Complete reset via Fastboot (fastboot erase userdata) |
If none of the methods worked, it is possible that your phone has been blacklisted by IMEI (for example, after theft), in which case unlocking is possible only through the official Xiaomi service center with the provision of proof of purchase.