[OnePlus 10T 5G] seanwlk:
Hello,

since there isn't a complete and clear guide for users on how to root this phone i decided to make one.

First let me explain why it's that hard to find an actual complete guide. Ever since Oppo merged with OnePlus, the opensource we all loved from OnePlus basically died, no official firmware is downloadable from the website directly for each update and there are no MSM Tools to recover from an hard brick state for developers to test and debug ROMs.

The main issue in this case, for the root, is getting the boot.img from the ROM firmware which is not distributed anymore, hence we have to obtain it in "other ways" i will show later.

NOTE: This guide is thought to be used with Magisk only

NOTICE for Oxygen OS 14​

Oneplus broke fastboot with the first OOS14 update and you cannot get into fastboot anymore. Not from key pressed combination nor from adb reboot bootloader.

You can still flash the patched image by booting into the phone, enabling adb and booting into fastbootd with the following command

adb reboot fastboot

when you are there you have to flash the boot image with

fastboot flash boot magisk_patched-boot.img

HOW TO ROOT

What do you need?​

If you have a T-Mobile variant. This guide is not for you. That variant is not possible to root.

Unlocked bootloader - (if you didn't do it already and plan to do it now, this will completely WIPE your device)

Google SDK Platform tools - (Fastboot) - https://developer.android.com/tools/releases/platform-tools

Stock boot.img of your currently installed OS build

Magisk app available on another phone to patch the stock image (if you are skilled enough you could run just the patch on PC too but this is out of scope)

How to unlock the bootloader

Spoiler content hidden.

How to get the stock boot.img

Spoiler content hidden.

Patch the stock boot.img​

Copy the boot.img on the phone that you will be using to patch the image with magisk.

Open the Magisk Manager

Click Install

View attachment 5987313

Choose "Select and patch a file"

View attachment 5987315

Then click "Lets go", Magisk should start patching and produce the new image, by default in Downloads folder, else check your Magisk config

Get the patched image back to your PC

​

Flash the magisk patched image​

Open a command line inside the extracted SDK platform tools folder and type the following:

fastboot flash boot magisk_patched-boot.img

This should flash on the currently active slot but if you want to know which it is you have to fastboot getvar all and look for current-slot after which you can use boot_a and boot_b accordingly in the previously mentioned flash command instead of just boot

HOW TO KEEP ROOT AFTER OTA​

In the remote case that OxygenUpdater stops working we are kind of screwed since we can't get the full ota packages so the only other way is to keep the root after OTA.

This method allows you patch directly on device without flashing the new boot from fastboot every time after an update.

Locate the downloaded ZIP of the OTA that the system downloaded

Use the OPLocalUpdate app to flash it in order to avoid the phone automatically reboot after installation

When the installation finishes and,

before rebooting

, open magisk manager and click "Install to inactive Slot"

This will patch the boot of the currently inactive partition that the OTA was installed on, so when it reboots to this partition the image will be already patched

For the lazy - Download already patched images​

It has been a while already that I extracted the boot images and patched them for the CPH2415 variant so you can skip all the steps above and just run the flash boot command with my patched image. Everything is available in this repo: https://github.com/seanwlk/oneplus10t

This is only the EU variant. From what i understood it may work on indian one and NA one too but can't tell you to risk it.

Disclaimer​

I am not responsible for bricked devices or other issues. If you reply to this post I can try and help you but my I do not have much free time anymore.