Selling an old smartphone, sending it for repair or just wanting to get rid of accumulated data digital waste - in each of these situations the question arises: how completely erase information from Androidto prevent it from falling into the wrong hands. Simply deleting files or even resetting to factory settings is often not enough: experienced users or data recovery specialists can extract photos, correspondence and even passwords from the deviceโs memory.
In this article we will analyze all current methods of cleaning Android from standard system functions to professional methods that service centers use. You'll learn how to properly prepare your device for a reset, why it's important to encrypt data before deleting it, and what to do if your phone won't turn on. And for the most paranoid, we will consider options physical destruction of the drivethat guarantee 100% protection against recovery.
Why simply deleting files does not work
When you delete photo, video or document through a file manager; the operating system Android does not physically erase data from flash memory. Instead, it simply marks the memory area as "free", allowing new files to be written over it. Until this area is overwritten, the information can be restored using special apps like DiskDigger, Recuva or Dr.Fone.
Even reset to factory settings (the so-called factory reset) does not guarantee complete cleaning. Research shows that up to 80% of data can be recovered after such a reset if the memory was not encrypted. Particularly vulnerable:
- ๐ธ Photos and videos - are almost always restored, if not overwritten.
- ๐ฌ Messages from instant messengers (WhatsApp, Telegram, Viber) - are stored in a database that is easy to retrieve.
- ๐ Logins and passwords โbrowsers and applications often save them in unencrypted form.
- ๐ History geolocation โGoogle Maps and other services store it for years.
The only reliable way is combination of encryption and complete memory rewrite. But even here there are nuances depending on the version of Android and the type of drive (eMMC or UFS).
Method 1: Standard factory reset (with encryption)
This is a basic method that is suitable for most users. It deletes all data, but effectiveness depends on whether encryption was enabled. Starting Android 6.0 Marshmallowencryption is enabled by default on most devices, but it's best to check this manually.
How to check if memory is encrypted:
- Open
Settings โ Security. - Find item
Phone encryptionorEncryption and credentials. - If the status is "Encrypted", you can proceed with the reset.
If there is no encryption, enable it before resetting! This will take from 30 minutes to several hours (depending on the amount of memory), but without this, the data can be easily restored.
Make sure that the battery is charged at least 80%|Make a backup copy of important data|Unlink your Google account (if you plan to sell the phone)|Enable encryption if it is disabled|Remember the account information associated with the phone (may be needed later reset)-->
Reset instructions:
- Go to
Settings โ System โ Reset settings(on some devices the path may differ:Settings โ General โ Reset). - Select
Delete all data (reset to factory settings). - Enter the PIN code or pattern, if required.
- Confirm the action and wait until the reboot.
โ ๏ธ Attention: On devices with Android 5.1 and below resetting without prior encryption leaves up to 90% of the data available for recovery. If your phone was released before 2015, use alternative methods from the following sections.
Method 2: Complete memory overwrite via Recovery Mode
If you want to be sure that the data cannot be recovered, use memory overwriting via service mode (Recovery Mode). This method erases data at a low level, replacing it with zeros or random bytes. Suitable for devices with an unlocked bootloader.
Important condition: the phone must have custom recovery installed (for example, TWRP or OrangeFox). If it is not there, first unlock the bootloader and flash recovery - instructions are on the forums XDA Developers or 4PDA for your model.
Step-by-step guide:
- Turn off phone.
- Hold down the combination of buttons to enter Recovery Mode (usually
Power + Volume Up, but may differ). - In the recovery menu, select
Wipe โ Advanced Wipe. - Tick all sections:
Dalvik, Cache, System, Data, Internal Storage. - Swipe to confirm (or tap
Yes). - After cleaning, select
Format Data, enteryesand confirm. - Reboot your device.
This method destroys data beyond recovery, but has disadvantages:
- ๐ง Requires unlocking the bootloader (resetting all data and possible loss of warranty).
- ๐ฑ Does not work on some devices with Samsung Knox or Huawei (special utilities are needed).
- โ ๏ธ After formatting, the phone will become โcleanโ, but the firmware will have to be installed again.
What to do if recovery does not start?
If the phone does not turn on in recovery or freezes, try:
1. Connect to the PC and use the command adb reboot recovery.
2. Flash stock recovery via fastboot flash recovery recovery.img.
3. On devices Samsung use the combination Power + Volume Up + Bixby Bixby).
If all else fails, go to method 3 (using a PC).
Method 3: Deleting data via ADB (for advanced users)
If the phone turns on, but the standard reset does not suit you, you can use Android Debug Bridge (ADB) โ a debugging tool that allows you to send commands directly to the system. This method is suitable for devices with USB debugging enabled (if you have not enabled it before, this method will not work). data-i="136">๐ USB cable (preferably original).
What you will need:
- ๐ฅ๏ธ Computer with installed drivers ADB And Fastboot.
- ๐ USB cable (preferably original).
- ๐ฑ Enabled USB debugging in the phone settings (
Settings โ About phone โ Number build(press 7 times) โDeveloper settings โ USB debugging).
Instructions:
adb shellsu
dd if=/dev/zero of=/dev/block/mmcblk0
This command fills the entire drive with zeros, which makes data recovery impossible. However:
- ๐ Required root access (on most modern devices their receipt is blocked).
- โ ๏ธ Dangerous for the system โan incorrect command can damage the bootloader.
- ๐ ๏ธ On some devices, the path to the drive is different (for example,
/dev/block/sda).
โ ๏ธ Attention: Command dd without parameters can disable the phone foreverif you specify the wrong memory block. If you are not sure, use specialized utilities like Secure Erase (available in some versions TWRP).
Method 4: Using specialized apps (for PC)
If you prefer a graphical interface or want to ensure a complete cleanup, you can use PC apps. They connect to the phone and perform multiple memory overwriting standards DoD 5220.22-M (3 passes) or Gutmann (35 passes).
Top 3 apps for safe erasing:
| app | Android support | Erasing methods | Free version |
|---|---|---|---|
| iShredder 6 | Yes (via ADB) | DoD, Gutmann, random data | Limited |
| Blancco Mobile Eraser | Yes (requires root) | Certified erasure | No |
| Parted Magic | Yes (via OTG) | Secure Erase, ATA Secure Erase | No (paid) |
How to use iShredder 6:
- Install the app on your PC and connect your phone via USB.
- Enable USB debugging (see method 3).
- Select method erasing (recommended
Gutmann 35-passfor maximum security). - Run the process and wait for completion (may take several hours).
Advantages of the software method:
- ๐ Guaranteed deletion without the possibility of recovery.
- ๐ Reports on completed cleaning (useful for corporate devices).
- ๐ก๏ธ Support for standards used in armies and banks.
โ ๏ธ Attention: apps like iShredder require root access to work with internal memory. Without them, they will only be able to clean the external SD card (if there is one).
Method 5: Physical destruction (for paranoid and corporate devices)
If you are working with confidential data (for example, corporate phones, devices with access to financial information) or you just want to be 100% sure that physical destruction of the drive is the only option. Even after repeated rewriting, there is theoretically a chance of data recovery using an electron microscope (attack Cold Boot).
How to physically destroy memory:
- ๐จ Disassembly and drill: Remove the back cover, find the memory chip (usually marked as eMMC or UFS) and drill it in several places.
- ๐ฅ Thermal impact: Heat the chip with a soldering hair dryer to the melting temperature (about 300ยฐC).
- ๐ฅ Acid: Place the board in hydrochloric acid for 10โ15 minutes (only in a well-ventilated area!).
- ๐งฒ Strong magnetic field: Use a neodymium magnet (from 1 Tesla), but this is less reliable than mechanical destruction.
Where to find the memory chip:
- On most smartphones it is located under the battery.
- It looks like a small black chip with markings
Samsung KLMCG4JETD-B041,Hynix H9HKNNNCPMMUor similar. - On some models (for example iPhone or Google Pixel) the memory is soldered into the motherboard - you will have to destroy it entirely.
Before physical destruction, remove the SIM card and memory card (if any) They can also be destroyed separately: just cut the SIM card with scissors, and. microSD - break with a hammer or burn.
When to use physical destruction:
- ๐ฑ The device contained data on bank accounts, passwords or other critical information.
- ๐ข Corporate phones that are written off according to the act.
- ๐ Suspicion of hacking or installation of spyware.
What to do if the phone does not turn on or is locked
If the device does not respond to buttons, freezes on the logo or is locked with a pattern, standard methods will not work. In such cases, there are two options:
- Reset via Fastboot Mode (if bootloader is unlocked):
fastboot erase userdatafastboot erase cache
fastboot reboot
These commands will clear the partition with user data, but will not affect the firmware. Works on most devices. Xiaomi, OnePlus, Pixel.
- Using service tools. codes (for some models):
For example, on Samsung you can try entering in the dialer:
##7780##
This will perform a soft reset (does not always work on new models).
If all else fails:
- ๐ง Contact to the service center - they have special boxes (JTAG, UFI) for resetting blocked devices.
- ๐ฐ The cost of such a service: from 500 to 3000 rubles, depending on the model.
โ ๏ธ Attention: On devices with Android 10+ enabled function Factory Reset Protection (FRP) after the reset you will need to enter the Google account data that was linked to the phone. If you do not remember the password, unlocking may not be possible without proof of ownership (receipt, box).
FAQ: Frequently asked questions about deleting data from Android
Is it possible to restore data after a factory reset?
Yes, if the memory was not encrypted. Special apps (for example, Dr.Fone or EaseUS MobiSaver) can restore up to 70% of files, especially photos and documents. To avoid this, use encryption before resetting or methods from. section about memory overwriting.
Do I need to remove the memory card separately?
Absolutely! The external microSDcard is not cleared when the phone is reset. It needs to be formatted separately (via the phone or PC) or physically destroyed if there were important ones on it. data. For reliability, use utilities like SD Card Formatter with the option Full Erase.
How to check that the data is really deleted?
The most reliable way is to try to restore it yourself using apps like DiskDigger or PhotoRec. If after scanning no files are found (except system ones), then the cleaning was successful. You can also use hex editor (for example, HxD) to check the contents of memory - if instead of meaningful data you see a chaotic set of characters, everything was done correctly.
What to do if you forgot to unlink your Google account before resetting?
After resetting, the phone may require you to enter the details of the account that was on it previously (protection FRPSolutions:
- Remember your account login and password.
- If the account is deleted, restore it via
accounts.google.com. - There are special utilities to bypass FRP (for example, FRP Bypass APK), but they do not work on all devices and may break the law (if the phone is not yours).
On new devices (Android 11+), bypassing FRP is almost impossible without official unlocker from the manufacturer.
Is it possible to erase data from a phone remotely if it is lost?
Yes, if the service Find My Device from Google was enabled on the phone. Go to the website google.com/android/find, select the device and press Erase data. This will perform a factory reset the next time you connect your phone to the internet. Please note:
- ๐ถ The phone must be connected to the network (Wi-Fi or mobile data).
- ๐ The device must be turned on and have a charge. batteries.
- ๐ If the phone had a password, after a remote reset you may need to enter your Google account information (FRP).