Home > Root

How to Unlock Bootloader and Root OnePlus 13

In this guide, we will show you the steps to unlock the bootloader and root your OnePlus 13. The Chinese OEM has just taken off the curtains from its latest offering in the form of the thirteenth iteration of its device. With the latest Snapdragon 8 Elite chipset, up to 1TB storage, 24GB RAM, a 50MP triple rear camera setup, and a massive 6000mAh battery with 100W fast charge, it seems to have checkmarked all the prerequisites that one could have asked for from a flagship.

Moreover, while the OEM is now just a shadow of itself in the custom development, there’s still one tweak that you can carry out without any roadblocks as such- the ability to gain administrative privileges, which in turn will allow you to welcome abode a plethora of mods onto your device [and a few caveats too, discussed below]. So without any further ado, let’s make you aware of the steps to unlock the bootloader and root your OnePlus 13.

Benefits and Risks of Rooting OnePlus 13

unlock bootloader root oneplus 13

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 with a few risks as well.

Root OnePlus 13

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 that’s all well and good, then let’s get started with the steps to root your OnePlus 13 via the Magisk patched init_boot.img.

Root OnePlus 13 via Magisk Patched Init_Boot

YouTube video

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 13

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 13

After this, you will have to unlock the bootloader on your device. 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 Devices

unlockk bootloader OnePlus 13

STEP 5: Extract OnePlus 13 Payload.bin

  1. Download the firmware for your device from here or via Oxygen Updater.
  2. Then extract it and you’ll get a couple of files, including payload.bin.Root OnePlus 13
  3. Once that is done, download and extract the Fastboot Enhance Tool on your PC.
  4. Then go to its Payload Dumper tab, click Browse, and load the payload.bin file.
  5. Now select the init_boot.img, check Allow Incremental, and hit Extract Image.
  6. Choose the location and the file will be extracted. Now transfer it to your device.Root OnePlus 13

STEP 7: Patch OnePlus 13 Init_Boot.img via Magisk

  1. Download and install the Magisk App on your device.
  2. Then launch it and tap on the Install button next to Magisk.
  3. Choose ‘Select and Patch a File’, navigate to the stock init_boot.img file, and select it.
    Root OnePlus 13
  4. Then tap on the Let’s Go button situated at the top right.
    patch done magisk
  5. The init_boot.img file will now be patched and placed under the Downloads folder on your device. You should transfer this file to the platform-tools folder on your PC and rename it to magisk_patched_boot.img.
    Root OnePlus 12

STEP 8: Boot OnePlus 13 to Fastboot Mode

  1. Now connect your device to the PC via a 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
  4. To verify the Fastboot connection, type in the below command and you should get back the device ID.
    fastboot devices

    Root Pixel 7 Pro

STEP 9: Root OnePlus 13 using Magisk Patched Init_Boot.img

  1. Type in the below command in the CMD window to flash the patched init_boot.img to your device
    fastboot flash init_boot magisk_patched_boot.img
  2. Finally, execute the below command to boot your device to the rooted OS:
    fastboot reboot

NOTE: The above command should automatically flash the init_boot to both the slots. However, if you face any issues while executing that command, then you could also manually specify the slots while flashing. In other words, you could flash the init_boot to both partitions by executing the below two commands:

fastboot flash init_boot_a magisk_patched_boot.img 
fastboot flash init_boot_b magisk_patched_boot.img

That’s it. These were the steps to unlock the bootloader and then root your OnePlus 13 via Magisk patched init_boot. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: