Recovery is not just a โrecovery modeโ, but a powerful tool that can save your smartphone from complete failure or help fine-tune the system. Many users Android come across this term only when the device stops booting, but in fact recovery it is used much more widely: from resetting to factory settings to installing custom firmware.
If you have ever seen a green robot on the screen with an open belly and an inscription No command, which means we have already been to the standard stock recovery. But there is also an advanced option - custom recovery (for example, TWRP or OrangeFox), which provides access to advanced functions: backups, unlocking the bootloader, installing modified kernels and even data recovery after failures.
In this article we will look at:
- ๐น what it is recovery and how it works at the system level;
- ๐น how they differ stock and custom recovery, and when you need to use each;
- ๐น how to log in in recovery mode on different models of smartphones (from Samsung before Xiaomi);
- ๐น what operations can be performed through recovery, and which are dangerous;
- ๐น what to do if the device is stuck in recovery mode.
Even if you have never encountered recovery, after reading this article you will be able to confidently navigate its capabilities - and know how to act in critical situations.
What is recovery on Android: technical explanation
Recovery (from the English "recovery") is a separate section of memory on a Androiddevice, containing a minimal operating system for diagnosing and repairing the main OS. In fact, this is an "emergency mode" that starts before booting itself Android and allows you to perform critical operations even if the main system is damaged.
From a technical point of view, recovery is:
- ๐ Separate section in the device memory (usually
/recoveryor/booton some devices); - ๐ฅ๏ธ Mini OS kernel-based Linux, with a limited set of commands;
- ๐ง Interface โ text (in stock recovery) or touch (in custom recovery as TWRP);
- ๐ Protected mechanism, which cannot be changed without unlocking the bootloader.
Main difference recovery from the normal operating mode Android โno graphical interface (in the standard version) and direct access to system partitions. This allows you to:
- ๐ Restore factory settings (
wipe data/factory reset); - ๐ฆ Install official updates (
apply update from ADBorfrom SD card); - ๐ ๏ธ Correct file system errors (
repair filesystem); - ๐ Unlock the bootloader (in some cases).
Important: on devices with Android 10+ and newer versions stock recovery can be integrated into boot.img (bootloader image), and not exist as a separate partition. This makes it more difficult to modify the system, but increases security.
If your device does not boot even into recovery, try a combination buttons for fastboot mode (usually Power + Volume Down). From there you can reflash recovery via PC.
Stock vs Custom Recovery: what is the difference and what to choose
All recovery on Android are divided into two types: stock (standard) and custom (custom). The first option is preinstalled by the manufacturer, the second is installed by the user for advanced capabilities. Let's take a look at how they differ and when to use which one.
| Characteristics | Stock Recovery | Custom Recovery (TWRP, OrangeFox) |
|---|---|---|
| ๐ง Installation | Preinstalled by the manufacturer | Requires bootloader unlocking and manual firmware |
| ๐จ Interface | Text, volume button control | Touch, with support for themes and languages |
| ๐ฆ Functions | Basic: reset, update, system check | Advanced: backups, installing ZIP, editing partitions |
| ๐ Security | High, signed by the manufacturer | Risk if used incorrectly (device bricks) |
| ๐ฑ Compatibility | Works on all devices | Requires separate assembly for each model |
Stock recovery suitable for:
- ๐ Resetting settings to factory settings (
wipe data); - ๐ฅ Installing official updates (
apply update from ADB); - ๐ ๏ธ Diagnosing system errors (if the device does not boot).
Custom recovery (for example, TWRP) is necessary if you plan to:
- ๐ฆ Install custom firmware (LineageOS, Pixel Experience);
- ๐ Obtain
root-rights through Magisk; - ๐พ Make full system backups (
nandroid backup); - ๐ง Modify system files (for example, remove bloatware).
โ ๏ธ Attention: Installation custom recovery requires unlocking the bootloader, which on some devices (Xiaomi, Huawei, Samsung c Knox) may lead to:
- ๐ซ Loss of warranty;
- ๐ Reset DRM-keys (for example, Sony Xperia stops working Bravia Engine);
- ๐ก๏ธ Trigger Knox (on Samsung), which blocks Samsung Pay i Secure Folder.
Is it possible to return stock recovery after installing custom?
Yes, but the process depends on model. On most devices, it is enough to flash the original recovery.img via fastboot flash recovery recovery.img. However, on some smartphones (for example, Xiaomi c Anti-Rollback), a complete flashing may be required via Mi Flash Tool.
How to enter recovery mode on different smartphones
The login method depends on the manufacturer and model of the device. Below is a list of combinations for popular brands. If your smartphone is not in the list, try the universal method: recovery mode depends on the manufacturer and model of the device. Below is a list of combinations for popular brands. If your smartphone is not on the list, try the universal method: Power + Volume Up (hold for 10-15 seconds).
- ๐ฑ Samsung:
Power + Volume Up + Bixby(on new models) orPower + Volume Up + Home(on old ones, with a physical buttonHome); - ๐ฑ Xiaomi/Redmi/Poco:
Power + Volume Up(after the logo appears Mi releasePower, but continue to holdVolume Up); - ๐ฑ Google Pixel:
Power + Volume Downโ in the menufastbootselectRecovery Modewith the volume buttons; - ๐ฑ OnePlus:
Power + Volume Downโ in the menu selectRecovery; - ๐ฑ Huawei/Honor:
Power + Volume Up(on some models it is required disable firstFast Bootin the settings).
If the device does not respond to button combinations, try alternative methods:
- ๐ Via ADB: Connect your smartphone to the PC, open the command line and enter:
adb reboot recovery - ๐ฅ๏ธ Via fastboot: If the device is in
fastbootmode, use:fastboot reboot recovery - ๐ฑ Through applications: Some devices (for example, Xiaomi) allow you to reboot into recovery via menu
Settings โ About phone โ Reboot to recovery mode.
โ ๏ธ Attention: On devices with Android 12+ and newer versions, logging in recovery may be blocked if The functionOEM Unlockis enabled in the developer settings. Before attempting to log in, make sure that:
- ๐
OEM Unlockis turned on (if you plan to install custom recovery);- ๐ The battery charge is at least 50% (to avoid failures during operations).
Make sure the device is turned off|Disconnect the cable charging (if connected)|Remember the button combination for your model|Prepare a PC with ADB (if necessary)|Check the battery charge (at least 30-50%)
-->
Basic operations in recovery: what you can and cannot do
Even in standard stock recovery several useful functions are available. Let's take a look at which operations are safe and which can lead to data loss or bricking of the device.
๐ Safe operations (suitable for beginners)
- ๐น Reboot system now โ rebooting the device into normal mode.
- ๐น Apply update from ADB โinstallation of official updates via
adb sideload. Suitable for restoring the system after a failure. - ๐น Wipe data/factory reset โ reset to factory settings. Deletes all user data, but will not affect system files.
- ๐น Wipe cache partition โ clearing the cache. Useful for lags or application errors. Does not delete personal data.
โ ๏ธ High-risk operations (require caution)
- ๐น Apply update from SD card โinstallation of ZIP archives. Danger: an inappropriate file may cause damage system.
- ๐น Mount /system (in custom recovery) - mounting the system partition for editing. An error may result in a boot loop.
- ๐น Advanced โ Fix permissions โ Correction of access rights. Sometimes it helps with failures, but can disrupt the operation of some applications.
โ Prohibited operations (risk of device bricking)
- ๐น Format data/factory reset (in custom recovery) - full formatting of the partition
/data, including internal memory. Data cannot be restored! - ๐น Removal or modification partitions
boot,recovery,dtbowithout backup. - ๐น Installation firmware from other models or incompatible versions Android.
Example of safe use adb sideload:
- Download the official update for your model (the file must have the extension
.zip). - Place the file in the folder with
adbon your PC. - B recovery select
Apply update from ADB. - In the command line, enter:
adb sideload file_name.zip
Before any operation in recovery (except reboot) make a backup of important dataEven wipe cache in rare cases it can lead to a failure.
What to do if the device is stuck in recovery mode
The situation when the smartphone constantly reboots into recovery or cannot exit this mode is called "bootloop to recovery". The reasons can be different: from damaged firmware to hardware failures. Let's take a look at how to get out of this state.
๐ง Methods of solution (from simple to complex)
- ๐ Reboot: In the menu recovery select
Reboot system now. If it doesn't help, holdPower20-30 seconds to force shutdown. - ๐ฅ Installing the update: If the problem occurred after the OTA update, try installing the same file again via
Apply update from ADB. - ๐งน Clear cache: Select
Wipe cache partitionโYes. This will not delete data, but may fix boot errors. - ๐ Reset settings: If the previous steps did not help, perform
Wipe data/factory reset. All data will be deleted! - ๐ฅ๏ธ Flashing via fastboot: If the device does not turn off from recovery, connect it to the PC and flash the original
boot.imgor full firmware:fastboot flash boot boot.imgfastboot reboot
โ ๏ธ If all else fails
- ๐ Battery problem: Connect charging and leave for 30 minutes. Sometimes a low charge blocks the output from recovery.
- ๐ง Hardware failure: If the smartphone does not respond to buttons or is not detected by the PC, the motherboard may be damaged. In this case, only a service center will help.
- ๐ฑ Incompatible recovery: If you installed custom recovery, try returning stock via
fastboot.
โ ๏ธ Attention: On some devices (Samsung, LG) may work after several unsuccessful download attempts automatic locking of the bootloader. In this case, you will need:
- ๐ Unlock the bootloader again (on Samsung this is done through
Odin);- ๐ Confirm unlocking through the manufacturer's account (for example, Mi Account on Xiaomi).
What to do if recovery asks for a password after a reset?
If you have done wipe data, but the device still asks for a password when booting, this means it is enabled. data encryption (FBE). Solutions:
- Enter the last used password (sometimes it helps even after resetting).
- If you donโt remember the password, you will have to reflash the device with a complete wipe (via
fastbootor EDL mode).
How to install custom recovery (TWRP) and why you need it
Installation custom recovery (for example, TWRP or OrangeFox) provides access to advanced features, but requires caution. This process is suitable for experienced users who want to:
- ๐ฆ Install custom firmware (LineageOS, Pixel Experience);
- ๐ Obtain
root-rights through Magisk; - ๐พ Make full system backups (
nandroid backup); - ๐ง Remove pre-installed applications (bloatware).
Step-by-step guide for installing TWRP:
- ๐ Unlock the bootloader:
- On Xiaomi: link your account Mi with the device and use Mi Unlock Tool.
- On Samsung: enable
OEM Unlockin the developer settings. - On Google Pixel: run
fastboot flashing unlock.
- Official website: twrp.me (choose exactly your model!)
- For Samsung a special version may be required (for example, TWRP for Exynos).
- ๐ฅ๏ธ Flash recovery via fastboot:
Important: On some devices (Samsung, OnePlus) recovery is overwritten during normal boot. To avoid this, immediately after flashing the firmware, go tofastboot flash recovery twrp-3.7.0_9-0-mido.imgfastboot reboot recoveryfastbootand do:fastboot boot twrp-3.7.0_9-0-mido.img - ๐ Lock the bootloader (optional):
On some devices (for example, Google Pixelafter installation custom recovery you can return the bootloader lock, but this deletes all data:
fastboot flashing lock
What you can do in TWRP:
- ๐น Backup: Full snapshot of the system (
Boot,System,Data,Vendor). - ๐น Restore: Restoring from backup.
- ๐น Mount: Mounting partitions for editing (for example, deleting bloatware).
- ๐น Install: Installing ZIP archives (firmware, Magisk, kernels).
- ๐น Advanced โ File Manager: Viewing and editing files directly in recovery.
โ ๏ธ Attention: On devices with Android 10+ and dynamic partitions (dynamic_partitions) standardnandroid backupin TWRP may not work. case:
- Use TWRP with support
dynamic partitions(for example, unofficial builds);- Or backup only critical sections (
Boot,Data,Vendor).
Common errors in recovery and how to fix them
Working with recovery does not always go smoothly. Below is a list of common errors and ways to solve them.
| ๐จ Error | ๐ง Possible reason | โ Solution |
|---|---|---|
No command (lying robot) |
Standard screen stock recovery on Android 9+. | Press Power + Volume Up for 1-2 seconds to open the menu. |
E: failed to mount /data |
Damaged file system or encryption. | B TWRP select Wipe โ Format Data (deletes everything!). |
E: signature verification failed |
Attempting to install an unsigned ZIP. | In TWRP disable signature verification in the settings. |
The device is not detected in adb |
Missing drivers or incorrect mode. | Install drivers, check adb devices. |
| Cyclic reboot into recovery | Corrupted boot or recovery section. |
Flash the original boot.img via fastboot. |
Extended errors and solutions:
- ๐น
E: unknown command [log]:Occurs when stock recovery trying to use unsupported commands. Solution: use only standard menu options.
- ๐น
Failed to boot 1: unknown error(on Samsung):The error is related to Knox or damaged
bootloader. Solution: flash the full firmware via Odin. - ๐น
This package is for "mido" devices; this is a "":You are trying to install the firmware not for your model. Solution: download the correct ZIP file.
If the error is not listed in the table, try:
- Take a photo of the screen with the error and look for a solution on the forums (XDA Developers, 4PDA).
- Try a different cable/USB port (sometimes the problem is in the connection).
- Check the integrity of downloaded files (for example, through
MD5sum).
- Compatibility of the file with your model;
- Integrity of the archive (unpack it on a PC);
- Availability of free space in memory devices.
-->
FAQ: answers to frequently asked questions about recovery on Android
โ Is it possible to return stock recovery after installing TWRP?
Yes, but the process depends on the manufacturer:
- ๐ฑ On most devices: flash the original
recovery.imgviafastboot flash recovery recovery.img. - ๐ฑ On Samsung: use Odin i official firmware (file
AP). - ๐ฑ On Xiaomi: return stock recovery via Mi Flash Tool.
Attention: On some devices (for example, Google Pixel) after return stock recovery You may need to lock the bootloader, which will lead to data reset.
โ What to do if you forgot your password and the device asks for it in recovery?
If you did wipe data, but the smartphone still also requires a password, this is due to encryption (FBE). Solutions:
- Try to enter the last used password (sometimes it works even after resetting).
- If you donโt remember the password, you will have to:
- Flash the device through
fastbootwith complete erasing; - Or use EDL mode (for Qualcommdevices) with complete erasing.
Important: Without a password, data recovery is impossible - encryption Android does not allow you to bypass the protection.
โ Is it possible to recover deleted files via recovery?
In standard stock recovery - no. data-i="397">there are limited options: TWRP there are limited options:
- ๐ If you did
nandroid backup, you can recover data from it.