How to Install CM12 on the OnePlus One- Android Lollipop/5.0

This is a basic guide, mainly for semi-beginners, on how to install Cyanogenmod12 on the OnePlus One. Do this at your own risk, I am not liable for anything that happens to your device. There are parts of this guide where there is a possibility that you may brick your device. This guide is for windows.
Downloads -
- Android SDK Slim: Link
- Universal ADB Driver: Link
or the alternate method Samsung USB Driver: Link
- 15 Seconds ADB Installer: Link
- Team Win Recovery: Link
- Update: Link
- Cyanogenmod12: Link
- Google Apps: Link

Part 1: ADB & Driver Installation
1. Download the slim Android SDK here.

2. Extract the zip and place the android-sdk-windows folder on your desktop.

3. Open a command prompt window and enter the following commands:

Code:

cd Desktop/android-sdk-windows/platform-tools
adb version​

If it displays "Android Debug Bridge version x.x.xx" it is working. If it is gives an error saying that adb is not a recognized command, repeat the steps above until successful. Close the command prompt window when you are done.

4. Download and install the ADB Driver here or use the quick 15 second installer from here.
-or-
1. Install the latest Samsung drivers here.
2. Restart the computer.
3. Go to Device Manager, find the Android device, and select "Update Driver Software".
4. Select "Browse my computer for driver software".
5. Select "Let me pick from a list of device drivers on my computer".
6. Select "ADB Interface" from the list
7. Select "SAMSUNG Android ADB Interface".​

Part 2: Unlocking the Bootloader & Installing a Recovery
**Unlocking the bootloader will completely wipe all data from the device. This includes apps, settings and even the contents of the internal sdcard (pictures, music, etc.). Copy all important files off the phone onto a PC.**

1. Turn the phone off. Then boot it into fastboot mode by holding volume up + power. The phone will display "fastboot" text indicating that it has successfully entered fastboot mode.

2. Plug the phone into your PC, then open a command prompt window and type the following code.

**The commands will be different if you downloaded the full Android SDK over the slim version.**

Code:

cd Desktop/android-sdk-windows/platform-tools
fastboot devices​

This command will list the connected devices. If your phones serial number shows up you are good to go and may continue on to step 3. If the phone is NOT listed this indicates that your drivers are not installed correctly, please repeat step 4 of part 1 above.

3. If the phone has been recognized by the command above, proceed to unlocking the bootloader with the following commands.

**This is the step that will wipe EVERYTHING off the phone.**

Code:

fastboot oem unlock​

4. After the command in the step above has finished excuting, run the following

Code:

fastboot reboot​

Close the command prompt window. The phone will reboot. Wait until the phone has fully booted up into android.

5. Adjust the following settings on your phone once it has booted up.

USB Debugging - On your phone go to Settings > About phone > Tap on Build Number 7 times. This will enable Developer Options. Now go back to Settings > Developer Options > Enable USB Debugging​

Disable CM Recovery Protection - On your phone go to Settings > Developer Options. Then disable the "Update recovery with system updates" option.
6. Turn the phone off. Then boot it into fastboot mode by holding volume up + power.

7. Download the latest TWRP build from here.

**Do not use v2.8.4.0 - It has problems with flashing.**

Rename the recovery file that you downloaded to recovery.img. This file should be placed in the platform-tools folder inside of the android-sdk-windows folder and then platform-tools folder on your desktop.

8. Open a new command prompt and run the following commands.

Code:

cd Desktop/android-sdk-windows/platform-tools
fastboot flash recovery recovery.img
Once the flash has completed type the following command to reboot the phone:

Code:

fastboot reboot​

Close the command prompt window. After the phone has booted back up, turn it off. Now to enter your newly installed custom recovery, hold volume down + power. The phone should boot into recovery mode.



Part 3: Firmware Update & Cyanogenmod Install & Gapps Install
1. Once the phone is in on recovery mode and on the the main screen of TWRP hit "Mount". Then select System, Data, and Cache. Plug in your phone to you PC and hit "Enable MTP". Your computer should recognize the OnePlus One and show its internal storage.

2. Download the Update here, the latest Cyanogenmod12 build here, and the Gapps package you would like here.

3. In the OnePlus One's internal storage make a new folder called ROMs and move the Update package, the Cyanogenmod build, and the Gapps package you downloaded into this folder.

**The following steps are not required but recommended in case you screw up this process or want to return to OEM software, if you do not want this you can continue to step 6.**

4. Head back to main screen of TWRP and hit "Backup". Make sure Boot, System, Data, and Cache are selected, then swipe the "Swipe to Back Up".

5. The backup is still stored on your phone so you do not need to move it over to your PC, but it is recommended just in case something happens to your phone's storage, the following steps explain where to find the backup and move it over to your PC. Now head back the file explorer on your PC. On the internal storage of the OnePlus One you will find a folder called "TWRP", open it and then open the "BACKUPS" folder. In the "BACKUPS" folder select your device, open it and then copy the backup you just made to your PC. This is a backup of CM11S.

**If you do happen to screw up this process or want to switch back down to CM11S restore this backup with the "Restore" button in TWRP and follow the steps.**

**A detailed guide on how to restore your phone to OEM software without having a backup is soon to come, when done I will post the link here.**

6. On the main screen of TWRP hit the "Wipe" button. Once the screen changes look for and then select the "Advanced Wipe" button. Select everything EXCEPT "Internal Storage" and "USB-OTG". Wipe the device.

7. Once you have wiped the device head back over the main screen of TWRP and hit the "Install" button. Find the folder where you placed the Update package, the Cyanogenmod build, and the Gapps package - I had you move them into a folder called ROMs. Open this folder.

8. Select the Update package first: bacon_firmware_update_2015_01_16.zip. When the screen changes hit the button called "Add More Zips" and select the Cyanogenmod Build that you downloaded, it is usually named something like: cm-12-20..........-bacon.zip. Once the screen changes again select the "Add More Zips" button and select the Gapps package that you downloaded: pa_gapps-.....................-signed.zip.

9. Flash the zips and reboot the phone. You should be updated to Cyanogenmod12.

**You will see an option to install SuperUser when you are about to reboot the phone, if you want to root allow it to be installed. If you do not download the latest Superuser build from here and flash using a recovery. Generally CM12 is already rooted but just in case.**

10. Welcome to Android L!

**If I missed anything in the guide let me know in the comments and post any problems you guys run into, I'll see if I can help. (Added detail to the guide soon to come)**
Previous
Next Post »

1 comments:

Click here for comments
Unknown
admin
22 October 2015 at 06:36 ×

thanks

Congrats bro Unknown you got PERTAMAX...! hehehehe...
Reply
avatar