Protected partitions Android Secure is a special memory area on smartphones where critical data is stored: from accounts Google to encryption keys. Their removal may be required when selling the device, after a system failure, or to bypass FRP locks (Factory Reset Protection). However, incorrect actions will lead to a โ€œbrickโ€ - complete inoperability of the gadget.

In this article we will look at legitimate and technical ways to delete protected partitions, including working with fastboot, ADB and engineering menus. Let us separately dwell on the risks: why, after resetting via recovery the device may require the old account Google, and how to avoid this. If you are not confident in your skills, it is better to contact a service center.

Important: the procedure is different for devices with unlocked bootloader and locked. On Samsung, Xiaomi and Pixel algorithms will also be different due to the features of the firmware. We will present universal methods, but devices on MediaTek with Android version below 12 may require additional manipulations with SP Flash Tool.

What is Android Secure and why you need it delete

Android Secure โ€”this is not one storage, but a complex of protected areas, including:

  • ๐Ÿ” FRP (Factory Reset Protection) โ€”binding to the account Google after reset.
  • ๐Ÿ”‘ Keys encryption โ€”data for decrypting user files in /data.
  • ๐Ÿ“ฑ OEM blocking โ€” protection against unauthorized firmware.
  • ๐Ÿ›ก๏ธ Secure Element โ€”chip for storing payment data (for example, Google Pay).

You have to delete these sections in several cases:

  1. Selling or transferring a device - to the new owner did not encounter a request from the old account.
  2. Recovery after a firmware failure, when the system does not boot, but fastboot is available.
  3. Bypass FRP (if you have forgotten your account details, but the device is yours).
  4. Installing custom firmware that requires clean partitions.
โš ๏ธ Attention: Removing Secure Element (for example, on Samsung Knox or Pixel Titan M) may irreversible break the contactless payment function. It can only be restored in an authorized service.

On devices with Android 10+ part of the protected data is stored in a virtual partition metadatawhich is not cleared by the standard reset. This explains why after factory reset through recovery sometimes traces of the old account remain.

๐Ÿ“Š Why do you need to remove Android Secure?
I am preparing the device for sale
I am restoring it after failure
I want to install custom firmware
Forgot my Google account information
Other

Preparation of the device: what to do before deleting

Before you start manipulating protected partitions, follow the required steps:

Make a backup copy of your data (photos, contacts, SMS)

Check the battery level (minimum 70%)

Find out the model and firmware version (in Settings โ†’ About phone)

Download the official drivers for your device

Prepare a USB cable (preferably original)-->

If the device still turns on:

  1. Go to Settings โ†’ System โ†’ For developers and turn on USB debugging.
  2. Activate OEM Unlock (if the option is available). On some Xiaomi i Samsung this item may be hidden - you will need to enter command:
    adb shell settings put global oem_unlock_supported 1
  3. Make sure that the device does not have important data in Google Pay, Samsung Pay or other payment systems.

For devices that do not turn on:

  • ๐Ÿ”Œ Connect to charger for 10โ€“15 minutes, even if the indicator is not lit.
  • ๐Ÿ”ง Try to enter fastboot (press Power + Volume Down when turning on).
  • ๐Ÿ“ฑ If the screen responds, but the system does not boot, try the combination for recovery (Power + Volume Up).
โš ๏ธ Attention: On devices Samsung with One UI 5.0+ unlocking OEM automatically turns off after 7 days without connecting to the Internet. If you have not used the phone for a long time, you may need to connect to Wi-Fi before unlocking.

Method 1: Standard reset via Recovery (without voiding the warranty)

This is the safest method, but it is does not remove FRP i does not clear encryption keys. Suitable if you just want to return the device to factory settings before selling. while maintaining the ability to be activated by the new owner.

