Home > Root

How to Root OnePlus Nord 2 5G via Magisk Patched Boot IMG

In this guide, we will show you the steps to root your OnePlus Nord 2 5G device via Magisk. The budget series from the Chinese OEM took little to no time in becoming the crowd’s favorites. Being able to checkmark most of the prerequisites at an affordable price, there’s not much left to ask. This is when the company decided to take a questionable decision of merging OxygenOS with ColorOS, and with that, everything went south. In all of this, the only silver lining is the fact that it still continues to be an active player in custom development.

So once you have unlocked the device’s bootloader, you will be able to gain administrative privileges by rooting your device. This will then allow you to flash a plethora of modules, tweaks, and custom kernels. Due to such a long list of perks attached, it’s no hidden secret why rooting is always at the top of the priority list for tech enthusiasts. If you also echo this thought process, then this guide is exactly what you would need. In this tutorial, we will show you the detailed steps to root your OnePlus Nord 2 5G device via Magisk. Follow along.

How to Root OnePlus Nord 2 5G via Magisk Patched Boot IMG

Root OnePlus Nord 2 5G via Magisk

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.

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.

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 Nord 2 5G via Magisk

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.

Unlock Bootloader on OnePlus Nord 2 5G

After this, you will have to unlock the bootloader on your OnePlus Nord 2 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 to How to Unlock Bootloader on OnePlus Nord 2 5G Once done, move over to the next step to root your OnePlus Nord 2 5G via Magisk.

Extract OnePlus Nord 2 5G Boot.img File from Payload.bin

You will now have to download the stock firmware for your device(the exact same version that is currently installed on your device) and then extract the stock boot.img and vbmeta files from it. When it comes to OnePlus, it packs in all the partition files in the payload.bin package. So you will have to extract this BIN file to get the required boot and vbmeta files. For that, you may refer to our comprehensive guide to How to Extract payload.bin and get the stock boot image file.

Root OnePlus Nord 2 5G via Magisk

If you are having any trouble in extracting the file, then you may check out the XDA Senior Member dev-dat post where he has done an impressive job in extracting the boot.img [download] and vbmeta files [download] for this device. So you may directly download both those files corresponding to your device’s build number. Once the extraction/download is complete, transfer the boot.img file to your device and transfer the vbmeta.img file to the platform-tools folder on your PC.

Patch OnePlus Nord 2 5G Boot.img via Magisk

  1. First off, install the Magisk App on your device.
  2. Then launch it and tap on the Install button situated next to Magisk.
  3. From the Method section, choose Select and Patch a file.
    Root OnePlus Nord 2 5G via Magisk
  4. Browse to the extracted boot.img file and select it.
  5. Then tap on the Let’s Go option situated at the top right.
  6. Magisk will now load the boot.img file and will patch it accordingly.
    Root OnePlus Nord 2 5G via Magisk
  7. Once that is done, you would get the Download Complete message.
  8. The patched boot image file will be saved in Internal Storage > Downloads. Transfer this file to the platform-tools folder on your PC and rename it to magisk_boot.img.

Boot OnePlus Nord 2 5G 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
  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 Nord 2 5G via Magisk.

Flash Magisk Patched Boot | Root OnePlus Nord 2 5G

  1. To begin with, make sure that the patched boot (magisk_boot.img.) and vbmeta.img files are present inside the platform-tools folder.
  2. Now open the CMD window inside this platform-tools folder and type in the below command to flash vbmeta and hence disable the verification
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
  3. Next up, use the below command to flash the patched boot.img file and root your device:
    fastboot flash boot magisk_boot.img
  4. Once that is done, you may now reboot your device to the OS via the below command:
    fastboot reboot

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


Share: