If you are on Windows and you're having problems with ADB and USB drivers, you can follow my guide using an Ubuntu Linux virtual machine on VirtualBox. Follow this complementary walkthrough by@Rapante to know how to set everything up properly: [GUIDE] Set-up VirtualBox with Ubuntu on Windows to unlock the bootloader of the OnePlus One.
-----------------------------------------------------------------------------------------------------------------
Disclaimer
I am not responsible of any damage or loss of data that may occur before, during and after the whole process. By following this guide, your warranty will not be voided.
-----------------------------------------------------------------------------------------------------------------
Hello everyone,
I wrote this walkthrough to show you how to unlock the bootloader, install TWRP custom recovery and gain root privileges on your OnePlus One by using Ubuntu Linux operating system.
Some of the instructions in this guide are not mandatory to accomplish the task but I decided to include them anyway just for informational purposes because this guide is intended for novice users.
This is my personal method and I will provide you with detailed information to avoid mistakes so read carefully and have fun.
Requisites:
- Backup your data before proceeding!
- OnePlus One Global Version with factory settings (locked bootloader, stock recovery/CyanogenMod 11S);
- Ubuntu Linux (I used Xubuntu 13.10 64bit, tag me in a comment and let me know if the walkthrough works on your version too);
- SuperSU .zip file (latest version available here);
- TWRP Recovery .img file (latest version available here. I used TWRP 2.7.1.0);
Let's begin.
Chapter 1: Developer options, Android debugging & Android Tools
- Phase 1: Developer options and Android debugging.
Go to Settings > About phone and tap 7 times on Build number to enable Developer options. You will see a little pop-up that says "You have enabled development settings!".
Go back to Settings menu and scroll down to Developer options. Tap on it and then enable Android debugging. You will be asked to allow USB Debugging, confirm by tapping on OK.
- Phase 2: Installing Android tools (ADB & Fastboot) on Ubuntu Linux.
The android-tools package has been added to Ubuntu "Universe" repository starting from version 12.10 Quantal Quetzal. If you are using an older version then you may need to follow this guide to install android-tools via PPA.
Open Software & Updates and make sure that Universe repository is enabled. If not, enable it and insert the password if requested. Click on Close, then on Reload to update the package list. Wait until the update process is over.
Open Terminal and run this command to install ADB and Fastboot tools:
sudo apt-get install android-tools-adb android-tools-fastboot
Chapter 2: Unlock the bootloader.
In this chapter we will focus on the Linux Terminal rather than the phone. Don't be scared, it will be easy enough and you will have the opportunity to learn something new.
Now you can connect the OnePlus One to your computer.
Once the OnePlus One has been connected to your pc, open the Terminal and run this command:
adb devices
Check the phone. Your computer's RSA fingerprint will be shown and you will be asked to allow USB debugging. Confirm by tapping on OK.

Check the Terminal. It should look like this:

If you see offline instead of device, run the adb devices command once again.
Put your OnePlus One in Fastboot Mode by running this command:
adb reboot-bootloader

Commands in Fastboot Mode need Administrator privileges on your pc, that's why we will use sudo.
Run this command to make sure that Fastboot Mode is working correctly:
sudo fastboot devices
Terminal should look like this:

Next command will unlock the bootloader:
sudo fastboot oem unlock
The phone will reboot and it will restore factory settings. All personal data and settings will be lost. Once the reboot is complete, copy the SuperSU .zip file to your phone and then put the device back inFastboot Mode.
Chapter 3: Install TWRP Recovery.
Put the TWRP Recovery .img file on Desktop and rename it to twrp.img. On Terminal, change the current working directory by running this command:
cd Desktop
Install TWRP Recovery by running this command:
sudo fastboot flash recovery twrp.img
Warning: OTA updates can overwrite the recovery partition and restore the stock CyanogenMod Simple Recovery. To avoid this, go to Developer options on the OnePlus One and make sure thatUpdate CM recovery option is disabled.
Now it's time to enter Recovery Mode. To do that, hold down Power button and Volume down.

Chapter 4: Install SuperSU.
Here we are, it's time to install SuperSU.
In TWRP Recovery tap on Install, scroll down to the SuperSU .zip archive and select it. Perform aswipe to confirm the installation and lastly reboot the OnePlus One.
Once the reboot is complete, open SuperSU and make sure that "Respect CM root settings" option is not checked. If it is, uncheck it. This is because CyanogenMod 11S does not include root controls like CyanogenMod 11 does. That option, if enabled, may cause problems with apps that require root permissions.

Congratulations, you made it!
Enjoy the OnePlus One and leave a comment for questions and suggestions. Ciao!
Feel free to translate this guide in your language and share it on regional forums.
Spread the knowledge 
Italian translation here.
This guide also works on the following Ubuntu releases:
No comments:
Post a Comment