In this step-by-step guide, you’ll learn how to root OnePlus 6 and OnePlus 6T using Magisk Patched Boot Image, without having to install TWRP recovery at all. The instructions will work on any OnePlus 6/6T running Android 10 (OxygenOS 10+) or Android 9 Pie (OxygenOS 9+).
- 1 Overview
- 2 Before You Begin
- 3 Instructions to Root OnePlus 6 and OnePlus 6T
Rooting your phone with Magisk not only allows you to use root applications but also enables you to apply modifications to your phone’s software systemless-ly. That is without actually mounting or altering the system partition of the phone. We have already covered a guide to install TWRP on OnePlus 6/6T and root the phone using it.
However, if you do not plan on flashing custom ROMs and just want to root your phone, then installing TWRP isn’t even necessary. Furthermore, Magisk creator and developer topjohnwu also provided an explanation as to why having both TWRP and Magisk root installed together could cause problems, especially on Android 10 or above. Even if you plan on using custom ROMs, you could simply boot TWRP temporarily and use it to install ROMs or anything else for that matter.
So, rooting your OnePlus 6/6T without installing TWRP can make things more streamlined, leading to minimal scope for any errors. Plus, rooting via this method also enables you to easily install OTA updates on your rooted phone.
The process is very simple. In brief, the first step is to download the stock boot image corresponding to the OxygenOS version installed on your phone. Then, the second step is to patch the stock boot image with Magisk, via the Magisk Manager app. And finally, the third step is to flash the resultant patched boot image to your phone via fastboot.
So now, without any further ado, let us begin with the instructions.
Before You Begin
Before you head to the instructions, ensure that all the requirements listed below have been fulfilled.
- Rooting, if done wrong, can lead to data loss. So, it’s always best to safeguard your data beforehand. Make sure to take a complete backup of all your data first. Should you need it, you can also visit this guide for the purpose.
- In order to root, you must first unlock the bootloader of your phone. If you’ve already done that, you can proceed further. If not, then follow our separate guides for the OnePlus 6 and OnePlus 6T. Once you have unlocked the bootloader, come back here and follow the instructions.
- Download and install OnePlus USB drivers on your PC.
- Download the latest Android SDK platform-tools (ADB and fastboot) package from here and install it on your PC (Click here for instructions).
- While following the instructions, you will need to launch the command-line window in the same folder where the SDK tools are installed. When asked to do so, follow the steps below:
- PowerShell in Windows: Open the folder where ADB and fastboot are installed (e.g. C:\plaftorm-tools). Then hold the SHIFT key and right-click on an empty space inside the folder. Finally, select the “Open PowerShell window here” option.
- Terminal in macOS/Linux: Launch the Terminal window and use the “cd” command to change its directory to the folder where ADB and fastboot are installed. For example, if you installed it to /Documents/platform-tools, then you should use the following command to change the directory:
Instructions to Root OnePlus 6 and OnePlus 6T
It’s quite easy, even if you’re new to the whole rooting scene. For making the whole process easier to understand, we have split the instructions into three major steps that I just mentioned above.
Step 1: Download Stock Boot Image
The first step in order to root OnePlus 6/6T is to download the stock boot image corresponding to the installed OxygenOS version (Stable or Open Beta).
Yes, you could also use pre-patched boot images from XDA and we could have provided them as well. But, I decided not to do so. That’s because when you use Magisk Manager to patch the stock boot by yourself, it will create and store a backup of your stock boot image. This backup will not only allow you to take OTA updates on your rooted phone but is also necessary during the unrooting procedure.
For OnePlus 6 (codename: enchilada)
- OxygenOS 10.3.3: stock_boot_oos_10.3.3_oneplus6.img
- OxygenOS 10.3.2: stock_boot_oos_10.3.2_oneplus6.img
- OxygenOS 10.3.1: stock_boot_oos_10.3.1_oneplus6.img
- OxygenOS 10.3.0: stock_boot_oos_10.3.0_oneplus6.img
- OxygenOS 10.0.1: stock_boot_oos_10.0.1_oneplus6.img
- OxygenOS 10: stock_boot_oos_10_oneplus6.img
- OxygenOS 9.0.9: stock_boot_oos_9.0.9_oneplus6.img
- OxygenOS 9.0.8: stock_boot_oos_9.0.8_oneplus6.img
- Open Beta:
For OnePlus 6T (codename: fajita)
- OxygenOS 10.3.4: stock_boot_oos_10.3.4_oneplus6t.img
- OxygenOS 10.3.3: stock_boot_oos_10.3.3_oneplus6t.img
- OxygenOS 10.3.2: stock_boot_oos_10.3.2_oneplus6t.img
- OxygenOS 10.3.1: stock_boot_oos_10.3.1_oneplus6t.img
- OxygenOS 10.3.0: stock_boot_oos_10.3.0_oneplus6t.img
- OxygenOS 10.0.1: stock_boot_oos_10.0.1_oneplus6t.img
- OxygenOS 10: stock_boot_oos_10_oneplus6t.img
- OxygenOS 9.0.17: stock_boot_oos_9.0.17_oneplus6t.img
- OxygenOS 9.0.16: stock_boot_oos_9.0.16_oneplus6t.img
- Open Beta:
- OxygenOS 10 Open Beta 5: stock_boot_oos_10_ob5_oneplus6t.img
- OxygenOS 10 Open Beta 4: stock_boot_oos_10_ob4_oneplus6t.img
- OxygenOS 10 Open Beta 3: stock_boot_oos_10_ob3_oneplus6t.img
- OxygenOS 10 Open Beta 2: stock_boot_oos_10_ob2_oneplus6t.img
- OxygenOS 10 Open Beta 1: stock_boot_oos_10_ob1_oneplus6t.img
Note: I will try my best to update this post with the latest stock boot images. However, sometimes it may not be possible to do so at all times. In that case, you can download the full ROM of the latest OxygenOS version from here and follow the instructions in this guide to extract the payload.bin file and get the boot image.
Step 2: Patch Stock Boot Image using Magisk Manager
- Download the stock boot image for OnePlus 6/6T.
- Connect your device to the PC using the USB cable.
- Transfer the downloaded image file to the device’s storage.
- Now, download the latest Magisk Manager APK from here and install it on your device.
- Once installed, go to the app drawer and launch the Magisk Manager application.
- Tap on the ‘Install’ > ‘Install’ > ‘Select and Patch a File’.
- Select the stock boot image file (e.g. stock_boot_oos_10.3.1_oneplus6t.img) to patch it using Magisk.
Magisk Manager will now patch the stock boot with the latest version of Magisk. The resultant patched boot image will be placed in the ‘Download’ folder of your phone’s internal storage.
Now, the last and final step to root OnePlus 6/6T is to flash the patched boot image using fastboot. Follow the instructions in the next step for the same.
Step 3: Flash Patched Boot Image to Root OnePlus 6/6T using Magisk
- Transfer the patched boot image (magisk_patched.img) from the phone to the folder where the Android SDK platform-tools are installed on the PC.
- Example: ‘C:\platform-tools’ on Windows or ‘Documents/platform-tools’ on macOS/Linux.
- Power off your OnePlus 6/6T completely.
- Hold the Volume Up and Power buttons together to boot your OnePlus device into Fastboot Mode.
- Connect the phone to the PC while it is in Fastboot Mode.
- Now, launch the command-line window on your PC.
- Enter the following command to ensure that your OnePlus 6/6T is successfully being detected by the PC over fastboot:
- The command should output the device ID, along with the “fastboot” message.
- Finally, enter the following command to flash the patched boot image and root OnePlus 6/OnePlus 6T using Magisk:
fastboot flash boot magisk_patched.img
- Once the file has been flashed, reboot your device by entering:
Your OnePlus device should now boot into the system (OS) and rooted with Magisk. Now go to the app drawer, open Magisk Manager, and follow the on-screen instructions to perform any additional process, if required.
Now that you have successfully rooted your OnePlus 6/OnePlus 6T, you may go ahead and modify the phone’s software using Magisk Modules. You can also use Magisk Hide to hide root from apps that might detect root and stop working. And of course, you can now download and use root-enabled apps like Titanium Backup, Kernel Adiutor, Naptime, and more.
And like I mentioned earlier, rooting through this method allows you to install OTA updates on your phone as well. When an update arrives, you can follow the instructions in this guide to install it.
There you go! This was our guide on how to root OnePlus 6 and OnePlus 6T using Magisk, without installing TWRP. If you have any questions regarding the rooting procedure, just reach me by commenting below.