Saturday, July 1, 2017

how to root oneplus 5 unlock bootloader twrp

This post will guide you all the basic steps you need to unlock the bootloader of your OnePlus 5 and root. This guide may be applicable to other devices also, but you need to use different files mentioned on the post below.

Video Demo of this Post


If you are rooting your OnePlus 5 first time then you need to unlock bootloader of your phone. This step will erase all the data on your phone. Be sure to take proper backup before you go ahead. Also rooting may damage or void your phone warranty (Not in the case of OnePlus devices). Try with your own risk.

Basic Requirement

This method needs adb and fastboot setup. You can either install minimal adb and fastboot or you can install complete Android Studio. For rooting purpose, minimal adb and fastboot is just enough. Follow this XDA Forum guide to install the minimal adb and fastboot setup.

Files Needed

You may need few files too. Get the required files from below. Also files are being updated frequently by developers, so do check with me if you are reading this post at later point of time.

Steps to Root your device

Its recommended to watch the video before you start rooting. Many important points and steps are explained in the video. Follow the below steps now,
  • Enable OEM unlock and USB debugging:
    • Go toSettings » About phone » and tap “Build number” Seven/Ten times.
  • Go to Settings » Developer options » and look for “Enable OEM unlock” option, tick the checkbox next to it.
  • Also enable the USB debugging checkbox.
  • Now connect your phone to PC and open a command prompt window.
  • To reboot your phone into Bootloader/Fastboot mode with the command below,
  • If it asks for “Allow USB debugging”, accept it by selecting OK/Yes
  • Once you are in bootloader, check the device connection status by using fastboot devices command as below,
  • Now type the OEM unlock command,
  • After this use the volume keys and select the "Yes" to OEM Unlock your device.

Once you select the yes the phone will completely erase itself and will take you to configure as a fresh phone. After you are all set, you need to again,

  1. Enable the developer option.
  2. Turn on the USB Debugging inside the developer options.
  3. Allow the connection request if asked
  4. Copy the Magisk v12 zip & the Magisk Manager apk file on your phone.
  5. Reboot to bootloader again using the below command,

Once you are on the bootloader screen, you need to install TWRP first.
  • Execute the fastboot flash command to install the twrp recovery image by executing the command "fastboot flash recovery TWRP_IMAGE_NAME". Also don't forgot to add the .img extension also. See below for details. 
  • Now go to recovery mode by using Volume up/down keys and selecting the "Recovery Mode" using power button.
  • Inside the TWRP select the install button and  browse the "" file and select this file and then swipe to confirm flash.
  • Once flashed properly don't forgot to "Wipe Dalvik & Cache".
  • Click on the reboot button.
After your device is up, don't just yet check for root, see below section for details.

Install and Configure Magisk Manager

Now you need to install magisk manager apk to perform various rooting actions. Navigate to "MagiskManager-v4.3.3.apk" and install it. Now open the app, go to the app setting and make sure to enable below,
  1. Magisk Core Only Mode
  2. Enable BusyBox
  3. Magisk Hide
  4. Systemless hosts
Reboot the device after this. It is possible that you will see 'CTS Profile Mismatch' error, try to reboot 2 - 3 times it should work properly. See the video demo for exact details and steps.

After rebooting now you should see "SafteyNet Passed"

Now you can use any of the Root checking application and can check whether your device is properly rooted or not.

More Video Demos

For more rooting tutorials follow our playlist video demos.

Connect With Me

You can join us and ask any specific questions if you have,

Labels: , ,


At August 8, 2017 at 1:43 PM , Blogger  said...

thank you for your videos/instructions. it helped me alot :)

At September 14, 2017 at 9:00 AM , Blogger Unknown said...

to every command line, it says access is denied

At December 12, 2017 at 12:22 AM , Blogger Unknown said...

Nice information sir....
Thank you


Post a Comment

Subscribe to Post Comments [Atom]

<< Home