Install twrp on any android

How to install TWRP recovery on Android smartphones

TeamWin Recovery Project, more widely known by its TWRP abbreviation, is the most popular custom recovery solution for Android devices. For the unaware, TWRP replaces the default recovery environment that came with your device, so you can root your device via Magisk, flash custom ROMs and kernels, create full backups, and so on. If you’re wondering how to get TWRP on your device, this guide should help you with that. In case you don’t see your device listed or you see a misplaced link, send a message to Skanda Hazarika (SkandaH on the forums) with the device details.

Table of Contents:

Why TWRP for Custom Recovery?

One of the reasons Android modders swear by TWRP is its active development and support for a wide variety of devices, with new devices being added to the official build roster regularly. Thanks to the open-source nature of the project, aftermarket developers can also port TWRP unofficially to many other devices. The internal structure of the custom recovery is quite modular, which is why you can find numerous forks as well as further functionality enhancements such as dual boot mods based on TWRP.

DISCLAIMER: Replacing the stock recovery with TWRP usually needs an unlocked bootloader, which may void the warranty on the device. It may also make the device unstable or if not done properly, may completely brick the device. XDA and the author do not take any responsibility for your device. Install TWRP at your own risk and only if you understand what you are doing!

Have you already unlocked the bootloader of your device? Eager to enjoy the first step towards the aftermarket development scene? Head to the following section to begin the journey. You should find device-specific TWRP installation guides for the latest flagship models from every major OEM below.

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. ASUS ROG Phone II I001D Click Here
2. ASUS ROG Phone 3 I003D Click Here
3. ASUS ROG Phone 5
ASUS ROG Phone 5s
I005D Click Here
4. ASUS ZenFone 6 I01WD Click Here
5. ASUS ZenFone 7/7 Pro I002D Click Here
6. ASUS ZenFone 8 I006D Click Here

For other ASUS devices, kindly check out theВ ASUS section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Google

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. Google Pixel 4 flame Click Here
2. Google Pixel 4 XL coral Click Here
3. Google Pixel 4a sunfish Click Here
4. Google Pixel 5 redfin Click Here

For other Google devices, kindly check out theВ Google section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Motorola

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. Motorola Edge Plus burton Click Here
2. Motorola Moto G100/Edge S nio Click Here
3. Motorola Edge 20 Pro/Edge S Pro pstar Click Here

For other Motorola devices, kindly check out theВ Motorola section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

OnePlus

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. OnePlus 7 guacamoleb Click Here
2. OnePlus 7 Pro guacamole Click Here
3. OnePlus 7T hotdogb Click Here
4. OnePlus 7T Pro hotdog Click Here
5. OnePlus 8 instantnoodle Click Here
6. OnePlus 8 Pro instantnoodlep Click Here
7. OnePlus 8T kebab Click Here
8. OnePlus 9 lemonade Click Here
9. OnePlus 9 Pro lemonadep Click Here
10. OnePlus 9R lemonades Click Here
11. OnePlus Nord avicii Click Here
12. OnePlus Nord 2 denniz Click Here
13. OnePlus Nord N10 5G billie Click Here
14. OnePlus Nord N100 clover Click Here
15. OnePlus Nord N200 holi Click Here

For other OnePlus devices, check out the OnePlus section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Samsung

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. Samsung Galaxy Tab S7/S7 Plus gts7xl Click Here
2. Samsung Galaxy S21 unboundm1(q) Exynos variant / Qualcomm Snapdragon variant
3. Samsung Galaxy S21 Plus unboundn2(q) Exynos variant / Qualcomm Snapdragon variant
4. Samsung Galaxy S21 Ultra unboundo3(q) Exynos variant / Qualcomm Snapdragon variant

For other Samsung devices, kindly check out theВ Samsung section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. Sony 1 II pdx203 Click Here

For other Sony Xperia devices, kindly check out theВ Sony section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

Xiaomi

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. Xiaomi Mi 11 venus Click Here
2. Xiaomi Mi 11X/POCO F3/Redmi K40 alioth Click Here

For other Mi, Redmi, and POCO branded devices, kindly check out theВ Xiaomi section of our forums. You should be able to find similar fine-tuned guides for your device under the device sub-forums. You can also follow the generic TWRP installation guide from this tutorial.

How to install TWRP on any Android device

