Video: How to Root the OnePlus X

The OnePlus X is OnePlus’ latest phone to hit the market and instead of going for a flagship killer, the X is aimed slightly lower (only slightly). With a quad-core processor, 3GBs of RAM, and a slick body of Onyx (seriously it’s slick), it’s still no budget phone. Yet with a price tag of about $249.00, it sorta is.

Despite these well qualified specs, some people do have issue with one thing about the OnePlus at least –the software. OnePlus made a switch from CyanogenMod, a community driven custom version of Android, to their own ColorOS version of Android starting with the OnePlus 2 (which I show you how to put back here) and not everyone is a fan.

If you want to, though, there is a way to get some better performance out of the software. Besides maybe speeding it up with this tip, you can always root the OnePlus X and then flash a different version of Android onto it replacing ColorOS with something a little more snappy/just plain better.

If you want to give it a whirl, here’s how to root the OnePlus X and flash a custom recovery (software required for flashing ROMs).

Before You Begin

  1. This could void the warranty of your device. We won’t be held responsible for anything that happens from doing this tutorial so please proceed at your own risk.
  2. This should erase the data stored on your device. So, please backup anything that you feel is important.
  3. This should also flash a custom recovery on your device.
  4. The instructions are for Windows but you should be able to do it on Mac in terminal instead of Command Prompt if you are familiar with the differences.
  5. You should only try this on a OnePlus X, not the One or Two.

How to Root the OnePlus X


To root the device, you’ll first unlock the bootloader and flash a custom recovery on it, and then flash the SuperSU package to gain root access. Here’s how:

Installing ADB Drivers on Your PC

  1. Download the OnePlus ABD Drivers and then run the exe to install the drivers.
  2. To get ADB and Fastboot working (things we need to be able to communicate with the phone from our computer), head to my new How To Setup ADB/Fastboot Tutorial. This will show you how to set it all up on Windows or Mac (don’t worry it’s quick and easy). Once done with that, return here to this tutorial to continue.

Download the OnePlus X Rooting Files

  1. Download the folder in zip format I put together with all the necessary files here and save it to your desktop.
    OnePlus X Rooting Files
  2. After you have done that, copy the and recovery.img files from that folder into the C:/adb folder that you should now have on your computer after doing the ADB tutorial above (they need to be in the same folder as adb.exe and fastboot.exe).

Unlocking the Bootloader on the OnePlus 2

Unlock the Bootloader

  1. On the phone, head to Menu > Settings > About phone and tap on Build number for 7-8 times and it’ll say you’re a developer. The developer options menu should now be unlocked on your device.
  2. Head to Menu > Settings > Developer options on your device and turn on USB debugging and OEM unlocking.
  3. Connect your device to your PC using a USB cable.
  4. You will get a prompt asking if you’d like to allow USB debugging on your device. Check off the Always allow from this computer box and tap on OK.
  5. Launch a Command Prompt Window inside the Fastboot folder inside the folder you just extracted eariler. To do that, hold down Shift on your keyboard and right-click anywhere inside the Fastboot folder and select Open command window here.
  6. Type in the following command into the Command Prompt Window and press Enter:
    adb reboot bootloader
  7. Your device should reboot into bootloader mode.
  8. Type in the following command and hit Enter:
    fastboot oem unlock
  9. It should unlock the bootloader on your device.
  10. Your device should automatically reboot when the bootloader is unlocked.

Flashing a Custom Recovery on the OnePlus 2

Custom Recovery on OnePlus X

  1. Once the phone reboots, go through the normal setup procedure until you can get back to the home screen.
  2. On the phone, head to Menu > Settings > About phone and tap on Build number for 7-8 times and it’ll say you’re a developer. The developer options menu should now be unlocked on your device.
  3. Head to Menu > Settings > Developer options on your device and turn on USB debugging and OEM unlocking.
  4. In the command prompt from before on the computer, type in the following command and hit enter:
    adb push /sdcard/
    adb reboot bootloader
  5. Once it reboots into bootloader mode again, type in the following command and hit enter:
    fastboot flash recovery recovery.img
  6. Once it flashes TWRP, type in the following command and hit enter:
    fastboot boot recovery.img

