Prerequisites:
1.You need to install OnePlus 2 drivers on your computer.
2.Download MFastboot.zip.
3.Download official TWRP recovery 2.8.7.0.img
4.Enable USB Debugging and OEM unlock option: To do so, go to Settings
-> About Phone -> tap Build Number 7 times to enable Developer
options. From Developer options, enable USB Debugging and OEM unlock.
5.Unlock Bootloader of Oneplus two.
Warning: The author is not responsible, if you damage or brick your device. Do it at your own risk and follow the instructions properly.
#How to Install Custom recovery in OnePlus Two
1.Download TWRP recovery for Oneplus 2 from here.
2.Copy the recovery file in your fastboot folder.
3.Now Put the phone in fastboot mode and connect it to your PC via usb cable.
►How to boot Oneplus Two in Fastboot mode?
Turn off your device.Then Press (Power button +Volume Up ) button simultaneously.Done!
4.Open a command prompt from within your fastboot folder (shift + right
click, select open command prompt here)
fastboot flash recovery <filename>.img
(Replace <filename> with the actual filename of the
recovery, the recovery filename in the command will change depending on
which recovery you’re flashing)
#Then enter the Following command
fastboot reboot
5.Let the device reboot, it’s now safe to disconnect your usb cable.
6.Now you can reboot in to recovery mode in OnePlus Two by pressing ( the power + volume down button ).
After flashing Custom Recovery follow this guide on
1.How to root Oneplus 2 easily