Xiaomi smartphone owners often face the need to untie their Google account before selling the device, transferring it to another user, or after resetting to factory settings.This is a critical procedure, as the Android security system known as Factory Reset Protection (FRP) can lock the device if the account is not deleted correctly. Mistakes can lead to the phone turning into a “brick” available only for emergency calls.
There are several proven ways of binding, ranging from regular uninstallation through the settings menu to more complex methods of resetting through Recovery or using debugging over USB. In this article, we will discuss each of them in detail, paying special attention to the nuances of the firmware MIUI and HyperOS. Careful follow the instructions will avoid blocking and save access to the device.
Before you start taking action, you need to figure out which method is right for your situation. If you have access to a menu and you know the password, it takes a couple of minutes. If you lose access or you forget the password, you need more complex manipulations. Google Services Framework is the system component that is responsible for synchronization, and it is the data that needs to be cleared or reconfigured for successful untiring.
⚠️ Warning: Before any account manipulation, make sure the device is at least 60% charged. interrupting the deletion process due to battery drain can cause system files to be damaged and cyclic reboot.
Preparation of the device and checking the account status
The first step should always be to thoroughly diagnose the current state of the system. Don't try to "break" or reset your phone right away if you can solve the problem software. Go to the settings section where all the connected services are displayed. Usually the path looks like Settings → Accounts and Sync or Settings → Google. Here you will see a list of all the associated mailboxes.
If you want to transfer your device to another person, it's not enough to log out of your account, you need to delete it completely from your phone's memory, and this action will break the link between your unique device identifier (IMEI) and your profile in Google databases, and then the phone will no longer require you to enter a password the next time you activate it.
☑️ Pre-deletion check
It is important to check whether the device is activated with Find My Device. While it is active, the system will prevent the full deletion of the account without confirming the password. Two-factor authentication can also complicate the process if you do not have access to the associated phone number or backup codes.
Deleting your account through MIUI settings
The safest and most appropriate method that Xiaomi and Google recommend is to remove it from the regular menu, which works on all versions of the shell, whether it’s the old MIUI 12 or the latest HyperOS. You’ll need a stable Internet connection, as the system needs to send a request to servers to confirm the removal.
The algorithm is simple enough, but it requires care. Find the Accounts section (or Users and Accounts) in the settings. Choose the email address you want. In the menu that opens, click on Delete Account or More. → Delete your account. The system will alert you that all data associated with this profile (contacts, calendar, notes) will be deleted from your device.
| Action. | Description of the process | Risks. |
|---|---|---|
| Removal through settings | The regular method through the phone menu | Minimum password required |
| Reset via Recovery | Completely cleansing data with buttons | High risk of FRP blocking |
| Use of ADB | Removal via PC Command Line | It takes skills, it takes debugging. |
| Third-party utilities | Applications for cleaning accounts | Risk of data leakage, viruses |
Once confirmed, the phone can think for a few seconds, synchronizing changes with the server. It's critical to wait for the account to disappear from the list. If the list is empty, the link is severed, and the device is ready to be reset or transferred to a new owner without the risk of locking.
💡
If the Delete Account button is inactive (gray), it may be that the phone has superuser rights (Root) or device administrator rights in the security settings have been activated.
FRP (Google Lock) Problem Solved After Reset
The situation where the user has made a Hard Reset without first deleting the Google account is one of the most common, in which case the FRP protection is triggered. When turned on, the phone will require you to enter the password from the last synchronized account, without which you can not log in.
The official way to unlock is to remember your password. If you forget your password and your account is tied, things get complicated. There are workarounds that are often discussed in the 4PDA forum, but they depend on the specific version of Android and the security patch. For example, on Android 11 and below, resetting availability settings through voice input sometimes helps.
⚠️ Attention: Use of informal circumvention techniques FRP (via TeamViewer, date change, special APK-files) may be regarded by Google as an attempt to hack (13/14) Most of the simple methods are already closed.
If standard methods don’t work, sometimes you need to flash the device using tools like the Mi Flash Tool. However, Xiaomi’s fastboot mode is often blocked and requires a wait of 168 hours (7 days) after you apply for the official Mi Unlock service, which creates a vicious circle for those who can’t log in.
What do you do if nothing helps?
Using ADB for Advanced Removal
For users who are not afraid of the command line, there is a method of deleting an account through the ADB (Android Debug Bridge. This is effective if the system interface is working, but the delete menu is blocked or glitches, USB-cable and installed drivers ADB.
First, activate USB debugging mode. Go to Settings → About Phone and quickly press 7 times on MIUI Version (or OS Version) until you see “You’ve become a developer.” Then, in the advanced settings, turn on “Debugging over USB.”
adb shell pm clear com.google.android.gms
adb shell pm clear com.android.settingsPerforming these commands will clear Google services and settings, sometimes allowing you to “pass” the account verification step when you reconfigure it. However, on modern versions of MIUI, this method often requires root rights, which are difficult for the average user to obtain without an unlocked bootloader.
It's worth noting that ADB is a powerful tool, and if you don't type commands correctly, you can make the system work in a way that's not stable. If you're not sure what you're doing, you'd better limit yourself to standard methods. The command line doesn't forgive mistakes, especially when you're working with system packages.
Mi Account and Dual Protection
Xiaomi owners should be aware of the second layer of protection, Mi Account, which is the brand’s own account, which is often intertwined with Google. If the phone has the Find Device feature enabled in the Mi Cloud service, resetting Google account will not help unlock the phone after Hard Reset.
When you turn on the device after a reset, it can request a password from the Mi Account, ignoring Google. So before selling or resetting, be sure to check the Settings → Mi Account section. There should be a button “Get Out” or “Delete the Acca.” Just clearing the Mi Cloud Services application data is not enough, you need to untie the device from the server.
Dual protection (Google + Mi) creates a serious barrier for attackers, but can be a headache for forgetful owners. Synchronizing data into two clouds at the same time sometimes leads to conflicts, where deleting one account blocks the work of another.
💡
Xiaomi’s full preparation for the sale requires deleting both Google and Mi accounts, and disabling the Find Device feature in both services.