Resetting settings on smartphones Xiaomi is a standard procedure when selling a device, eliminating system errors or preparing for firmware. However, after hard reset many users encounter a problem: the phone requires you to enter data Google accountthat was linked before the reset. If you have forgotten your login/password or the device was purchased second-hand, this situation can turn into a real headache.

The system Factory Reset Protection (FRP), implemented by Google to protect against theft, blocks access to the smartphone without confirming the owner's rights. On Xiaomi s MIUI this protection works especially tough: even knowledge of account data does not always guarantee unlocking due to implementation features. Mi Account. In this article we will analyze all working methods of restoring access from standard methods to bypassing FRP on different versions Android and MIUI.

Important: the recovery procedure depends on the version Android (from 5.1 to 14), model Xiaomi (series Redmi, POCO, Mi) and reset type (via Recovery or Settings). Some methods may not work on devices with the latest security updates.

If you purchased Xiaomi secondhand and the previous owner has not deleted his account, contact him to transfer the data. Otherwise, unlocking may require official confirmation of ownership through the Xiaomi service center (for models linked to Mi Account).

๐Ÿ“Š What Xiaomi smartphone do you have?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Another Xiaomi
Not Xiaomi

1. Standard recovery of a Google account after a reset

If you remember your data Google account, but the phone does not accept them, the problem may lie in incorrect input, an outdated password, or temporary account blocking. Follow the algorithm:

1. On the lock screen after resetting, select the language and connect to the network Wi-Fi (required!).

2. Enter email (in full, with domain @gmail.com or others) and password. If an error appears "This account was not synchronized with the device" โ€”try:

  • ๐Ÿ”„ Reboot the phone (hold Power + Volume up 10 seconds).
  • ๐Ÿ”‘ Recover your password via Google recovery page (use a PC or another phone).
  • ๐Ÿ“ฑ Make sure that the account is not deleted or blocked (check via Gmail on another device).

If the account is confirmed, but the phone still does not unlock, the problem may be in Mi Account. On Xiaomi c MIUI 12+ you need to link both accounts. Try entering the data Mi Account on the lock screen. (button "Other account" or "Log in via Xiaomi").

โš ๏ธ Attention: If you use two-factor authentication (2FA) on Google, after recovering your password, you may need a code from SMS or application Google Authenticator. Make sure you have access to backup codes or a second device.

2. Bypass FRP on Xiaomi through settings (for Android 8-11)

On devices with Android 8โ€“11 (including MIUI 10โ€“12.5), you can bypass FRP lock. data-i="97">"Emergency call" through the settings menu. This method works if, after resetting, the phone allows you to open "Emergency Call" or "Special features".

Step-by-step guide:

  1. On the lock screen, tap "Emergency call".
  2. Enter combination ##4636## (the testing menu will open).
  3. Select "Phone information" โ†’ "Battery information".
  4. Hold the battery icon for 5 seconds - it will open menu "Accessibility".
  5. Go to Settings โ†’ Users โ†’ Add user and create a new user.
  6. Go back to the lock screen, select a new one user and complete setting up the device.
  7. In the settings of the new user, delete the old Google account through Settings โ†’ Accounts.

After that, reboot the phone and set it up as a new device. This method does not work on all models. data-i="116">or POCO X3 or Redmi Note 10 With the latest updates, an alternative method may be required.

โ˜‘๏ธ Preparing to bypass FRP

Done: 0 / 4

3. Unlocking via Mi Account (for linked devices)

Smartphones Xiaomi with MIUI are often linked to Mi Account โ€”the manufacturer's own account. If after resetting the phone requires you to enter data Mi Accountand you do not remember them, there are two options:

Method 1: Restore via the official website

  • ๐ŸŒ Go to account.xiaomi.com.
  • ๐Ÿ”‘ Click "Forgot your password?" and restore access via email or phone.
  • ๐Ÿ“ฑ If the account is linked to a phone number, request an SMS code.

Method 2: Removing the link through the service center

