Home > Root

How to Root OnePlus 10R via Magisk Patched Boot.img

This guide will show you the steps to root your OnePlus 10R via Magisk patched boot.img. The newest entry to the OnePlus family, the 10R is a budget offering from the Chinese OEM, and behold a slew of impressive feature sets. While it is also part of the fiasco surrounding the ColorOS/OxygenOS, you would still be getting OxygenOS 12 based on Android 12 [even though the unification of the code hasn’t happened, it’s majorly inclined towards the Oppo’s OS rather than its own].

Likewise, it comes with the MediaTek chipset, and hence it might not be as active in the custom development as its counterpart that comes with the Qualcomm chipset. But inspite of all the roadblocks, there are a few tweaks that you could easily carry out on this device. And that is the ability to gain administrative privileges and access to the system partition. So without any further ado, let’s get started with the steps to root your OnePlus 10R via Magisk patched boot.img.

Benefits and Risks of Rooting OnePlus 10R

OnePlus 10R Fastboot ROM

Once you root your device, you will be in a position to flash a plethora of mods. These include the likes of Fox Magisk Modules, Substratum Themes, Xposed Framework via LSPosed, and Viper4Android among others. Along the same lines, you could also flash a custom kernel and implement your desired CPU profile. However, such tweaks do come in with a few risks as well.

To begin with, rooting requires you to unlock the bootloader- which will wipe off all the data and could nullify the warranty as well. Likewise, SafetyNet will be triggered [FIXED] which will result in your inability to use banking apps [FIXED]. So if all that’s well and good, then let’s get started with the steps to root your OnePlus 10R via the Magisk patched boot.img file.

How to Root OnePlus 10R via Magisk Patched Boot

The below instructions are listed under separate sections for ease of understanding. Make sure to follow in the exact same sequence as mentioned. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

STEP 1: Install Android SDK

install adb platform tools windowsFirst and foremost, you will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.

STEP 2: Enable USB Debugging and OEM Unlocking

Next up, you will have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process.

root oneplus 10r

So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking.

STEP 3: Unlock Bootloader on OnePlus 10R

After this, you will have to unlock the bootloader on your OnePlus 10R. Do keep in mind that this process will wipe off all the data and might nullify the device’s warranty as well. So if that’s all well and good, then refer to our comprehensive guide on How to Unlock Bootloader on OnePlus 10R

root oneplus 10r

STEP 4: Download OnePlus 10R Firmware


NOTE: I have converted payload.bin to Fastboot ROM for a few firmware versions and uploaded them. If they match your build number, then you may directly download the required files from this guide. As a result, you wouldn’t need to download the entire firmware or extract its payload bin file. In other words, you may easily skip STEP 4 and STEP 5.


Download the stock firmware for your 10R from the OnePlus official website or from our guide- Download OnePlus 10R Fastboot ROM, Stock Firmware, Boot.img.

STEP 5: Extract OnePlus 10R Payload.bin

Once you have downloaded the firmware, extract it to any convenient location on your PC. Doing so shall give you a couple of files, including the payload.bin.

root oneplus 10r

For the unaware, OnePlus packs all its partition IMG files inside this payload.bin file, so you will have to extract it first. For that, you may refer to our guide on How to Extract payload.bin and get the stock boot image file.

root oneplus 10r

Once the extraction is complete, transfer the boot.img and vendor_boot.img files to your device. On the other hand, transfer the vbmeta.img to the platform-tools on your PC.

root oneplus 10r

STEP 6: Patch OnePlus 10R Boot and Vendor_Boot via Magisk

  1. Download and install the latest Magisk APK onto your device.
  2. Then launch it and tap on the Install button next to Magisk.
  3. After that, choose ‘Select and Patch a File’, navigate to the stock boot.img file, and select it.
    root oneplus 10r
  4. Then tap on the Let’s Go button situated at the top right.
  5. The boot.img file will now be patched and placed under the Downloads folder on your device.
    root oneplus 10r
  6. Once done, again tap on Install next to Magisk and choose Select and Patch a File.
  7. After that, select the vendor_boot.img file and tap on the Let’s Go button situated at the top right.
    root oneplus 10r
  8. It will now patch this file as well. Once done, this patched file will also be present in the Downloads folder
    root oneplus 10r
  9. So transfer both these files (Patched Boot.img and Patched Vendor_Boot.img) to the platform-tools folder on your PC. We will now be using both these files to root your OnePlus 10R via Magisk.

STEP 7: Boot OnePlus 10R to Fastboot Mode

  1. Connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
    command-prompt-inside-adb
  3. Type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader

    root oneplus 10r

  4. Now type in the below command to verify the Fastboot Connection
    fastboot devices

    Root OnePlus Nord 2 5G via Magisk

  5. If you get a device ID followed by the fastboot keyword, then the connection stands successful. You may now proceed to the next step to root your OnePlus 10R via Magisk Patched Boot.

STEP 8: Flash Patched Boot, Vendor_Boot, and Stock Vbmeta | Root OnePlus 10R

  1. To begin with, make sure that the patched boot, patched vendor_boot, and the stock vbmeta.img files are present inside the platform-tools folder.
    root oneplus 10r
  2. Then rename the patched boot file to magisk_patched.img and patched vendor_boot to magisk_patched-vb.img
  3. Now open the CMD window inside this platform-tools folder and type in the below command to disable verity by flashing vbmeta:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
  4. Next up, execute the below command to flash the patched vendor_boot:
    fastboot flash vendor_boot magisk_patched-vb.img
  5. After that, boot your device using the patched boot.img file:
    fastboot boot magisk_patched.img

    root oneplus 10r

  6. Now launch the Magisk app and tap on the Install button next to Magisk.
  7. Then select Automatic Installation (or Direct Installation) and wait for the process to complete.
    root oneplus 10r
  8. Once done, tap on the Reboot button that appears at the bottom right. Your device will now boot to the rooted OS

That’s it. These were the steps to root your OnePlus 10R via Magisk. If you have any queries concerning the aforementioned steps, do let us know in the comments section. We will get back to you with a solution at the earliest.

FAQ: Fastboot Boot Boot.img vs Fastboot Flash Boot Boot.img

Instead of directly flashing the patched boot via fastboot flash boot magisk_patched.img, we first temporarily booted it via fastboot boot magisk_patched.img and then used the Direct Install method of Magisk. While a tad longer, but it is the recommended method for the OnePlus device. This is because by first temporary booting via the patched file, we could check if everything is working well and good.

root oneplus 10 pro

If it doesn’t, then you just need to do a simple reboot and the patched boot will be replaced by stock and your device will be booted to the OS. On the other hand, if everything works well and good, then you could permanently flash the patched boot via the Direct Install method. In earlier times, we had the MSM Tool in our hand so even if anything goes wrong, we could easily unbrick the device. But since that is no longer the case [thanks Oppo], it is always better to be safe than sorry.

How to Fix OnePlus 10R Stuck in Bootloop after Root

If your OnePlus 10R is stuck in a bootloop, then you just need to flash the stock boot, stock vbmeta, and stock vendor_boot files using the below commands and your device will boot to the OS without any issues.

fastboot flash boot boot.img
fastboot flash vbmeta vbmeta.img
fastboot flash vendor_boot vendor_boot.img
fastboot reboot

Share: