[GUIDE] How to Root the OnePlus One


  1. CafeKampuchia

    CafeKampuchia Well-Known Member

    Disclaimer: Rooting does not void the OnePlus One’s warranty, though damaging your hardware (i.e., burning up your CPU by overclocking, hardbricking the device) will (source). You proceed at your own risk! I accept no responsibility for what you do with your phone. Follow the directions closely, and the odds are you will succeed without any trouble. If you are not sure what you are doing, do some more research before you try. If you get confused with terminology, try looking here for answers or Google it. If you get stuck, post a question in the thread—we're here for you trying to make this as easy and painless as possible :)

    Preliminary steps:

    1. Make sure that your phone is always charged above 50%!!!
    Running out of battery in the middle of flashing something could brick your phone. That would void your warranty.

    2. Make sure that your computer can properly communicate with the device:
    We will be issuing commands to the phone from your PC via the USB cable using Android’s SDK tools, in particular ADB and fastboot. If you have not done so already, you must install the following on your Windows computer for this to work:
    1. Java runtime
    2. The Universal Android ADB Driver for Windows.
    3. SDK tools for Android (alternately just ADB & fastboot). Remember where this is installed on your harddrive for later!
    If you run Mac, I can’t help you; I avoid all that narcissistic iStuff like the plague. If you run Linux, you are probably a h4x3r and don’t need my help anyway!

    You can verify the connection between your PC and phone by running the following procedure:
    A. With the phone booted normally, connect it to your computer with the USB cable.
    B. Enable Android debugging by going to Settings > About phone and tapping on “Build number” 7 times.
    C. Go to Settings > Developer options and check “Android debugging”. A dialogue box will appear asking you to authorize your computer’s RSA fingerprint. Click "Always allow..."
    [​IMG]
    D. Open a command prompt in Windows and navigate to the folder where you put SDK tools for Android (ADB & fastboot).
    E. Type the following command:
    Code (Text):
    1. adb devices
    You should get a return like this:
    [​IMG]
    If you cannot get the connection to work:
    1. Check your USB connection, then verify that Android debugging is enabled in settings and that your computer’s RSA fingerprint has been authorized.
    2. Still not working? Open Device Manager in Windows and make sure that you don’t have a yellow exclamation point next to something like “Android Device” or “One.” This would indicate a driver problem that must be resolved. Try re-installing the Universal Android ADB Driver for Windows, and make sure to restart your computer. Once you’ve rebooted, if you still have a yellow triangle, right-click on the device and select “Update Driver Software,” then “Search automatically for updated driver software.”
    3. If you still have a yellow exclamation point, then try forcing the driver to install:
    3. Know how to enter “fastboot mode” on the OnePlus One
    To root the device, you must be competent at booting it into fastboot mode. There are two ways to accomplish this:
    1. Power off the phone. Then simultaneously hold down the volume up & power buttons until it vibrates. When done correctly, you will see the words “Fastboot Mode” on a black screen. If not, you dumb-thumbed it, and the device will boot normally into Android. Power off the device and try again.
    2. With the phone running Android normally and Android debugging enabled (see above), open a command prompt in Windows, navigate to the folder where you installed SDK tools (ADB & fastboot) and type:
    Code (Text):
    1. adb reboot bootloader


    In this guide, there are two rooting options. Please read the descriptions below and choose the option you like by clicking on its link or scrolling down in the thread until you see it.

    1. Root by unlocking the bootloader, then flashing a custom recovery & SuperSU zip
    Benefits
    • Allows flashing custom recoveries and nandroid backups
    • Allows flashing custom kernels and ROMs

    Liabilities
    • Requires a factory reset and loss of all data
    • More complicated for inexperienced rooters
    • Sets a tamper flag, though it can be reset

    2. Root by unlocking the bootloader then flashing a custom recovery & custom ROM
    Benefits
    • If you are considering doing this, I think you know already!

    Liabilities
    • This ^^^. And if not, you need to do your homework first!

    CREDITS:
    • My friend KOLIO here at Android Forums for the OnePlus One invite and the inspiration to write this rooting guide :)
    • Developer Chainfire for the root pixie dust and SuperSU permissions manager app.
    • The various devs that make FREE recoveries, kernels and ROMs for us all to enjoy!

    Advertisement
    :
    Last edited: Jan 8, 2015
    #1
  2. CafeKampuchia

    CafeKampuchia Well-Known Member

    ROOTING METHOD 1:
    Root by unlocking the bootloader, then flashing a custom recovery & SuperSU zip
    1. Backup your phone’s data
    Unlocking the bootloader will involve doing a factory reset resulting in the loss of all accounts, emails, texts, apps and app data, pictures, music, etc. on the device. Move anything you need to keep onto your PC or a cloud service like DropBox.

    2. Unlock the bootloader
    2A.
    Boot the device into fastboot mode. (Simultaneously hold down the volume up & power buttons until it vibrates.) You should see a black screen with the words “Fastboot Mode”.
    2B. Unlock the bootloader using the following commands:
    Code (Text):
    1. fastboot oem unlock
    The device will unlock the bootloader, erase all user data and reboot itself.

    3. Re-enable Android debugging and disable recovery protection
    3A.
    Re-enable Developer options by going to Settings > About phone and tapping on “Build number” 7 times.
    3B. Go to Settings > Developer options. Check “Android debugging” and re-authorize your computer’s RSA fingerprint, then uncheck “Update CM recovery”.

    4. Download SuperSU zip
    4A.
    Head over to Chainfire’s CF-Root download page and download the SuperSU access management tool, probably called something like UPDATE-SuperSU-v2.XX.zip. This zip file will root your device and install the SuperSU access management app in one smooth motion. Much thanks, credit and kudos go out to XDA user Chainfire. Login over at XDA and hit the thanks button for him here or donate to his Paypal account and buy him a Coke. ;)
    4B. Copy UPDATE-SuperSU-v2.XX.zip to your phone’s SD card.

    5. Flash a custom recovery
    5A.
    Choose a custom recovery. There are three good choices out there right now, and you’ll need to read up on them to make your decision. There are no bad choices—it all comes down to personal preference. Download the zip file from the OP of the recovery you choose to your PC.
    TWRP (Team Win Recovery Project)
    CWM (ClockworkMod Recovery)
    CWM Advanced Edition (PhilZ Touch) <— this is what I’m using
    5B. Extract the recovery image from the zip file you downloaded above (ie, openrecovery-twrp-2.7.1.0-bacon.img) to the location where you installed SDK tools (ADB & fastboot). Rename it “recovery.img”.
    5C. Boot the device into fastboot mode and connect it to your computer with the USB cable.
    5D. Open a command prompt in Windows and navigate to the folder where you installed SDK tools (ADB & fastboot). Type the following commands:
    Code (Text):
    1. fastboot flash recovery recovery.img
    2. fastboot boot recovery.img
    You should now see the custom recovery you just flashed, not the stock recovery.

    6. Backup your ROM
    In TWRP press “Backup” and in CWM press or scroll to “Backup and Restore.”

    Don’t be a noob—backup your device!!! If you screw something up, reverting back to stock can cause massive headaches. :( Restoring from a backup in recovery is MUCH easier. ;) You can also restore if you've ruined your ROM causing a softbrick or deleted system apps that you shouldn’t have.

    7. Root the device
    7A.
    The device should still be in recovery from step 6 above. Go back to the main menu and press Install (TWRP) or choose Install Zip (CWM) and find UPDATE-SuperSU-v2.XX.zip on the SD card, then flash it.
    7B. Reboot the phone. It is now rooted!
    7C. Go to the app drawer and open SuperSU. Its icon looks like this:
    [​IMG]
    Update the binary if prompted.
    7D. Download and install Root Checker from the Play Store to verify that you have root access. ;)
    Mikestony, 13onk and KOLIO like this.
    Last edited: Jan 8, 2015
    #2
  3. CafeKampuchia

    CafeKampuchia Well-Known Member

    ROOTING METHOD 2:
    Root by unlocking the bootloader then flashing a custom recovery & custom ROM
    1. Research and download your custom ROM
    1A.
    There are two categories of options for custom ROMs.
    A. Custom AOSP ROMs like CM11 (not CM11S), Paranoid Android, SlimKat and MoKee.

    B. Modified ROMs based on other sources, including modified versions CM11S and ColorOS as well as PAC-man.
    A good repository of custom ROMs and kernels for the OnePlus One may be found here:
    [INDEX][REPO][AIO] ONEPLUS ONE ROM | Kernel | MODs | Recovery - XDA-Developers.com

    Although not rooted, you could also go with OnePlus’s official AOSP ROM based on Kit Kat 4.4.4 for a Nexus-like experience. You will have to root it with SuperSU zip per steps 4 & 7 of rooting method 2 above.
    1B. Download the ROM of your choice and save it to your computer. DO NOT place it on the SD card of your phone yet, as it is destined to be erased in the next step!

    2. Backup your phone’s data
    Unlocking the bootloader will involve doing a factory reset resulting in the loss of all accounts, emails, texts, apps and app data, pictures, music, etc. on the device. Move anything you need to keep onto your PC or a cloud service like DropBox.

    3. Unlock the bootloader
    3A.
    Boot the device into fastboot mode. (Simultaneously hold down the volume up & power buttons until it vibrates.) You should see a black screen with the words “Fastboot Mode”.
    3B. Unlock the bootloader using the following commands:
    Code (Text):
    1. fastboot oem unlock
    The device will unlock the bootloader, erase all user data and reboot itself.

    4. Copy the ROM you downloaded in step 1 above to the SD card of your phone.
    If you downloaded GApps.zip, move that to your SD card at this time as well.

    5. Flash a custom recovery
    5A.
    Choose a custom recovery. There are three good choices out there right now, and you’ll need to read up on them to make your decision. There are no bad choices—it all comes down to personal preference. Download the zip file from the OP of the recovery you choose to your PC.
    TWRP (Team Win Recovery Project)
    CWM (ClockworkMod Recovery)
    CWM Advanced Edition (PhilZ Touch) <— this is what I’m using
    5B. Extract the recovery image from the zip file you downloaded above (ie, openrecovery-twrp-2.7.1.0-bacon.img) to the location where you installed SDK tools (ADB & fastboot). Rename it “recovery.img”.
    5C. Boot the device into fastboot mode.
    5D. Open a command prompt in Windows and navigate to the folder where you installed SDK tools (ADB & fastboot). Type the following commands:
    Code (Text):
    1. fastboot flash recovery recovery.img
    2. fastboot boot recovery.img
    You should now see the custom recovery you just flashed, not the stock recovery.

    6. Backup your ROM
    In TWRP press “Backup” and in CWM press or scroll to “Backup and Restore.”

    Don’t be a noob—backup your device!!! If you screw something up, reverting back to stock can cause massive headaches. :( Restoring from a backup in recovery is MUCH easier. ;)

    7. Flash the custom ROM
    7A. The device should still be in recovery from step 6 above. Go back to your recovery’s main menu and select “Wipe” (TWRP) or “Wipe Data/Factory Reset” (CWM). If you are using PhilZ Touch CWM recovery, then chose “Clean to Install New ROM” after that.
    7B. For TWRP and regular CWM recoveries, you must further wipe cache and dalvik cache.
    7C. Go back to the main menu and press Install (TWRP) or choose Install Zip (CWM) and find the ROM zip file you copied to your SD card, then flash it.
    7D. Do the same with the GApps zip that you copied to your SD card.
    7E. Reboot the phone. It is now rooted! ;)
    Mikestony and 13onk like this.
    Last edited: Jan 8, 2015
    #3
  4. CafeKampuchia

    CafeKampuchia Well-Known Member

    Mikestony and KOLIO like this.
  5. CafeKampuchia

    CafeKampuchia Well-Known Member

    Reserved
  6. CafeKampuchia

    CafeKampuchia Well-Known Member

    Reserved
  7. zipred

    zipred Well-Known Member

    This comment makes your guide my _Absolute Favorite_ of all the guides I've read!

    1) I got a great laugh out of it.

    2) Supremely narcissistic, perfectly describes the prior CEO and the culture he cultivated within the company (trust me I know)

    3) I'm so sick of iThis and iThat, iCould puke.

    Yet I digress and Thank You for the best laugh of my day... :D
    CafeKampuchia likes this.
  8. 13onk

    13onk Well-Known Member

    Great guide. Only thing I noticed was my USB debugging shows up as "android debugging". (CM version 11.0-XNPH25R)
    CafeKampuchia likes this.
  9. CafeKampuchia

    CafeKampuchia Well-Known Member

    Good catch! That section of the guide was a copy/paste from another guide I wrote for another device. I'll update the OP.
  10. eefo

    eefo New Member

    How long does it take to boot into recovery for the first time ?
    Coz mine took about 5 mints and didn't boot into recovery :/
    Did everything right as mentioned :/
    I have installed TWRP.
  11. CafeKampuchia

    CafeKampuchia Well-Known Member

    Booting into recovery should take less than a minute. Are you attempting to boot using "fastboot boot recovery.img" or booting into recovery by pressing volume down and the power button simultaneously?

    If you haven't done so, try the latter. If still no go, try re-flashing TWRP or CWM/PhilZ instead.
    KOLIO likes this.
  12. confed

    confed Well-Known Member

    Thanks for the guide, I ran into some problems because Java was being a pain in the ass. I found this video https://www.youtube.com/watch?v=5O2e_R_TbVg linked in a thread on XDA. I got there from your link in Post 4. Now I am about to start flashing as there is already good support for this phone. Thanks for your help.
    KOLIO and CafeKampuchia like this.
  13. ogriff

    ogriff New Member

    After flashing and updating to 30O update my bootloader is locked, it has been suggested that this method will now brick my phone.
    Any ideas if this will work or if it will brick?
    Thanks


    Trying to fastboot a recovery image I get this....

    C:\1>fastboot boot recovery.img
    downloading 'boot.img'...
    OKAY [ 0.316s]
    booting...
    FAILED (remote: Device not unlocked cannot boot)
    finished. total time: 0.318s

    C:\1>
  14. CafeKampuchia

    CafeKampuchia Well-Known Member

    It won't brick the device because it's not possible. This method exploited a security hole that was patched with 30O.
    KOLIO likes this.
  15. ogriff

    ogriff New Member

    No problems. It worked perfectly.
  16. CafeKampuchia

    CafeKampuchia Well-Known Member

    Are you saying that you're on 30O and rooted your phone with method #1 and your bootloader remains locked?
  17. ogriff

    ogriff New Member

    CafeKampuchia likes this.
  18. muhdiboy

    muhdiboy New Member

    Hi,

    i made a backup in twrp after i installed supersu. does it bring problems with it or is it ok? im not sure
  19. CafeKampuchia

    CafeKampuchia Well-Known Member

    If you can use rooted apps, then no problem.
  20. KOLIO

    KOLIO NOTEoriously XPOSED Guide

    Just wanted to give a well-deserved SHOUT-OUT :thumbup: to CafeKampuchia for the tutorials in this thread.

    I recently had got my 1+1 back from being loaned-out & had to re-root/recover,as I had restored the phone to out-of-box condition before loaning it out.

    When I got it back,I attempted to use the same toolkit (not posted here) I had used pre-33O update & it didn't work.

    So,I took a look at Method #2 listed for installing recovery/root & voila,success:

    http://androidforums.com/6655548-post3.html

    The tutorial is well thought-out,enough so that a quasi-noob as myself could even catch on to using shell commands/using fastboot/etc....

    Again,a big THX to CafeKampuchia for an excellent tutorial.

    I would also be remiss I if I didn't give a big THX to EarlyMon for getting me pointed in the right direction,w/countless hrs of help on the HTC ONE M8. ;) :thumbup:
  21. CafeKampuchia

    CafeKampuchia Well-Known Member

    Just trying to pass along what I've learned from many other helpful friends :)
    funkylogik likes this.
  22. KOLIO

    KOLIO NOTEoriously XPOSED Guide

    Should be able to hit the THANKS button more than once,used this guide once again to re-root & install custom recovery.

    THX! :beer:
  23. fdbryant3

    fdbryant3 Well-Known Member

    I appreciate the guide being here - just as soon as I come up with reason for me to root my phone I'll be using it. It's weird I had my S3 rooted but since getting my OnePlus One I can't remember what I used that required root.
    CafeKampuchia likes this.
  24. CafeKampuchia

    CafeKampuchia Well-Known Member

    I'd recommend that you root it sooner than later, since doing so will require a factory reset and loss of all data. [​IMG]
  25. NotNoV8

    NotNoV8 New Member

Loading...

Share This Page