OnePlus 5 rooting has been made possible by xdvs23 through a fully working TWRP recovery. For rooting OnePlus 5, we will be using the SuperSU package as it’s the safest method till date. As per the developer’s note, the TWRP recovery is capable of flashing anything which means you can root OnePlus One, running on Nougat based OxygenOS.
If you were searching for how to install TWRP and root OnePlus 5, this tutorial helps you do that. I know, OP5 is an expensive device and necessary precautions have to be taken prior rooting the device. Chances of bricking are there, so if you don’t know how to return back to a working state if something is broken, please think twice before following this guide.
I’m going to section this tutorial into two; install TWRP & root OnePlus 5. You have to be very cautious while executing the steps and at any cost, do not attempt anything you’re unsure of. Let’s jump into the first section, i.e, installing TWRP recovery on OnePlus 5.[mks_separator style=”dashed” height=”2″]
OnePlus device’s bootloaders are locked by default and you need to unlock it before modifying the device. In order to unlock the bootloader of OnePlus 5, kindly refer my previous posts.[mks_separator style=”dashed” height=”2″]
1. How to Install TWRP on OnePlus 5
- Assuming that you’ve already enabled USB Debugging, OEM Unlocking and installed ADB drivers on your computer. [Check the above-mentioned reference for drivers and instructions]
- Copy TWRP for OnePlus 5 from here and copy it the adb folder on your computer.
- Connect your OnePlus 5 to the PC and open a command window under adb folder. Now execute the below command to reboot the device into fastboot mode
adb reboot bootloader
- Once it’s rebooted into the fastboot mode, make sure that the TWRP image is residing in the adb folder before executing the next command. Rename the twrp file to “recovery.img” and type the following command.
fastboot flash recovery recovery.img
- If everything goes right, reboot the system with the below command:
- Done! TWRP is successfully installed on OnePlus 5.
Most of the time, the command window would stuck saying “Waiting for device” result. In this scenario, simply re-install the USB drivers on your computer. If that doesn’t fix the issue, install the PDAnet application on both phone and computer and perform the driver setup to install all necessary USB drivers on the system.
- To check whether the device is detected on the computer, enter the following command on the terminal:
- If that returns a serial code, your phone has been detected successfully. If you use mfastboot instead of fastboot, you may need to replace fastboot with mfastboot in all commands.
2. How to Root OnePlus 5 (with SuperSU)
- Download the SuperSU flashable zip from here and place it on the root of your of internal storage.
- Reboot your phone into TWRP recovery by either using the key combination or with the reboot to recovery option.
- Permit the modification access in the recovery (for the first time).
- Do a Data wipe by tapping Format Data option under the Wipe section.
- Now choose the SuperSU flashable zip and install it by swiping right to the screen.
- Followed by the installation, do a cache wipe which includes Dalvik cache as well.
- Press reboot to system. Done.
That was it! By following these three sections, we have performed all developmental activities on OnePlus 5 such as unlocking the bootloader, installing the TWRP custom recovery and rooting with SuperSU package.
Errors are most likely to come in these procedures. So, if you’re stuck at any step with any errors, let us know via comments. We will help you resolve any queries regarding how to unlock the bootloader, install TWRP and root OnePlus 5 as soon as possible.