Flash CM14.1 Android 7.0 Nougat on your OnePlus One

The OnePlus One has been one of the most developer-friendly devices ever, and there are still new flavours of ROMs being pushed out every week. The CyanogenMod team took it upon themselves to announce the Nightly builds of the OnePlus One along with various other devices officially.

Prerequisites

  • Minimal ADB & Fastboot
  • A Windows PC
  • USB Cable (double-check for cable faults)
  • At least 60% battery remaining on your device

STEP 1: Unlocking the bootloader

Note: Skip this step if you’ve already unlocked your device

On your Android One device, go to Settings->Developer Options and make sure you’ve enabled USB Debugging

Note: If you do not see the Developer Options menu, it can unlocked by going to About Phone->tapping build number a few times.

Now connect the phone to your PC and open Minimal ADB & Fastboot. To check if your device has been successfully connected, type:

adb devices

This should show the Android devices currently connected to your PC. Make sure you accept the confirmation on the phone too. It is advised to disconnect any other Android devices.

Once you’ve successfully connected the device, we need to boot to the bootloader to proceed. To do this, shut down the phone completely. Once the phone is turned off, press and hold the Volume Up + Power button together for about 5 seconds. Release the buttons together and you should now be looking at the bootloader.

Alternative method: On the Minimal ADB, simply type:

adb reboot bootloader

This should immediately switch the phone off and reboot to bootloader.

Once you’ve successfully connected your device, we can move on to unlocking the bootloader. Unlocking the bootloader allows us to write into different storage partitions of our phones which would otherwise be blocked.

First, let’s make sure the phone is successfully connected to the PC. To check this, enter:

fastboot devices

Once confirmed, we can unlock the bootloader. To unlock the bootloader, simply enter the following:

fastboot oem unlock

Warning: This will FACTORY RESET the device. All data will be lost. Make sure you take a backup before entering this.

STEP 2: Flashing TWRP

Note: Skip this step if you have already installed TWRP on your device

We now need to download the TWRP file for proceeding. You can download the file here.

Once downloaded, rename the file to “twrp.img” (no quotes) and place on the folder where the Minimal ADB is installed. For most people, it is usually C:\Program Files (x86)\Minimal ADB and Fastboot.

Once the file is in the folder, we can now go back to Minimal ADB and type in the command:

fastboot flash recovery twrp.img

This will replace the stock recovery to TWRP.

STEP 3: Flashing CM14.1

Download the latest CM14.1 zip package from here and copy the zip file to the internal storage of your device. If not already in recovery mode, boot to recovery mode by powering down the device and holding the Volume Down and Power button. In the TWRP menu, select Wipe, then Factory Reset. Then, select Install and choose the CM14.1 zip package. This will prompt you to “Swipe to Flash”. Once the installation has finished you can Reboot to System. Note that the first boot might take a while.

Optional: You can also choose to flash GApps to obtain Google Services after flashing CM14.1. You can follow the tutorial to flash GApps here.

We have now installed CM14.1 Nougat on our OnePlus One!