Instructions:

  1. Turn off the device.
  2. Hold the combination to enter recovery (usually Power + Volume UpOn Samsung s Exynos may be required Power + Bixby + Volume Up.
  3. In the menu recovery select Wipe data/factory reset (control - volume buttons, selection - with the power button).
  4. Confirm the action (Yes).
  5. After completion, select Reboot system now.

What will remain after such a reset:

Data type Deleted? Notes
User files โœ… Yes Photos, videos, documents
Google Accounts โŒ No FRP remains active
Encryption keys โŒ No If there was encryption, the data cannot be recovered
System settings โœ… Yes Wi-Fi, brightness, sound
OEM-locking โŒ No Remains locked

If after resetting the device requires entering the old account data Google means it worked FRP. In this case, more radical methods will be required (see the next section).

๐Ÿ’ก

On some devices Xiaomi after resetting through recovery the "This device" error appears is locked". This means that the account Mi Account is not unlinked. Solution: log in Mi Cloud on another device and remove the gadget from the list of linked ones.

Method 2: Removing FRP and resetting protected partitions via Fastboot

This method suitable for devices with unlocked bootloader (or those where it can be unlocked). It allows you to completely clear frp, metadata and other protected areas, but requires working with fastboot.

You will need:

  • ๐Ÿ–ฅ๏ธ Computer with installed ADB i Fastboot (you can download from the official Android website).
  • ๐Ÿ”Œ USB cable (preferably original).
  • ๐Ÿ“„ Firmware file for your model (if flashing is required).

Step-by-step guide:

  1. Turn on USB debugging and OEM unlocking (if the device turns on).
  2. Connect the device to the PC and check its visibility:
    adb devices

    If the device is not detected, install the drivers.

  3. Reboot to fastboot:
    adb reboot bootloader

    Or turn off the device and press Power + Volume Down.

  4. Check the connection:
    fastboot devices
  5. Unlock the bootloader (if it is locked):
    fastboot flashing unlock

    On the device screen, confirm the action (use the volume buttons to select Unlock, confirm with the power button).

  6. Remove FRP:
    fastboot erase frp
  7. Clear metadata (for Android 10+):
    fastboot erase metadata
  8. Reset user data:
    fastboot erase userdata
  9. Reboot the device:
    fastboot reboot

If after reboot the device is stuck on the logo or gives an error, a flashing will be required. To do this, download the official firmware for your model and do:

fastboot flash system system.img

fastboot flash boot boot.img

fastboot reboot

โš ๏ธ Attention: On devices Samsung with Knox unlocking the bootloader the flag is irreversibly triggered KNOX 0x1which voids the warranty and disables Samsung Pay, Secure Folder and other security functions.
What to do if fastboot does not see the device?

1. Check the cable and USB port (try the USB 2.0 port on the back of the PC).

2. Install drivers manually through Device Manager (select "Android Bootloader Interface").

3. Try another PC (sometimes drivers from other devices conflict).

4. On some MediaTekdevices you need to use SP Flash Tool instead of fastboot.

Method 3: Working with the engineering menu (for experienced users)

On some devices (especially on MediaTek and older Qualcomm) you can access the engineering menu (Engineer Mode), where low-level reset functions are available. This method is risky and can lead to loss of IMEI or damage to the modem.

How to enter the engineering menu:

  • ๐Ÿ“ฑ Type on the phone keypad code: ##3646633## (for MediaTek) or ##4636## (universal).
  • ๐Ÿ”ง On some Samsung the code works: #0# (display test) โ†’ then press Menu โ†’ Back โ†’ Engineer Mode.
  • ๐Ÿ–ฅ๏ธ For devices without a keyboard (tablets), you can use ADB:
    adb shell am start -n com.mediatek.engineermode/.EngineerMode

In the engineering menu:

  1. Go to section Connectivity or MTK Settings.
  2. Find item CDS Information โ†’ Radio Information.
  3. Select AT+ and enter the command to reset FRP:
    AT +FRP

    Or to completely reset protected data:

    AT +EGMR=1,7,""
  4. Reboot the device.

Warnings:

  • ๐Ÿšจ Incorrect commands in the engineering menu can erase IMEI or damage the network module.
  • ๐Ÿ”„ On Android 12+ access to the engineering the menu is often blocked by the manufacturer.
  • ๐Ÿ“ต After a reset via Engineer Mode the network may disappear - you will need to restore NV-data.
๐Ÿ’ก

The engineering menu is a tool for service centers. If you are not sure about the commands, it is better to use fastboot or contact specialists.

Method 4: Removal via EDL mode (for "bricks")

EDL (Emergency Download Mode) is an emergency firmware mode that is used when the device does not respond to fastboot or recovery. It is available on most devices on Qualcomm (for example, Xiaomi, OnePlus, Sony).

To work you will need:

  • ๐Ÿ–ฅ๏ธ PC with installed QFil or Mi Flash Tool (for Xiaomi).
  • ๐Ÿ”Œ Cable USB-A โ€” USB-A (for forced entry into EDL).
  • ๐Ÿ“„ Firmware in format .mbn or .elf for your model.

How to enter EDL:

  1. Turn off the device.
  2. Close the contacts testpoint (location depends on the model, look for diagrams for your device).
  3. Connect the cable to the PC - the device will be detected how Qualcomm HS-USB QDLoader 9008.

Firmware via EDL:

  1. Open Mi Flash Tool (for Xiaomi) or QFil (for other brands).
  2. Select firmware (file prog_emmc_firehose.mbn).
  3. Click Flash and wait for completion (the process may take 10-20 minutes).

What is deleted when flashing firmware via EDL:

  • โœ… All user data.
  • โœ… FRP and encryption keys.
  • โœ… Damaged system files.
  • โŒ Not deleted account blocking Mi Account (on Xiaomi) - it must be unlinked separately.
โš ๏ธ Attention: Firmware via EDL erases all data without recovery, including IMEI i MAC addressesAfter the procedure, you may need to restore them manually through the engineering menu.

Risks and consequences of deleting Android Secure

Incorrect deletion of protected partitions can lead to serious problems:

Action Possible consequences How to fix
Removal frp without unlocking the bootloader The device does not boot, the logo flashes Flash the full image via fastboot or EDL
Wipe metadata on an encrypted device Data in /data becomes unreadable Reset to factory default settings
Unlocking OEM on Samsung Works KNOX 0x1, warranty is lost Irreversible (you can only reset the counter through an authorized service)
Incorrect command in the engineering menu Loss IMEI or network module Recover NV-data via QCN-file

What to do if after the manipulations the device does not turn on:

  1. Try to go to fastboot and flash boot.img.
  2. If the screen is black, check whether the device is detected in Device Manager as QDLoader (which means you need EDL).
  3. On Samsung s Exynos try the combination Power + Home + Volume Down to enter Download Mode.

If you are selling the device, after deleting Android Secure:

  • ๐Ÿ”„ Perform another reset via recovery (to clear traces).
  • ๐Ÿ“ฑ Check that in Settings โ†’ Google โ†’ Accounts there is no your data.
  • ๐Ÿ”’ Make sure that FRP is disabled (ask the buyer to add his account Google at the first setting).

FAQ: Frequently asked questions about removing Android Secure

Is it possible to remove FRP without unlocking the bootloader?

On some devices (for example, Samsung to Android 11) you can use workarounds methods via ADB or the engineering menu. However, on new versions of Android this is almost impossible without unlocking OEM. An alternative is to contact the service center with proof of ownership of the device (receipt, box).

After resetting via fastboot the device asks for a password from the old account. What. do?

This means that metadata was not completely cleaned. Try:

  1. Run again fastboot erase metadata.
  2. Flash the full image system and vendor.
  3. Use EDL for a complete flashing.

If all else fails, perhaps the device is activated hardware lock (for example, Samsung Knox or Pixel Titan M), and you will need an official repair.

How to check if the FRP has been removed?

There are two ways:

  1. Reset via recoveryIf the prompt does not appear after rebooting. account Google โ€” FRP deleted.
  2. Enter the command: fastboot command:
    fastboot getvar all

    Look for the lines frp-state: unlocked or frp-unlock: yes.

Is it possible to restore data after deletion Android Secure?

No. Cleaning userdata, metadata or frp leads to irreversible deletion encryption keys Even if the files physically remain on the drive, it is impossible to decrypt them without the keys. The exception is if you made a backup copy via TWRP before reset.

Will Google Pay work after removing Secure Element?

On most devices - no. Secure Element (or its software emulation) is responsible for storing payment data. After its removal Google Pay, Samsung Pay other services will stop working. On some devices (for example Pixel), you can restore functionality by flashing the original firmware, but there is no guarantee.