Top Ad unit 728 × 90

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?

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!


How to install TWRP on a popular Android smartphone

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.

ASUS

Sr. No. Device Codename and Device Forum TWRP Installation Guide
1. ASUS ROG Phone 3 I003D Click Here
2. ASUS ZenFone 7 / 7 Pro I002D 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 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+ burton 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 8 instantnoodle Click Here
2. OnePlus 8 Pro instantnoodlep 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

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.

Sony

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

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.

Download TWRP

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:

getprop ro.build.ab_update

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:
    adb reboot bootloader
  3. Rename the TWRP image to twrp.img and type:
    fastboot flash recovery twrp.img
    fastboot reboot
    • 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:
      fastboot boot twrp.img
    • 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:

su
dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery

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:
    adb reboot bootloader
  3. Rename the TWRP image to twrp.img and type the following to boot it temporarily:
    fastboot boot twrp.img
  4. Copy the twrp.img file to the device:
    adb push twrp.img /sdcard
  5. Navigate to the Advanced menu of TWRP and tap on “Install Recovery Ramdisk”:
    Install recovery ramdisk option under TWRP
  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!

TWRP main menu

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.

Official TWRP App (Free+, Google Play) →


We hope this guide not only points you towards the right threads for installing TWRP on your device but also provides general TWRP installation instructions that can be applied for a large majority of Android devices generally. We’ll be updating this guide with links to further guides for specific phones, so check back again in the future!

The post How to install TWRP recovery on Android smartphones appeared first on xda-developers.



from xda-developers https://ift.tt/3fGGsyQ
via IFTTT
How to install TWRP recovery on Android smartphones Reviewed by site on 6:29 AM Rating: 5

No comments:

All Rights Reserved by PHONE FORUM © 2014 - 2015
Powered By Blogger, Designed by Sweetheme

Formulaire de contact

Name

Email *

Message *

Powered by Blogger.