Before getting started with TWRP, make sure that:

  1. You have access to a PC/Mac withВ adb and fastboot installed.
    • On your device, go into Settings -> About and find the Build Number. Tap on it 7 times to enable Developer options. Go back to the Settings menu and find the Developer options entry (on older Android versions), or tap on System -> Advanced, and go into Developer options. Finally enable USB debugging.
  2. The bootloader of the target Android device is unlocked.
    • For Samsung devices, unlocking the bootloader will trip KNOX.

Step 1: Downloading TWRP for your device

Let’s start by downloading the appropriate TWRP image for your device. You can find a list of devices that are officially supported by following the link below.

As mentioned earlier, you may also find unofficial TWRP builds for your device in our forums.

Step 2: Flashing TWRP

Since TWRP replaces the stock recovery image of your device, the installation process depends on the target device’s partition scheme. Users can easily check it by running the following command in ADB shell or a Terminal Emulator app:

This will return “true” if the device supports A/B partitions. On legacy A-only devices, the output should be blank.

Case I: Devices with A-only partition scheme

If you have a device that still uses the A-only partition scheme, then you should be able to directly replace the stock recovery image with TWRP via Fastboot.

  1. Copy the TWRP image to a suitable location on your PC. You can even put it on the folder where the Fastboot binary is located.
  2. From your PC, open a command prompt/terminal and type:
  3. Rename the TWRP image to twrp.img and type:
    • Many devices will replace a custom recovery automatically during first boot. To prevent this, search to find the proper key combo for your device to enter recovery. After typing ‘fastboot reboot’, hold the key combo and boot to TWRP.
    • You can also try to temporary boot the downloaded image using the following command:
    • Once TWRP is booted, TWRP will patch the stock ROM to prevent it from replacing TWRP. If you don’t follow this step, you will have to repeat the install.
  4. Congrats! TWRP is now successfully installed on your device.

Power users can also flash the custom recovery without using a PC, but the process needs root access. To do so, download the appropriate TWRP image file to your phone, rename it to twrp.img, and place it in the root of the internal storage (/sdcard). Run the following commands via adb shell or a terminal emulator app:

On some rare occasions, your device doesn’t feature a standalone recovery partition. Instead, the recovery is part of the boot image. The TWRP maintainers for such devices may repurpose a different partition as the recovery environment. As a result, the aforementioned flashing process might need some tweaking on those devices.

Case II: Devices with A/B partition scheme

In case of a device having A/B partition scheme, the recovery environment is fused with the boot image. Due to this design, you need to temporarily boot TWRP first and later perform a more permanent installation within the custom recovery environment.

  1. Copy the TWRP image to a suitable location on your PC. You can even put it on the folder where the Fastboot binary is located.
  2. From your PC, open a command prompt/terminal and type:
  3. Rename the TWRP image to twrp.img and type the following to boot it temporarily:
  4. Copy the twrp.img file to the device:
  5. Navigate to the Advanced menu of TWRP and tap on “Install Recovery Ramdisk”:
  6. Choose the twrp.img file from the device’s internal storage.
  7. Swipe to install and then reboot.
  8. Congrats! TWRP is now successfully installed on your device.

Special Case: Samsung

Samsung Galaxy devices don’t a traditional Fastboot interface, hence the installation process of TWRP on them is quite different.

  1. Download and extract Odin (Samsung’s Flash Tool) to your computer.
  2. On your PC, download the *.tar image of TWRP for the target device.
  3. Reboot to download mode. Open Odin on your PC, and flash that tar file in the [AP] slot.
  4. Hold the recovery mode key-combo (usually volume up and power) while Odin is flashing until you are in TWRP environment.
  5. Once you’re in, you may need to flash Multidisabler to semi-permanently disable a number of device protection features and services that become problematic on a modified device.
  6. Congrats! TWRP is now successfully installed on your device.

Step 4: Verification

The last step is to verify that the custom recovery is working properly. Use the device-specific key-combo or the adb reboot recovery command on an already running device to boot to the recovery mode. If you can see the menu like the one shown below, it means you have successfully install TWRP. Great job!

Lastly, be sure to download the official app for the custom recovery project from Google Play. The app will alert you when new versions of the custom recovery are available. It’ll also let you download the latest version right from your device, provided you’ve root access.

Источник

