Home > Root

How to Root Android 16 via Magisk Patched Boot/Init_Boot

In this guide, we will show you the steps to root your device running Android 16 via Magisk Patched Boot/Init_Boot. The Silicon Valley giant recently stumped everyone by releasing the sixteenth iteration of the OS build three months in advance. At a time when users are still waiting to get a taste of Vanilla Ice Cream, Google has already offered Baklava. With that said, for the tech enthusiasts, their goal remains the same- gaining administrative privileges and access to the system partition.

This will open the floodgates to the plethora of customizations and tweaks and give their device a completely new outlook, apart from adding a slew of additional goodies. With that said, rooting is no longer the same as it used to be earlier as Google has put in some stringent security measures. These practices in turn will give you quite a tough time in working in a rooted ecosystem. Therefore, before we list out the steps to root Android 16, it is extremely important that we make you acquainted with the benefits and perks of this process. So without any further ado, let’s get started.

Benefits and Risks of Rooting Android 16

root android 16

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 android 16

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] and Play Integrity will fail [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 Android 16 device via the Magisk.

How to Root Android 16 via Magisk Patched Boot/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 [Before starting, it is highly recommended that you go through our FAQ 1]. 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 Platform Tools

install adb platform tools windows

First 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 also 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.

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

Next up, you will also have to unlock the device’s bootloader. Do keep in mind that doing so will wipe off all the data from your device and could nullify its warranty as well. So if that’s all well and good, then please refer to our detailed guide on How to Unlock Bootloader on any Android Device.

Root Android 15

STEP 4: Extract Stock Boot/Init_Boot

If your device shipped with Android 12 or older version out of the box, then you’ll have to use the boot.img and patch and flash it via Magisk. On the other hand, if the device comes with Android 13 or higher versions, then you should use the init_boot.img [both these methods are explained in this guide].

NOTE: There are a couple of exceptions to this rule, most noticeably with Poco F5 and Nothing Phone 2. While both these devices were launched with Android 13, you still will have to use the boot.img file for root.

  1. To begin with, download the stock firmware [factory image] for your device.
  2. Make sure to download the same version that is currently installed on your device. To check the same, head over to Settings > About Phone > Build Number.
  3. Once downloaded, extract it to any convenient location on your PC.
  4. For Pixel devices, you can simply extract the firmware via WinZIP/WinRAR and get the boot.img/init_boot from the Images folder.Root Android 15
  5. Likewise, for Xiaomi, download the Fastboot ROM and extract the TGZ followed by TAR folders to get to the Images folder from wherein you can get the boot/init_boot file.
  6. However, for other OEMs, things are a little bit different. So refer to your device-specific guides to extract the stock boot/init_boot file for your device from the below links:
  7. Once you have extracted the firmware, copy the boot.img file [if your device shipped with Android 12 or older] or init_boot.img [if your device shipped with Android 13/14/15 out of the box] and transfer it to your device. [See FAQ 1 for more details].

STEP 5: Patch Boot/Init_boot via Magisk

NOTE: The steps to patch the boot.img or init_boot via Magisk are the same.

  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/init_boot.img file, and select it.
    Root Android 15
  4. Then tap on the Let’s Go button situated at the top right.
  5. The boot.img/init_boot.img file will now be patched and placed under the Downloads folder on your device.
    Root Android 15
  6. You should transfer this patched boot/init_boot file to the platform-tools folder on your PC. Also, rename it magisk_patched. We will now be using this file to root your Android 16 device.
    Root Android 15

STEP 6: Boot to Fastboot Mode

  1. Now 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 android 16

  4. To verify the Fastboot connection, type in the below command and you should get back the device ID.
    fastboot devices

STEP 7A: Root Android 16 using Magisk Patched Boot.img

This step is applicable for those devices that come with Android 12 or older versions. [See FAQ 1 for more details].

It is always recommended to first boot your device via the patched boot.img, rather than directly flashing it. This way you will be able to check if everything is working well or not. If everything is on the good side, then you may proceed to the permanent root. So use the below command to boot your device via magisk patched boot.img and hence attain temporary root.

fastboot boot magisk_patched.img

Root Android 15

Now that your device is booted without any issues with a temporary root, let’s now make this root permanent. So refer to the below instruction steps to try it out.

  1. Launch the Magisk app and tap on Install.
  2. Then tap on Direct Install (Recommended) > Let’s Go situated at the top-right.
    Root Android 15
  3. Wait for the process to complete and then hit Reboot. Once it boots up, launch Magisk.
  4. You might get a Require Additional Setup prompt, tap on OK.
  5. Your device will then auto-reboot to the OS.Root Android 15
  6. Once done, hit the Reboot button situated at the bottom right.
  7. That’s it, your Android 16 device will now boot to the rooted OS.

STEP 7B: Root Android 16 using Magisk Patched Init_Boot.img

This step is applicable for those devices that came with Android 13 or higher version out of the box. [See FAQ 1 for more details].

  1. First off, make sure that the init_boot file is present in the platform-tools folder and is renamed as magisk_patched.img
  2. Then type in the below command in the CMD window to flash the patched init_boot.img file:
    fastboot flash init_boot magisk_patched.img
  3. If the above command didn’t work, then you should manually flash the init_boot to both slots using the below command:
    fastboot flash init_boot_a magisk_patched.img
    fastboot flash init_boot_b magisk_patched.img
  4. Your device should now boot to the rooted OS. If it doesn’t happen, then you may manually do so via the below command:
    fastboot reboot

That’s it. These were the steps to root your Android 16 device via Magisk patched boot.img/init_boot.img. If you have any queries concerning the aforementioned steps, do let us know in the comments section below. We will get back to you with a solution at the earliest.

FAQ 1: Rooting via Init Boot or Boot?

One of the most common queries that some users have is whether they should root their Android 16 device via Magisk patched boot.img or init_patched boot.img? If your device comes with Android 13+ out of the box [such as Pixel 8 and 7 series, OnePlus 11, Xiaomi 13, etc.] then you’ll have to use the init_boot.img file for root.

Root Android 15

The init_boot.img file is present in the stock firmware and the patching steps are similar to boot.img, though the flashing steps are different. We have already explained this [extraction, patching, and flashing] in the above steps.

Root Android 15

On the other hand, if your device came with Android 12 or older version out of the box and has since been updated to Android 16 [Pixel 6 series, OnePlus 10, Poco F4], then you’ll have to still use the boot.img for root. The entire rooting process is similar to how we did before- extract boot.img, patch it via Magisk, and flash it via Fastboot [all this has already been explained above in this guide].

As mentioned before, there are a couple of exceptions to this rule, most noticeably with Poco F5 and Nothing Phone 2. Both these devices were launched with Android 13 but you still will have to use the boot.img file for root.

FAQ 2: Error while flashing Init_boot

If you are getting an error message such as [Flashing is not allowed in lock state], then try flashing the patched init_boot in the FastbootD Mode, as opposed to Fastboot/Bootloader Mode. The flashing commands are the same as listed above. As far as booting to FastbootD is concerned, you could use the adb reboot fastboot command if you want to do so from the OS or use the fastboot reboot fastboot if you want to do so from the Fastboot/Bootloader Mode [see this guide].

FAQ 3: Failed (remote: Flashing is not allowed for partition) error

If you are getting the Failed (remote: Flashing is not allowed for partition) error, then you’ll have to flash the patched init_boot to the FastbootD Mode instead of the Fastboot/Bootloader. For that, use the fastboot reboot fastboot command to directly boot to FastbootD Mode and then use the above [or below] command to flash the file.


Share: