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

11 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.

  2. khan says:

    hi max, will this work on oneplus 5 running oreo 8.1

  3. abraham says:

    Hi Max! I have a oneplus 5 running oreo 8.1
    and I work with mac. what commands i need to write
    is the fastboot the same command?
    and the recovery command?

  4. dziarsky says:

    After i am flashing twrp, go into and try to wipe and have lots of red error lines. Any wipe failed.
    And when i leave twrp i cant back to it, always showing me only screen with languages.
    What to do?

  5. Imran says:

    How to root Nokia 6 (TA-1021)

Leave a Reply

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

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.