Introduction / Why This Is Needed
Factory Reset Protection (FRP) is a security mechanism introduced by Google in Android 5.0 (Lollipop). After resetting a device to factory settings, the system requires entering the credentials of the last synchronized Google account. This prevents the use of a stolen phone after a reset.
However, if you have forgotten your account details or purchased a device with FRP already active (because the previous owner did not remove it), you can find yourself locked out. This guide will help you regain access to your legitimate device by explaining the principles of bypassing and providing practical methods.
⚠️ Important: Bypassing FRP on a device that does not belong to you is a violation of the law and Google's terms of service. Use these methods only on your own phone when you cannot remember/recover the password for your Google account.
Requirements / Preparation
Before you begin, ensure you have:
- A computer (PC) with Windows/Linux/macOS OS.
- A USB cable (preferably the original one for a stable connection).
- Accurate device information: model (e.g.,
SM-G991Bfor Samsung S21), chipset (MediaTek, Qualcomm, Exynos, Spreadtrum), current Android version. - Device battery charge of at least 50%.
- Internet access on the PC to download tools and firmware.
- (Optional) Unlocked bootloader. Some methods require this. If the bootloader is locked, unlocking it often resets all data (including FRP), but not always.
Step 1: Preparing the Device and PC
First, prepare the device itself and the computer.
- On the device: If you have access to settings, enable USB Debugging and OEM Unlocking (Settings → About Phone → Build Number (tap 7 times) → Developer Options).
- On the PC: Install drivers for your chipset.
- Qualcomm: Install
Qualcomm USB DriverorQPST. - MediaTek: Install
MediaTek USB Driver(VCOM). - Samsung: Install
Samsung USB Driver. - General: Install
ADB and Fastboot(Minimal ADB and Fastboot or via Android SDK Platform-Tools).
- Qualcomm: Install
- Check the connection: connect the phone, run
adb devicesin the terminal/command prompt. The device's serial number should appear (statusdevice). If not — reinstall the drivers.
Step 2: Identifying the Model and Chipset
Accuracy here is key to success.
- Open Settings → About Phone.
- Record:
- Model (e.g.,
Redmi Note 8 Pro,SM-A515F). - Android version (e.g.,
11). - Firmware build (e.g.,
V12.5.2.0.RCRMIXM). It's often listed underKernel versionor can be found using thePhone Infoapp.
- Model (e.g.,
- Determine the chipset. Often the model indicates the chipset (Snapdragon, Dimensity, Helio, Exynos). For accuracy, install the
Device Info HWapp (it will showChipset).
Step 3: Downloading Necessary Tools and Firmware
Depending on the chipset, download the specialized tool and stock firmware (official) for your exact model and region/carrier.
- MediaTek: SP Flash Tool + scatter file and firmware from Needrom or Xiaomi Firmware Updater (for Xiaomi/Redmi/Poco).
- Qualcomm (Samsung, OnePlus, Xiaomi, etc.): QFIL (QPST) + firmware XML file (if available) or Odin for Samsung (
.tar.md5files). - Spreadtrum: Research Download + scatter file.
Key point: Look for firmware without Google Apps (GApps) or with FRP already removed. Sometimes FRP is tied to the persist or frp partition in the firmware. Firmware without GApps often automatically resets FRP.
Step 4: Choosing the Bypass Method
There are several main approaches. Choose based on your situation:
Method A: Via ADB (if debugging is enabled)
If before the reset USB debugging was enabled, and you can run ADB commands on the device (even in recovery mode), this is the simplest method.
- Connect the device in fastboot or recovery mode (TWRP, if installed).
- In the command prompt on the PC, run:
The device should appear.adb devices - Execute the command to delete the FRP file (relevant for Android 7-9):
Or for newer versions, deletion from a different partition may be required. This method becomes obsolete quickly.adb shell rm /data/data/com.google.android.gms/*
Method B: Via Fastboot and frp-bypass.img Patch
For devices with an unlocked bootloader.
- Download a special
frp-bypass.imgimage for your chipset (e.g., universal patches exist for MediaTek). - Reboot the device into fastboot:
adb reboot bootloaderor via buttons. - Flash the patch:
(The partition namefastboot flash frp bypass-frp.imgfrpmay differ; sometimes it'spersist). - Reboot:
fastboot reboot.
Method C: Flashing Stock ROM without GApps (Most Universal)
This method erases all data but guarantees FRP removal.
- Launch SP Flash Tool (or equivalent for your chipset).
- Click
Chooseand load the scatter file (usually in the firmware archive). - Uncheck all partitions related to
persist,frp,userdata(if you want to keep data — but FRP may remain). Check onlyboot,system,recovery(if needed) and mandatorilypreloader(sometimes FRP is in preloader). - Click
Downloadand connect the powered-off device (holdVolume DownorVolume Up+Powerdepending on chipset). - Wait for completion (green circle). The phone will reboot.
Method D: Via Service Menu (Engineering Mode)
Works only on older models (Android 5-7) and some Chinese brands.
- On the Google account entry screen, dial
*#*#4636#*#*or*#*#7378423#*#*. - The
TestingorServicemenu will open. Find theResetorClearoption forFRPorGoogle Account. - Confirm the reset and reboot.
Step 5: Executing the Chosen Method
Let's detail Method C (flashing) as the most universal:
- Extract the firmware archive. Ensure
scatter.txtis inside. - Run SP Flash Tool as administrator.
- Click
Choose→Scatter-loading Fileand point toscatter.txt. - In the partition list, find:
preloader(usually first) — mandatory.boot(if present).system(sometimessystem_a/system_bfor A/B).userdata(if you want to erase all data, but FRP is usually inpersistorfrp).- Important: Find partitions
persist,frp, ormd1img(for MediaTek). Uncheck them if you don't want to flash them (sometimes flashingpreloaderandbootalready removes FRP). But for guarantee, you can check onlypreloaderandboot, leaving others unchecked.
- Click
Download. SP Flash Tool will go into waiting mode. - Power off the phone. Press and hold the volume down button (
Volume Down), then connect the USB cable to the PC. Do not press other buttons. A COM port should appear at the bottom of the SP Flash Tool window. - If the connection is successful, flashing will start (progress bar). Do not disconnect the cable!
- After completion (a circle with a checkmark appears), disconnect the phone and press the power button.
Step 6: Reboot and Initial Setup
- The first boot may take 2-5 minutes.
- Go through the standard setup (language, Wi-Fi).
- Critical moment: At the stage of adding a Google account, the system should not ask to verify the previous account. If the prompt appears — the method failed, try another or flash the
persistpartition. - Add your Google account and complete the setup.
Verifying the Result
A successful bypass is confirmed by:
- The absence of the "Enter email and password to verify this is your device" screen after the reset.
- The ability to sign into Play Store and other Google services with a new account.
- No
Device is lockedmessage when attempting to flash via Fastboot (if the bootloader is unlocked).
Potential Issues
- "Cannot found MTK..." or "No device found": VCOM drivers (MediaTek) not installed/incorrect. Reinstall drivers, disable driver signature enforcement.
- SP Flash Tool error:
BROM ERROR: S_CERT_IMG: Firmware does not match the model/region. Ensure the firmware is exactly for your model. - FRP remained after flashing
preloaderandboot: Try also flashingpersistandfrppartitions (if they exist in the scatter file). Or use thefastboot flash frp bypass.imgmethod. - Device won't enter fastboot mode: Try other button combinations (
Volume Up+Power,Volume Down+Power). For some models, the commandadb reboot fastbootis needed. - Method doesn't work on Android 11/12+: On newer versions, FRP is tied to the
metadatapartition and requires specific patches. Look for solutions on forums (XDA Developers) for your exact model and build.
Alternative Methods
If the described methods don't work:
- Service centers: Contact an official service center with proof of ownership documents (receipt, warranty). They can remove FRP via special equipment.
- Online services: There are paid web services that remove FRP by IMEI (e.g.,
frpfile.com,bypassfrp.com). Their reliability varies. - Tweaks via recovery: In TWRP or stock recovery, you can try formatting
dataandcachepartitions, then installingno-verity-opt-encrypt.zip(outdated method for Android 7-9).
💡 Tip: Before any actions, back up important data if you have filesystem access (via MTP or TWRP). Remember that many methods will result in complete data loss.
Preventing Re-lock
After a successful bypass:
- Add your own Google account in settings.
- Enable Find My Device (Settings → Security → Find My Device).
- Memorize or write down the account credentials in a password manager.
- Do not perform a factory reset without ensuring access to the account.
Final Recommendations
Bypassing FRP is a last resort to get a device working again when you've lost access to your Google account. Methods quickly become obsolete due to Google's security updates. Always look for information for your specific model and Android version on specialized forums (XDA Developers, 4PDA). If you are not confident in your abilities — contact a service center with the device's ownership documents.