Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save link-webcreations/7ac1bdb50e6ce52a6bcaa100d438a0ef to your computer and use it in GitHub Desktop.

Select an option

Save link-webcreations/7ac1bdb50e6ce52a6bcaa100d438a0ef to your computer and use it in GitHub Desktop.
OnePlus One (bacon) - HOWTO install custom ROM

Return to 100% Stock

Dowload the latest fastboot image

https://cyngn.com/support (i.e cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot-76d803f730.zip)

Unlock your phone

  • Unplug your phone from your PC
  • Power off your phone then boot into fastboot mode (volume up + power).
  • Connect your phone to your PC via usb cable.
  • Unlock you rphone
$ {
fastboot oem unlock
fastboot reboot-bootloader
}

Flash the fastboot image

$ {
fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot flash oppostanvbk static_nvbk.bin
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash userdata userdata_64G.img
fastboot reboot-bootloader
}

Change ROM for your OPO

Install a custom Recovery

$ mv TWRP_*-TugaPower.img recovery.img
$ {
fastboot oem unlock
fastboot flash recovery recovery.img
fastboot format cache
fastboot reboot-bootloader
}

Download the files

Install a ROM with the Recovery

  • Unplug your phone from your PC
  • Power off your phone then boot into Recovery mode (volume down + power).
  • Wipe system, cache, dalvik and data.
  • Reboot to Recovery
  • For system, cache and data, choose one by one Repair or Change File System, Change File System and pick F2FS.
  • Reboot to Recovery
  • Copy to the Internal Storage the ROM and the Gapps packags.
  • Install ROM
  • Reboot to recovery
  • Flash Gapps
  • Reboot to recovery
  • Flash SuperSU if needed
  • Reboot - 1st boot takes around 5 minutes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment