Custom recovery TWRP (Team Win Recovery Project) is a powerful tool for advanced Android users that allows you to install unofficial firmware, make backups and get root access. However, there are situations when it is necessary to remove it: before selling the device, to restore the warranty or eliminate errors after unsuccessful manipulations. Removing TWRP is not always a trivial task, especially if the system has been modified or the bootloader is locked.

In this article you will find current ways to remove TWRP, taking into account different scenarios: from a simple return to stock recovery via fastboot to a complete reset of the device with an unlocked bootloader. We will analyze the nuances for popular brands (Samsung, Xiaomi, Google Pixel), warn against common mistakes and give recommendations for restoring the functionality of the smartphone after removal.

โš ๏ธ Attention: The TWRP removal procedure can lead to data loss if a backup is not made. On some devices (for example Samsung s Knox) this will also reset the modification counter, but will not always restore the warranty.

Why you may need to remove TWRP Recovery

Many users install TWRP to overclock the device, install custom firmware or obtain root access. But there are good reasons to return the stock recovery:

  • ๐Ÿ“ฑ Selling or transferring a smartphone. A new recovery can scare the buyer or cause problems when resetting.
  • ๐Ÿ”„ Warranty restoration.Samsung) counter Knox is reset only after a complete return to the factory one condition.
  • ๐Ÿž Errors after updates. TWRP may conflict with official OTA updates, causing freezes or bootloops.
  • ๐Ÿ”’ Security issues. Custom recovery simplifies access to system partitions, which is dangerous if the device is lost.
  • ๐Ÿ“ฆ Incompatibility with applications. Banking applications (for example, SberBank Online) or protected games (for example, Pokรฉmon GO) can block work on devices with modified recovery.

It is important to understand that simply removing TWRP does not always solve all problems. For example, if you received root access via Magisk, they also need to be revoked. And on devices with a locked bootloader (bootloader), an attempt to remove TWRP may result in a brick.

๐Ÿ“Š Why are you deleting TWRP?
I'm preparing a device for sale
I want to restore the warranty
I solve problems after the firmware
I resolve conflicts with applications
Another option

Preparing to uninstall TWRP: what needs to be done in advance

Before you begin uninstalling, complete the required steps:

  1. Make a backup of your data. Removing TWRP may result in a factory reset or loss of files. Use TWRP Backup or copy important data to your PC.
  2. Check the status of the bootloader. Enter the command in the terminal:
    fastboot oem device-info

    If the response contains a line Device unlocked: true, the bootloader is unlocked. Otherwise, deleting TWRP may brick the device.

  3. Download stock firmware. Most devices will require an official firmware file (for example, factory image for Google Pixel or ODINfirmware for Samsung).
  4. Install drivers and tools. The PC must have:
    • ๐Ÿ–ฅ๏ธ Drivers ADB/Fastboot (download from the site Google or via SDK Platform Tools).
    • ๐Ÿ”Œ Cable USB Type-C (preferably original).
    • ๐Ÿ”‹ Battery charge is at least 50%.

If your device is Xiaomi, Redmi or POCO, please note that unlocking the bootloader is required linking your account Mi. Without it, you will not be able to return the stock recovery.

โš ๏ธ Attention: On devices Samsung with a processor Exynos (for example, Galaxy S21) attempt to flash the stock recovery via Odin without first unlocking the bootloader will lead to activation FRP locker (reset protection).

โ˜‘๏ธ Checklist before deletion TWRP

Done: 0 / 5

Method 1: Removing TWRP via Fastboot (universal method)

This is the most reliable method for most devices with an unlocked bootloader. Suitable for Google Pixel, OnePlus, Xiaomi (with unlocked bootloader), Nokia and others.

