Home > Root

How to Unlock Bootloader, Install TWRP and Root OnePlus 6/6T

In this comprehensive guide, we will show you the steps to unlock the bootloader, install TWRP Recovery, and then root your OnePlus 6/6T. While at the time of writing, things might not be going according to the plans for this OEM, yet a few years back things were a lot different and for good. The sixth iteration in their ever-popular series managed to grab quite a lot of eyeballs.

The device was power-packed with tons of features but was priced such that it wouldn’t burn your pockets. Plus the OxygenOS ‘was’ also among the best customized OS skin. We used the word ‘Was’ because the latest OxygenOS 11 looks more along the lines of OneUI 3.0, unfortunately. Anyways, the device has always maintained a rich status when it comes to custom development. Once you unlock the device’s bootloader, you could try out a plethora of tweaks and customizations on your device.

These include the ability to flash custom ROMs or a custom recovery like TWRP. Along the same lines, you could also gain access to the system partition. The latter is possible by rooting your device via Magisk. And in this guide, we will help you carry out all these tweaks on your device. Given here are the steps to unlock the bootloader, install TWRP Recovery, and root your OnePlus 6/6T. Follow along.



Benefits and Risks of Unlocked Bootloader, TWRP, Root

Unlocking the bootloader allows you to replace the device’s stock recovery with a custom one like TWRP. This in turn will allow you to flash ZIP and IMG files, take and restore Nandroid backups, Fix Recovery bootloop and carry out tons of other tweaks. Likewise, you could also root your device by flashing the Magisk Installer ZIP file via TWRP.

While you could also root your device without TWRP, but that calls for a lot of effort, especially with OnePlus devices. Extracting the stock boot.img from payload.bin, then patching it via Magisk, and then flashing it via Fastboot Commands, isn’t that too much? Anyways, coming back, all these tweaks do come in with a few risks as well. To begin with, it might make the device warranty null and void. Likewise, it will also wipe off the data partition.

Furthermore, apps like Google Pay and Netflix might not function as expected (Fix given at the end of this guide). Likewise, you might also face a few issues while installing OTA (again Fix is given at the end of this guide). In no manner whatsoever will Droidwin be responsible in case of thermonuclear war or if something happens to your device by executing these steps. So if you are ready to proceed ahead, then here are the steps to unlock the bootloader, install TWRP Recovery, and root your OnePlus 6/6T.



How to Unlock Bootloader, Install TWRP and Root OnePlus 6/6T

All the instructions have been listed out in separate sections for ease of understanding. Start off by heading over to the Prerequisites section and make sure to tick-mark all the requirements.

STEP 1: The Prerequisites

  • To begin with, take a complete device backup. This is because unlocking the bootloader wipes off all the data from your device. Even if you have the bootloader unlocked and have just come here to install TWRP or root your device, taking a backup is still recommended.
  • Next up, enable USB Debugging and OEM Unlocking. The former is required so that your device gets recognized by your PC in ADB Mode. But why would you need ADB Mode? Well, it will be needed to boot your device to Fastboot. And Fastboot is required for unlocking the bootloader and booting to TWRP.
  • On the other hand, OEM Unlocking is needed to carry forward the process of bootloader unlock. With that said, head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking. [Don’t Miss: Enable USB Debugging on a Broken Android Device’s Screen].
    oem unlock usb debugging
  • Next up, install Android SDK Platform Tools on your PC. This will provide you with the necessary ADB and Fastboot binaries.
  • Also, download and install the latest Magisk Installer ZIP on your device.

STEP 2: Download TWRP for OnePlus 6/6T

Next up, download the TWRP ZIP and IMG files for your device from the below links:

That’s it, these were all the required files. You may now proceed ahead with the steps to unlock the bootloader, install TWRP Recovery, and root your OnePlus 6/6T.

STEP 3: Unlock Bootloader on OnePlus 6/6T

  1. Connect your device to PC via USB cable. Make sure USB Debugging and OEM Unlock is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
    command prompt
  3. Type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader
  4. Once your device boots to Fastboot, execute the below command to unlock the bootloader on your OnePlus 6/6T:
    fastboot oem unlock
  5. You will now get a confirmation message on your device, select the Unlock the Bootloader option via Volume Keys, and hit the Power key to confirm the decision.
  6. Your device will now boot to the OS with an unlocked bootloader. If it boots back to Fastboot Mode, then use the below command to boot it to the system:
    fastboot reboot

That’s it. These were the steps to unlock the bootloader on OnePlus 6/6T. You may now proceed with the steps to install TWRP and then root your device.



STEP 4: Install TWRP Recovery OnePlus 6/6T

It’s now time to install the TWRP Recovery onto your OnePlus 6/6T device. But before, you should do the following tasks:

  • Rename the downloaded TWRP Recovery Image file to twrp, so the complete name becomes twrp.img.
  • Then transfer this twrp.img file to the platform-tools folder on your PC.
  • On the other hand, transfer the TWRP Installer ZIP file to your device.

Once done, you may now proceed with the installation steps:

  1. Connect your device to the PC via USB cable (make sure USB Debugging is enabled).
  2. After this, head over to the platform-tools folder, type in CMD in the address bar and hit Enter. This will launch the Command Prompt.
  3. Type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader
  4. Now it’s time to boot your OnePlus 6/6T to TWRP Recovery.  Execute the below command in the CMD window for that:
    fastboot boot twrp.img
  5. Once booted to TWRP, go to Install, navigate to the TWRP ZIP file, and perform a right swipe to install it.
    install-twrp-oneplus-6-6t
  6. When the flashing is complete, do not reboot your device. Rather move over to the next step to install Magisk and root your OnePlus 6/6T. [If you end up rebooting your device at this stage, then it will go to a bootloop. You should only reboot your device to the OS after installing Magisk, instructions for which are given below].

STEP 5: Install Magisk and Root OnePlus 6/6T

  1. Since you are already in TWRP, go to the Install section.
  2. Browse to the Magisk ZIP file and perform a right swipe to flash it.
    install-magisk-oneplus-6-6T
  3. Once Magisk is installed, you may now reboot your device to the OS. So go to Reboot and tap on System.

That’s it. Your device will now boot to the rooted OS. These were the steps to unlock the bootloader, install TWRP, and root OnePlus 6/6T. Before rounding off, let’s address two important questions: how to install OTA on rooted OnePlus 6/6T and how to hide root from various apps on this device.



FAQ 1: Install OTA on Rooted OnePlus 6/6T

Many users have asked us whether they could install OTA updates on their rooted OnePlus device. Well, the question is completely genuine, and the answer is in the affirmative. Yes, you could install OTA updates on your rooted OnePlus 6/6T. Refer to our comprehensive guide to know the detailed steps for the same: How to Install OxygenOS OTA on Rooted OnePlus devices.

FAQ 2: Hide Root on Rooted OnePlus 6/6T

As you might be aware, upon rooting your  OnePlus  6/6T via Magisk, DM Verity gets triggered. This results in the inability of apps like Google Pay to function properly. Likewise, the WideVine L1 Certification of Netflix gets degraded to L3 and you wouldn’t be able to watch videos in HD. However, there is a handy method to hide root on your OnePlus and let all the apps function as it would normally do. This guide shall help you out: How to Pass Magisk SafetyNet on Rooted Android 11.

That’s it. These were the steps to unlock the bootloader, install TWRP, and root OnePlus 6/6T. If you have any queries concerning any of the aforementioned steps, do let us know in the comment section. We will get back to you with a solution at the earliest.

Share: