How to Root OnePlus 7 and OnePlus 7 Pro

How to Root OnePlus 7, OnePlus 7 Pro

OnePlus devices are some of the best on the market for development. The OnePlus 7 Pro kernel sources were released straight away at launch, and developers could get going on it right away. Not to mention that the company still gives developers devices to work on, which means that you can get lots of different custom ROMs and kernels from our forums for pretty much any OnePlus smartphone. The OnePlus 7 Pro is no different from past devices unless you bought it on T-Mobile and you can easily unlock the bootloader and root it with Magisk. 

When we root the OnePlus 7 or OnePlus 7 Pro, we are able to access parts of the OS that we usually aren’t allowed to. This means we can use more powerful applications from the Substratum theme engine to Xposed and all the little mods in between. Rooting the OnePlus 7 is done in phases though so let me show you how.

Again, I want to make sure that you understand you just don’t go from pulling a smartphone out of the box to rooting it. It just doesn’t work like that. I mentioned phases earlier because in order to root the OnePlus 7 we need to do some other things beforehand.

Why should you Root OnePlus 7/OnePlus 7 Pro?

You should have a proper reason, and you know what you are doing. Yes, with a Minimum of 6 GB RAM and Snapdragon 855 processor, You can use this mobile without root for 4-5 Years If you use correctly. Don’t root because everybody is saying when root your mobile it can become the fastest mobile in the world. No. Rooting is to extract some performance from the device. But, you already have Powerful specs and software. So, If you are addicted to some root apps, you can root. But, if you want to test, I won’t recommend it. For developers rooting is a different scenario.

Before You Begin

  • Take a Complete Backup: Installing TWRP or rooting your OnePlus 7 and 7 Pro using the instructions here will not erase any data. However, it’s generally a good practice to take a complete backup of all your important data beforehand. This will create a failsafe in case the data is lost due to corruption or a bad flash.
  • If you need guidance in the matter, you could refer to our tutorial on backing up Android devices.
  • Install OnePlus USB Drivers: If you’re operating on a Windows computer, it will generally install the required USB drivers for your phone automatically. But that’s not always the case, and especially when working with ADB and Fastboot. So, it’s best that you install the latest version of the OnePlus USB drivers on your computer.
  • Users operating on macOS or Linux computers will not need any drivers at all.
  • Charge your Phone: Make sure that your OnePlus 7 device has a sufficient battery charge so that it doesn’t turn off accidentally while performing the instructions. We suggest having at least 40% battery charge before you begin.
  • Unlock the Bootloader: In order to install TWRP, root, or flash the device partitions, you must first unlock the bootloader of your OnePlus 7. Like we said earlier, this is extremely simple and could be done by issuing a fastboot command from your computer.

Unlocking the Bootloader on OnePlus 7 & 7 Pro

The first step required to get your OnePlus 7 rooted is to unlock its bootloader. If you are familiar with unlocking and rooting Android smartphones, then you must know that this step is crucial. In any Android smartphone, the bootloader allows the user to connect the device to a computer and install different kinds of firmware.

As a result, you can use it to install something like a custom recovery for installing different scripts and apps on your smartphone. And we will be using that to root your phone later on.

Also, read:  How to Root Moto G Power

How to enable OEM unlockin &, Advanced Reboot in OnePlus 7 & 7 Pro


To unlock the bootloader of your OnePlus smartphone, you have to change a few settings on your device to allow bootloader unlocking. This feature is there to ensure that your Android device stays safe and secure.

By default, all Android devices, including the OnePlus 7, do not allow the user to unlock the bootloader so that no one can access your data or interfere with the firmware. But if you want to root your device, you have to first enable bootloader unlocking as shown here:

  • Go to the Settings app on your OnePlus smartphone and go to the “About Phone” section in the bottom. Here, tap on “Build Number” value 7 times quickly and rapidly to unlock the Developer Options on your smartphone.
  • Then, go back into the settings of your smartphone and go to the Developer options and find the “OEM unlocking” option and enable it. When you try to enable this option, you will get a popup warning message on your screen where you have to tap on Enable. Doing this will enable bootloader unlocking on your OnePlus 7 that means that you can go ahead and root it. But since you will need to be in the bootloader for rooting, accessing it is also essential.
  • Hence, enable the “Advanced reboot” option in Developer options as well that will allow you to go to the bootloader of your smartphone directly from the power menu.
  • You also have to enable the “USB debugging” option from the Developer options so that you can execute all of the ADB commands successfully later on.
  • Once you have enabled the unlocking of the bootloader of your OnePlus device, it means that you can go ahead and unlock it. Although this can only be done using a computer with a feature called ADB or Android Debugging Bridge.
  • ADB can be used to perform various options including unlocking the bootloader as well as rooting your phone as we will see later on. But before that, you have to go through the given steps one by one to unlock the bootloader of your OnePlus smartphone:

Steps to Unlock the Bootloader on OnePlus 7/7Pro

  • Reboot into bootloader by holding the power button of your smartphone and select the Bootloader option to boot your phone into the bootloader mode.
  • Once that is done, connect your phone to your PC using a charging and data transfer cable. Make sure that your smartphone has more than 30% of battery before leaving it connected to your computer in the bootloader mode.
  • Download ADB files on your computer. After downloading this file, simply extract it and open the newly created folder.
  • In here, launch adb.exe file from the extracted folder. It should open a command prompt window. To check if the ADB connection is working, type below command. It will provide a device code and if it doesn’t provide any, make sure you have followed all the procedure. (It can also happen due to USB Drivers, install ADB drivers if you see this error)
  • Then, go into the command prompt window and type below command, and press enter. Just per its name, this command is used to unlock the bootloader of a smartphone.
  • After executing this option, you will get an option to unlock the bootloader on your smartphone that can be selected using the volume keys and the power button to confirm.
  • Finally, your smartphone will reboot into the Android system, after which the bootloader will be unlocked. You can now proceed ahead to rooting it using TWRP and Magisk.

How to install TWRP on OnePlus 7 & 7 Pro

As mentioned earlier, TWRP is a custom recovery available for a wide range of smartphones. This means that you can also get it for your OnePlus 7 and use it to install all kinds of apps like Magisk on your smartphone. Hence, you need to install TWRP on your OnePlus smartphone before you can root it.

While you need an unlocked bootloader to install TWRP on your smartphone, that should not be an issue since we have already provided a method for unlocking the bootloader earlier. If your bootloader is unlocked.

Also, read: How to Root Realme X50 Pro 5G, Complete Guide

Install TWRP after Unlocking Bootloader

Before you can install TWRP on your smartphone, you need to download all of the required files on your computer. If you are familiar with firmware and recoveries for Android devices, then you must know that these are img files. Similarly, you have to download TWRP img file before you can install it on your smartphone.

You will have to download different versions of TWRP for Android 9 and Android 10. After downloading the correct file, you can easily install it on your smartphone. But instead of permanently installing it, we will be temporarily booting into TWRP just for the rooting process. This is much faster as you are not installing any custom ROM and sticking to Oxygen OS. You can easily boot into TWRP custom recovery as shown here:

  • Just like earlier, go into the bootloader mode on your smartphone via the power menu by long pressing the power button If your smartphone. After booting into the bootloader mode, connect your phone to your PC using a charging and data transfer cable and leave it connected.
  • Then, go to the Minimal ADB folder on your computer that we had downloaded. In here, launch the adb.exe file. (You can check the ADB connection. If you have done it previously, no need to do it again.)
  • Now, rename the TWRP file downloaded earlier to “twrp.img” and copy it into the “Minimal ADB” folder so that ADB can access it.
  • Once that is done, go into the command prompt and type below command and press enter on your keyboard.
  • After executing this command, your computer will go into TWRP recovery mode where you can access all of its options. You will also be able to access the storage of your smartphone directly from your computer while in this mode. So, make sure to keep your smartphone connected to your computer as we will use it later on.

Download and Flash Magisk via TWRP

Now that you have installed TWRP or booted into it on your smartphone, it means that you can use all of its features. This even includes the installation of different apps like Magisk that is required to root your phone. But just like TWRP, you have first to download Magisk and all of its files before you can install it to root your device.

Thankfully, Magisk is a universal application which has a single version that works on all smartphones. You can download the latest version of Magisk. And once that is done, it can be installed on your OnePlus smartphone to root it as shown here:

  • On your computer, copy the Magisk installer file downloaded earlier to the internal storage of your smartphone. This can be done while your phone is in the TWRP recovery and connected to your computer via a data transfer cable.
  • After copying the file, move over toyour OnePlus smartphoneand go into the Install menu in TWRP. Here you can see the internal storage of your smartphone and all of the files in it including the Magisk installer file.
  • Now, locate the Magisk installer file by scrolling down and open it in TWRP. Then, swipe the slider to the right for confirming the flashing process.
  • This process will take a bit of time. Once done, you can click on Reboot System to go back to Android.
  • Finally, your Android device will reboot, and it will be successfully rooted.
  • Once your phone is rooted, you can learn how to use the Magisk manager to hide the root.

Verify OnePlus 7 Pro Root after Magisk installation

You should now be able to use various kinds of root apps and enjoy all of the benefits of rooting your OnePlus smartphone.

But, to be on the safer side, you should verify that your OnePlus 7 Pro is successfully rooted. This can be done quite easily using any root application like Root Checker found on the Google Play Store. Hence, follow the given steps to verify root access on your OnePlus 7 or 7 Pro:

  • First, open Google Play store on your OnePlus smartphone and search for Root Checker.
  • Now, select any of these apps and click on the Install option to download and install it on your OnePlus smartphone.
  • Then, go ahead and open the newly installed app on your smartphone. As soon as you open the app, you should get a root access prompt from Magisk Manager.
  • Once you allow root access, the app will show that your phone is successfully rooted. Although, if you are not able to get the prompt and the Magisk Manager app is missing from your phone, you should try carrying out all of the steps once again.

Also, read: Download Supersu Zip File Rooting Android Phone