Rooting your OnePlus 6/6T with Magisk will allow you to modify the phone’s software systemless-ly and use apps that require root permissions, all without tripping Google’s SafetyNet flag. In this guide, I will show you how to root OnePlus 6/OnePlus 6T using Magisk, without TWRP recovery. The instructions are compatible with devices running Android 10 (OxygenOS 10) and Android 9 Pie (OxygenOS 9).
There are plenty of reasons why some users would like to root their phones without TWRP. If it’s only “root” that you need, then installing TWRP just adds to one more redundant step in the rooting process. Also, rooting without TWRP will also make it easier for you to take OTA updates on rooted devices.
One more reason why you’d want to root your OnePlus 6/6T without TWRP is that it doesn’t support Android 10 yet. TWRP Lead Developer Dees_Troy has already posted information on the matter. Although there are workarounds to get TWRP working on OnePlus 6 or 6T running Android 10 (OxygenOS 10), it’s a bit tricky.
So, for whatever reason, if you want to root OnePlus 6/6T without TWRP, then this guide is for you.
Steps to Root OnePlus 6/6T using Magisk
In brief, you will first have to download the stock boot image for the OxygenOS version installed on your phone. Then, you will have to patch the stock boot image using Magisk Manager. And finally, you will have to flash the resultant Magisk patched boot image to your OnePlus 6/6T for root.
Easy, right? Even if it doesn’t sound easy right now, it will be. Just go through the step-by-step instructions below to root OnePlus 6/6T using Magisk.
Step 0: Prerequisites
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:
Step 1: Download Stock Boot Image
The first step is to download the stock boot image for your OnePlus 6 or OnePlus 6T. Below I have provided download links for both the devices. Make sure that you download the one corresponding to the OxygenOS version (Stable or Open Beta) installed on your phone.
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. 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.
For OnePlus 6 (codename: enchilada)
- Open Beta:
For OnePlus 6T (codename: fajita)
- Open Beta:
Yes, you can 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 image by yourself, it will create and store a backup of your stock boot image. This backup will allow you to take OTA updates on your rooted phone but is also necessary when unrooting.
Step 2: Patch Stock Boot Image using Magisk Manager
The second step is to use Magisk Manager to patch the stock boot image. Simply follow the instructions below.
- Download the stock boot image for your OnePlus 6/6T.
- Connect your device to the PC using the USB cable.
- Transfer the downloaded stock boot image 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.0_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.
Step 3: Flash Magisk Patched Boot Image to Root OnePlus 6/6T
Now, the last and final step is to flash the patched boot image to your device using fastboot.
- Connect your OnePlus 6/6T to the PC using the USB cable.
- Transfer the patched boot image (magisk_patched.img) from the phone to the folder on your PC where the Android SDK platform-tools are installed. Example: ‘C:\platform-tools’ in Windows or ‘Documents/platform-tools’ in macOS/Linux.
- Power off your OnePlus 6/6T completely.
- Hold the Volume Up and Power buttons together to enter Fastboot Mode on your device.
- Connect the device 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 phone is successfully being detected by the PC over fastboot:
- Finally, enter the following command to flash the patched boot image and root OnePlus 6/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.
Do more with your rooted OnePlus 6/6T now!
Now that your phone is rooted, you can go ahead and mod its 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/OnePlus 6T using Magisk, without TWRP. If you have any questions regarding the rooting procedure, just reach me by commenting below.
Kudos to topjohnwu for developing Magisk!