How to root OnePlus 5T, install TWRP and Unlock Bootloader

OnePlus 5T is now the manufacturerโ€™s latest flagship phone. It was just launched last week and now available for sale in many major countries. Moreover, the OnePlus 5T just received yet another Oxygen OS 4.7.2 OTA update. The device is still running the former Android 7.1.1 Nougat firmware. The OnePlus 5/5T are reported to receive 8.0 Oreo update this month with the first Open Beta build. At the beginning next year, the official Oxygen OS 5.0 will be released. Hence, this tutorial will come in handy in rooting not only the 7.1 Nougat, but also the upcoming 8.0 Oreo for OnePlus 5T.

Why root OnePlus 5T?

There could be several reasons why you would like to root your Android phone. One of which is that you simply can. Now, OnePlus is the only manufacturer which is open for development and rooting wonโ€™t void the device warranty. Donโ€™t believe me? You can straight up ask OnePlus support and they will say the same thing.

However, you need to be careful about the procedure. As rooting, installing a custom TWRP recovery, or even flashing a custom ROM like Lineage OS may get tricky for beginners. Hence, here is a handy tutorial on how to Unlock Bootloader, install TWRP recovery, and root OnePlus 5T.

Some of the reasons why users root Android phones:

Method 1: How to Unlock Bootloader, install TWRP recovery, and root OnePlus 3T?

This procedure may feel complicated to some. It requires a bit of technical knowledge like ADB, Fastboot, etc.

The procedure is same as that of the previous phones like OnePlus 3/3T. The ony difference is that you will need a TWRP recovery specific to OnePlus 5T, and the latest versions of SuperSU or Magisk.

Here are some videos we have made on rooting OnePlus 3/3T which will come handy. The steps are same. You just need to use different files.

How to unlock Bootloader?

YouTube video

How to install TWRP and root OnePlus phones?

YouTube video

Requirements forย rooting OnePlus 5T

  • Enable OEM Unlock,ย USB Debugging, and Advanced Reboot on your Android device. Enable Developer Options by going toย Settings > About Phone > Tap on the Build Number several times.ย Trust the connection by allowing it when you connect it to your PC for the first time.
  • Setup ADB and Fastboot on your PC. Download the 15 second ADB and Fastboot.

Download TWRP recovery, Magisk, SuperSU for OnePlus 5T

Flash Latest SuperSU v2.85 SR5+ or Magisk v14.3+ for root access

  • SuperSU v2.85 SR5+ โ†’ย Download | Root using SuperSU
  • Root using Magisk v14.5+ | Download

Download latest TWRP 3.1.1+

  • TWRP 3.1 for OnePlus 5T โ†’ Download

Decrypt OnePlus 5T:

You may also like:

How to Root OnePlus 5T?

The first thing we are going to do is unlock the Bootloader. Be sure to go through the requirements from above. Later, we are going to install TWRP recovery. Finally, you can either flash Magisk or SuperSU as per your wish. Both magisk and SuperSU have theire own benefit. But they will both gain root access to your device.

Note: To bypass the Forced Encryption and DM-Verity, flash theย Decrypt zip listed above.

Step 1:ย Download all the files from the download section above and transfer them to your PC. Also, keep a copy of the files in phone storage like SuperSU, Magisk, DM-Verity zip, TWRP, etc.

Step 2:ย Connect device to PC and trust the connection by checking โ€œAlways allow from this computerโ€ when you plug in Android device for the first time.

Step 3: 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โ€.

Alternative: 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 4:ย 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 5:ย Keep the device connected to PC once booted into the Fastboot mode (bootloader mode). Issue the following command to check your device connectivity. It should return device code:

fastboot devices

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

fastboot oem unlock-info

Note: Reboot, and check the unlock status again. If the status is locked, then continue to unlock it.

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

fastboot oem unlock

unlock bootloader on OnePlus 3

Note: You have successfully unlocked the bootloader. Now you can easily setup a custom TWRP recovery and flash SuperSU/Magisk to root.ย Its time to install TWRP recovery onto your OnePlus 5T

Step 8:ย Now reboot back into the Fastboot mode (Bootloader mode) See steps 1 to 5 above.

Step 9: Navigate to the location on PC where the OnePlus 5T TWRP recovery image exists. Enter the following command toย flash the recovery image:

fastboot flash recovery <filename>.img

Note that, you need to use the correct file name with proper extension. Here with TWRP version o5ttwrp.imgย use the command โ€œfastboot flash o5ttwrp.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.

Flashย SuperSU or Magisk to Root OnePlus 5T

Both SuperSU and Magisk are rooting tools. Both have their own benefits. Use only one of the two. Read the benefits of Magisk from here.

Here is the actual rooting procedure via TWRP:

  • Transfer SuperSU or Magisk package to OP 5T storage.
  • Reboot OnePlus 5T 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 SuperSU/Magisk file.
  • Swipe toย confirm.
  • Reboot to system.

For aย detailed tutorial on how to use TWRP โ€“ย click here.

Method 2: How to root OnePlus 5T using the All in One Toolkit?

This OnePlus 5T Toolkitย is a graphic tool designed for various operations for visual learners. The operations including unlocking bootloader, root, flash TWRP, flash OTA & flash factory images, etc. with a few clicks. All the options are automated and all you have to do is follow the instructions.

Functions of the OnePlus 5T AIO Toolkit?

  • Backup Data Your Device [Backup app & app data]
  • Restore Data Your Device
  • Install USB drivers On PC
  • Unlock Bootloader
  • Lock Bootloader
  • Check Device Status
  • Check Bootloader Status
  • Flash โ€“ Boot TWRP Recovery
  • Flash โ€“ Boot Stock Recovery
  • Flash Factory Images
  • Installย APKs
  • Flashย Partitions
  • Erase Allย Dataย (This function can decrypt theย phone)
  • Rebootย Phone
  • Update theย Toolย to latest version
  • Update Adb and Fastboot to latest version
  • Set Adb and Fastboot priviliges inย systemย wide
  • Installย Zipย directly fromย PCย (Required TWRP onย phone)(These functions work perfectly on myย pcย but i have perfect adbย driversย on myย pcย and perfect TWRP on myย phone)
  • Flashย Fastbootย ROM
  • Delete downloadedย files

This toolkit has been developed to work with several Android devices like:

  • Oneplusย 5T
  • Oneplusย 5
  • Oneplusย 3T
  • Oneplusย 3
  • Oneplusย Two
  • Oneplusย One
  • Oneplusย X
  • ZUK Edge (Stockย firmwareย and recoveries not found for now)
  • ZUKย Z2ย PRO (Stockย firmwareย and recoveries not found for now)
  • ZUKย Z2ย (Stockย firmwareย and recoveries not found for now)
  • ZUKย Z1
  • LGย G6
  • LeEcoย Le Pro 3
  • LeEcoย Leย Maxย 2
  • LeEcoย X52X
  • Nexusย 4
  • Nexusย 5
  • Nexusย 5X
  • Nexusย 6
  • Nexusย 6P
  • Xiaomiย Miย A1

Download latest OnePlus 5T rooting Toolkit

How to use?

  • Open the OnePlus 5T Toolkit.
  • Connect the OnePlus device to PC.
  • Select the appropriate option.

OnePLus 5T All in one Toolkit for OnePlus devices

  • Select device.

OnePLus 5T TOOLKIT ALL IN ONE Drivers Unlock TWRP Factory Image Stock Recovery

  • Follow instruction on screen.
  • Profit.

Thatโ€™s it. Follow and like us on social media. For queries either comment down below.

Follow and Subscribe


Sarang Avatar

Leave a Reply