For those having an error that says “dtb not found”, please see this thread for the solution –

Rooting the OnePlus 2 Using TWRP and SuperSU

SuperSU on OnePlus X

  1. On the phone, in recovery mode, tap Backup and swipe to confirm. This will create a backup of the current stock ROM just in case you want to unroot later easily or if something goes wrong.
  2. When that finishes, tap Back.
  3. Now, tap on Install.
  4. Select SuperSU .zip to be installed on your device.
  5. Tap on Swipe to Confirm Flash to install SuperSU on your device.
  6. Wait for TWRP to install SuperSU.
  7. When it’s done installing, reboot your device by selecting Reboot followed by System.
  8. Your device should reboot.

Now you can head to my How to Flash a Custom ROM tutorial and follow that to perform a backup of your entire system (very handy later on) and flash custom ROMs found in my ROM repository.

Let me know if this worked for you in the comments below!

Related Items: , ,

169 thoughts on “Video: How to Root the OnePlus X”

  1. Hi David,

    I am trying to root OPX, and i cannot get it. I am stuck in the beginning. In fastboot mode, I type “fastboot oem unlock” but nothing happens. What can I do?


      1. Yes, I have OEM unlocking and USB debugging turned on, and drivers installed properly (OnePlus drivers and ADB installer; attached image). But device is stopped in fastboot mode and nothing happens; i have to push power button during several seconds to restart it.

          1. Ok, I continue with the root process. When I write the commands, nothing happens. So I reboot manually the device in recovery mode, but appears a screen different from your video: first select language; when I select english, another screen with install from local, install from usb, wipe data and cache, advanced, reboot

          2. Thanks a lot. Finally I got it. This kind of things are really difficult for me. Sorry for making you to waste your time

  2. As I said before, I am having an issue with this, everything is good up to the point where I boot the recovery.img. When I hit enter it does everything normally but my phone does not do anything, then I get a little error on my computer saying something something like the device is not recognized. I try booting the recovery.img again and all it says in CMD is “waiting for device”. Help will be greatly appreciated, thanks.

      1. Sorry for the 14 hour delay but here, this is exactly what it has told me to do in the video. I’ve already done the previous steps (the oem unlock thing) i did them yesterday. You said my phone is suppose to boot up in the recovery mode but my phone is still in fastboot mode as we speak. that’s my problem.

        1. Ok, try to boot into it manually by unplugging it then holding down Power and Volume Down until it reboots. When you see the OnePlus logo let go of Power but keep holding Volume Down until you get to recovery then continue with the tutorial. Let me know if that works.

  3. Hi!

    I’m having difficulties to proceed on point number 4.

    In the command prompt from before on the computer, type in the following command and hit enter:

    adb push /sdcard/ – “3504 KB/s (4015219 bytes in 1.119s)”

    adb reboot recovery – it takes me to a menu where I have options:
    Internal Storage
    Install from ADB
    Wipe data and cache

    adb reboot bootloader – error: device not found

    Can you help me?

    Thank you

  4. And also, o point nr 8 “Type in the following command and hit Enter:

    fastboot oem unlock”

    I do this and my phone doesn’t reboot.

    “C:adb>fastboot oem unlock

    OKAY [ 0.000s]

    finished. total time: 0.000s”

    1. It should show a screen that says select yes for you to unlock it. If it doesn’t, type in the following command and hit enter instead and see if that shows you device unlocked: true If it does your bootloader is already unlocked and you can just go to the next step.

      fastboot oem device-info

  5. adb reboot recovery
    … followed by…
    adb reboot bootloader

    That seems very unlikely. I got stuck here.

    1. The and reboot recovery shouldn’t be there. Thanks for letting me know, fixing it now but just watch the video for the proper commands (that part is around 5:00)

    1. Yeah, I recommend moving it to a computer. Just make sure to move the entire backup folder so you have it. You’ll need to copy it back exactly to have the recovery image recognize it when you want to restore it.

  6. bro i have some issue with my x….after i rooted it…for about 2 weeks…suddenly my wifi signal went missing…
    everytime i turned it on….it just stay blank…then i flashed the other roms ,
    it’s come back again like that…
    the other issue everytime i reboot the phone …there’s a pop up window stating that system not responding…
    the last issue…i cant turn on my bootloader under dev.options…wtf man…
    please help me…im having a big headache

    1. If you flash other roms and it comes back then it’s the rom. Just don’t use that rom. System not responding is also an issue with the rom.

      You should flash a different ROM until you find one that works for you. Also make sure you are doing a wipe in recovery BEFORE flashing the next rom as of you don’t that can cause issues too.

      Worst case scenario just into it it using this tutorial to get a fresh start –

      1. hi mate,
        thanks for the reply…
        i always do wipe data, cache, system…it’s a compulsory
        by the time i wrote the comment to you…
        in desperation, i just flash the x with oxygen official rom…
        and viola, everything’s went great…
        of course im missing those ressurection rom notification cool stuff ..

  7. David, i have an issue. I am using my mac and everytime i finish the entire process. My phone boots up normally i cannot get the twirp page or whatever. I have tried force rebooting but nothing happens. If i hold down the power button and then press reboot i get three options. Recovery, Bootloader and Reboot. I have pressed all three to see if it does anything, but it doesnt. Help.

        1. OK, so your phone is rooted though? The issue is you can’t get to recovery anymore? But you did flash SuperSU in recovery already and it is in your app drawer?

          1. i did the adb, then i did the oem unlocking and usb debugging i got the rsa key fingerprint, but then when i retried the process i didnt get the rsa key fingerprint. I didi the reboot but then when its in fastboot i cant fastboot oem unlock.

          2. According to your screenshot you ARE unlocked (device unlocked: true). That’s why it won’t let you do it again. Just continue with the procedure and adb push SuperSU while the phone is connected in normal mode and continue from there.

          3. i have the same problem alex had, but then when i continue. i do the command then i get a long script and then nothing happens. Then when i do the adb reboot bootloader its says null device.

  8. David HELP!!!! I got up to the step where you type “fastboot oem unlock” but nothing happened. My phone is stuck on fastboot mode. HELP!!!

    1. I was able to restart it. I tried the steps again but nothing happened when I typed ‘fastboot oem unlock’. what can I do ?

      1. While in fastboot, type fastboot oem device-info and then hit enter. You’ll get a screen, if it says device unlocked: true then your bootloader is already unlocked so that’s why it’s not doing anything when you type it. Just continue with the tutorial from there.

          1. Have you made a backup before? Cause they take up a lot of space. It has nothing to do with the erasing of data you just don’t have enough storage space on your phone period. Youd need to clear some manually like normal then try again. Good luck!

          2. Is it necessary to backup? could I just go ahead and install it and if i wanted to unroot i could just download the stock ROM and recovery? Sorry for so many questions 🙁

  9. Hey David, backing up took up like half of my storage. If the root is successful, do I need still need those files?

    1. It backs up the entire phone so it can be a large file. You don’t need it but it’s good to have. Just connect to a computer and copy the backup to your computerto have if needed and then delete it from the phone to save storage.

  10. Hey, David it keeps getting stuck at the fast boot screen and wont go anywhere, and its says its unlocked during the test. but after i dont know where to go. plz help me through the process

  11. hey david, im stuck on adb reboot bootloader. it keeps telling me also when im use fastboot oem device-info. On my phone screen looks oneplus logo and fastboot mode text, nothing happens after that.

  12. hi david, im stuck with oneplus usd drives read ur post n did exactly but i dont knw why im not able to install the drives on my laptop which is running on windows vista… plz need ur help plz plz guide me… ill tell u hw im doing…
    i downloaded al the drivers usb, adb n root zip file
    1- im installing the usb driver of oneplus n restarting my laptop.
    2- im installing the adb frm the. link u gave ie from xda sitte… n restarting again..
    3- den i connect my phn through usb by switching on tht usb debugging and oem… but im not getting the usb debugging screen popping up after connecting…

    in device manager i can see portable devices in which i can see my phn after connecting but cant see the drivers when updating the drivers im only getting MTP devices in option plz plz help me i think i explained everything correctly sorry fr my bad english… im not a developer in a new to dis root plz guide he how t o over come dis its wil be a great help…. thanks a ton in advace…

  13. Morten Kristensen

    I get an error with ‘oem unlock is disabled’ when I try the ‘fastboot oem unlock’

    Anyone know how to come past this? It’s not because it is already unlocked

      1. hey David, thank you a ton for your tutorials, they’re great! keep it up!

        just wanted to say that I’m having the same error as shown by Douglas Knox. Except when I try “fastboot oem unlock” it reboots and takes me into TWRP.

        I had gone through the full tutorial and installed everything fine. Had CM working, but when I tried to update the nightly update it would reboot into TWRP but no update every happened. I see there’s a stable CM13 now, but when I put that into my root foldr and try “install” in TWRP then I don’t see the file, no matter where I put it (and if I click “ZIP” instead of “IMG” in bottom right). Anyways, any help would be appreciated, man. Can get frustrating wasting so many hours on this…


  14. Hi David I am finished with all the steps you showed. I have flashed a custom ROM and gapps too. But now when I am checking the root of my device it is saying phone is not rooted. Help!

        1. Great so either try a different root checker or flash a different ROM. If you want to keep that ROM and have root and all the root checkers are saying you don’t have it then contact the developer of that ROM for help with the issue with their ROM. Good luck.

  15. Hi, David. You asked me to come here for help so I might as well explain my situation in a little more detail.

    I’m using a Champagne ONE E1001 version of the OnePlus X, just to clarify.
    Everytime I attempt to do the step where you unlock the OEM, nothing happens on the screen of my phone (apart from remain on the fastboot mode screen) even after waiting a few minutes, while the command prompt window says ‘waiting for device as shown in the screenshot.

    Any suggestions? I’ve wasted like three hours so far trying out other methods I find online, all ending up in the same situation.

    1. So that means your driver’s aren’t installed correctly. You need to go to device manager on the computer and look for the ! and manually select the drivers otherwise you need to uninstall the ones you have and install different ones from OnePlus’s site or through googling. Good luck!

      1. Thanks! I’ve managed to get past the oem unlock step now. Fast-forward though
        and I’ve ran into another issue – it won’t boot into the ‘recovery.img’.
        Instead of saying ‘OKAY’, it says ‘FAILED (dtb not found)’. How can I fix this?
        Again, thanks for your help so far 🙂

          1. So I’ve started again from scratch basically – reset my phone to factory settings, re-downloaded all the files and followed the tutorial from there and I’m stuck at the OEM unlock part again, only this time, it says it has finished in the command prompt window while nothing’s happening on the phone. Installing the correct driver in Device Manager didn’t do anything this time.

          2. After looking at some other comments, it appears my phone is already unlocked (It says “Device unlocked: true” when I typed in ‘fastboot oem-device info’). So I guess I manually reboot my phone and continue from there?

          3. And now I am stuck at booting into recovery.img again :/

            C:adb>fastboot boot recovery.img
            downloading ‘boot.img’…
            OKAY [ 0.361s]
            FAILED (remote: dtb not found)
            finished. total time: 0.403s

            I Googled the issue for a while, yet still no solution – although there seems to be another handful of people who are having the same issue who don’t have answers either. I tried using other TWRP img files I found online but still the same result

  16. Hi David. After installing gapps on OPX, I an error ‘unfortunately system ui has stopped’. In cyanogenmod i can solve this problem by granting permissions, but how should solve it for paranoid rom.

    1. That has nothing to do with rooting. That has to do with the ROM. Either flash it again and make sure to write data before you flash it, flash a different ROM, or check with the developer to see why it might have not worked. Good luck!

    1. How did you boot into recovery? You need to do it using the fastboot command right after flashing it. If you let the phone boot up in between that then it’ll overwrite the recovery with the stock one.

  17. Hi I am using the latest OOS 3.1.3 software. am not able to root my device. After i enter bootloader and type oem unlock, nothing happens. the option on the phone saying “unlock will erase user data , continue ?” is not coming up. Model No E1001. I have ensured that the drivers have been installed correctly.

          1. So the phone can’t be in bootloader mode to use ADB like that. It should have rebooted after you unlocked the bootloader into normal mode. So do that, boot it up and get to the normal home screen, plug it in and try the adb push command again and continue from there.

          2. You’ll have to check that forum and find out or look on it for a different version that does work. Either way that explains what the issue you are facing is.

          3. Thank you. I have succeeded in flashing TWRP blu spark. but got a bootloop when i flash SuperSU.
            am still trying to see if the have a modified SuperSU for the OOS 3.1.3. Once again thank you for your help

  18. ciaran mcloughlin

    my opx wont gointo the fastboot oem unlock stage, i get it to fastboot mode but when i type fastboot oem unlock nothing happens on the device

          1. Thanks for the link. Allthough it states that I need one recovery-file which is there and another update-file which I cant find. Do you have a link to the update-file?

  19. Hi, i am using one pluse x, i was trying to root my phone but now it stuck in fastboot mode.
    then i press power button to get out of this mode.
    now my phone is switched off and nothing is happening.
    Please help me

  20. Alright, I’m befuzzled…I did everything correctly and I get to the CMD prompt that says :
    c:adb>fastboot boot recovery.img
    OKAY [ 0.456s]
    FAILED (remote: dtb not found)
    finished. total time: 0.505s
    I looked around in the comment afterwards and went to the dev link you posted and tried to follow that.I don’t have any ADB option on my phone. So I downloaded the recover3.img and tried flashing and booting that, but it took me to a weird menu that got no where…Currently my phone works but is not rooted, it seems OEM unlocked but I’ve reset it to factory defaults and it stayed that way…please help!!!

          1. Are USB debugging and ADB debugging the same? If that’s the case then I do have it enabled. But I still have the issue of it not working be sadly.

    1. Not sure what step you are on now. You got the dtb found and then flashed recovery, booted into recovery then you should have done the next section on rooting the device using the SuperSU file while in recovery. Did you get into recovery after typing fastboot boot recovery?

    2. Don…can u share the link that helped u resolve “dtd not found” issue….I am running oxygen os 3.1.4, android M 6.0.1

      1. Yes, thank you, I got that sorted….. I did everything, do you have another link for superSU, or is there any other alternative….. This is my first time, it was getting indefinitely stuck in reboot after flashing super su, hence I used restore back up

  21. when i normally connect the phone to pc i can see my phone when i type command adb devices ..but after it enters the fastboot mode no device is listed ..

  22. please help me, whenever i go into fastboot, and i try to unlock the oem, it always says “waiting for device”, please help!!!

        1. Again all of that means your drivers aren’t installed. Try completely removing them with a program like USBDeview and then try different drivers, different USB cable, different port, and ultimately a different computer if that doesn’t work. Drivers are the issue and unfortunately they can be finicky. Good luck.

          1. could it be my phone or so? i knoww i have rooted him before, and now, i tried a different laptop, and it does say android device, but it still does the same exact thing.

          2. hey david! ive been able to do it on another computer, but now, my phone is stuck booting after installing supersu, what should i do now?

  23. I can’t flash TWRP.
    I’m on Mac with fastboot and adb working.
    My oos 3.1.4 won’t mantain TWRP after flashing it: if I manually reboot into recovery loads TWRP but can’t mount any storage, and rebooting comes back to the official Oneplus recovery…

    1. ian rath (Stormer379)

      mine didnt even open up twrp, it opened the default oneplus bootloader, and it doesnt want to install supersu

      1. ian rath (Stormer379)

        welp, my phone is screwed, as i was unable to root, i went back to stock android, nothing wrong with it, until i reinstall spotify, and find that the phone has no access to its storage, spotify says storage area isnt found. please help.

  24. Hi David, i basically got through all the steps, and completed the installation of thro TWRP screen on the device. The device rebooted but has been on the boot screen for over 10 minutes now. Help!! Kindly advise if I can try manually rebooting the device to system again by pressing the power button or is there another way to solve this? (i am not sure if it is a bootloop). How long does it take after the install? I used the latest SuperSU “UPDATE-SuperSU-v2.79-20161211114519” for the rooting step. I have a OPX 1003 device.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.