Home > Root

Root OnePlus 11 via Magisk Patched Init_Boot/Boot

In this guide, we will show you the steps to root your OnePlus 11 via Magisk patched init_boot.img and boot.img. The latest addition to the OnePlus family has a lot on its shoulders prove to a point. Owing to the recent debacles that are going on, it needs to stand out from the crowds and have to reclaim its lost glory. While only time will tell whether it is successful in doing so or not, we could place our bet on at least one factor- its active performance in custom development.

Though the non-availability of MSM Tool will have its say, but apart from that, you could expect quite a few Custom/GSI ROMs as well as a plethora of tweaks and mods. As far as the latter ones are concerned, all that you need to do is simply get administrative privileges over your device, in other words, root your OnePlus 11 via Magisk. And in this guide, we will show you how to do just that. So without further ado, let’s get started.

Benefits and Risks of Rooting OnePlus 11

YouTube video

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, 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.

Root OnePlus 11

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 11 via the Magisk patched init_boot.img and boot.img.

Method 1: Root OnePlus 11 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 11

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 11

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 11.Root OnePlus 11

STEP 4: Download OnePlus 11 Firmware

NOTE: If you are currently on CPH2447_14.0.0.810(EX01) [verify it from Settings > About Device > Version > Version Number], then you may directly download the init_boot file from here. No need to download the firmware and extract the init_boot, so you may skip STEPS 4, 5. and 6 in that case.

Next up, download the stock firmware for your device from the OnePlus official website or from our firmware collection page. I have converted payload.bin to Fastboot ROM for a few firmware versions, and extracted the boot.img, vendor_boot.img and vbmeta.img files and uploaded them. So if they match your build number, then you may directly download the required files from that linked guide [and hence skip the next step]. Or else, you will have to carry out the instruction listed in the next step.

Root OnePlus 11

STEP 5: Extract OnePlus 11 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 11

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 11

STEP 6: Get Stock Init_boot

Once the extraction is complete, transfer the init_boot file to your device. Also, keep a copy of it on your PC or over to cloud [Google Drive] so that if something does wrong during the rooting process, we could use this stock init_boot file and bring your device back to life.

root oneplus 11

STEP 7: Patch OnePlus 11 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. After that, choose ‘Select and Patch a File’, and navigate to the stock init_boot.img file, and select it.
    root oneplus 11
  4. Then tap on the Let’s Go button situated at the top right.
    root oneplus 11
  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.

STEP 8: Boot OnePlus 11 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

    root oneplus 11
    Reference Image
  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 11 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 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

STEP 10: Install Magisk Dependencies

Once your device boots to the OS, launch the Magisk app. It ” might” ask you to install additional dependencies, tap OK. It will then install the required files and reboot your device to the OS. Once that happens, the rooting process stands complete.

Root Galaxy S23 Ultra

That’s it. These were the steps to root your OnePlus 11 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.

Method 2: Root OnePlus 11 via KernelSU

The first question that might come to your mind is why you should opt for a relatively newer method of rooting when Magisk is already able to get the job done. Well, rooting via KernelSU brings in two major benefits: first off, you don’t need to download the entire stock firmware. This not only saves your time and data but will also nullify the issue wherein some users tend to download firmware that doesn’t match with the one installed on their device.

Secondly, and more importantly, KernelSU gives you the option to obtain temporary root. This way you can test if the patched boot is working well and good or not. If it isn’t, then you can simply patch the stock boot and fix the issue. And if it’s working well and good, then you can proceed ahead and then permanently root your device. So with that in mind, let’s make you aware of the steps to get this job done. Follow along.

Before starting, please take a backup of all the data on your device, just to be on the safer side. 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.

  1. To begin with, download and install KernelSU APK from GitHub.
  2. Then launch it and note down the kernel version. In my case, it is:
    5.15.123-android13-x-xxxxx-xxxxxxxx
  3. So I’ll download the kernel android13-5.15.123_2023-11-boot.img.gz.root oneplus 11 kernelsu
  4. Make sure that kernel matches your version and the format is img.gz.
  5. Now download and extract Android SDK Platform Tools on your PC.
  6. Open the Command Prompt window inside the platform tools folder.
  7. Then type the below command to boot your device to Fastboot Mode
    adb reboot bootloader

    oneplus 11 fastboot mode

  8. Type the below command to temporarily boot via the patched kernel:
    fastboot boot android13-5.15.123_2023-11-boot.img.gz
  9. Now download and install Magisk Debug or Canary version [stable might not work].
  10. Then launch KernelSU, go to the SuperUser tab, and enable the toggle next to Magisk.
  11. Now launch Magisk, tap Install next to Magisk, and select Direct Install.
  12. The patched kernel [boot.img] will now be permanently installed.
  13. Once done, hit Reboot. Your device will now boot to the rooted OS.

Method 3: Root OnePlus 11 via Magisk Patched Boot, vendor_boot, vbmeta

UPDATE: You may skip this method now as it is no longer needed. The above two should be sufficient to get the job done.

First off, carry out STEPS 1 to 5 listed above and then proceed with the below steps. 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: Get Boot, Vendor_boot, Vbmeta

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 11

 

STEP 2: Patch OnePlus 11 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 11
  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 11
  6. Once done, again tap on Install next to Magisk and choose Select and Patch a File.
  7. After that, select vendor_boot.img file and tap on the Let’s Go button situated at the top right.
    Root OnePlus 11
  8. It will now patch this file as well. Once done, this patched file will also be present in the Downloads folder
    Root OnePlus 11
  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 11 via Magisk.

STEP 3: Boot OnePlus 11 to Fastboot Mode

  1. 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

    Root OnePlus 11

  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 11 via Magisk Patched Boot.

STEP 4: Flash Patched Boot, Vendor_Boot, and Stock Vbmeta | Root OnePlus 11

  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 11
  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 [also read FAQ at the end]:
    fastboot boot magisk_patched.img

    Root OnePlus 11

  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 11
  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 11 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 your device. This is because by first temporarily booting via the patched file, we could check if everything is working well and good.

Root OnePlus 11

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, it is always better to be safe than sorry.

How to Fix OnePlus 11 Stuck in Bootloop after Root

If your OnePlus 11 is stuck in a bootloop, then you just need to flash the stock boot [or stock init_boot, depending on what you have used for rooting], stock vbmeta, stock vendor_boot files [across both the slots] using the below commands and your device will boot to the OS without any issues.

fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash init_boot_a init_boot.img 
fastboot flash init_boot_b init_boot.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_boot_a vendor_boot.img
fastboot flash vendor_boot_b vendor_boot.img 

fastboot reboot

Share: