#Requirements
1.Your Oneplus X/mini bootloader bust be Unlocked.
2.Download and install Oneplus X drivers in Your PC
3.Download Mfastboot.zip and extract in on Desktop.
4.Make backup of your data.
#How to flash TWRP recovery in Oneplus X or Oneplus Mini
1.Download TWRP recovery for oneplus x/mini and place it in the Mfastboot folder that your exacted earlier.
►Download TWRP recovery for Oneplus X/ Mini
2.Now Enable USB debugging on your device:
Open Settings >About phone and tap seven times on Build number, this will enable Developer options.
3.Now go back to Settings and you’ll see “Developer options” there, open it.Tick the USB Debugging checkbox.
4.Connect your device with your PC using USB cable.
5.Now
open Mfastboot folder and press “Shift + Right click” on any empty
white space inside the folder and then select “Open command window here”
from the context menu.
6.You will see command prompt window on your screen now type follow command in Command window.
7.Your device will reboot into bootloader.Now Enter Following command in the command window.
8.Once TWRP is successfully flashed on your device, issue the following command to reboot.
9.Done! If you face any problem comment below we will try to solve it as soon as possible.
After flashing Twrp Recovery follow below guide on How to Root Oneplus X / Oneplus Mini
See also:How to Root Oneplus X / Mini by flashing Super Su