How to root OnePlus 6

OnePlus 6 root

Update [September 21]: Now that the OxygenOS 9.0 update that brings the Android 9 Pie update to OnePlus 6 is available, let us tell you that the root guide given below works very well with the Android 9 update too.

We have updated the guide to include Magisk 17.2 download below because that’s the latest version of Magisk root package right now and is confirmed to be working with OnePlus 6 Android 9 update.


Original article:

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 TWRP recovery

Download both the ZIP and IMG files required to install TWRP recovery on the OnePlus 6 from below:

  1. TWRP .IMG file:
  2. TWRP .ZIP file – twrp-installer-enchilada-3.2.3-0.zip

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.

OnePlus-6-55

Let’s see how to install TWRP first, and then root the OnePlus 6. (If you are on Android 9 Pie update, you can root the device without needing TWRP, see that method in a separate section below, and in which case, ignore the guide right below that uses TWRP.)

  1. Make sure you have unlocked the bootloader of your OnePlus 6.
  2. Download the required files:
    1. TWRP recovery from above
    2. Magisk 17.2 root package
    3. DM Verity disabler
  3. Make sure you have enabled USB Debugging on your OnePlus 6 device. You may need to re-do it after unlocking the bootloader.
  4. Connect your OnePlus 6 device to PC using the USB cable that came with it.
  5. Transfer the required files to your OnePlus 6, which are, TWRP ZIP file, Magisk, and DM Verity disabler.
  6. Now open a command window inside the folder where you have the TWRP 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
  7. Connect your OnePlus 6 device to the PC.
  8. Run the following command into the command window we opened above to boot your device into bootloader/fastboot mode:
    adb reboot bootloader

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

  9. Once your OnePlus 6 boots into bootloader mode, run the command below to install TWRP temporarily and access it right away.
    fastboot boot <name of twrp file here>.img
  10. The device will reboot to recovery mode and you will see TWRP recovery right there. Tap on ‘Keep Read Only’ button now to do not allow system modifications.
    twrp-keep-read-only
  11. You will see TWRP recovery now. Now we will install the TWRP recovery permanently. For this, in TWRP, tap on the Install button, and then select the TWRP ZIP file you transferred earlier.
  12. [Careful!] Now, reboot back to TWRP again. Tap on the home button, then on Reboot button, and then on Recovery button to restart the device into TWRP. Now TWRP recovery is permanently installed.
  13. Time to root your OnePlus 6 device. Install the magisk file to root the device, but if you don’t want to root, you still need to install the DM Verity disabler file to prevent the device from bootlooping when starting to Android from TWRP.
    → To install, go back to the home screen of TWRP and tap on Install button, and then select the Magisk file (or DM verity disabler if you don’t want to root), and then confirm the installation on the next screen.
  14. Reboot now and your OnePlus 6 will start to Android. If you installed Magisk, you can verify root access on your OnePlus 6 using a root checker app.

Root OnePlus 6 without TWRP

The root method above uses TWRP recovery, installing which is tiresome these days as you need to take care of decryption, DM verity check, auto removal, etc. stuff.

This would come handy then that you can actually root your OnePlus 6 without using TWRP recovery.

  1. Make sure you have unlocked the bootloader of your OnePlus 6. And that you have USB debugging enabled, and fastboot and adb driver installed, all of which is part of the bootloader unlock guide too.
  2. Download required files on your PC:
    1. Android 9 Pie | OxygenOS 9.0
      1. Patch boot – to get root access
      2. Stock boot – to restore default boot image
    2. Android 8.0 Oreo | OxygenOS 5.1.11
      1. Patch boot – to get root access
      2. Stock boot – to restore default boot image
  3. Connect your OnePlus 6 device to PC using the USB cable that came with it.
  4. Now open a command window inside the folder where you have the patched boot image 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
  5. Connect your OnePlus 6 device to the PC.
  6. Run the following command into the command window we opened above to boot the OnePlus 6 into bootloader/fastboot mode:
    adb reboot bootloader

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

  7. Once your OnePlus 6 boots into fastboot mode, run the command below to install patched boot image file.
    fastboot boot <name of patched boot file here>.img
  8. Your OnePlus 6 will now restart. Make sure you follow the rest of the guide without restarting the device now.
  9. Root the OnePlus 6:
    1. Open Magisk app.
    2. Tap on Install.
    3. Tap on Install Magisk
    4. Tap on Direct Install
  10. Restart the device. Your OnePlus 6 is now rooted. (The root will be retained even if you reboot the device now.)

Does the root guide work with Android Pie update and OxygenOS 9.0

Yes, of course!

Both the Method #1 and #2 work with the OnePlus 6 running Android Pie.

We have provided the download for Magisk 17.2 root tool above under Method #1 that works well with the OxygenOS 9.0 Android 9 update, it’s been confirmed.

As long as you use the Magisk 17.2 (or newer as and when available), you can root the OnePlus 6 without batting an eye.

Similarly, for mwethod #2, new images have been added specifically for the OxygenOS 9.0.


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

  • 408 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.