How To Root Oneplus 9 and OnePlus 9 Pro

Prerequisites

Excited to take control of your OnePlus 9 or OnePlus 9 Pro? Rooting your device can be really useful, but let’s make sure we’re ready to go. Here’s everything you’ll need to get started smoothly:

  • Device Compatibility: This guide is just for OnePlus 9 and OnePlus 9 Pro, so double-check your model to avoid any hiccups.
  • Unlocked Bootloader: To unlock, go to Settings > Developer options > OEM unlocking and turn it on. Follow any prompts.
  • ADB and Fastboot Tools: Download and install the latest ADB and Fastboot tools on your computer.
  • TWRP Recovery: Download the latest TWRP recovery file for your model. You can get it from TWRP for OnePlus 9 or TWRP for OnePlus 9 Pro.
  • Magisk Files: Download the latest Magisk zip file and Magisk APK.
  • USB Debugging: Enable this by going to Settings > Developer options > USB Debugging.

Rooting OnePlus 9 and OnePlus 9 Pro with TWRP and Magisk

Let’s get started with the first method, where we’ll use TWRP Recovery to install Magisk. TWRP is great for making these types of changes safely, and Magisk helps enable root access. Just follow along with each step.

Boot into TWRP Recovery Mode

First up, we’ll boot your phone into TWRP mode. This mode will let us make important changes to the system.

  • Turn off your device. Make sure it’s completely powered down.
  • Press and hold Volume Down and Power. Keep holding both buttons until you see the OnePlus logo, and TWRP should open up automatically.

Flash the TWRP Image Permanently

Wondering why this step is needed? Flashing TWRP permanently means it’ll be ready if you need it again, saving you some setup next time.

  • Connect your device to your computer. Use a USB cable.
  • Open ADB command window. On your computer, go to the ADB installation folder, hold Shift, right-click, and select Open command window here.
  • Enter adb reboot bootloader in the command window. This boots your phone into bootloader mode.
  • Type fastboot flash recovery <name_of_twrp_file>.img. Replace <name_of_twrp_file> with the actual TWRP file name, then press Enter. This installs TWRP on your device.

Flash Magisk Zip via TWRP for Root Access

With TWRP now on your phone, let’s flash Magisk to complete the root setup.

  • Transfer the Magisk zip to your device. You can connect the phone to your computer or download the file directly.
  • Install the file through TWRP. In TWRP, tap Install, select the Magisk zip, and swipe to confirm.
  • Reboot your device to complete the process. Select Reboot System from TWRP’s main screen, and your device will restart with root access.

Rooting OnePlus 9 and OnePlus 9 Pro Using ADB and Fastboot

This method is another way to root using ADB and Fastboot commands instead of TWRP. This can be especially handy if you don’t have TWRP on your device.

Prepare the Boot Image for Patching

Here, we’ll start by getting a boot image from the current firmware, so Magisk can prepare it for root access.

  • Download the firmware that matches your device model and OS version. Extract the files on your computer.
  • Locate the boot.img file. Find this file in the firmware package.
  • Move the boot.img to your device. Connect the device with a USB cable, then transfer the boot.img file to your phone’s internal storage.

Patch the Boot Image with Magisk

Next, we’ll use Magisk to prepare the boot.img file.

  • Install the Magisk app. Open the Magisk APK on your device.
  • Patch the boot image. In the Magisk app, tap Install > Select and Patch a File, then choose the boot.img.
  • Locate the patched image. Magisk will save the patched version as magisk_patched.img in your Download folder.

Flash the Patched Boot Image via Fastboot

With the patched image ready, we’ll flash it back onto your device using Fastboot.

  • Transfer the patched image to your computer. Find magisk_patched.img in your Download folder and move it to your computer.
  • Boot to bootloader by opening an ADB command window and typing adb reboot bootloader.
  • Type fastboot flash boot <name_of_patched_file>.img. Replace <name_of_patched_file> with the name of the patched file, then hit Enter.
  • Restart the phone by typing fastboot reboot, which completes the root setup.

And that’s it! Your OnePlus 9 or 9 Pro is now rooted. This gives you a lot more control over your phone, but remember to handle this power with care to keep your device safe. Enjoy your rooted device!

Leave a Reply

Your email address will not be published. Required fields are marked *