Step-by-step guide:

  1. Open the command line in the folder with fastboot (for example, platform-tools in Android SDK).
  2. Switch the device to Fastboot mode:
    • Turn off the smartphone.
    • Hold Volume down + Power (on some devices โ€” Volume up + Power).
    • Connect to PC.
  • Check the connection:
    fastboot devices

    The serial number of the device should appear.

  • Flash the stock recovery. Download the official file recovery.img for your model and run:
    fastboot flash recovery recovery.img

    For some devices (for example, OnePlus) an additional command may be required:

    fastboot flash recovery_ab recovery.img
  • Reboot the device:
    fastboot reboot
  • If TWRP appears again after a reboot, it means that automatic patch is installed on the device (for example, via Magisk or OrangeFoxIn this case, a complete flashing will be required.

    What to do if fastboot does not see the device?

    1. Check the cable connection (try another USB port).
    2. Install drivers manually through Device Manager (select "Android Bootloader Interface").
    3. Disable your antivirus - it may block fastboot.
    4. Try running the command line as an administrator.

    Method 2: Removing TWRP via stock firmware (for a blocked bootloader)

    If the bootloader is locked and TWRP was installed by mistake (for example, through the app RashR or Flashify), you can only return stock recovery by completely flashing it. This method is suitable for Samsung (via Odin), LG (via LGUP), Huawei (via HiSuite).

    Instructions for Samsung (via Odin):

    1. Download the official firmware from the site Sammobile or Frija (choose the version for your model and region).
    2. Unzip the firmware โ€”there should be a file with the extension .tar.md5.
    3. Open Odin (version 3.14.4 or later) and connect the phone in Download Mode (hold Volume down + Bixby + Power).
    4. Upload files to Odin:
      • BL โ€” bootloader (bootloader).
      • AP โ€” main firmware.
      • CP โ€” modem.
      • CSC โ€” region (select HOME_CSCso as not to reset data).
  • Click Start and wait for completion (the device will reboot automatically).
  • For Xiaomi instead Odin used Mi Flash Tooland the firmware is downloaded from site Xiaomi Firmware Updater. The main thing is to choose the correct version (Global, China or EEA).

    Brand Firmware tool Where to download the firmware Features
    Samsung Odin Sammobile, Frija Required Download Mode, reset Knox impossible
    Xiaomi/Redmi/POCO Mi Flash Tool Xiaomi Firmware Updater Requires account linking Mi to unlock
    Google Pixel Fastboot Google Factory Images The firmware includes automatic bootloader lock
    OnePlus Fastboot or MSM Tool OxygenOS MSM Tool resets everything, including IMEI
    โš ๏ธ Attention: On devices Huawei and Honor with a processor Kirin (for example, Mate 30 Pro) flashing via HiSuite may block the bootloader forever if it was unlocked unofficially.

    Method 3: Removing TWRP via ADB (if the device boots)

    If the smartphone turns on, but TWRP interferes with operation (for example, it blocks OTA updates), you can try to return the stock recovery via ADB. This method is suitable for devices with unlocked bootloader and a working system.

    Instructions:

    1. Enable USB debugging:
      • Go to Settings โ†’ About phone โ†’ Build number (press 7 times to activate developer mode).
      • Go back to Settings โ†’ System โ†’ For developers and enable USB debugging.
  • Connect the device to the PC and confirm permission to debug.
  • Download the stock recovery for your model (for example, from factory firmware).
  • Open the command line in the folder with adb and execute:
    adb reboot bootloader

    The device will go to fastboot.

  • Flash the recovery:
    fastboot flash recovery recovery_stock.img
  • Reboot:
    fastboot reboot
  • If TWRP appears again after a reboot, it means that automatic patch is installed on the device (for example, via Magisk). In this case, only a complete flashing will help (see Method 2).

    ๐Ÿ’ก

    If, after flashing the recovery firmware, the device is stuck on the logo, try going into the stock recovery (hold Volume up + Power) and do Wipe Data/Factory Reset.

    Method 4: Removing TWRP on locked devices bootloader

    If the bootloader is locked, and TWRP was installed in a "bypass" way (for example, through a vulnerability in Qualcommdevices), you can return stock recovery only through EDL mode (Emergency Download Mode). This method requires special equipment (Qualcomm HS-USB QDLoader 9008) and official software from the manufacturer.

    How it works:

    • ๐Ÿ”Œ Connect the device to EDL mode (usually the contacts are closed to board or use a combination of buttons).
    • ๐Ÿ–ฅ๏ธ Launch the proprietary flasher:
      • For Xiaomi โ€” Mi Flash Tool (select option clean all and lock).
      • For Qualcomm devices โ€” QFil or QPST.
      • For Mediatek โ€” SP Flash Tool.
    • ๐Ÿ“ฅ Flash the full stock firmware (including recovery, boot and system).

    This method guaranteed to remove TWRP and block the bootloaderbut requires skills in working with hardware. On devices Samsung to enter EDL you often need a special card (USB JIG).

    โš ๏ธ Attention: Incorrect firmware in EDL mode can damage IMEI or serial numberwhich will make the device unsuitable for calls. It will also activate Samsung Exynos this will also activate Knox eFusewhich is impossible. cancel.

    Method 5: Recovery via stock recovery (if TWRP does not start)

    If TWRP was installed, but now the device does not even boot into it, try going to stock recovery (if it is saved in the backup area). This works on some devices Samsung, LG and Sony.

    How to enter stock recovery:

    1. Turn off the device.
    2. Hold down the button combination (depending on the model):
      • Samsung: Volume up + Power + Bixby.
      • LG: Volume down + Power (release when the logo appears, then hold again).
      • Sony: Volume up + Power (release when vibration Powerhold Volume).
  • In the recovery menu, select Wipe data/factory reset, then Reboot system now.
  • If there is no stock recovery, all that remains is firmware via Fastboot or EDL (see previous methods).

    ๐Ÿ’ก

    On devices with a chip Mediatek (for example, Realme, Oppo) stock recovery is often hidden. To activate it, you need to flash preloader via SP Flash Tool.

    Common errors and how to avoid them

    When deleting TWRP, users often encounter problems. Here are the most common errors and their solutions:

    • ๐Ÿ”„ "Fastboot does not see the device":
      • Check the cable and USB port (try USB 2.0).
      • Install drivers manually through Device Manager.
      • Disable your antivirus (it may block it) adb).
    • ๐Ÿšซ "Device is locked. Cannot flash":
      • Unlock the bootloader via fastboot oem unlock.
      • On Xiaomi link your account Mi.
    • ๐Ÿ“ต "Device stuck on the logo after flashing":
      • Go into stock recovery and do Wipe Data.
      • If it doesnโ€™t help, flash the full firmware again.
    • ๐Ÿ” "FRP lock after firmware" (on Samsung):
      • Enter the details of the last account Googleassociated with the device.
      • If you donโ€™t remember, use FRP Bypass Tool (for example, SamFw).

    If after all the manipulations TWRP remains, check whether Magisk or another module is installed on the device that automatically restores custom recovery. In this case, you need to:

    1. Boot into TWRP.
    2. Go to Advanced โ†’ File Manager.
    3. Delete files in /data/adb/modules (if there is a folder magisk).
    4. Flash stock recovery again.

    FAQ: Answers to frequently asked questions

    Is it possible to remove TWRP without losing data?

    Theoretically, yes, if:

    1. The bootloader is unlocked.
    2. You are flashing only the partition recovery (not boot or system).
    3. Do not use the option clean all in flashers.

    However, in practice, many devices require a reset after removing TWRP (Wipe Data), otherwise errors occur in the system.

    Will OTA update work after uninstalling TWRP?

    Yes, but with reservations:

    • If you returned stock recovery and did not modify boot, OTA should work.
    • On some devices (for example, OnePlus), after removing TWRP, you need to manually flash the stock one boot.img, otherwise the update will fail.
    • If previously received root, OTA may be blocked due to modified system files.
    How to check if TWRP has been removed?

    There are two ways:

    1. Visually: Go into recovery (button combination when loading). If you see a standard menu with an Android robot, TWRP has been removed.
    2. Via ADB: Run the command:
      adb shell getprop ro.boot.recovery

      If there is no mention in the answer twrp, recovery is stock.

    Is it possible to remove TWRP on a device with a locked bootloader?

    Yes, but only through EDL mode or an official service center. Independent attempts to flash stock recovery on a locked bootloader lead to:

    • Activation FRP lock (on Samsung).
    • Loss IMEI (on Qualcommdevices).
    • "Brick" (on Mediatekif you flash the wrong firmware).

    For Xiaomi there is an exception: you can flash stock recovery via Mi Flash Tool with the option clean all and lock, but this will reset all data.

    Will the warranty be restored after removing TWRP?

    Depends on the manufacturer:

    • Google Pixel, OnePlus: The warranty is restored if the bootloader is blocked, and the unlock counter is reset (on Pixel this happens automatically when flashing the factory image).
    • Samsung: Guarantee not restoredas it works Knox eFuse (even if TWRP is removed).
    • Xiaomi: The warranty is restored only if the bootloader is locked through Mi Flash Tool with option lock.
    • Huawei, Honor: The warranty is voided forever if the bootloader is unlocked.

    To accurately find out the warranty status, check the counter unlocks:

    fastboot oem device-info

    If Device unlocked: false, the bootloader is locked.