Install TWRP and Root OnePlus 5


OnePlus is done with the unveiling of its brand new smartphone called the OnePlus 5. It’s a successor to the OnePlus 3T. OnePlus is a Chinse based company and people in China are quite superstitious when it comes to the number 4. For this reason, OnePlus didn’t release OnePlus 4. It went with the number 5 instead.

OnePlus 5 comes with top-notch specifications. The phone sports a 5.5-inch full HD display. Corning Gorilla Glass 5 is protecting this display. It comes in two options. You can get a OnePlus 5 with 64 GB internal storage and 6 GB RAM or you can get it with 128 GB internal storage and 8 GB RAM. A dual camera setup with one shooter of 16 MP and one of 20 MP is fixed at the back. On the front, this phone has a 16 MP selfie shooter. OnePlus 5 runs on Android 7.1.1 Nougat out of the box. A massive 3300 mAh battery is placed inside the phone.

It didn’t take too long for developers to customize this smartphone. A TWRP recovery is already out for the OnePlus 5. This means you can root the phone as well now. Install TWRP recovery requires unlocking your phone’s bootloader first. In this guide, we will first unlock the bootloader of your OnePlus 5. After unlocking the bootloader, we will flash TWRP recovery, and in the end, we will root the phone.

Install TWRP and Root OnePlus 5

Note: Unlocking the bootloader, installing a custom recovery and rooting a phone is all custom. These processes void the warranty of a smartphone and are not recommended by the device manufacturer. In case something goes wrong during or after the flashing procedure, TechBeasts or the recovery developer may not be held responsible. You are going to do everything at your own risk.

Precautions & Prep

  • This guide is intended for OnePlus 5 only. Do not try this method on any other device otherwise, you may result in bricking it.
  • Make sure that your phone’s battery is charged up to 80% in order to avoid any power issues during the flashing process.
  • Backup all of your important contacts, call logs, SMS messages and media content to stay on a safe end.
  • Enable USB debugging mode on your OnePlus 5 in developer options. To do so, go to settings > about device > tap build number for 7 times. You will have developer options in settings now. Open Developer Options > Enable USB debugging. If you have the OEM Unlocking option, enable it as well.
  • Use your original data cable to establish a connection between your phone and your PC.
  • Follow this guide to the letter to avoid any mishap.

Required downloads & installations

  1. Download and install OnePlus USB drivers.
  2. Download and install Minimal ADB & Fastboot drivers.

Unlock OnePlus 5 Bootloader

Unlocking bootloader will wipe your device. Make sure that you’ve backed up everything before going ahead.

  1. Make sure that you’ve downloaded and installed Minimal ADB & Fastboot drivers on your Windows PC or installed Mac ADB & Fastboot for Mac.
  2. Connect your phone to your PC now.
  3. Now open Minimal ADB & Fastboot.exe from your desktop. If you do not have this file on your desktop, then go to your Windows installation drive i.e. C drive > Program Files > Minimal ADB & Fastboot > Press and hold Shift Key + Right-click on an empty area with the open folder > click “Open command window here”.
  4. Now in the command window enter the following commands one by one.
    • adb reboot-bootloader

      This will reboot your Nvidia Shield in bootloader. Once booted up, issue the following command.

      fastboot devices

      This command will verify the connection of your device with your PC in fastboot mode.

    • fastboot oem unlock

      This command will unlock the bootloader. As soon as you press the enter key after typing this command, you will get a message in your phone asking for the confirmation of bootloader unlocking. Use volume up & down keys to navigate through options and confirm unlocking.

    • fastboot reboot

      This command will reboot your phone. That’s all, disconnect your phone.

How To Install TWRP Recovery and Root OnePlus 5

  1. Download TWRP Recovery.img file and rename it to the only recovery.img
  2. Download file and copy it to your phone’s internal storage after unlocking the bootloader.
  3.  Also, download the
  4. Copy recovery.img file to Minimal ADB & Fastboot folder which is located in program files in your windows installation drive.
  5. Now boot your OnePlus 3 into fastboot mode as suggested in step 4 above.
  6. Connect your OnePlus 3 to your PC now.
  7. Open Minimal ADB & Fastboot.exe explained in step 3 above.
  8. Now in the command window enter following commands:
    • fastboot devices

    • fastboot flash recovery recovery.img

    • fastboot boot recovery.img

    • (this will boot your device in TWRP recovery mode)

  9. At this point, TWRP will ask you whether you want to allow system modifications. Typically, you would want to allow modifications. By swiping right, you will trigger the dm-verity verification. Right after triggering it, you will have to flash SuperSU on your phone.
  10. You will have to perform a data wipe to enable storage. Right after allowing system modifications, go to the Wipe option in TWRP recovery and format the data.
  11. After wiping the data, go back to the main menu and tap the “Mount” option and then tap Mount USB Storage.
  12. Connect your phone to your PC now and copy dm-verity and files to your phone’s internal storage. After copying files, disconnect your phone.
  13. Get back to the TWRP recovery and flash the SuperSU by tapping the Install option. After flashing, flash the dm-verity file similarly.
  14. Through all this process, do not restart your phone. Stay in the TWRP recovery.
  15. Once done with formatting the phone, flashing SuperSU and dm-verity, reboot your device into the system. Find SuperSu in the app drawer. Install Root Checker app to verify root access.

To boot manually into TWRP recovery mode, unplug USB cable from your OnePlus 5 and turn off your device completely by keeping the power key pressed for a while. Now press and hold Volume Down + Power Key to turn on your OnePlus 5. As soon as your phone’s screen turns on, leave the Power Key and keep the Volume Down Key pressed. Your device will now boot into TWRP recovery mode.

Don’t forget to create a Nandroid Backup for your OnePlus 3 now. Also, check out how to use Titanium Backup since you’ve got your phone rooted. That’s all. Stuck with something? Don’t worry! Reach us out through the comment box below.


Usama is a software engineer by profession and at he uses his expertise to solve everyday consumer tech problems with his main areas of interest being Android, iOS and Windows.

Got a question/query or a suggestion? Drop it below.