How to Install TWRP Recovery on Android?

Users who want to customize their Android phone with third-party custom ROMs, root, or mods, must first install a custom recovery. In this tutorial, we will show you how to download and install TWRP recovery on Android devices using Fastboot and Odin. The latest TWRP version available for officially supported devices is TWRP v3.3.1-0.

Android is a versatile OS and that’s majorly because of its open source nature. There’s no limit to what you can tweak up in the software. But that certainly couldn’t be done on any stock OEM device. Manufacturers only tend to deliver certain unique features to specific devices and that’s just about what a regular user would get.

So, if you want to add some more features, customize the appearance of the OS, or want to shift to another firmware altogether, you will need a few things. To start with, you will first have to unlock the phone’s bootloader, which will further enable you to install a custom recovery, like TWRP in this case.

So, what is TWRP?TWRP (short for “TeamWin Recovery Project“) is a custom recovery for Android smartphones and tablets, and also the first one to support touch-enabled interface in recovery mode. The project is led by Dee’s Troy, along with other developers responsible for maintaining TWRP for individual Android devices. At the moment, TeamWin officially supports more than 100 Android devices from various manufacturers. Unofficial ports/development are handled by individual developers for specific Android devices.

TWRP recovery allows users to install third-party firmware like custom ROMs, kernels, and mods. In addition to that, it also enables a user to erase/flash device partitions and backup/restore the complete firmware. And that’s just the starting point, there’s a lot that TWRP can do once you have installed it on your Android device.

Prerequisites

Make sure to fulfill the requirements below before you follow the instructions to install TWRP recovery on Android.

  • We strongly recommend taking a full backup of the device before flashing TWRP. You can follow our guide on how to backup Android phones.
  • Charge your phone to at least 50-60% battery level to avoid any sudden shutdowns during the process.
  • In order to flash TWRP recovery, you must first enable OEM unlocking and unlock the bootloader of your device.
  • Download and install USB drivers on your PC.
  • For method 1, you will also need to install ADB/Fastboot tools on the PC. Alternatively, you can also use the Minimal ADB and Fastboot Tool for this.

Download Latest TWRP Recovery for Android Devices

1. Official TWRP Recovery

For your added convenience, we have listed links to all the officially supported Android manufacturers. Simply click on your device’s manufacturer name and download TWRP recovery for your Android device.

2. Unofficial TWRP Recovery

If you could not find your device in the links above, then TWRP doesn’t support your Android device officially. In that case, you can download the latest unofficial TWRP recovery through TWRP Builder. It is an open-source project that allows users to download TWRP recovery for devices that aren’t supported officially.

You can go directly to the project’s download page and enter your Android device’s name/model/manufacturer in the search bar. Alternatively, you can also download their official app from the Play Store (Click the app box below) and use it to download the latest unofficial TWRP for your device.

Once you have succeeded to download latest TWRP recovery for your Android device, follow the installation instructions below.

Requirements

In order to install TWRP 3.3+ on your Android device, make sure that the requirements listed below are fully met.

  • You will need a PC with Windows, macOS, or Linux operating system.
  • Take a full backup of all your important data stored on your Android device. Flashing TWRP doesn’t normally erase any data. But for some devices, you’d need to format the /data partition later, so that TWRP can recognize the internal storage. Taking a backup will safeguard all your data in case it’s wiped. You could also follow our detailed guide for this purpose.
  • In order to install TWRP, your phone must have an unlocked bootloader. The bootloader on most OEM Android devices could be unlocked via fastboot. You will find the instructions for that on this page. Alternatively, you can also try looking up for your device-specific guide on our website.

Instructions to Install TWRP Recovery on Android

Installing TWRP on Android devices is easy and there are two different installation methods to do that. First, by using Fastboot, which is highly likely to work on any Android device, irrespective of the manufacturer. And second, by using the Odin tool on Samsung Galaxy devices. That is because these devices do not have a dedicated Fastboot Mode, but Download Mode that communicates with the Odin tool to flash stock firmware or custom binaries in [*.tar] or [*.tar.md5] extension.

The instructions for both the methods has been listed in detail below.

Method 1: Using Fastboot

Important notes:

