Step by step root OnePlus 5T

OnePlus 5T, first announced in Nov 2017. 7 years later, has been upgraded to Android 10.0.1, still robust and fast.

NOTE: Before you take on this brave journey, make sure backup all important files on the phone at first!

About phone

  • In Settings -> System -> Developer options, enable Advanced reboot, OEM unlocking, USB Debugging

Developer options

1
2
3
4
5
$ adb devices
List of devices attached
9b26c76 device

$ adb reboot bootloader
  • Wait for phone to reboot till phone in the Bootloader mode, then run:
1
$ fastboot flashing unlock
  • ON the phone will ask to confirm “UNLOCK THE BOOTLOADER”. After UNLOCK, your phone WILL BE RESET, like a factory hard reset. ALL APPS AND DATA ARE GONE. Android system will be reinstalled.

  • Go to OnePlus Smartphone Software Update site and download the latest version of OnePlus 5T update on Windows, https://oneplus.net/in/support/softwareupdate

  • Unzip OnePlus 5T update on Widnows

  • On the phone Settings, search for USB Preferences, select USE USB FOR File transfer

USB Preferences

  • On Windows, in File Explorer, copy OnePlus5TOxygen_43_OTA_069_all_2010292144_76910d123e3940e5/boot.img file to ONEPLUS A5010 -> Internal shared storage -> Download directory on the phone

  • On the phone, download and install latest version Magisk, https://github.com/topjohnwu/Magisk

  • Run Magisk, select Magisk Install, https://topjohnwu.github.io/Magisk/install.html

  • Select and patch boot.img file under /Download directory

Magisk

Magisk select and patch

Magisk patch boot.img

  • A patched file magisk_patched-27000_nplRf successfully generated. On Windows, in File Explorer, copy it to local directory

  • On Windows, run:

1
$ fastboot flash boot magisk_patched-27000_nplRf.img

NOTE: Always patch boot image on the SAME device where you run Magisk.

Now OnePlus 5T has been officially ROOTED!

NOTE: NO need to install TWRP (Team Win Recovery Project), https://twrp.me, a customised recovery application for Android devices on OnePlus 5T.

Contents