OnePlus 2 being easily bootloader unlockable, opens millions of ways for the custom development community. Obviously, if you ever unlocked the bootloader, then plausibly for rooting. In case if you’ve successfully bootloader unlocked and in search of a reliable root guide, you’re in the right place.
Must See: How to Unlock Bootloader of OnePlus 2
OnePlus 2 has got official TWRP support which is indeed a boon. We can use the TWRP to flash Magisk which in result will root the device. Or else, if you don’t like TWRP, then we can adopt the Magisk patched boot image method. Well, the latter might need additional for you to download the stock firmware and extract the boot.img to be patched.
Nonetheless, let’s take a look at both methods starting with the rooting using TWRP.
Root OnePlus 2 using TWRP
Before proceeding makes you sure have unlocked bootloader of OnePlus 2.
[table id=12 /]
OnePlus 2 Official TWRP: Download
Minimal ADB and Fastboot: Download
Make sure you have got a PC with ADB and Fastboot installed. Once you set-up you PC, on your smartphone, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:
adb reboot bootloader
You should now be in fastboot mode. Download the correct image file and copy the file into the same folder as your platform-tools. Rename the image to recovery.img and input:
fastboot flash recovery twrp.img
Once the above code execution is complete, don’t use the “Fastboot Reboot” Command Instead Unplug Your phone then Manually boot it into recovery by holding Power + Volume Down button simultaneously. Otherwise, the verified boot will replace the TWRP with stock recovery and all the steps done above will be futile. So, make sure your first boot is to the TWRP recovery.
Flashing Magisk via TWRP
- In TWRP, swipe to allow modification.
- Then from Main TWRP Menu, select Reboot and then select System. Now your phone will boot into System with TWRP as the recovery.
Now it’s time to flash Magisk. Download Magisk.zip and save it on your internal storage. Reboot to TWRP and follow the below steps.
Latest Magsik.zip: Download.
- In TWRP, select Install.
- From the file picker, choose the Magisk zip.
- Confirm to flash.
- Wait for the flash to finish.
You should now have a rooted OnePlus 2 with TWRP. For those who would like to root without TWRP can follow the below method.
Root OnePlus 2 Using Magisk Patched Boot.IMG Method
For the patched boot.img method you’ve to extract the boot.img file from the stock firmware of the build you’re currently running. Get the OnePlus 2 stock firmware from here. You can extract the boot.img by unzipping the firmware using any tool on PC. The unzipped firmware should contain a file named boot.img.
- Copy the boot image to your device
- Download and install the latest Magisk Manager
- Press Install → Install → Select and Patch a File, and select your stock boot image file.
- Magisk Manager will patch the image, and store it in
- Copy the patched image from your device to your PC. If you can’t find it via MTP, you can pull the file with ADB:
adb pull /sdcard/Download/magisk_patched.img
- Flash the patched boot/recovery image to your device and reboot. Here is the fastboot command:
fastboot flash boot /path/to/magisk_patched.img
Reboot the device, once the flashing completes. Go and check the Magisk Manager if root has been successfully installed or not. If done properly, you should have a rooted OnePlus 2 device otherwise repeat the steps from the beginning.