85
[GUIDE] ONYX: How to Unlock Bootloader, Install Custom Recovery, Root, Take EFS Backup & More !!

  1. Funk Wizard KitKat Moderator Nov 7, 2015

    Funk Wizard, Nov 7, 2015 :
    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.

    Warning: Rooting does not void the OnePlus X’s warranty, though damaging your hardware (i.e., burning up your CPU/Motherboard by overclocking, hardbricking the device) will. 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.

    Lets begin :D


    Index:

    1. Drivers Installation (Oneplus X, Fastboot & ADB)
    2. Unlock Your Oneplus X Bootloader
    3. Install & Boot into Custom Recovery (TWRP) on your OnePlus X
    4. Make A Nandroid Backup With TWRP Recovery
    5. Root Your Stock Rom
    6. Backup EFS and Other Partitions
    7. Install A ROM with TWRP Recovery
    8. Install A Custom Kernel With TWRP Recovery


    1. Drivers Installation:

    In order to Root or Install Custom Recovery on your Oneplus X, you need to have the right set of Drivers to help your computer recognize your device. I used Windows 7 for this and it worked fine so should work for other windows as well.

    Download OnePlus USB Drivers and install.

    Go through the setup, and when done, restart your PC. Connect your OnePlus X to your windows and is shall recognize it :D

    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:

    Setup ADB & Fastboot in 15 Seconds

    Download 15 seconds ADB Installer (Disable your Anti-Virus on the System)


    Filename: adb-setup-1.3.exe

    1. Download theadb-setup-1.3.exefile from the download link above.

    2. Double-click/Run theadb-setup-1.3.exefile.

    3. You will see a command prompt window with blue background. Say YES to all the prompts on this screen.
    └ To say YES, just type Y and hit enter.

    upload_2015-11-7_15-45-23.png

    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 OPX Bootloader:

    Backup important files stored on your OnePlus X before proceeding with the steps below, as unlocking the OnePlus X Bootloader will completely wipe/delete all files on the device.

    After the installation of drivers (OnePlus X, Fastboot & ADB drivers) follow the below to proceed with Unlocking the Bootloader of your Oneplus X

    Enable USB Debugging & Activate OEM Unlock:

    * 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.

    Connect your OnePlus X to windows 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 so don’t bother if you dont)

    Boot your OnePlus X 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 X — 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.

    upload_2015-11-7_15-50-43.png

    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 windows via usb cable.

    Confirm whether fastboot is working. With OnePlus X connected to PC, run the following command in command window.

    Code:

    fastboot devices

    It should return your device serial number, if not you need to make sure your drivers are installed correctly.

    upload_2015-11-7_15-51-41.png

    Once you've confirmed your fastboot connection to unlock the bootloader use

    Code:

    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.

    upload_2015-11-7_15-52-18.png

    You’ll see a new screen on your device. Choose Yes and 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.

    Code:

    fastboot oem device-info


    It should have a couple of lines there, both with the flag set to true.

    upload_2015-11-7_15-53-8.png

    PS: Some users have reported the process to work even on false device tampered status, so ignore & continue if u are one of them.

    3. Install a Custom Recovery (TWRP) On your OPX

    Modified Custom TWRP Recommend Download

    PS: Don’t try this on any other device whatsoever except the X.

    >Enable USB debugging from developer options once again.

    >Download the Custom TWRP recovery file from above.

    >On PC, rename the TWRP file to recovery.img

    >Boot your OnePlus X into bootloader mode.

    >Connect your OnePlus X — in bootloader mode — to PC. Let the driver install.

    Open a command window on your PC in the folder where you have the recovery.img file.

    You will see a command window open up, with location directed to folder where you have the recovery.img file.


    Let’s confirm whether fastboot is working. With OnePlus X 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.

    fastboot devices

    > Flash TWRP recoveryon your OnePlus X by running the following command.

    fastboot flash recovery recovery.img

    > Boot TWRP recovery on your OnePlus X now by entering the following:

    fastboot boot recovery.img

    Or you can manually boot in recovery 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. Make a Nandroid Backup With TWRP Recovery


    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.

    Please make this backup before you root, so that you possess unrooted system backup at all times which would come handy at the time of OTA updates.

    5. How To Root Your Stock Rom:

    Download: SuperSU on your device.

    Reboot to recovery

    Tap on Install > Browse and Select SuperSU > Swipe to Confirm the Flash

    Once Done > Wipe Dalvik & Cache > Reboot System To Restart

    To Confirm the root status use a root checker app from play.

    Now you possess an Unlocked OPX with a Custom Recovery and Root Privileges ;)

    Cheers,


    Funk Wizard :D
     
    Last edited: Nov 18, 2016

    #1
  2. Funk Wizard KitKat Moderator Nov 7, 2015

    Funk Wizard, Nov 7, 2015 :
    Continue...

    6. How to Backup EFS & Other Partitions

    * Download Partitions Backup And Restore App from Here

    * Open the app and grant it root access.

    * Click on the Settings icon above and select preference to .img

    * Select the partitions marked in yellow and backup them by clicking on the download like button at the bottom right.

    * Go to the storage and search for the Partitions Backup folder there you will three .img files (modem,modemst1,modemst2) . Save them to your cloud and as many places as you want as they are very important files.

    This way you can back up all other partitions too. (I recommend backing up all those that are not found in a factory image.

    7. Install A ROM with TWRP Recovery

    Installing a ROM is a pretty straight forward and easy process. Before you install anything you should make a Nandroid backup (instructions above).

    *Perform a full wipe

    *Select the wipe option from the TWRP home screen.

    *Select advanced wipe

    *Check the Dalvik, System, Data, Cache Options.

    *Swipe to Wipe.

    *Install the ROM.

    *Select the install option from the TWRP home screen.

    *Navigate to where you have the ROM zip stored on your sd card and select it.

    *Swipe to install.

    *Install compatible Gapps package after installing the ROM if not included in ROM package.

    *Wipe the cache/dalvik, hit the back button, and hit the reboot system button.

    8. Install A Custom Kernel With TWRP Recovery



    A custom kernel can open up a new level of control over your device, such as overclocking/underclocking, undervolting, changing governors, changing I/O schedulers, adjusting color calibrations, adjusting sound calibrations, and many other options.

    *Download a kernel that is compatible with your current ROM.

    *Enter TWRP recovery.

    *Select the install option from the TWRP home screen.

    *Navigate to the kernel and select it.

    *Swipe to install.

    *Wipe the cache/dalvik, hit the back button, and hit the reboot system button.

    Once your phone has booted up you can use a kernel tuning app to change governors, I/O scheduler, clock speed, and other options. Some of the popular kernel apps are Trickster Mod, No Frills, Kernel Tuner, Kernel Auditor, and many more.


    * As on now no custom kernels available for the X, but I am sure soon we would get the likes of Boeffla, AK & other developers. I would test and share my experience once these are out.

    Many thanks for your time & Enjoy the Mods,

    Funk Wizard :D

     

    #2
    AntoineKryus, J-Pan, Fstop and 37 others like this.
  3. Funk Wizard KitKat Moderator Nov 7, 2015

    Last edited: Jan 3, 2016

    #3
  4. karpersmurf Jelly Bean Nov 7, 2015


    #4
    Ceasedd, guime1998 and Funk Wizard like this.
  5. aaron.hossain75 KitKat Nov 7, 2015


    #5
    Funk Wizard likes this.
  6. JayminVyas Ice Cream Sandwich Nov 7, 2015


    #6
    Funk Wizard likes this.
  7. baku2313 Ice Cream Sandwich Nov 7, 2015


    #7
    Funk Wizard likes this.
  8. guime1998 Cupcake Nov 7, 2015


    #8
    Funk Wizard likes this.
  9. Savya16 Cupcake Nov 7, 2015

    Savya16, Nov 7, 2015 :
    Is there an english version of TWRP? im not able to understand a single word in the one you sent :/
     

    #9
    PoloB49 likes this.
  10. Funk Wizard KitKat Moderator Nov 7, 2015

    Funk Wizard, Nov 7, 2015 :
    Try this one
     
    Last edited: Nov 8, 2015

    #10
    Philippe75 likes this.
  11. danny1219 Donut Nov 7, 2015


    #11
  12. Savya16 Cupcake Nov 7, 2015

    Savya16, Nov 7, 2015 :
    Its still in mandarin or something. What do i do? Is this got something to do with the phone? or the recovery image itself?
     
    Last edited by a moderator: Nov 8, 2015

    #12
  13. Funk Wizard KitKat Moderator Nov 7, 2015

    Funk Wizard, Nov 7, 2015 :
    i cant test it right now as my device is in transit, i will look if i can find another image.
     

    #13
    JayminVyas likes this.
  14. Savya16 Cupcake Nov 7, 2015

    Savya16, Nov 7, 2015 :
    Yeah no worries! As long as i can get an english one eventually lol!

    Thankyou for your help and thanks again for the guide! Awesome work.
     

    #14
    JayminVyas and Funk Wizard like this.
  15. ukanth Eclair Nov 7, 2015

    ukanth, Nov 7, 2015 :
    Confimed ! Working fine with recovery provided and SuperSU BETA 2.49
     

    #15
    Funk Wizard likes this.
  16. PoloB49 Gingerbread Nov 7, 2015

    PoloB49, Nov 7, 2015 :
    The recovery is chinese, i can't use it... How to make it english please?
    Or at least tell me where should i go to wipe cache and flash super su :D
     
    Last edited: Nov 7, 2015

    #16
  17. Funk Wizard KitKat Moderator Nov 7, 2015

    Funk Wizard, Nov 7, 2015 :
    Thanks, could you confirm if you were able to change the recovery language to English or using the Chinese one.

    I am still trying to find one..
     

    #17
  18. ukanth Eclair Nov 7, 2015

    ukanth, Nov 7, 2015 :
    Still Chinese. As I played a lot with TWRP I was able to do minimum things. Do you have a stock recovery as well ?
     

    #18
  19. Funk Wizard KitKat Moderator Nov 7, 2015

    Funk Wizard, Nov 7, 2015 :
    No not yet but i have the stock full ROM which can be flashed to get back to stock, or u can always do a factory reset.

    Refer to this image twrp options remain the same

    [​IMG]
     

    #19
  20. ukanth Eclair Nov 7, 2015

    ukanth, Nov 7, 2015 :
    does it reset the recovery as well ?

     

    #20