Skip to main content

Call to a function with sending data from another View Controller in Swift Xcode iOS Application

  Download project zip Or access each file in the project

How to Unlock the Bootloader, Install a Custom Recovery, & Root the OnePlus One

Due to its constant delays and lack of public invites, the OnePlus One is the equivalent of a unicorn in the Android community. I was lucky enough to win an invite in the OnePlus Storm of Invites promotion and have loved every minute with my new Nexus Killer since receiving it.

While not everybody has had the chance to get their hands on this phone yet, the lucky few of you that did are probably eager to start installing mods, most of which require root permission. The OnePlus One has many noteworthy features, but the most relevant to power users is how easy it is to root. So, if you have the fabled OnePlus flagship and are itching to get some Xposed goodness running on it, follow along.

Before We Get Started

There are a couple things you are going to need to get set up on your OnePlus One before being able to root it, besides having ADB installed on your computer.

Enable Developer options by tapping Build Number repeatedly seven times (which is located in Settings -> About Phone), then disable Update CM recovery and enable Android debugging.

You need to disable update CM recovery because it impedes the installation of TWRP (the recovery I'll be flashing in this guide), and that is what we will be using to give the OnePlus One root permission.

Step 1: Unlock Your Bootloader

Just like any other Android, unlocking your bootloader will cause you to lose all of the data from your phone, so be sure to back up any necessary information! Now plug in your device and open up a cmd/terminal window.

Enter your device into fastboot mode to input the unlock command:

adb reboot bootloaderfastboot oem unlock

After entering that last command, the unlock process will begin automatically, so let it do its thing and wait for it to reboot. Once rebooted, you will need to go through the same setup process you did when you first got the OnePlus One, and after that, enable Android Debugging once again.

Step 2: Flash a Custom Recovery

Flashing a custom recovery will allow you to write directly to your device's system partion, and that is what we will need to grant root access. You have a few options when it comes to flashing a custom recovery, but I recommend using TWRP as it is the most stable—download the OnePlus One version to start:

OnePlus One TWRP

With the file downloaded to you computer, you can now flash it to your device, but you will first need to enter fastboot mode again.

fastboot reboot bootloaderfastboot flash recovery Desktop/TWRP.img

You will need to change the "Desktop/TWRP.img" to the location you downloaded TWPR to. Once that finishes flashing, reboot you system.

fastboot reboot

Step 3: Copy SuperSU to Your Device

In this guide, I will be using Chainfire's SuperSU as my root app, so download the .zip file below and place it on your device.

SuperSU 2.01

You can also use adb to push the file over:

adb push Desktop/SuperSu.zip /sdcard/

Again, change "Desktop/SuperSu.zip" to the location of your SuperSu.zip. Now that the .zip on your device, you will need to flash it from TWRP, so boot into recovery mode.

adb reboot recovery

Step 4: Flash SuperSu in TWRP

Don't worry if TWRP takes a while to boot, that is normal. After it's up and running, tap Install, then Swipe To Confirm after selecting the .zip you pushed over earlier. Reboot after the flash completes.

You are now the proud owner of a fully rooted OnePlus One with an unlocked bootloader, so go out and explore what others can only dream to get their hands on! Xposed and most other tweaks that are compatible with Nexus 5 are also compatible with the OnePlus One, but stay tuned for more updates on the OPO.

Popular posts from this blog

Google Search Bar Destroyer

Straightforward module to remove the unsightly Google Search Bar from the homescreen. The hook point is very generic, so update are rarely needed. Thanks to theknut/GEL's Xposed module for early hints/hook points. Author(s):  jeboo Support/Discussion URL:  https://forum.xda-developers.com/axon-7/themes/mod-hide-google-search-bar-t3547447 Source code URL:  https://github.com/jeboo/googlesearchbar_destroyer Package:  com.none.gsb_destroyer Version name:  1.1 Release type:  Stable  (low risk of bugs) Download:  com.none.gsb_destroyer_v2_329831.apk  (1.35 MB) Number of downloads:  40 in total · 40 in the last 24 hours MD5 checksum:  329831872cfeb03c62cc546d03bbab38 Uploaded on:  Monday, January 30, 2017 - 03:59 Changes:  Updated for Google code changes (April '16).

Play Store Fixes

If you have set a custom DPI, Play Store stops showing some of your apps because Google thinks they are incompatible with your phone. This module tries to avoid that by making Play Store think it had a "normal" DPI and transmitting the same to Google's servers. Note that it will NOT allow you to download apps that are not offered in your country, or restricted by anything but your custom DPI. After installing this modules, you might want to check the settings. You can access them from the "Modules" tab in the Xposed Installer. Just click on the module. From here, you can: - Choose which DPI to send (default: 240) - Unlock the debug menu. Useful to quickly empty the cache to force a recheck for updates, but can also do  other things . Afterwards, you need to reboot. If you still don't see all apps, you can try one or more of the following steps: - Just wait a few hours or days - wherever something is cached, it should be refreshed from time to time -