How to Root OnePlus 5T! [Windows/Mac/Linux][Android 8.0/8.1 Oreo]

In this video tutorial, I am going to show you how to root the OnePlus 5T on Windows, Mac, or Linux.  If you are new to rooting, be sure to follow the video tutorial step-by-step and you should have zero problems.  Now, rooting will ERASE EVERYTHING on your OnePlus 5T since we will be unlocking the bootloader, which will wipe everything.  Make sure to backup anything you want to save such as your photos, personal files, etc…etc…

This root method is for Android 7.1.1 and Android 8.0 or 8.1 Oreo.

If you are looking for root method for OnePlus 6, please see How to Root OnePlus 6 on Windows/Mac/Linux!

You can download all the files on our TWRP recovery page.  You will need to download, Windows USB drivers(if using Windows), Magisk zip, and OnePlue 5T TWRP image file.   That is FOUR files you need to download.

Commands for Windows:

cd Downloads
cd fastboot
fastboot oem unlock
fastboot flash recovery o5ttwrp.img

Commands for Mac:

cd Downloads
cd fastboot
chmod 755 *
./fastboot-mac oem unlock
./fastboot-mac flash recovery o5ttwrp.img

Commands for Linux/Ubuntu:

cd Downloads
cd fastboot
chmod 755 *
sudo ./fastboot-linux oem unlock
sudo ./fastboot-linux flash recovery o5ttwrp.img

IMPORTANT UPDATE!!! 12/4/2017:

After rooting your OnePlus 5T using my root tutorial few days ago, you may run into problem of your storage and gallery not working correctly. Here’s how to easily fix by typing the following using Terminal Emulator thanks to Powder77777!

restorecon -FR /data/media/0
See video tutorial here:

Once rooted, you will never need your computer again as you can download custom ROMs straight onto your phone and try different custom ROMs.   Also, learn to backup and restore ROM using TWRP recovery, see my universal guide on How to Backup/Restore ROM with TWRP Recovery.  To install new custom ROMs, follow my universal guide on How to Install Custom ROM using TWRP.

Cool stuff you can do after rooting:

  • Install Google HDR+ Camera to make your photos better in low-light!  Works perfect with 5T.

After rooting, you will be able to install cool MODs and customize your phone fully so look into OnePlus 5T mods on XDA Forums for more cool stuff.

Credits – Albe96 for TWRP recovery and TopJohnWu for Magisk

Have a question?

Please post all your questions at the new Android Rehab Center at HighOnAndroid Forum, thank you for understanding!

Join the HighOnAndroid VIP Fans List for free help from Max and discounts on Android accessories.

Max Lee

Max Lee is the founder of Max makes Android tutorials and review videos for people who want to get high on Android over at his YouTube channel and Korean YouTube channel.