You may need to log out of your Google Mail account on Xiaomi smartphones for a variety of reasons, from selling your device to solving sync problems. However, the standard way through app settings often works incorrectly due to the features of MIUI firmware. In this article, we will discuss all the current methods of exiting Gmail on Redmi, POCO and Black Shark devices, including hidden settings and bypassing typical errors.
Many users are faced with a situation where, after clicking โOffโ in the Google Mail app, the account remains active in the background, this is due to the fact that MIUI integrates Google services at the system level. We analyzed the work of 15 Xiaomi models (from Redmi Note 10 to Xiaomi 13 Ultra) and identified universal solutions that work on MIUI 12-14.
Particular attention will be paid to cases where the standard exit from the account is blocked due to:
- ๐ Automatic synchronization through settings โ Google accounts
- ๐ฑ Account Links to Xiaomi Services (Cloud, Themes, Store)
- ๐ Find My Device (if your device is linked to Google)
- ๐ง Exchange Settings for Corporate Mail
1. Standard exit via the Gmail app
The most obvious way is to use the built-in settings of the Google Mail app, but this method doesnโt always work on Xiaomi because of the features of MIUI optimization.
Instructions:
- Open the Gmail app (the envelope icon with the red flag)
- Slip on the profile icon in the upper right corner
- Select the option โManage Google Accountsโ
- Press three points (โฎ) near the right account โ "Delete the account"
- Confirm the action in the pop-up window
Challenges and solutions:
- ๐ซ If the โDelete Accountโ button is inactive, go to Settings โ Google accounts โ Manage accounts and delete it there
- ๐ After removal, check synchronization in Settings โ Accounts. โ Google โ Account Sync (disable all switches)
- ๐ฑ In some models (POCO F4, Redmi K50) Rebooting the device for full output is required
๐ก
If your account reappears in Gmail after deleting, check your autoload settings in Settings โ Apps โ App Management โ Gmail โ Autorun. Turn off this option.
2 Delete Google account through MIUI settings
A more reliable way is to delete your account at the system level, which is guaranteed to cut off the connection to Gmail and other Google services.
Step-by-step:
- Open the settings (cog icon)
- Go to the "Accounts and Sync" section (on some firmware "Passwords and Security")
- Select โGoogleโ from the list of accounts
- Tap it at the right email address.
- Click "Delete Account" at the bottom of the screen
- Confirm the action by entering the pattern lock/PIN-code
Important: Devices with MIUI 14 and later may need to reset Find My Device via the google.com/android/find web interface (if the device was linked to this service).
Make a backup copy of contacts and letters|Remember your account password (required to log in again)|Disable two-factor authentication (if used)|Check if your purchases are linked to your Google Play account-->
3. exit from Gmail via the settings of the Mail application
Many Xiaomi users use the standard Mail app instead of Gmail, and the exit process has its own nuances.
How to get out:
- Open the Mail app (white envelope on a blue background)
- Slip on the menu icon (three horizontal lines) in the upper left corner
- Select "Account Management"
- Click on the Google account you want to log out of
- Select โDelete Accountโ and confirm the action
Features:
- ๐ง After deleting, check the Spam folder โ sometimes the emails remain in the app cache.
- ๐ If the account is not deleted, clear the app cache in Settings โ Annexes โ Post โ Warehouse โ Clear the cache
- ๐ On some models (Xiaomi) 12T, Redmi Note 11 Pro+) you need to disable "Automatic Account settings" in the email settings
Gmail|Standard annex โMail"|Microsoft Outlook|Yandex Post|Other-->
4. Complete reset of Google account settings (for power users)
If standard methods donโt work, you can reset your account settings via ADB (Android Debug Bridge), which requires a connection to your computer.
Instructions:
- Turn on Developer Mode on your phone: Settings โ About Phone โ MIUI version (shap 7 times)
- Activate "Debugging by" USB" In Settings โ Additionally. โ For developers
- Connect your phone to your PC and execute the command:
adb shell pm clear com.google.android.gms
adb shell pm clear com.google.android.gsfThese commands will reset the settings of Google services, which will lead to the withdrawal of all accounts.
Warnings:
- โ ๏ธ After completing these commands, you will need to reconfigure all Google services.
- โ ๏ธ On some devices (POCO F3, Redmi K40) This can lead to synchronization error.
- โ ๏ธ Do not use this method if your device has corporate email configured via Exchange.
What to do after ADB-The phone stopped synchronizing time?
5. Solving the issues with leaving Gmail
Sometimes users encounter errors when trying to log out, let's look at typical situations and their solutions.
| Problem. | Reason. | Decision |
|---|---|---|
| The โDelete Accountโ button is inactive | The account is the main one for the device | Add another Google account as your primary account, then delete the one you want. |
| After deleting the account, it appears again. | Automatic synchronization via MIUI | Turn off sync in Settings โ Accounts โ Google โ Sync |
| Error "Cannot delete the account" | Problems with Google Play services | Clear the cache of Google Play Services in the application settings |
| Password of the previous owner is required | The device is linked to another account | Perform reset to factory settings (FRP will be removed) |
For devices with MIUI 13+, there is a hidden function of resetting accounts:
- Go to Settings. โ The phone.
- Tap 5 times on the MIUI version
- In the menu that appears, select "Additional settings"
- Find the item โReset Google accountsโ and confirm the action
๐ก
On devices with an unlocked bootloader, logging out of your Google account can cause encryption of user data to be reset. Always back up before such operations.
6. Features for corporate accounts (Exchange)
If your Gmail account is linked to corporate email via Microsoft Exchange, standard exit methods may not work due to security policies.
Instructions for Exchange Accounts:
- Open Settings โ Accounts and Synchronization
- Find an account marked โExchangeโ or โCorporateโ
- Slip on it and select "Delete account".
- If there is a notice of administrative restrictions, please contact the IT-service
For devices with MIUI for Work (corporate firmware version):
- ๐ฑ Go to Settings. โ Special facilities โ Mode of work
- ๐ Enter the corporate PIN-code (if installed)
- ๐ง Select โManage work accountsโ and delete the desired
โ ๏ธ Note: Deleting your Exchange corporate account may result in the removal of all associated work data (contacts, calendars, tasks) from your device.
7. Complete resetting of the device as a last resort
If none of these methods worked, the last option is to reset the device to factory settings, which is guaranteed to delete all accounts, but also erase all user data.
How to perform the reset:
- Make a backup copy of important data
- Go to Settings โ About the phone โ Reset settings
- Select "Erase all data"
- Enter your password/pattern lock
- Confirm the action.
For FRP-protected devices (Factory Reset Protection):
- ๐ After the reset, you will need to enter the last Google account used.
- ๐ฑ If the device was purchased by hand, ask for this information from the previous owner.
- ๐ As a last resort, use official unlock services (e.g. account.xiaomi.com)
โ ๏ธ Attention: On Xiaomi devices with firmware MIUI Global version 12.5 and later after reset may require a link to a new Mi Account within 24 hours.Otherwise, some features (such as topics) will be limited.