[OnePlus 7T Pro (Regular & McLaren) Guides, News...] Hw4ng3r:
IMPORTANT: This guide will not work with A11; we do not have an official working TWRP for A11 (from the TWRP team) on the 7T Pro.

OVERVIEW

The following will guide you through rooting your OnePlus 7T Pro running stock OOS using TWRP by extracting the boot.img from your own device and patching it using Magisk using adb and fastboot. This is not the only method, but it is the method that I used to obtain Magisk/Root for my 7T Pro (HD1910) running stock OOS (10.0.12 HD01AA at the time of writing). It should work for all variants of 7T Pro running any of the stock OOS. If you can follow directions, there should be no harm to your device, but use at your own risk.

A little bit of introduction (if you care)

I’ve been a member of XDA for quite a while and go way back to the Sammy S3 days. I’ve done what I can to help others out on XDA (I’m just a user), and lately, I’ve noticed that the existing guide(s) hasn’t been updated since they were created, or the information on how to root is not easily found (buried deep inside a thread).

PRE-REQUISITES

An unlocked bootloader

Working adb and fastboot (Latest platform-tools). This step assumes that your PC and 7T Pro are set up correctly (i.e. USB drivers) and adb/fastboot commands are working correctly

Latest Magisk Manager (Latest Magisk Manager) installed on your 7T Pro

A copy of the latest TWRP in the platform-tools directory (TWRP for 7T Pro)

INSTRUCTIONS

Boot TWRP

Connect your device via USB

Open command prompt as administrator and navigate to the platform-tools folder

Reboot your phone into bootloader

adb reboot bootloader

Boot into TWRP (the entire twrp filename is required)

fastboot boot twrp-version.img

Once TWRP boots up, you can "Keep System Read only?" by selecting "Keep Read Only"

Extract boot.img

The following code copies the boot.img from your device to the platform-tools directory of your PC.

adb shell
dd if=/dev/block/bootdevice/by-name/boot of=/tmp/boot.img
exit
adb pull /tmp/boot.img

Reboot your phone

adb reboot

Patch the boot.img with Magisk Manager

Copy boot.img you just extracted to your 7T Pro internal storage using MTP or

adb push boot.img /sdcard/Download/boot.img

Open Magisk Manager and tap on Install (Magisk, not Manager). You can use stable or beta, but I would recommend beta if you're looking to fiddle around with custom kernels.

Choose "Select and Patch a File"

Select the boot.img you just placed on the internal storage. Magisk will patch the image to your device's sdcard/Download/ folder as magisk_patched.img

Copy the Magisk patched image to your PC

adb pull /sdcard/Download/magisk_patched.img

Install the magisk_patched.img

Reboot to bootloader

adb reboot bootloader

Reboot your phone using magisk_patched.img

fastboot boot magisk_patched.img

Open Magisk Manager and tap on Install (Magisk, not Manager)

Select "Direct Install (Recommended)"

Reboot

IMPORTANT NOTE: I noticed with 10.0.14HD01AA, Magisk 21.4 and Magisk Manager v8.0.7, the patched image name has changed to "magisk_patched_v5XCB.img" (at least for my device). I'm not sure if the 'v5XCB' is the same for anyone else trying to root for the first time. Just make sure you use the proper filename in full (i.e. "magisk_patched_xxxxx.img") in Step 5 of "Patch the boot.img with Magisk Manager" and Step 2 of "Install the magisk_patched.img"

Retain root/Magisk after OTA update

There's a pretty good guide written already by @daveuk87 so you can check that thread.

If there are any areas within these instructions that are not clear or flat out wrong, please let me know so I can make necessary edits/changes.

Guide created: November 24, 2020

Last updated: March 26, 2021