How to root OnePlus 12 using Magisk Patched Init_Boot

A few years back, you’d find every other smartphone in the modding community to be a OnePlus handset. However, times have changed pretty drastically over the past few years. One of the reasons for that is the unavailability of the unbrick tool, which prevents the users and the developers from tweaking their devices.

However, there seems to be some light at the end of the tunnel. You will be able to root OnePlus 12 using Magisk Patched Init_Boot. The ability to gain administrative privilege is among the remaining tweaks that isn’t that risky. This opens the floodgates to the world of customizations.

In this guide, you will get to know how to root OnePlus 12 using Magisk Patched Init_Boot.

How to root OnePlus 12 using Magisk Patched Init_Boot

OnePlus 12

Step 1: Install Android SDK

Firstly, you’ll need to install the Android SDK Platform Tools on your PC. It’s the official ADB and Fastboot binary offered by Google. You’ll need to download it and extract it to a convenient location on your PC.

Android SDK Platform Tools

Step 2: Enable USB Debugging and OEM Unlocking

To start off, you’ll need to enable Developer Options on your smartphone. Go to settings -> About phone -> tap on build number 7 times -> return to Settings -> System -> Advanced -> Developer Options -> Finally enable USB debugging and OEM Unlocking.

Developer Option Pixel enable usb debugging and oem unlock on pixel phones 3Enable USB debugging and Oem unlock

Step 3: Unlock the bootloader

There is often an element of confusion regarding this step but to put it into perspective, you’ll need to unlock the bootloader on your device. Remember, unlocking the bootloader on your OnePlus device will mean wiping off all the data on your phone and nullifying the device’s warranty.

Step 4: Download the firmware

You will first need to download the firmware for your OnePlus 12 from the link mentioned below. Ensure that you’re downloading the same version that is installed on your device.

Download ColorOS 14 for OnePlus 12 [China] –

PJD110_14.0.0.228(CN01) A.44

PJD110_14.0.0.231(CN01) A.48

PJD110_14.0.0.232(CN01) A.49

PJD110_14.0.0.234(CN01) A.51

PJD110_14.0.0.236(CN01) A.52

PJD110_14.0.0.238(CN01) A.54

Download OxygenOS 14 for OnePlus 12 [EU, US, IN] (Password – OnePlus 2021) –

CPH2581GDPR_11_14.0.0.232EX01 (European)

CPH2583export_11_14.0.0.232EX01 (US)

CPH2573export_11_14.0.0.232EX01 (India)

Step 5: Extract the OnePlus 12 Payload.bin

  • Once it is downloaded, extract it to a convenient location on your PC
  • You’ll get the “payload.bin file”
  • Load the file to the Fastboot Enhance Tool , choose the init_boot, and then hit Extract image
  • The tool will extract the init_boot.img from the payload.bin
  • Once it is done, ensure that you transfer the file to your device

Step 6: Patch Init_Boot using Magisk

  • Download and install the Magisk app
  • Launch it and tap on the Install button beside Magisk
  • Then, you should choose “Select and Patch a File”
  • Navigate to the stock init_boot file before selecting it
  • Tap on the “Let’s Go” option at the top right
  • The init_boot file will be patched and placed under the Downloads folder
  • Transfer the file to the platform-tools folder on the PC before renaming it “magisk_patched_init_boot.img”

Step 7: Boot your OnePlus 12 to Fastboot Mode

  1. Connect your phone to the PC via USB cable
  2. Ensure that USB debugging is enabled
  3. After that, head over to the platform-tools folder, type in CMD in the address bar, before hitting Enter
  4. It’ll launch the Command Prompt
  5. Type in the following command in the CMD window for booting your device to Fastboot Mode

adb reboot bootloader

  1. Then, type in the below command to verify the Fastboot Connection

fastboot devices

  1. If you’ve got a device ID followed by the fastboot keyword, the connection will be successful

Step 8: Root OnePlus 12 using Magisk Patched Init_Boot

  • Type the following command in the CMD window for flashing the patched init_boot.img file –

fastboot flash init_boot magisk_patched.img

  • Ensure that you’re replacing magisk_patched.img with the appropriate name of the patched init_boot.img file
  • If this command didn’t work, you’ll have to manually flash the init_boot to both slots via the below command –

fastboot flash init_boot_a magisk_patched_boot.img

fastboot flash init_boot_b magisk_patched_boot.img

  • Your smartphone will boot to the rooted OS
  • If this doesn’t happen, you should manually do this using the below command –

fastboot reboot

Aviral Sharma
Aviral Sharma
Android Expert
Aviral Sharma is a talented and passionate writer who has been using words to express his thoughts ever since he learnt how to hold a pen. He is passionate about outer space, history, sports and most importantly technology. Aviral is a regular writer for rootmygalaxy.net and has been getting better by the day. He currently own Samsung Galaxy S24 Ultra, iPhone 13 and a HP Pavilion laptop

Leave a Comment