How to Root OnePlus 6

Update: Official TWRP for OnePlus 6 is now available for download. You can use the installing TWRP method as well to root OnePlus 6 on latest Oxygen OS updateย or the Android P Beta. OnePlus 6 is the latest flagship phone from the OnePlus manufacturer. This time, the device made a significant sales across the globe, which could make the OnePlus 6 their best selling Android device ever. It also comes with the latest Android 8.1 Oreo out of the box. This means a lot because Android P is readily available via Project Treble. Now, a lot of you may be interested in getting the most out of their devices. So here in this tutorial, we will show you how to root OnePlus 6 and also Unlock the Bootloader, and install TWRP recovery (whenever available).

There could be several reasons why you would want to root your Android phone. Some of which could be flashing a custom ROM like Lineage OS, Resurrection Remix, Paranoid Android, etc. Some of you may want additional customization options like changing themes usingย Substratum. Some of you may like to install mods available via Magisk Manager or Xposed Framework. These are some of the many benefits of rooting Android.

Also, OnePlus is one of the few smartphone manufacturer which are pro custom development. Rooting wonโ€™t void the device warranty. But you should still consult with OnePlus support. Although this procedure has been testes working with several devices, you should be cautious and gain enough information over rooting and then begin.

How to Unlock Bootloader and install TWRP recovery for OnePlus 6?

First step is to Unlock the Bootloader.ย As the TWRP recovery is not available at the moment (TWRP under development), you can simply Unlock the Bootloader on OnePlus 6 and move on to the rooting tutorial listed below in section 2. (Skip TWRP installation for now)

Here are the steps to unlock the Bootloader and installing TWRP recovery:

Step 1:ย Enable OEM Unlock,ย USB Debugging, and Advanced Reboot on your Android device. First, enable Developer Options by going toย Settings > About Phone > Tap on the Build Number several times.

Step 2:ย You will also need to setup ADB and Fastboot on your PC. Download the 15 second ADB and Fastbootย for Windows, Mac OS, or Linux OS.

Step 3: Connect OnePlus device to PC using USB cable.ย Trust the connection by allowing it when you connect it to your PC for the first time. Check โ€œAlways allow from this computerโ€.

Step 4:ย Open a command prompt window or CMD. Now keep the Android device plugged in and open aย command prompt or terminal on your PC. You can simply click the address/location bar in Windows and type โ€œcmdโ€ if you have setup the 15 sec ADB installer.ย Alternatively,ย hold the shift key on the keyboard and right-click on an empty space and select โ€œOpen command window hereโ€ option to launch a cmd window.

Step 5: Time to reboot OnePlus 5T into the Bootloader or Fastboot mode. Issue the following command via cmd or terminal:

adb reboot bootloader

Alternative: If you have enabled Advanced reboot option, then press and hold the Power button and choose Reboot to Bootloader.

Step 6:ย Keep the device connected to PC. Once device reboots into the Fastboot mode (Bootloader mode). Issue the following command to check your device connectivity. It should return device code:

fastboot devices

Step 7:ย This is optional, but you can still check the device Bootloader unlock status:

fastboot oem unlock-info

For some devices itโ€™sย fastboot oem device-info. If the device unlock status returns false, proceed below.

Step 8: Now its time to Unlock the Bootloader. Issue the following command:

fastboot oem unlock

unlock bootloader on OnePlus 3

Note:ย If the procedure is finished and returns true, reboot to system and your device will have an Unlocked Bootloader. You should check the device info again by going through the same procedure and find the device unlock status or info. If unlocked, proceed.

How to Root OnePlus 6?

Now that TWRP recovery is not available for OnePlus 6, we are going to flash a Magisk modified or patched Boot image.

Requirements:

  • Unlocked Bootloader is a must.
  • Enable OEM Unlock,ย USB Debugging, and Advanced Reboot on your Android device.
  • Setup ADB and Fastboot on your PC.
  • Your device must be on the latest Oxygen OS 5.1.5 firmware update.

Rooting instructions:

  • Download the boot image for OnePlus 6 device for OxygenOS 5.1.5 from download hereย to PC.
  • Transfer the patched zip image to PC.
  • Reboot device into Fastboot mode. (see above method)
  • Open up your cmd or terminal where youโ€™ve downloaded or placed patched boot image.
  • Type in cmd/terminal following code:

fastboot boot patched_boot_magisk1642.img

  • Once the flashing completes, phone will reboot into system. If not, reboot manually.
  • From the system, install latest Magisk Managerย app and open it.
  • Magisk Manager App should show a rooted phone. But at this stage, itโ€™s just temporary.
  • Go to settings and Tap on โ€œUpdate channelโ€ and change it toย Beta.
  • Go back to Magisk main screen and make sure that โ€œPreserve force encryptionโ€ and โ€œPreserve AVB 2.0/dm-verityโ€ areย checked!
  • Tap on โ€œInstallโ€ and select โ€œDirect Install (Recommended)โ€
  • Reboot.

After first reboot, there should be no error messages.ย Open up Magisk Manager once again and tap on โ€œTap to start SafetyNet checkโ€. It should be all green.

How to install TWRP recovery on OnePlus 6?

Now that you have successfully unlocked the bootloader, you can easily setup a custom TWRP recovery and flash SuperSU/Magisk to root.

Once the TWRP recovery is available, you can move forward to the following steps. But for now, you can directly head over to rooting tutorial.

Download TWRP recovery for OnePlus 6

Note: Its time to install TWRP recovery onto your OnePlus 6:

Step 1:ย Download TWRP recovery for your device from here. Transfer the TWRP Installer zip to device storage. Also place a copy of it on your PC. Extract it to get the img file.

Step 2: Now reboot back into the Fastboot mode (Bootloader mode). See steps 1 to 5 above in Unlock Bootloader method.

Step 3: Navigate to and open a CMD window at the location where the OnePlus 6 TWRP recovery image exists. Enter the following command to boot into recovery mode:

fastboot boot recovery<filename>.img

Step 4:ย Change Partition slot using TWRP: [Reboot => Change_Slot]
(for example, if youโ€™re in slot A, change it to slot B and vice versa)

Step 5: Flashย twp-installer zipย from within the TWRP by clicking the install option of phone screen.

Note that, you need to use the correct file name with proper extension. Here with TWRP version o5ttwrp.imgย use the command โ€œfastboot boot o6ttwrp.imgโ€

For Mac OS, use commands likeย โ€œ./fastboot flash recovery <filename>.imgโ€ย and for Linux OS, use commands like โ€œsudo fastboot flash recovery <filename>.imgโ€ to flash the TWRP.

Flashing Magisk or SuperSU using TWRP for root access

  • Transfer latest Magisk zip to phone storage or SD card.
  • Reboot OnePlus 6 into TWRP recovery. To do so,ย turn off your device completely and hold volume down and power buttons for a few seconds.
  • Take a full Nandroid backup from TWRP.
  • Now, tap on theย Install optionย and select the Magisk file.
  • Swipe toย confirm.
  • Reboot to system.

Video: We have made a short video tutorial on how to Unlock Bootloader on the OnePlus devices. Though it is for the OnePlus 3, the procedure is same for the OnePlus 6 as well.

YouTube video

Video 2: How to install TWRP and root OnePlus devices using Magisk or SuperSU?

YouTube video


Sarang Avatar


Leave a Reply