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!
First, unlock the bootloader, https://www.lifewire.com/how-to-unlock-bootloader-android-phone-4689186
Enable Developer Options in Settings -> About phone -> Build number
- In Settings -> System -> Developer options, enable Advanced reboot, OEM unlocking, USB Debugging
Download and install Android SDK Platform Tools on Windows https://developer.android.com/tools/releases/platform-tools
Run commands:
1 | $ adb devices |
- 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
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
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.
- Reboot the phone, and install
Root Checker
to verify Root access, https://play.google.com/store/search?q=root%20checker&c=apps&hl=en&gl=US
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.