Disclaimer: By attempting any of the processes listed in this thread you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches fire, or turns into a hipster and claims to have been modified before it was cool.
1. Drivers Installation (Oneplus Two, Fastboot & ADB)
2. Unlock Your Bootloader
3. Boot Into Custom Recovery (TWRP) On Your Device
4. Make A Nandroid Backup With TWRP Recovery
5. How To Root Your Stock Rom
6. Making EFS Backup and Backup of Other Partitions
7. Flashing Custom Recovery (TWRP)
8. How To Install A ROM with TWRP Recovery
9. How To Install A Custom Kernel With TWRP Recovery
DRIVERS INSTALLATION GUIDE (WINDOWS)
In order to Root or Install Custom Recovery on your Oneplus Two, you need to have the right set of Drivers to help your computer recognize your device.
Install the driver setup file provided below and you won’t need to go device manager either to manually install the driver
Download OnePlus 2 Toolbox (Credits: @waicool20 & @XQ55)
Download the file (OnePlus_USB_Drivers_Setup.exe) and install.
Go through the setup, and when done, restart your PC. Connect your OnePlus 2 to PC and is shall recognize it.
Set Up Fastboot & ADB Drivers:
What’s ADB? ADB stands for Android Debug Bridge. It works when the device is powered on and booted into OS or Recovery. The tool helps in sending basic linux commands, and a variety Android specific commands from PC to connected Android devices.
What’s Fastboot?Fastboot works only in bootloader/fastboot mode. It allows you to re-flash system partitions on your Android device and requires a device with an unlocked bootloader. It’s particularly useful when you want to update your device manually or in a rare situation when you accidentally soft-brick your device and need to install a clean stock system image.
Thanks to XDA member Snoop05 who has developed a small program to quickly install both ADB and Fastboot files on your PC (system-wide) along with proper drivers.
Downloads and installation instructions below:
HOW TO SETUP ADB AND FASTBOOT IN 15 SECONDS
Download 15 seconds ADB Installer (9.1 MB)
1. Download the adb-setup-1.3.exe file from the download link above.
2. Double-click/Run the adb-setup-1.3.exe file.
3. You will see a command prompt window with blue background. Say YES to all the prompts on this screen.
└ To say YES, just typeYand hit enter.
Once ADB, Fastboot and Drivers are installed, the setup window will automatically close and you’ll have a working ADB and Fastboot setup throughout your system.
2. Unlock Your Bootloader
Backup important files stored on your OnePlus 2 before proceeding with the steps below, as unlocking the OnePlus 2 Bootloader will completely wipe/delete all files on the device.
After the installation of drivers (OnePlus 2, Fastboot & ADB drivers) follow the below to proceed with Unlocking the Bootloader of your Oneplus Two
1. Enable USB Debugging:
§ Go to Settings > About phone, and then tap ‘Build number’ 7 times or until you get the message ‘You’re now a developer!’.
§ Go back to Settings, choose ‘Developer options’. Find the ‘USB debugging’ option and use this toggle button to enable it. Accept warning by tapping on OK button.
Also in the ‘Developer options’. Find the ‘OEM Unlocking’ option and use its toggle button to enable it. It asks for your PIN/Screen unlock code, type it. Then accept the warning by tapping on OK button. (Oxygen 2.0.1 onwards)
2. Connect your OnePlus 2 to PC now. You will get a pop-up as shown below on your phone when you connect for the first time after enabling USB debugging. Select ‘Always allow from this computer’ checkbox and then tap on OK button. (You may or may not get this prompt)
Boot your OnePlus Two into Bootloader/Fastboot mode. (Make sure you have backed up all important data as you’ll lose everything on phone in the steps below.)
Connect your OnePlus Two — in Bootloader mode — to PC. Let the driver install.
Open a command window on your PC. For this:
Open any folder on PC. Now, left click on empty white space inside the folder.
Hold shift key, right click on empty white space to get a pop-up as shown below.
Choose Open command window here option from that.
You will see a command window open up, with location directed to unlock folder.
Power off your phone then boot into fastboot mode (power + volume up).
Connect your phone to your PC via usb cable.
Confirm whether fastboot is working. With OnePlus 2 connected to PC, run the following command in command window.
It should return your device serial number, if not you need to make sure your drivers are installed correctly.
Once you've confirmed your fastboot connection to unlock the bootloader use:
fastboot oem unlock
The device will now go through the automated unlocking process, just let it do its thing and it'll boot up into Android.
You’ll see a new screen on your device. ChooseYes using Volume button specified and then use Power button to confirm it.
That’s it. The device will reboot automatically.
To confirm unlock status, reboot into bootloader/fastboot mode and you shall see the text unlocked now.
fastboot oem device-info
It should have a couple of lines there, both with the flag set to true.
2. How To Install A Custom Recovery On Your Device
OnePlus 2 TWRP Recovery | File: Recovery TWRP.img (25.3 MB)
PS: Don’t try this on OnePlus One any other device whatsoever!
> Enable USB debugging from developer options once again.
> Download the TWRP recovery file (Recovery TWRP.img) and SuperSU root package file from above.
> Transfer the root package file (SuperSU) to OnePlus 2.
> On PC, rename the TWRP file to this name: op2-twrp.img
> Boot your OnePlus 2 into bootloader mode. Just follow the first paragraph there. (Make sure you have backed up all important data as you’ll lose everything on phone in the steps below.)
> Connect your OnePlus 2 — in bootloader mode — to PC. Let the driver install.
Open a command window on your PC in the folder where you have the op2-twrp.img file.
You will see a command window open up, with location directed to folder where you have the op2-twrp.img file.
Let’s confirm whether fastboot is working. With OnePlus 2 connected to PC, run the following command in command window. You should get a serial no. with fastboot written after it. If not, you need to reinstall the fastboot drivers from above.
> Flash TWRP recovery on your OnePlus 2 by running the following command.
fastboot flash recovery op2-twrp.img
> Boot TWRP recovery on your OnePlus 2 now. It is recommended that you do this manually by unplugging the usb cable and then pressin POWER + VOL down until the device boots. When the Oneplus logo shows up, relese the POWER and keep holding down VOL DOWN until TWRP boots. Don't boot the OS on the phone as it will overwrite the recovery
4. How To Root Your Stock Rom
To Root OnePlus 2 > tap on Install menu, and then browse and select your SuperSU > Swipe to confirm the flash
Once Done > Wipe Dalvik & Cache > Reboot System To Restart
To Confirm the root status using a root checker app from play store
4. How To Make A Nandroid Backup With TWRP Recovery
A nandroid backup is a very important thing to have before installing any custom software on your device. It's basically a backup of your stock system that you can fall back on if anything goes wrong or if you just want your stock ROM back. You can also use the backup tool to create a backup of your favourite ROM set up exactly the way you like it. The backup you create can be easily restored using the restore tool in TWRP recovery.
All you need to do is enter TWRP recovery, select the backup option from the TWRP home screen, check the system/data/boot boxes, and swipe to backup. The process will take a few minutes.
MOD-EDIT: The boot command was wrong, so that is now fixed