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:
- Selling or transferring a device - to the new owner did not encounter a request from the old account.
- Recovery after a firmware failure, when the system does not boot, but
fastbootis available. - Bypass FRP (if you have forgotten your account details, but the device is yours).
- 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.
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:
- Go to
Settings โ System โ For developersand turn on USB debugging. - 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 - 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(pressPower + Volume Downwhen 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:
- Turn off the device.
- Hold the combination to enter
recovery(usuallyPower + Volume UpOn Samsung s Exynos may be requiredPower + Bixby + Volume Up. - In the menu
recoveryselectWipe data/factory reset(control - volume buttons, selection - with the power button). - Confirm the action (
Yes). - 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:
- Turn on USB debugging and OEM unlocking (if the device turns on).
- Connect the device to the PC and check its visibility:
adb devicesIf the device is not detected, install the drivers.
- Reboot to
fastboot:adb reboot bootloaderOr turn off the device and press
Power + Volume Down. - Check the connection:
fastboot devices - Unlock the bootloader (if it is locked):
fastboot flashing unlockOn the device screen, confirm the action (use the volume buttons to select
Unlock, confirm with the power button). - Remove FRP:
fastboot erase frp - Clear metadata (for Android 10+):
fastboot erase metadata - Reset user data:
fastboot erase userdata - 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.imgfastboot 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 pressMenu โ 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:
- Go to section
ConnectivityorMTK Settings. - Find item
CDS InformationโRadio Information. - Select
AT+and enter the command to reset FRP:AT +FRPOr to completely reset protected data:
AT +EGMR=1,7,"" - 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 Modethe network may disappear - you will need to restoreNV-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
.mbnor.elffor your model.
How to enter EDL:
- Turn off the device.
- Close the contacts testpoint (location depends on the model, look for diagrams for your device).
- Connect the cable to the PC - the device will be detected how
Qualcomm HS-USB QDLoader 9008.
Firmware via EDL:
- Open Mi Flash Tool (for Xiaomi) or QFil (for other brands).
- Select firmware (file
prog_emmc_firehose.mbn). - Click
Flashand 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, includingIMEIiMAC 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:
- Try to go to
fastbootand flashboot.img. - If the screen is black, check whether the device is detected in Device Manager as
QDLoader(which means you need EDL). - On Samsung s Exynos try the combination
Power + Home + Volume Downto enterDownload Mode.
If you are selling the device, after deleting Android Secure:
- ๐ Perform another reset via
recovery(to clear traces). - ๐ฑ Check that in
Settings โ Google โ Accountsthere 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:
- Run again
fastboot erase metadata. - Flash the full image
systemandvendor. - 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:
- Reset via
recoveryIf the prompt does not appear after rebooting. account Google โ FRP deleted. - Enter the command:
fastbootcommand:fastboot getvar allLook for the lines
frp-state: unlockedorfrp-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.