Unlock Bootloader, Install TWRP and Root OnePlus 7 Using Magisk [Tutorial]

Mar 5, 2020
Submit

One can simply not deny the fact that OnePlus phones have gained a lot of traction over the past couple of years. Although they are relatively new to the market, given their history, the one thing that cannot be denied is that that they are known for giving a tough competition to the likes of Samsung and other big boys that are running Android.

The one thing that separates OnePlus phones from other phones is unlike some of the other OEMs in the market, OnePlus actually encourages the users to unlock their bootloaders and even root their devices. After all, the company is mostly community-driven.

Galaxy Note 20 Colors Revealed, Variety of Option to Choose From

This means that OnePlus phones enjoy a heap of 3rd party developer support on XDA as well. With that said, if you own a OnePlus 7 and you are looking to unlock the bootloader of your device and root it, you are at the right place. The guide is also going to help you install TWRP recovery, so stay tuned.

Root OnePlus 7 Running Android 10

OnePlus devices are among the few devices that enjoy TWRP running on Android 10, which is certainly a great thing to have.

Prerequisites 

Before we continue with the unlocking and rooting process, it is better that you download the prerequisites that are there to make your rooting process much easier.

  • Download Magisk Manager zip from here.
  • Download and install ADB and Fastboot drivers from here.
  • Download unofficial TWRP recovery installer as well as the img file from here.

Step 1: Unlocking the Bootloader

The first step will be to unlock the bootloader. OnePlus phones do not ship with an unlocked bootloader, however, the process of unlocking is fairly simple and straightforward.

Samsung Galaxy Users are Reporting a Broken Dark Mode

It should go without saying that going ahead with the process is going to wipe your device's internal storage. So, if you have not backed up your device, now is the time.

  1. Go to Settings and head to About Phone.
  2. Once there, tap on the build number for about 7 times until you get a message that you are now a developer. The device may even ask you to enter the pin, if it does, do so
  3. Go back to the Settings menu again, and look for "Developer Options", tap on it.
  4. Now go ahead and enable USB debugging as well as OEM unlocking. While you are at it, enable Advanced reboot as well.
  5. Long press the power button to bring up the power menu, and select Bootloader.
  6. Once your phone is in the bootloader mode, go ahead and connect your device to your computer.
  7. Open a command prompt on your computer and type fastboot oem unlock and press enter.
  8. Your phone will now enter a bootloader screen, simply select the bootloader unlock option using volume keys, and press the power key to proceed.

The phone should take a few minutes and it will reboot after that. You can go through the initial setup or skip it almost entirely so you can move onto the next part as we are not done just yet.

Step 2: Installing TWRP Recovery

This is slightly tricky for some, but by following this process, you are going to install the TWRP recovery. Now do know that installing the recovery is not going to be as straightforward as it used to be, you'll be using two different files to achieve the same purpose.

  1. Boot into the bootloader again.
  2. Connect your phone to your PC.
  3. Now rename the "twrp-3.3.1-76-guacamole-unified-Q-mauronofrio.img" to twrp.img" and copy the zip file to your phone, as well as Magisk.zip that you downloaded.
  4. Open the command prompt again and type fastboot boot twrp.img. 
  5. This will reboot your phone into TWRP recovery.
  6. Once it boots into recovery, you might be asked for your phone's pin or password, enter that.
  7. Tap on Install, scroll down and flash the TWRP zip file. Make sure you don't reboot your device. Simply press back on the navigation bar.
  8. Now back in the same install menu, choose the Magisk.zip that you have downloaded, and install that.

Once Magisk is installed, you can simply go ahead and reboot your device, and once you do boot up, your device will be rooted and will have TWRP recovery, as well. If you haven't set it up before, you can set it up the way you want to set it up, and you would be good to go.

Products mentioned in this post

OnePlus 7
OnePlus 7
USD 519.5

The links above are affiliate links. As an Amazon Associate, Wccftech.com may earn from qualifying purchases.

Submit