Google's security code (also known as Google's code) FRP-Factory Reset Protection is a security mechanism that is activated after resetting settings on Android devices. If you forget your Google account, change your firmware, or buy a used Xiaomi account with someone else tied in, your phone will require you to enter a confirmation code to unlock. Without it, the device becomes a brick โ you can neither configure nor use it.
On smartphones Xiaomi, Redmi and POCO (especially in the models MIUI 12/13/14 Android 11/12/13) FRP-The lock is more stringent than other brands, due to Xiaomiโs security policy, which requires additional verification through the security of the company. SMS, In this article, we will discuss all the current ways to get Google code on Xiaomi in the future. 2026 year, including bypassing the lock (if possible) and official methods of restoring access.
Important: If the phone was bought by hand, make sure the seller untie their Google and Mi Account before handing over the device, otherwise unlocking may require proof of purchase (check, purchase agreement) or contacting a service center.
1.What is Googleโs security code and why does it appear on Xiaomi
FRP (Factory Reset Protection is a security feature introduced by Google in Android 5.1 Lollipop (2015) that aims to protect the device from theft or unauthorized use after a reset. FRP It works in tandem with Mi Account (manufacturerโs account), which complicates the bypass of the lock.
When a code request appears:
- ๐ After hard reset (reset via Recovery Mode or Fastboot).
- ๐ฑ When you first set up your phone after you purchase (if you previously linked your account).
- ๐ After deleting your Google account through settings without disabling FRP.
- ๐ ๏ธ After the firmware is installed via Fastboot or EDL (If the loader has not been unlocked).
Xiaomi. FRP-The blockage may appear as:
- ๐ Login/password request from the latest Google account.
- ๐ Requirements to enter a confirmation code sent to the mail or phone.
- ๐ Messages: "This device has been reset. To continue, log in to the Google account that was previously used on this deviceยป.
โ ๏ธ Attention: On Xiaomi models 12/13/14 series and Redmi Note 11/12 s MIUI 14 Google has tightened the requirements for FRP. Now, unlocking may require not only code from SMS, and confirmation through two-factor authentication (2FA), if it was on.
2.Official ways to get Google code on Xiaomi
If you have forgotten your Google account password but remember your email or phone number, use standard recovery methods:
Method 1: Recovery by mail or SMS
- On the lock screen, click โForgot your password?โ (or โNo account access?โ).
- Enter the last known email or phone associated with your account.
- Choose the way to get the code: SMS post-mail.
- Enter the 6-digit code in the appropriate field.
- Create a new password and confirm the changes.
If you do not have access to a mail or number:
- ๐ง Try to restore email access through support (Gmail, Yandex, Mail.ru).
- ๐ฑ Contact the operator to restore access to SIM-Card (passport required).
Method 2: Using Google Backup Codes
If you have previously configured two-factor authentication (2FA) For a Google account, you could have backup codes (usually 10 8 digits) that you could use instead of a Google account. SMS:
- On the password entry screen, select โOther optionโ.
- Click on "Enter the backup code."
- Specify one of the saved codes.
Where to look for backup codes:
- ๐ In a printout or screenshot taken during setting 2FA.
- ๐ฑ In the password manager (if the codes were saved automatically).
- ๐พ In the Google email archive (topic: "Backup Codes for Your Accountยป).
Method 3: Unlocking with Mi Account (if tied)
Xiaomi, besides Google FRP There's also a lock through Mi Account, and if you remember the data from it, you can try unlocking your phone through the official service:
- Go to account.xiaomi.com.
- Log in to your Mi Account.
- Go to the "Devices" sectionยป โ Find a locked phone.
- Click on โDelete Deviceโ (if the option is available).
- Confirm the action via SMS or email.
โ ๏ธ Note: This method does not work on all models. on Xiaomi 13 Pro, Redmi K60 and new devices with MIUI 14 Deletion via Mi Account may not reset FRP. In this case, you will need to contact the service center with proof of purchase.
3. Alternative methods of obtaining the code (if you forget the data)
If the official methods don't work, you can try alternatives, and they're suitable for cases where:
- ๐ You forgot your email and your Google password.
- ๐ต No access to the linked number or mail.
- ๐ The phone was bought with hands and the seller did not untie the account.
Method 4: Bypass FRP via Recovery and Fastboot modes
On some Xiaomi models (especially older ones) MIUI 12) can be circumvented FRP Attention: this method requires technical skills and can lead to data loss or bootloader lockdown.
Instructions for Redmi Note 8/9, Xiaomi Mi A2/A3:
- Turn off the phone.
- Press the Power button + Volume up to enter Recovery Mode.
- Select Connect with Mi Assistant (if you have an option).
- Connect your phone to your PC via USB.
- Download the Mi Flash Tool utility and flash the stock firmware with the disabled FRP.
For new models (Xiaomi) 12/13, Redmi Note 11/12) This method does not work โ it will be necessary:
- ๐ง Unlock the bootloader via Fastboot (needs a Mi Account with a tied phone).
- ๐ก Use of the EDL-Mode (requires an authorized Xiaomi account for service centers).
What happens if you interrupt the firmware in Fastboot?
Method 5: Contact Xiaomi Service Center
If none of the methods worked, the official way is to contact an authorized service center Xiaomi.
- ๐ Check or contract of sale (proof of possession).
- ๐ Passport of the owner.
- ๐ฑ The device itself (with reset settings).
Cost of service:
| Type of unlock | Term | Cost (โฝ) |
|---|---|---|
| Reset FRP (proof-of-purchase) | 1-3 days | 1 000 โ 2 500 |
| Unlocking Mi Account (without a check) | 3-7 days | 3 000 โ 5 000 |
| Recovery through EDL (new-model) | 1 day | 2 000 โ 4 000 |
โ ๏ธ Warning: Unofficial services offer unlocking FRP 500 to 1,500 โฝ, But it's fraught: ๐จ Installation of malware. ๐ Re-lock after 72 hours (on new Xiaomi models). ๐ต Loss of guarantee.
4. How to avoid problems with FRP on Xiaomi in the future
To avoid being blocked after reset, follow these rules:
Unplug your Google account before selling|Create backup codes. 2FA|Regularly update your contact information on Google|Do not reset settings through Recovery without turning off FRP|Use your Mi Account for additional protection-->
Additional security measures:
- ๐ Set up two-factor authentication in Google and save backup codes in a safe place.
๐ก
If you frequently drop your phone (for example, for firmware testing), create a separate Google account specifically for this purpose and do not link important data to it.
5. Frequent errors when unlocking FRP Xiaomi
Users often make mistakes that make it difficult to unlock, and here are the most common ones:
| Mistake. | Effects of consequences | How to fix it |
|---|---|---|
| Resetting via Recovery without detachment of account | FRP-locking | Restoring access to mail or contacting the service |
| Use of informal firmware | Loss of loss IMEI lock-in | Switch the original MIUI through Fastboot |
| Attempted circumvention FRP through APK-utility | Installation of viruses or re-blocking | Reset your phone to factory settings through EDL |
| Deleting Google Account Through Settings, Not Full Unbinding | FRP remains active after discharge | Untie your account through Settings โ Accounts. โ Delete the account |
On Xiaomi models with MIUI 13/14 Android 12/13 Google tightens checks on devices after reset. now system can request:
- ๐ Last location of the phone (if geolocation was enabled).
- ๐ Date of last login to the account.
- ๐ฑ Model of the device from which the input was performed.
๐ก
On the new Xiaomi (2022 and newer) bypass FRP It's almost impossible without formal methods, and the only reliable way is to restore access to a Google account or to contact a service center with documents.
6. Unlocking FRP on popular Xiaomi models
The unlock algorithm may vary depending on the model and version. MIUI. Below are brief instructions for popular devices.
Xiaomi Redmi Note 10/11/12, POCO X3/X4
In these models FRP walk through:
- Entrance to Recovery Mode (Food) + Loudness up).
- Select the "Connect with Mi Assistant" option.
- Connect to a PC and use the Mi Flash Tool to firmware fastboot-firmware with disabled FRP.
Xiaomi Mi 11/12/13, Redmi K50/K60
On the flagships of Xiaomi with MIUI 13/14 circumvention FRP The only working methods:
- ๐ Restoring access to Google account.
- ๐ ๏ธ Contacting the service center with a check.
- ๐ก Use of the EDL-Mode (requires authorization from Xiaomi).
Xiaomi Mi A1/A2/A3 (Android One)
On Android One devices FRP simpler:
- Enter Recovery Mode.
- Select "Wipe" data/factory resetยป.
- After reset, connect to Wi-Fi and enter any email (even non-existent).
- Click "Skip" (on some firmware this bug works).
โ ๏ธ Attention: On Xiaomi Mi A3 After upgrading to Android 12, this method stopped working.