How to log out of your Mi Account on your Xiaomi phone without a password: all the ways of 2026

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!

πŸ“Š What kind of Xiaomi phone is you?
Redmi Note 12/13
Poco X5/F5
Xiaomi 13/14
Black Shark
Another model

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.

  1. Go to account.xiaomi.com from a computer or other phone.
  2. Press Enter. β†’ Forgot the password?.
  3. Enter the linked email or phone number.
  4. Confirm your identity through the code from the SMS/letter.
  5. Create a new password and save it.
  6. 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

Done: 0 / 4

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:

  1. Open Settings on your phone β†’ Mi Account β†’ Security.
  2. Select Account Recovery.
  3. Instead of a password, enter a backup code.
  4. 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:

  1. Turn off the phone.
  2. Press the Power button + Volume up until the Mi logo appears.
  3. In the Recovery menu, select the language (English / Chinese).
  4. Go to Wipe Data β†’ Wipe All Data (Keep Media Files).
  5. 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 phoneSupports 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?
1. Install Xiaomi drivers USB Drivers from the official website. 2. Check if the debugging is included USB developer-setting. 3. Try another one. USB-cable (preferably original). 4. Restart your phone and PC. 5. If you are using Windows, disable the driver signature (bcdedit) /set nointegritychecks on in CMD on behalf of the administrator).

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:

  1. Turn off your phone and press the Power button + Volume down to log into the Fastboot.
  2. Connect the device to the PC.
  3. Start the Mi Flash Tool, select the downloaded firmware.
  4. Click Refresh β†’ Clean All β†’ Flash.
  5. 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 deviceIMEI mismatch or serial number lockCheck out the IMEI via *#06# and contact Xiaomi for support
This device is lockedbootloader lockedUnlock bootloader through the official tool
Too many attemptsExceeded the number of attempts to enter a passwordWait 24 hours or reset the meter via ADB
Mi Account Not Removed After ResettingResidual data in /dataComplete 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.

Can I log out of my Mi Account without resetting my phone?
Yes, if you have access to a linked mail or backup code, use Method 1 or Method 2 in this article, and if you don't, you'll have to reset (partially or fully).
What to do if your phone requires a password after resetting through Recovery?
This means that the Keep Media Files option didn't work. Try: Enter the standard passwords: 123456, 000000, xiaomi123. Use Method 4 (ADB) to manually delete your account. Complete a full reset via Fastboot (Method 5).
How do I know if my Xiaomi bootloader is unlocked?
Turn off your phone and press Power + Volume down. If you see Unlocked at the bottom of the screen, the bootloader is unlocked. If Locked, you'll need official unlocking through the Mi Unlock Tool.
Can I bypass my Mi Account through the Engineering Menu?
No, the engineering menu (#4636###) doesn't have options for managing Mi Account. All hacks through the engineering menu are myths or scams. Don't waste your time looking for those methods.
How much does it cost to officially unlock a Mi-account in the service center?
Cost depends on the model and region: πŸ‡·πŸ‡Ί Russia/CIS: 1,500–3,000 β‚½ (free-check). πŸ‡ͺπŸ‡Ί Europe: 20-50 €. 🌍 Asia/USA: 30–80 $. Without proof of purchase, unlocking may not be possible (if the phone is on the stop list).