How to root OnePlus 6 (works with OxygenOS 5.1.8 5.1.7, 5.1.6, 5.1.5)

OnePlus 6 root

Ever since the Android OS went mainstream, users have tried to push the software and hardware capabilities of their devices to the very limits. Nothing has been more beneficial to the Android community than the ability to root their devices and gain full control. Most devices these days need a custom recovery menu such as TWRP installed in order to be able to install the SuperSU files required to gain superuser access.

On the OnePlus 6, it is far easier to unlock the bootloader as compared to some of the other Android OEMs. If you’ve got your hands on the latest flagship killer of 2018 and want to push the phenomenal hardware of the OnePlus 6 to the absolute limits, here’s how you can not only install a custom recovery on your device but root it as well.

OnePlus-6-56

OnePlus 6 Root

Warning!

Do not try anything given on this page if you do not know completely what you are doing. In case any damage occurs, we won’t be held responsible.

Compatibility

The download files and the process for installing TWRP and rooting given on this page are compatible only with the OnePlus 6. Do not try this on any other device as you might end up damaging your device and permanently brick it.

Pre-requisites

  1. Install ADB and Fastboot driver on your PC.
  2. Unlock the bootloader of your OnePlus 6.
  3. Update your OnePlus 6 to OxygenOS 5.1.5 or higher. Check our firmware download page here to manually install the latest OnePlus 6 update.
OnePlus-6-55

Latest status

Update [June 15, 2018]: The method 1 below is confirmed to be working with these software updates of the OnePlus 6:

Method 1:

How to install TWRP recovery on OnePlus 6 and then root it

  1. Make sure that you’ve unlocked the bootloader for the OnePlus 6 before proceeding.
  2. Download the required files:
    1. TWRP IMG file: twrp-3.2.1-0-enchilada.img
    2. TWRP ZIP file: twrp-installer-enchilada-3.2.1-0.zip
    3. Magisk file for rootMagisk 16.4.zip
    4. DM verity disabler: no-verity-opt-encrypt-6.0.zip
  3. Connect your OnePlus 6 to the PC using the USB cable it came with.
  4. Transfer the TWRP ZIP file, Magisk ZIP file, and the DM verity disabler file to your OnePlus 6. Keep the device connected to PC.
  5. Rename the TWRP IMG file on the PC to twrp-op6.img so that it becomes a little easy to type the command to install it later on this guide. Also, we need the TWRP file on PC, so make sure of that.
  6. Make sure you have enabled USB Debugging on your OnePlus 6, as explained in the bootloader unlock post above (step 1). You may need to re-do it after unlocking the bootloader.
  7. Now open a command window inside the folder where you have the TWRP file, twrp.img, from Step 3 above. For this, go that folder, and then type cmd in the address bar of that folder’s window, and then hit the enter key. A command window will open up, and its location will be that folder.
    open-a-command-window-in-a-folder
  8. Boot your device into bootloader/fastboot mode. For this run this command:
    adb reboot bootloader

    └ If you get a permission dialogue on your OnePlus 6 to “Allow USB debugging”, tap OK.

  9. Install TWRP recovery temporarily and boot it for once by running the command below. To run a command, simply type this in the command window and then hit the enter key.
    fastboot boot twrp-op6.img
  10. You will see TWRP recovery now. When asked to ‘Keep System Read only?’, tap on the ‘Keep Read Only’ button to not allow for system modifications.
    • If it asks for the password, then enter the password or PIN you are using to allow TWRP to decrypt your device. (It won’t ask if you are not using any PIN or password on the device.)
  11. Install TWRP recovery permanently by tapping on Install button, and then selecting the TWRP ZIP file you transferred earlier (twrp-installer-enchilada-3.2.1-0.zip). Confirm installation on the next screen by swiping at the bottom of the screen.
  12. Once done, tap on the Home button to go back to the home screen of TWRP.
  13. Now, install the Root file (Magisk ZIP file) the same way. Tap on Install, then select the ZIP file, Magisk-v16.4.zip, and confirm on the next screen.
    • If you do not wish to root the device, be sure to install the DM verity disabler file now to let your device boot normally (and prevent from bootlooping).
  14. Once it’s done, tap on Reboot System button to restart the device. If and when it asks for ‘Install TWRP App?’, tap on ‘Do Not Install‘ button as you don’t need the TWRP app. Your OnePlus 6 is now rooted!

That’s all.


OnePlus-6-how-to-root-OnePlus-6

Method 2:

How to root OnePlus 6 using Magisk (no TWRP)

Well, you can root the OnePlus 6 even without TWRP, using Magisk patched boot images file. Here is how it can be done easily.

  1. Make sure your device meets the pre-requisites given above (i.e. bootloader is unlocked, and it’s running OxygenOS 5.1.5 or above).
  2. Download the Magisk patched boot file for your device’s software version:
    • OxygenOS 5.1.5 | Download Link | Filename: patched_boot_magisk1642_515.img
    • OxygenOS 5.1.6 | Download Link | Filename: patched_boot_magisk1642_516.img
    • OxygenOS 5.1.7 | Download Link | Filename: patched_boot_magisk1642_517.img
    • OxygenOS 5.1.8 | Download Link | Filename: patched_boot_magisk1642_518.img
  3. Connect your OnePlus 6 to the PC using the USB cable it came with.
  4. Make sure you have enabled USB Debugging on your OnePlus 6, as explained in the bootloader unlock post above (step 1). You may need to re-do it after unlocking the bootloader.
  5. Now open a command window inside the folder where you have the Magisk file, from above. For this, go that folder, and then type cmd in the address bar of that folder’s window, and then hit the enter key. A command window will open up, and its location will be that folder.
    open-a-command-window-in-a-folder
  6. Boot your device into bootloader/fastboot mode. For this, run the command below. To run a command, simply type this in the command window and then hit the enter key.
    adb reboot bootloader

    └ If you get a permission dialogue on your OnePlus 6 to “Allow USB debugging”, tap OK.

  7. Install root temporarily by installing the Magisk patched boot file for one reboot by running the command below.
    fastboot boot patched_boot_magisk1642_517.img

    The filename in the command above is for OxygenOS 5.1.7, so change it for your device’s software version if need be.

  8. Your OnePlus 6 will reboot to Android OS and will have temporary root access. We will use it to have permanent root. On your OnePlus 6, download the Magisk Manager app’s APK from here.
  9. Install the Magisk Manager app on your device using the APK file you downloaded just above. If you need help, see the APK installation guide here.
  10. Open the Magisk Manager app. it will show your device is rooted, but that’s only temporary root (until next restart). Go to the app’s Settings, and tap on Update channel. Now select Beta.
  11. Go back to the main screen of Magisk Manager app and make sure that under the Advanced Settings section, these two items are selected: ‘Preserve force encryption‘ and ‘Preserve AVB 2.0/dm-verity‘.
  12. Now tap on ‘Install‘ button, and then on ‘Direct Install (Recommended)‘.
  13. You gotta wait until the app patches the boot.img on your device and then installs it.
  14. Reboot your OnePlus 6 when done.

That’s it. You have got permanent root access on the device.


Do let us know if you need any help regarding getting root access on the OnePlus 6.

  • 316 Posts
  • 0 Comments
Sharing a love-hate relationship with Biotechnology in college, Husain moved on to his true calling of being a tech geek through and through. While briefly being persuaded by the iPhone, he made it back to the Android camp with the OnePlus One and has been a loyal comrade since.

We’re hiring! Find more here.