If the device was purchased second-hand and the previous owner did not unlink it Mi Account, you can officially unlock it only through the service center Xiaomi with the provision of:

  • ๐Ÿ“„ Purchase receipt (or purchase and sale agreement).
  • ๐Ÿ†” Passports of the new owner.
  • ๐Ÿ“ฑ IMEI of the device (find out through *#06#).
โš ๏ธ Attention: Unofficial services offer deletion Mi Account for a fee (from 500 to 2000 rubles), but this violates the terms of use Xiaomi. After such intervention, problems with updates or operation may arise. MIUI.
What to do if Mi Account is blocked?

If Mi Account is blocked for suspicious activity, recovery may take up to 24 hours. In this case:

1. Try to restore access from a different IP address (for example, via mobile data).

2. Disable VPN, if you are using it.

3. Contact Xiaomi support via official website, indicating the IMEI of the device.

4. Using ADB to bypass FRP (for advanced users)

If standard methods do not work, you can try bypass FRP via ADB (Android Debug Bridge). This method is suitable for devices with Android 5.1โ€“9.0 and requires a computer with installed drivers. Xiaomi.

Instructions:

  1. Download and install Android SDK Platform-Tools.
  2. Connect Xiaomi to your PC via USB (use the original cable!).
  3. Open the command line in the folder with adb and run:
    adb devices

    (your device should be displayed).

  4. Run the commands one by one:
    adb shell content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1
    

    adb shell am start -n com.google.android.gsf.login/

    adb shell am start -n com.google.android.gsf.login.LoginActivity

  5. A Google login window will open on your phone - add a new account.

If the commands do not work, try an alternative method:

adb shell

su

rm /data/system/gesture.key

rm /data/system/locksettings.db

rm /data/system/locksettings.db-wal

rm /data/system/locksettings.db-shm

reboot

โš ๏ธ Attention: Using ADB may lead to data loss or damage systemsif commands are entered incorrectly. On devices with Android 10+ i MIUI 12+ this method is often blocked by the manufacturer.
๐Ÿ’ก

Before using ADB, check if USB debugging is enabled in the hidden developer settings. If not, activate it via Settings โ†’ About phone โ†’ MIUI version (press 7 times).

5. Alternative unlocking methods (for older models)

On devices Xiaomi with Android 5.0โ€“7.1 (for example, Redmi 4X, Mi A1) you can bypass FRP via recovery mode or fastboot. These methods require an unlocked bootloader.

Method 1: Deleting FRP files via TWRP

  • ๐Ÿ”ง Install custom recovery TWRP for your model.
  • ๐Ÿ“ Boot into TWRP and go to Advanced โ†’ File Manager.
  • ๐Ÿ—‘๏ธ Delete files:
    /data/system/gesture.key
    

    /data/system/locksettings.db

    /data/system/locksettings.db-wal

    /data/system/locksettings.db-shm

  • ๐Ÿ”„ Reboot the device.

Method 2: Firmware via Fastboot

If TWRP is not available, you can flash stock firmware via Mi Flash Tool:

  1. Download the firmware for your model from Xiaomi official website.
  2. Unpack the archive and run Mi Flash Tool.
  3. Connect the phone in mode Fastboot (hold Power + Volume Down).
  4. Select folder with the firmware and press "Flash".

After flashing the device, the device will be unlocked, but all data will be deleted.

Unlocking method Suitable models Required tools Risk of loss data
Standard input of Google account All models Wi-Fi, account data Low
Bypass through settings (FRP) Android 8โ€“11 (Redmi Note 8, POCO X3) Code ##4636## Medium
ADB commands Android 5.1โ€“9.0 (Mi 8, Redmi 5) PC, USB cable, ADB High
TWRP + file deletion Models with an unlocked bootloader Custom recovery Critical
Firmware via Fastboot All models (except new ones with locked BL) Mi Flash Tool, stock firmware Critical

6. What to do if nothing helps?

If all of the above methods did not work, there are two options left:

Option 1: Official unlocking via Xiaomi

Contact support via:

  • ๐Ÿ“ง Email: support@xiaomi.com (in English).
  • ๐Ÿ“ž Phone: +7 495 660-09-20 (for Russia).
  • ๐ŸŒ Online chat: support.xiaomi.com.

You will need to provide:

  • IMEI of the device.
  • Documents confirming the purchase.
  • Photo of the box with the serial number (if available).

Option 2: Contacting service center

If the device is under warranty, unlocking through the service center Xiaomi is free. List of official centers:

โš ๏ธ Attention: Unofficial services can offer โ€œturnkey firmwareโ€ bypassing all blocking, but this is fraught with:
  • ๐Ÿšซ Loss of warranty.
  • ๐Ÿ”„ Unstable operation system.
  • ๐Ÿ“ต By blocking IMEI (on some models).

Before the agreement, check reviews of the workshop and request a guarantee for the work.

๐Ÿ’ก

If Xiaomi bought secondhand and the previous owner has not unlinked the accounts - the only legal way to unlock is an official request to Xiaomi with proof of ownership.

7. How to avoid problems with FRP in the future

To avoid being blocked after a reset, follow these simple rules:

Before resetting:

  • ๐Ÿ”„ Delete all accounts (Settings โ†’ Accounts โ†’ Google/Mi Account โ†’ Delete).
  • ๐Ÿ“ Write down account data (login, password, 2FA backup codes).
  • ๐Ÿ” Disable Factory Reset Protection in the security settings (if there is such an item).

When buying a used Xiaomi:

  • ๐Ÿ›’ Check if it is untied Mi Account (ask the seller for a screenshot of the menu Settings โ†’ Mi Account).
  • ๐Ÿ“ฑ Reset the settings in the presence of the seller and make sure that the phone does not require the old account.
  • ๐Ÿ“„ Take a receipt for the transfer of rights to device.

To protect your device:

  • ๐Ÿ”’ Enable data encryption (Settings โ†’ Security and privacy โ†’ Encryption).
  • ๐Ÿ“ฒ Use PIN code or pattern key instead of a password (less likely to forget).
  • ๐Ÿ”„ Update regularly MIUI โ€”new versions eliminate FRP vulnerabilities.
๐Ÿ’ก

If you often sell or buy smartphones, create a separate Google account for these purposes. This way you will avoid problems with restoring your main account.

FAQ: Frequently asked questions about restoring a Google account on Xiaomi

โ“ Is it possible to bypass FRP without a computer?

On some models (Android 8โ€“10), you can bypass the blocking through "Emergency call" or "Special features" (see Section 2On Android 11+ this is unlikely - you will need a PC.

โ“ Why does Xiaomi ask for an old account after a reset?

This is the work of Factory Reset Protection (FRP) - protection Google against theft. If the account was linked to the device, the system requires confirmation of ownership. Xiaomi additionally checked Mi Account.

โ“ What to do if you forgot your Mi Account password?

Recover it via official websiteIf the account is not yours, contact the previous owner or in support of Xiaomi with proof of purchase.

โ“ Is it possible to unlock Xiaomi through service codes?

No, service codes (for example ##7780##) do not bypass FRP. They only work for resetting the settings, but do not cancel the requirement. entering an account.

โ“ Why is the phone still locked after flashing the firmware?

Modern Xiaomi link the lock to the hardware identifier. Firmware with the stock version MIUI via Mi Flash Tool s. option "Clean All" should remove the lock, but on some models (Redmi Note 11, POCO F4) additional authorization is required.