Flashing TWRP Recovery
Wait until your phone is completely booted up and then, adjust the following setting on your phone.
- USB Debugging
- Enable OEM Unlocking
- Enable advanced root.
I have already showed you above how to do that..
Now, Download all the files, put Magisk or SuperSU in phone’s Internal Memory and TWRP img on your laptop/PC. Then boot it into fastboot/bootloader mode by pressing volume up + power together or selecting the reboot to bootloader via advanced reboot options.
Open a new command prompt & run the following commands:
Code:- fastboot flash recovery (file name).img
Once the flash has completed, Don’t use the “Fastboot Reboot” Command Instead Unplug Your phone then Manually boot it into recovery by pressing the Vol Button for a couple of times till you see recovery in red at the top and then hit the power button to reboot.
You can also use this command if above not works..
Code:- fastboot boot recovery.img
Gaining Root Access
- Boot into TWRP Recovery and allow system modifications.
- Swipe right and enable modifications.
- Select your Language, Tap “Never show this screen on boot again,” and Swipe allow modification.
- Navigate to Install and select Magisk Beta Or SuperSU Beta to root OnePlus 5T.
- Swipe to confirm the flash
- Reboot System
Remember that the first boot after erasing the smartphone may take longer than usual, as the smartphone will need to rebuild the dalvik cache and begin other first boot and would reboot a few times due to SuperSU Flash.
Congrats! Your smartphone now has an unlocked bootloader, a custom recovery and is rooted !!
Go to the next page & Read about Nandroid Backup