Decoupling a Gmail account from a Xiaomi smartphone is a procedure that users experience when selling a device, resetting to a factory setting or switching to another sync service. However, many people do not realize that simply deleting email through MIUI settings does not always lead to a complete disconnection between the device and the Google account, which can result in a Factory Reset Protection (FRP) β a protection against theft that requires the username and password of the previous owner.
In this article, we will discuss 5 working methods of decoupling Gmail from Xiaomi (including models on the MIUI 14/13 HyperOS, and we will explain how to get around it. FRP-locking without loss of data, and caution against typical errors that lead to a βbrickβ of the device, especially for devices with unlocked bootloader and those who use two-factor authentication (2FA).
Why you canβt just delete Gmail through your settings
Many users mistakenly believe that deleting a Google account through the Settings menu β Accounts and sync completely breaks the connection between the device and the mail. In fact, this only works until the first hard reset (Wipe Data:
- π Block the screen to require you to enter your previous account data (FRP-lock).
- π± Refuse to activate new ones SIM-Cards before confirmation of ownership.
- β οΈ Remove access to Mi Cloud if your mail was linked to Xiaomi services.
The reason lies in the Factory Reset Protection mechanism, which Google has implemented in Android 5.1+.This feature links the hardware device identifier to the account, and even after deleting mail through the MIUI interface, the communication is stored in the system partition (/data/system).
Method 1: Standardly delete your Google account (without resetting)
This is a good method if you donβt plan to reset your smartphone to factory settings and just want to unplug Gmail from current services. Importantly, after this procedure, apps from Google Play will stop updating, and Gmail, YouTube and other services will require re-entry.
- Open Settings β Accounts and Synchronization.
- Select Google and tap the right account.
- Click Delete Account (in some versions of MIUI β Disable Sync β Delete).
- Confirm the action with a password or fingerprint.
β οΈ Note: If you then reset through Settings β The phone. β Resetting, the device will require you to enter your remote account information when you first set up. To avoid this, use Method 3 or Method 4.
Make a backup of contacts and photos
Remember the password from your Google account
Turn off two-factor authentication (if enabled)
Check that the device is charged at least 50 times%-->
Method 2: Remove from the developer settings (for MIUI 14/HyperOS)
This method allows you to completely erase Google account data from system files, but requires you to turn on the developer mode.Suitable for devices on MIUI 14 and later, where standard deletion does not work due to Google policy.
- Activate Developer Mode: Go to Settings β About Phone. Tap 7 times on MIUI. Enter the device password if needed.
Settings β Additional β For Developers
OEM-unlock
Settings β Accounts and Synchronization β Google
Reset the device.
After this procedure, the communication between Gmail and the smartphone will be severed at the system partition level, and FRP-However, some models (such as Xiaomi 13 Pro or Redmi Note 12) may require additional disabling of the Mi Account.
What if the βOEM-unlockβ option is inactive?
Method 3: Bypass FRP via Fastboot (for locked devices)
If you have already done the reset and are faced with FRP-By locking (a screen requiring you to enter your previous account information), this method will help bypass the protection without entering a password. 2019β2023 year of release, but requires a computer with installed drivers ADB/Fastboot.
- Download and install Googleβs Platform Tools.
- Connect the locked smartphone to the PC through USB-cable.
- Press Volume Down + Power to enter Fastboot.
- In the command line (on PC) run: fastboot erase frp
- Reboot the device with command: fastboot reboot
β οΈ Note: Some models (e.g. Xiaomi) 12T or Redmi K50) This command may not work because of the protected partition frp. In this case, try an alternative method:
fastboot erase config
fastboot rebootOnce the device is rebooted, it will prompt you to configure it as new, without requiring you to enter an old account, but this method can result in loss of /data data, including photos and messages.
Method 4: Use of Mi Unlock Tool (official method)
If previous methods did not work, you can use the official tool from Xiaomi β Mi Unlock Tool. This method is suitable for devices with an unlocked bootloader and allows you to completely erase the binding to Mi Account and Gmail.
- Download Mi Unlock Tool from the official website.
- Sign in to the tool using the same Mi Account that is linked to the phone.
- Connect your smartphone in Fastboot mode (clip Volume down + Power).
- Press Unlock and wait until the process is complete (it can take up to 10 minutes).
| Xiaomi model | Supports Mi Unlock? | Waiting is required. |
|---|---|---|
| Redmi Note 11/12 | β Yes. | 72 hours |
| Xiaomi 13/13 Pro | β Yes. | 168 hours (7 days) |
| POCO F4/F5 | β Yes. | 48 hours. |
| Xiaomi Pad 6 | β No. | β |
β οΈ Note: Once the bootloader is unlocked, all data on the device will be permanently deleted, and Xiaomi can block the ability to unlock for 3-7 days if you have previously performed this procedure.
1. Connect the smartphone to another USB-port (preferably 2.0).
2. disable the antivirus on the PC.
3. Use the original Xiaomi cable (not all USB-Type C cables support data transfer to Fastboot).-->
Method 5: Manual file editing (for advanced users)
This method is suitable for those who have root rights or custom recovery (such as TWRP), which allows you to manually delete the files responsible for linking Gmail and FRP without resorting to a complete reset.
- Install TWRP Recovery or another custom recovery.
- Load into the recaveri (Loudness up + Nutrition).
- Go to Advanced β File Manager.
- Delete the following files: /data/system/gesture.key (if any) /data/system/locksettings.db /data/system/locksettings.db-wal /data/system/locksettings.db-shm /data/system/frp/ (whole folder)
Reset the device.
After that, the smartphone will boot without requiring Gmail input, but all security settings (including the pattern lock and PIN) will be reset. This method does not work on devices with FBE (File-Based Encryption) encryption, used in Android 10+.
π‘
If the device does not boot after deleting the files, restore them from the backup or perform a full reset via TWRP.
Frequent Mistakes and How to Avoid Them
When uncoupling Gmail from Xiaomi, users often face typical preventable problems:
- π Cyclical reboot after reset - occurs if you do not delete the frp partition. Solution: use Method 3 or Method 5.
- π Requests for proof of ownership β appear if you do not disable Mi Account. Solution: before reset, delete Xiaomi account in Settings β Mi Account.
- β³ Waiting 72-168 hours in Mi Unlock is related to Xiaomiβs policy.Solution: link the device to your account in advance (3-7 days before unlocking).
Another common mistake is using informal FRP bypass tools (such as FRP Bypass APK), which often contain malicious code or do not work on newer versions of MIUI, and instead, use the official methods in this article.