If you have updated to OxygenOS 5.0, then follow this tutorial on how to install TWRP recovery and root OnePlus 5 on Android Oreo 8.0 and 8.1.

OnePlus devices have gained a lot of recognition this year due to its powerful hardware specs and excellent software support. There’s no doubt that the devices while offering a near-AOSP experience can also be customized easily, similar to the Google Pixel and Nexus lineup.

If you have updated your 2017 OnePlus flagships to OxygenOS 5.0 or above and want to root the device on Android Oreo, then we have got you covered. Rooting the latest Android version requires you to use a modified version of the TWRP, as well as latest Magisk/SuperSU root package.

The OEM recently announced OxygenOS update for the OnePlus 5, which is based on Android 8.1 Oreo. Well, the latest software just isn’t enough for everybody. We all love some extra goodies and features to make the overall experience better. If that’s the case, then ‘Rooting’ is the solution. Here in this guide, we will guide you on how to root OnePlus 5 on Android Oreo 8.0 and 8.1.

Recommended: Install TWRP and Root OnePlus 5/5T on Android Pie (OxygenOS 9.0+)

Table of Contents

Install TWRP Recovery and Root OnePlus 5 on Android Oreo 8.0 and 8.1

Root OnePlus 5 on Android Oreo 8.0 and 8.1

You might ask how this method different than the regular one. Well, the answer is “Android Oreo” itself. The new version of Android brought several changes in the code, that wouldn’t allow the regular TWRP to play along, especially on the OnePlus 5. Also, not every version of SuperSU or Magisk works correctly to root OnePlus 5 on OxygenOS 5.0 and above.

Thankfully, the popular custom kernel developer – eng.stk and XDA recognized developer codeworkx have provided customized TWRP recovery for the device. We appreciate both their works regarding the matter. We have gathered all the files, including the specific versions of SuperSU and Magisk to help you root OnePlus 5 on Android Oreo (8.0 and 8.1).



Note: If Blu_spark TWRP doesn’t work, kindly use codeworkx TWRP linked below.

Install blu_spark TWRP Recovery on OnePlus 5

The first step to root OnePlus 5 on Android Oreo is to flash the compatible TWRP recovery on the device.

  1. Boot your OnePlus 5 into Fastboot mode:
    • Power down the device completely.
    • Press and hold the Volume Up and Power button simultaneously to enter Fastboot mode.
  2. Connect your device to the PC via the USB cable.
  3. Download the “twrp-3.2.1-x_blu_spark_v8.61-op5_op5t.img” file from the links above.
  4. Copy the downloaded file to C:\adb, where all the ADB and Fastboot files are present.
  5. Hold the SHIFT key on the keyboard and right-click on any empty space inside this folder.
  6. Select ‘Open PowerShell window here’ option from the menu.
    Root OnePlus 5 on Android Oreo (8.0 and 8.1) - Open PowerShell window here
  7. Execute the following command to install TWRP recovery on OnePlus 5 running OxygenOS 5.0.
    fastboot flash recovery twrp-3.2.1-x_blu_spark_v8.61-op5_op5t.img
  8. Once installed, you can disconnect the device and reboot it. The procedure goes further to root OnePlus 5 on Android Oreo.

Root OnePlus 5 on Android Oreo using Magisk or SuperSU

  1. Download latest Magisk or SuperSU flashable zip from the links above.
  2. Connect your device to the PC and transfer the Magisk or SuperSU zip to the internal storage of the device.
  3. Disconnect the phone from the PC and power it off completely.
  4. Press and hold the Volume Down and Power button simultaneously to enter TWRP recovery mode.
  5. In TWRP, tap on the ‘Install’ button.
    Root OnePlus 5 on Android Oreo using Magisk
  6. Navigate to the location where you transferred the file and select it.
  7. Swipe the button on the screen to flash Magisk/SuperSU and root OnePlus 5 on Android Oreo 8.0 and 8.1.
  8. Once the flashing process is complete, press the ‘Reboot System’ button.

Your OnePlus 5 should boot and would be running rooted OxygenOS 5.0. You can go ahead and use root-enabled apps and mods like ViPER4Android. If you have rooted the device using Magisk, you can install from a long list of modules to enjoy additional features on your OnePlus device.

So we have just guided you on how to root OnePlus 5 on Android Oreo. If you have any questions regarding the process, leave a comment below.


  1. Hey Dhananjay, I already have TWRP universal installed with Magisk 16 but unable to install the recent update of 5.1.1. I’m currently on 5.0.4. I’m trying to dirty flash new full update file but getting error code while trying to do so via TWRP. Just curious, should I change to bluespark and try if that’s gonna give me success. Thanks.

    1. Hi Sanjay. Instead of the universal version of the codeworkx recovery, kindly use the specific build provided above (dated: 20180414). And if even that doesn’t work, then opt for BluSpark. I am quite sure though that Codeworkx should work, cause I myself used it to update my OP5 recently.

  2. My bootloader is unlocked..can I still perform a dirty flash following above steps??
    Will it go into a bootloop?
    Pls help

    1. No, there won’t be a problem. After flashing the full ROM, also flash this file, and then Magisk for root. You should be fine.

  3. Hi.. I’m running nougat on my OnePlus 5.. It is rooted with normal twrp and magisk..
    Please instruct me on how to install the complete Oreo zip file and still retain root. (I would like to do a dirty flash if possible)

    1. Hi Gautam. You may first flash codeworkx TWRP from above.

      Once that is done, there are three files that you will need.
      1) OOS Oreo full ROM ZIP
      2) no-verity disabler: Link
      3) Latest Magisk ZIP

      Copy them all to the storage and flash them in the provided order. I recently did the same for OOS 5.0.4 on my OnePlus 5.

Post a Comment

Comment Policy: We welcome relevant and respectable comments. Only input your real first name and valid email address if you want your comment to appear. Read our comment policy fully before posting a comment.