Most new Android devices come with the A/B partition scheme, like the Google Pixel 3/Pixel 3 XL, Mi A3, etc. These devices do not support direct flashing of the TWRP recovery image via fastboot. On such devices, you will need to temporarily boot into TWRP using the recovery image and then flash the TWRP installer zip file. So, make sure that you know if your device supports A-only or the A/B partition scheme. If you don’t know, then follow this guide on how to check it.

Also, make sure to prepend the commands mentioned in the instructions below with “.\” if you’re using a Windows PC, or “./” if you’re using a macOS/Linux PC.

    1. First off, download TWRP recovery image and TWRP installer zip (If applicable) for your device.
    2. Copy the downloaded TWRP image to the folder where adb and fastboot are installed (e.g. C:\platform-tools”).
    3. Transfer the TWRP installer zip (again, if applicable) to your Android device’s storage.
    4. Open the command-line window:
      • On Windows: Go to the folder where the TWRP recovery image is present. Then hold the SHIFT key and right-click on an empty space inside the folder. Select the ‘Open PowerShell window here’ option to launch PowerShell.
      • On macOS or Linux: Open Terminal and “cd” to the folder where the TWRP recovery image is present (e.g. cd Documents/platform-tools).
    5. Connect your phone to the PC using the USB cable.
    6. Now, boot your Android device into Bootloader/Fastboot mode by entering the below ADB command:
    7. Once your device is in Bootloader/Fastboot mode and connected to the PC, follow the instructions in the section below depending on if your device supports A-only (Step #8) or the A/B parition (Step #9) scheme.
    8. Devices with A-only Partition:
      1. Enter the below command to flash the recovery image and install TWRP recovery on Android device with A-only partition:
      2. Replace “ ” with the actual filename of the TWRP recovery image. For example:

    9. Now reboot your device using the following command:
  1. Devices with A/B Partitions:
    1. Temporarily boot into TWRP recovery image by entering the following command:
    2. Replace “ ” with the actual filename. For example:

    3. Your Android device should now boot into TWRP recovery mode.
    4. Swipe the “Swipe to Allow Modifications” button when prompted.
    5. Tap on the ‘Install’ button in TWRP.
    6. Navigate to the storage and select the TWRP installer zip (twrp-installer-3.3.x-x-codename.zip) file.
    7. Finally, swipe the button on the screen to flash the file and permanently install TWRP recovery on Android device with A/B partition.

So this was how you can install TWRP recove ry using Fastboot. The method shall work for the majority of OEM Android devices.

Method 2: Using Odin on Samsung Galaxy Devices

  1. Download TWRP recovery Odin flashable (*.img.tar) file for your Samsung Device.
  2. Also, download Odin tool and extract the ZIP on your PC.
  3. Go to the extracted folder and run ‘Odin3.exe’ by double-clicking on it.
  4. Boot your Samsung device into Download mode and connect it to the PC.
  5. The COM port in the Odin window should light up.
  6. Click on the ‘AP’ button.
  7. Select the TWRP recovery tar file for your device.
  8. Do not modify any other settings.
  9. Finally, click on the ‘Start’ button to install TWRP recovery using Odin tool.
  10. Once the flashing process is complete, you shall see the ‘PASS!’ message on the screen and the phone will reboot automatically.

So this was how to install TWRP recovery using Odin on Samsung Galaxy devices.

How to Update TWRP Recovery?

  1. Download the latest TWRP version (.img) for your device.
  2. Connect your phone to the PC using the USB cable.
  3. Copy the downloaded IMG file to the phone’s storage or SD card.
  4. Disconnect the device and power it off.
  5. Boot your Android device into TWRP recovery mode.
  6. Go to the ‘Install’ menu and tap on the ‘Install image’ button at the bottom.
  7. Select the TWRP IMG file.
  8. Next, select ‘Recovery’ from the list of partitions shown on the screen.
  9. Finally, swipe the button on the screen to update TWRP recovery to the latest version.
  10. Once done, tap on the ‘Reboot System’ button.

So now that you have been able to install TWRP recovery on your Android devices, go ahead and flash custom ROMs like Android Pie-based LineageOS 16 and Resurrection Remix 6.0. You can also use it to root your Android phone by flashing Magisk or SuperSU.

If you have any questions regarding TWRP or its usage, or are facing any sort of troubles with installing TWRP on your device then let us know through the comments.

Источник

Читайте также:  Адаптеры андроид для carplay
Оцените статью