How to Root OnePlus 5T! [Windows/Mac/Linux]

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.  It should also work for future Android 8.0 Oreo but I have not verified it and I will update this post if it works the same way.

You can download all the files on our TWRP recovery page.  You will need to download fastboot.zip, 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!

su
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

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

Max Lee

Max Lee is the founder of HighOnAndroid.com. 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.

5 Responses

  1. Craig says:

    worked great on my macbook..except when time to add Magisk…Macbook doesn’t recognize oneplus 5T phone…..any other way to install Magisk? Thanks

    • Brad says:

      I’m stuck at the same place – mac doesn’t show oneplus 5t in Finder.

      • Max Lee says:

        Make sure 5T is connected as USB storage device!

        • Brad says:

          I didn’t find a way to connect as a USB storage device – I just hopped over to a Windows machine and did it there. ANNNND the big fix today following your video for command line to mount the storage sorted out a ton of problems that I had – I wasn’t able to take photos and see them, AND there were certain apps that wouldn’t download, like Facebook. So, all-in-all, got through it and now the phone is running normally. Your vids were great, really helped!

    • Max Lee says:

      You can also use a OTG cable and flash drive.

Leave a Reply

Your email address will not be published. Required fields are marked *