How to Install Magisk on OnePlus 5

Magisk is currently the only alternative to the chainfire’s SuperSu. Magisk is an alternative way to gain root access on your device. While it is true that it is nowhere near the comfort that SuperSu offers, it is in constant development. One of the major upsides of using Magisk instead of SuperSu is that it does not trip SafetyNet and you can continue to use Android Pay and stuff like that. With that said, this guide will help you to install Magisk on your OnePlus 5.

You might also like: How to root OnePlus with SuperSu

Before installing Magisk, you should know that TWRP is a must in order to get Magisk working on your system. And the only way to get TWRP is to unlock your OnePlus 5’s bootloader. So, we’ll go step by step. But if you already have TWRP on your OnePlus 5, you can directly go to the Magisk installation part at the end of this post.

Before proceeding, make a complete backup of your data; click below to know more:

OnePlus 5 – Unlock Bootloader

Before you proceed to install TWRP or root your OnePlus 5, the first thing you need to do is to unlock the bootloader of your OnePlus 5.

Steps to Unlock OnePlus 5 Bootloader:

Please follow the below steps carefully:

  1. First, go to Settings > About phone and tap on the Build number (at the very bottom) 4 or 5 times until you see the text ‘You are now a developer‘. This means that the developer mode is enabled for you.
  2. Now, go to Settings > Developer options and tap on the ‘OEM unlocking‘ to enable the same.
  3. In the same screen, scroll a little bit down and enable ‘USB debugging‘. This is very important.
  4. Download the ADB and Fast boot driver from this link, and extract the contents of the zip file, if you don’t already have a working adb and fastboot environment.
  5. Reboot your phone into Fastboot Mode.
    • Power Down your OnePlus 5.
    • After the phone is completely switched off – Press and Hold the Power Button and Volume Down Buttons at the Same Time.
    • Continue Holding these two buttons past the OnePlus/Android Splash Screen that appears.
    • When the phone boots into Recovery Mode, release the power and volume down buttons.
    • Choose the Language ‘English‘.
    • In the next screen, select ‘Advanced‘ and then select ‘Reboot to fastboot‘ and in the next screen also choose the same.
    • Your phone should now be in Fastboot mode.
    • Connect your phone to your computer using the USB cable.
  6. Go to the folder where you have the adb and fastboot files.
  7. Now, hold down the Shift Key + Right Click > Open Command Window here.
  8. Type in the below command:
    fastboot devices
  9. Once you type in the above, the list of devices will be displayed.
  10. Then enter the below command:
    fastboot oem unlock
  11. Now you will see an Unlock Bootloader Warning page. Use Volume button to select Yes and hit the Power Button to confirm the selection.oneplus-5-unlock-bootloader
  12. Now your device’s bootloader is unlocked, congratulations!

OnePlus 5 – Install TWRP Recovery

Once you unlock the bootloader of your device, the next step is to install the TWRP Recovery on OnePlus 5 before installing root.

Recommended: OnePlus 5 ToolKit – Unlock | Root | TWRP | Factory Image | All In One

Steps to install TWRP on OnePlus 5:

Before proceeding install TWRP on OnePlus 5, you need to download the TWRP image file for OnePlus 5. You can grab it from the below link:

Download TWRP for OnePlus 5

Copy the downloaded TWRP file to the folder where you have extracted the adb and fastboot files.

  1. Reboot your phone into Fastboot Mode.
    • Power Down your OnePlus 5.
    • After the phone is completely switched off – Press and Hold the Power Button and Volume Down Buttons at the Same Time.
    • Continue Holding these two buttons past the OnePlus/Android Splash Screen that appears.
    • When the phone boots into Recovery Mode, release the power and volume down buttons.
    • Choose the Language ‘English‘.
    • In the next screen, select ‘Advanced‘ and then select ‘Reboot to fastboot‘ and in the next screen also choose the same.
    • Your phone should now be in Fastboot mode.
  2. Connect your phone to your computer using the USB cable.
  3. Go to the folder where you have the adb and fastboot files.
  4. Now, hold down the Shift Key + Right Click > Open Command Window here.
  5. Type in the below command:
    fastboot devices
  6. Once you type in the above, the list of devices will be displayed.
  7. Then enter the below command:
    fastboot flash recovery twrp-3.1.1-0-oneplus5.img
  8. Once the file is flashed successfully, unplug your phone from your PC and manually boot the phone into recovery by pressing Power + Volume Down button.
  9. Your phone should boot into TWRP recovery!

Guide to Install Magisk On OnePlus 5

Follow the below steps carefully:

  1. First, you need two files in order to proceed with this tutorial. Download them below:
    1. Latest Magisk > Download here. This is a .zip file.
    2. Latest Magisk Manager > Download here. This is an APK file.
  2. Copy both the files that you have downloaded above to your phone.
  3. Reboot your OnePlus 5 into TWRP recovery:
    1. Power Down your OnePlus 5.
    2. After the phone is completely switched off – Press and Hold the Power Button and Volume Down Buttons at the Same Time.
    3. Continue Holding these two buttons past the OnePlus/Android Splash Screen that appears.
    4. When the phone boots into Recovery Mode, release the power and volume down buttons.
  4. Assuming you have successfully booted into TWRP recovery, tap on ‘Install’ from the available options. You will be asked to choose a file to flash/install. Browse and select the downloaded .zip file and then ‘Swipe to install.’
  5. Reboot your device.
  6. Once your device has successfully rebooted, open a file manager of your choice and tap on the downloaded Magisk Manager APK file to install the same.
  7. Done! Now you have Magisk installed on your OnePlus 5!

If you have any doubts or need help with any of the steps above, do leave a comment below!

Leave a Comment