[EOL][OP3][ROM+KERNEL] Unofficial CyanogenMod 13.0 with custom kernel [Apr 30, 2017]

Search This thread

Sultanxda

Recognized Developer
Code:
/*
 * Your warranty is... still valid?
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 *
 */

If you are using a OnePlus 3T, please go to this thread: http://xdaforums.com/oneplus-3t/development/rom-kernel-unofficial-cyanogenmod-13-0-t3517301

This is a unified CyanogenMod 13.0 ROM that works on both the OnePlus 3 and OnePlus 3T. It is based off of the stable CyanogenMod branch instead of the nightly branch, with the main goal being stability with an overall good user experience. This ROM comes with a highly-customized kernel, as well as some other very custom modifications.

Custom kernels are not compatible with this ROM. I will NOT provide support if you install a custom kernel.

Changelogs for each update can be found in the 2nd post of this thread.

ROM features:
  • Based off latest CyanogenMod 13.0 stable (ZNH5Y) sources (root access is NOT included)
  • OTA updates via built-in CMUpdater
  • Fast fingerprint unlock
  • Pocket mode for the fingerprint sensor (this is always enabled)
  • Improved GPS speed and accuracy
  • Custom camera app featuring:
    -Photo quality comparable to OxygenOS
    -Anti-shake mode (increases the shutter speed to reduce motion blur)
    -Manual shutter speed control (1/5000th of a second up to 30 seconds)
    -Manual ISO control
    -EIS when recording video at resolutions lower than 4k UHD
    -Video HDR mode
    -Antibanding control
    -Exposure control
    -Denoise control
    -Face detection
    -HDR
    -Many other manual controls
  • Many other misc. performance and stability improvements under the hood

Kernel features:
  • Rebuilt from the ground up using the latest Snapdragon 820 CAF base from Qualcomm (LA.HB.1.3.2)
  • Removed lots of excessive bloat (improves security and performance)
  • Improved stability (several bugs not listed here have been fixed)
  • F2FS support
  • DASH charge
  • Passes SafetyNet bootloader unlock check
  • Dynamic CPU input boost driver I wrote myself (makes the phone feel smooth without destroying battery life)
  • Reduced display power consumption
  • Touchscreen gestures are automatically disabled when the proximity sensor is covered
  • Improved touchscreen processing latency
  • Improved audio jack detection (no more weird buzzing noise and headphones are always detected on the first try)
  • CPU underclocked by default (big cluster: 1824MHz LITTLE cluster: 1478MHz) (you can disable this; read the FAQ for more info)
  • Custom thermal control driver I wrote myself (features 9 thermal throttle steps; keeps the phone cool)
  • Westwood TCP congestion algorithm (enabled by default)
  • No placebo patches, features, or compiler "optimizations"
  • Many other misc. improvements not listed here

Source code:
Kernel (cm-13.0-sultan branch): https://github.com/sultanxda/android_kernel_oneplus_msm8996
Local manifest (contains the rest of the sources): https://github.com/sultanxda/android/blob/master/oneplus3/cm-13.0-stable/local_manifest.xml

Credits:
  • CyanogenMod and its contributors
  • CAF (aka Qualcomm)
  • myfluxi (awesome friend with lots of amazing contributions)
  • Open GApps
  • glassfish777 for testing and helping me pass AP physics in high school
    The people who first brought CM13.0 to the OnePlus 3:
  • Grarak
  • dianlujitao
  • Steve Kondik
  • If your name should be here and it isn't, then make me use an iPhone 4s running iOS 9

Installation instructions (for first-time installation):
First, perform a backup of your existing setup, and then perform a clean install (wipe /data and /system; TWRP is recommended). Next, try flashing the ROM and see if it installs; if it installs without any issues then congratulations! Now just flash a Google apps package, SuperSU if you want root access (ONLY v2.65 OR HIGHER), and then reboot.

If you get an error when trying to install the ROM ("You do not have the correct firmware installed!" error), then go to the Firmware link in the Downloads section and flash that zip file. Once you flash the firmware zip file, you can install the ROM.


Installation instructions (for updating to a newer release):
If you are already running my CM13.0 ROM, then you can update to a newer version of the ROM via the built-in OTA updater or by simply dirty-flashing the new ROM build without wiping anything. HOWEVER, do NOT reinstall Google Apps after installing a new update.

Downloads:
Firmware (one-time installation): https://www.androidfilehost.com/?fid=457095661767125310
ROM:

Please read through the installation instructions before installing this for the first time.

Mirror 1: https://xdaforums.com/devdb/project/dl/?id=24515

Mirror 2: https://www.androidfilehost.com/?w=files&flid=135376&sort_by=date&sort_dir=DESC

Google Apps (required): Platform: "ARM64", Android: "6.0", Variant: "micro" or "nano" (I will not provide support if you install a different variant)
SuperSU (if you want root access): http://xdaforums.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703
Disable CPU underclock (optional): http://xdaforums.com/devdb/project/dl/?id=19944

XDA:DevDB Information
Unified CM13.0 with custom 3.18.20 kernel, ROM for the OnePlus 3

Contributors
Sultanxda
ROM OS Version: 6.0.x Marshmallow
Based On: CyanogenMod

Version Information
Status: No Longer Updated

Created 2016-08-21
Last Updated 2018-01-20
 

Sultanxda

Recognized Developer
Changelog:

April 30, 2017:
ROM:
*Android Security Patch Level: April 1, 2017
*Camera: Changed default sharpness setting to 2 (this is what OxygenOS uses)

Kernel:
*Updated to CAF LA.HB.1.3.2-40600-8x96.0
*Made CPU governor and CPU boost driver scale up more aggressively (increases overall performance)
*Fixed power-aware scheduling
*Fixed random reboot when power save mode is enabled
*Improved power consumption while the screen is off and reduced latency when turning the screen on (info)

Old changelogs:

April 2, 2017:
ROM:
*Fixed touchscreen firmware update process
*Updated touchscreen firmware from the latest OxygenOS Open Beta

March 25, 2017:
ROM:
*Increased the maximum number of background apps allowed in memory back to 60
*Camera: Reduced the chances of capturing an out-of-focus picture

Kernel:
*Fixed memory management issues (the occasional wake-up lag and overall lag are fixed)
*Fixed several memory leaks
*Fixed slight noise from the camera lens when exiting an app that uses the camera

March 18, 2017:
ROM:
*Android Security Patch Level: March 1, 2017
*Camera: Added option to enable/disable refocus on photo capture
*Reduced the maximum number of background apps allowed in memory from 60 to 32

Kernel:
*Updated to CAF LA.HB.1.3.2-37900-8x96.0
*Updated WiFi drivers to CAF LA.HB.1.3.2-37900-8x96.0
*Synced with CAF LA.HB.1.3.1.c1-23100-8x96.0 (contains many security fixes)

February 19, 2017:
ROM:
*Fixed VoLTE
*Camera: Fixed freezing when capturing photos with flash
*Fixed reboots during H.265 (HEVC) video playback

Kernel:
*Added missing cpusets support (cpusets are fully functional now)

February 12, 2017:
ROM:
*Android Security Patch Level: February 1, 2017

Kernel:
*Updated to CAF LA.HB.1.3.2-36200-8x96.0
*Updated WiFi drivers to CAF LA.HB.1.3.2-36200-8x96.0
*Added missing security fix to camera actuator driver
*Enabled cpusets (improves battery life and performance)

January 24, 2017:
ROM:
*Camera: Fixed touch-to-focus not working after taking a picture
*Camera: Fixed shutter button not working once after taking a picture

January 23, 2017:
ROM:
*Updated display auto-brightness configuration from OxygenOS (thanks to @kristofpetho)
*Camera: Fixed camera not focusing at all sometimes (the actuator would not move at all)
*Attempted to fix regression from previous build causing the occasional long delay for fingerprint unlocking

Kernel:
*Updated to CAF LA.HB.1.3.2-35300-8x96.0

January 15, 2017:
ROM:
*Camera: Fixed distortion at the edges of photos captured in low-light conditions (more info)
*Camera: Removed focus mode option (didn't provide anything useful)
*Fixed status bar icons not inverting color correctly after a fingerprint unlock (more info)
*Fixed out-of-sync audio while streaming videos in the Netflix app
*Fixed buggy long press to turn off the screen for the home button (more info)

Kernel:
*Fixed inability to change the CPU's maximum frequency (you can now change the CPU's max. freq. in apps like Kernel Adiutor)
*Reduced jitter after turning the screen on
*Synced with CAF LA.HB.1.3.1.c1-20600-8x96.0 (security fix)

January 7, 2017:
ROM:
*Android Security Patch Level: January 1, 2017
*Updated WiFi configuration from Google Pixel
*Removed CyanogenMod statistics
*Updated audio HAL to CAF LA.HB.1.3.2-34600-8x96.0
*Updated media HAL to CAF LA.HB.1.3.2-34600-8x96.0
*Camera: Added back HDR mode for the front camera
*Camera: Fixed force close when face detection is enabled
*Camera: Improved auto-focus (the camera will quickly re-focus every time you take a picture; this should make it much easier to take clear photos)
*Camera: Removed storage location option (it was broken)

Kernel:
*Android Security Patch Level: January 1, 2017
*Updated to CAF LA.HB.1.3.2-34600-8x96.0
*Fixed home button unintentionally getting long-pressed (more info)
*Fixed occasional intense lag when waking the device

December 27, 2016:
ROM:
*This update will not install if you are using outdated firmware (if you cannot install this update, then flash the Firmware file from the Downloads section)
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Camera: Fixed photo not getting saved when exiting the camera app before the photo is saved
*Camera: Added warning message when Anti-shake mode is enabled
*Camera: Anti-shake mode will automatically turn off every time the Camera app is closed
*Camera: Fixed low frame rate when recording video (video now records at 30 FPS instead of 24 FPS)
*Camera: Removed HDR mode from front-facing camera (unstable and OxygenOS does not have it)
*Updated proprietary libraries from OxygenOS 3.5.4 for the OnePlus 3T
*Fixed audio randomly not working until the device is rebooted (this is fixed by forcing everyone to use updated firmware)
*The 'Prevent accidental wake-up' option no longer stops the power button from waking the device
*Updated AudioFX app from CM nightlies

Kernel:
*Fixed 'Prevent accidental wake-up' option never turning off
*Updated CPU underclock: reduced big cluster maximum frequency to 1824 MHz (1824 MHz is much more efficient than 1920 MHz)
*Synced with CAF LA.HB.1.3.1.c1-20100-8x96.0 (security fixes)

December 11, 2016:
ROM:
*Added support for the OnePlus 3T (this ROM can be flashed on both the OnePlus 3 and OnePlus 3T)
*Updated Adreno graphics libraries from OxygenOS 3.5.3 for the OnePlus 3T

Kernel:
*Added support for the OnePlus 3T
*Updated battery and charger drivers from the OnePlus 3T

December 9, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Android Security Patch Level: December 5, 2016
*Updated proprietary libraries from OxygenOS 3.5.3 for the OnePlus 3T

Kernel:
*Android Security Patch Level: December 5, 2016
*Updated to CAF LA.HB.1.3.2-33100-8x96.0
*Fixed lack of vibration when answering phone calls
*Off-screen gestures (such as DT2W) are always disabled when the proximity is covered (this fixes the random vibrations during phone calls)
*Fixed inconsistent vibration when unlocking the device using the fingerprint reader
*Screen turns on slightly faster now

November 26, 2016:
ROM:
*Updated proprietary libraries from OxygenOS Open Beta 7
*Camera: Fixed photos not always saving (you would have to press the shutter button a few times before it would take the photo)

Kernel:
*Haptic feedback is only disabled during phone calls and video recordings (this fixes the vibration issues from the previous build)

November 25, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Camera: Fixed bad image quality in low lighting
*Camera: Fixed occasional force close

Kernel:
*Removed core_ctl CPU hotplug driver (all CPU cores will remain online now)
*Overhauled CPU input boost driver (better performance)
*Haptic feedback is automatically disabled when the microphone is in use (no more noisy vibrations during phone calls and video recordings)

November 14, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Android Security Patch Level: November 6, 2016
*Updated proprietary libraries from OxygenOS 3.5.5 (community build)
*Switched to OnePlus camera HAL
*Fixed overexposure when capturing images with flash
*Added new camera app featuring:
-Photo quality comparable to OxygenOS
-Anti-shake mode (increases the shutter speed to reduce motion blur)
-Manual shutter speed control (1/5000th of a second up to 30 seconds)
-Manual ISO control
-EIS when recording video at resolutions lower than 4k UHD
-Video HDR mode
-Antibanding control
-Exposure control
-Denoise control
-Face detection
-HDR
-Many other manual controls

Kernel:
*Android Security Patch Level: November 6, 2016
*Increased CPU boost duration when the screen is woken up (this should address the wake-up lag)

November 6, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Added new camera app with support for Zero Shutter Lag mode (the new camera app takes pictures very fast)
*Fixed Vorbis (Ogg) audio playback

Kernel:
*Updated to CAF LA.HB.1.3.2-31300-8x96.0
*Added fix for Dirty COW vulnerability (CVE-2016-5195)
*Fixed notification slider glitch (notification slider would change to DND mode when it wasn't supposed to)

October 21, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes

Kernel:
*Fixed recent SafetyNet failure (you can use Android Pay again)
*Fixed fingerprint not working until the screen turned on sometimes
*Fixed touchscreen not working for a couple seconds after you touch the screen for the first time after boot

October 16, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Android Security Patch Level: October 1, 2016
*Fixed lock-screen appearing for a split second when unlocking with the fingerprint sensor
*Camera: Fixed glitches when zooming
*Camera: Fixed over-sharpening
*Fixed bug in reported LTE mobile signal strength (dBm was not being converted to ASU correctly)

Kernel:
*Android Security Patch Level: October 1, 2016
*Updated to CAF LA.HB.1.3.2-29100-8x96.0
*Partially fixed over-exposure when capturing images with flash (over-exposure still occurs in some cases)
*Flashlight is 2x brighter
*Removed GPU input boost
*Switched from Deadline to CFQ I/O scheduler
*Switched from cluster_plug to official core_ctl hotplug driver from Qualcomm (better performance + battery life)

September 28, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Added sRGB mode and all of the LiveDisplay features present in official CyanogenMod
*Camera: Fixed touch-to-focus
*Removed cLock wakelock

September 25, 2016:
ROM:
*REQUIRES OXYGENOS 3.2.6 FIRMWARE!
*Updated to stable/cm-13.0-ZNH5Y CyanogenMod branch
*Implemented fingerprint pocket mode by myfluxi
*Updated proprietary libraries from OxygenOS 3.2.6
*Updated audio, display, and media HALs to CAF LA.HB.1.3.2-27300-8x96.0
*Updated Adreno graphics libraries to CAF LA.HB.1.3.2-20700-8x96.0 (same as the official CM nightlies)
*Fixed SIM cards becoming unrecognized when changing the preferred mobile network mode
*Fixed display brightness not changing after unlocking with the fingerprint sensor while ambient display is running
*Added Gello browser

Kernel:
*Updated to CAF LA.HB.1.3.2-27300-8x96.0
*Fixed indefinite USB wakelock

September 17, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Android Security Patch Level: September 6, 2016
*Improved fingerprint unlock speed
*Improved GPS speed and accuracy
*Fixed soft reboots while using GPS

Kernel:
*Android Security Patch Level: September 6, 2016
*Updated to CAF LA.HB.1.3.2-26600-8x96.0 (big update)
*Updated WiFi drivers to CAF LA.HB.1.3.2-26600-8x96.0

September 3, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Improved GPS

Kernel:
*Updated to CAF LA.HB.1.3.1.c1-13300-8x96.0
*Fixed microphone not working when headphones are plugged in
*Fixed random reboots when connected to an Apple AirPort router (thanks to @ShotByMeir for testing)
*Made CPU boost driver more efficient
*CPU is underclocked less now (big cluster max frequency: 1920MHz, LITTLE cluster: 1478MHz)
*Fixed dozens of coding errors detected across the entire kernel
*Kernel is now compiled with a newer version of Google's toolchain (the latest version available)

August 25, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Updated WiFi configuration from OxygenOS
*Fixed incorrect battery statistics
*Fixed built-in Music app randomly playing music

Kernel:
*Updated to CAF LA.HB.1.3.1.c1-12700-8x96.0
*Added several security fixes
*Fixed zero deep sleep issue for people who used off-screen gestures (such as DT2W)
*Fixed constant kernel wake-ups (that were causing poor battery life due to lack of deep sleep)
*Improved battery life while the screen is on
*Potentially fixed random reboots
*Fixed kernel wakelock statistics in BetterBatteryStats

August 23, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Fixed built-in camera app not working after taking a picture
*Removed some buggy GPS components

Kernel:
*Added replacement for /sys/kernel/debug/wakeup_sources (/proc/wakeup/wakeup_sources; you can view wakelock info from here)

August 22, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Fixed FLAC playback

Kernel:
*Fixed touch issues in various apps (such as Chrome and Instagram)

August 21, 2016:
ROM:
*Initial release

Kernel:
*Initial release
 
Last edited:

Sultanxda

Recognized Developer
Reserved

FAQ:

1. Why did you underclock the CPU?
Answer: At the underclocked frequencies, the amount of heat generated by the CPU is quite a bit less, so the CPU is throttled less often (leading to better user experience), and battery life is better as well. The performance difference while underclocked is also not really noticeable unless you use a benchmark application. If you want to remove the CPU underclock then flash the zip from the first post that disables the underclock. You must flash this zip every time you install a new ROM update.
 
Last edited:

Sultanxda

Recognized Developer
Alrighty, everything has finally finished uploading. I originally wanted to spend more time working on this (I already spent a month and half so far), but my classes start next week so I won't have as much free time. The included camera app is currently very boring (very few features), but the photos it takes should be somewhat close to OxygenOS in terms of quality. I haven't tweaked the camera HAL a lot either, so it's pretty boring as well. I'm going to do more stuff with the camera later on, but camera stuff is time consuming, so it will take me a while.

I've been running this as my daily driver for a while and it's been going smoothly. There might be a few missing features at first (sRGB mode is missing), but I'll keep adding more stuff as time passes.
 

merothh

Senior Member
Sep 6, 2014
625
804
Alrighty, everything has finally finished uploading. I originally wanted to spend more time working on this (I already spent a month and half so far), but my classes start next week so I won't have as much free time. The included camera app is currently very boring (very few features), but the photos it takes should be somewhat close to OxygenOS in terms of quality. I haven't tweaked the camera HAL a lot either, so it's pretty boring as well. I'm going to do more stuff with the camera later on, but camera stuff is time consuming, so it will take me a while.

I've been running this as my daily driver for a while and it's been going smoothly. There might be a few missing features at first (sRGB mode is missing), but I'll keep adding more stuff as time passes.
Really sorry to hijack this thread , but will this really affect us 1+1 users ?
 

HIshan Pavidu

Senior Member
Feb 16, 2015
887
205
Pannipitiya
If anybody can post screenshots of cell reception (signal) and camera and photo sample will be great i will flash this later

Sent from my ONEPLUS A3003 using Tapatalk
 

Flamehell

Senior Member
Jun 3, 2013
2,976
1,138
42
London
Alrighty, everything has finally finished uploading. I originally wanted to spend more time working on this (I already spent a month and half so far), but my classes start next week so I won't have as much free time. The included camera app is currently very boring (very few features), but the photos it takes should be somewhat close to OxygenOS in terms of quality. I haven't tweaked the camera HAL a lot either, so it's pretty boring as well. I'm going to do more stuff with the camera later on, but camera stuff is time consuming, so it will take me a while.

I've been running this as my daily driver for a while and it's been going smoothly. There might be a few missing features at first (sRGB mode is missing), but I'll keep adding more stuff as time passes.
Tnx a lot for this,love your work!Will you do weeklies or something like that?Tnx buddy :laugh:
 

omvir

Senior Member
Apr 28, 2011
1,230
528
Aaannnnndddd so it began! Can't wait to flash this.

Sent from my ONEPLUS A3000 using Tapatalk
 

swapnilxd

Senior Member
Feb 18, 2015
130
229
INDIA
omg welcome @Sultanxda , using your rom since opx and now my op3 too ! thanks for your work man :) please look at the camera department like you did for opx .
downloading now :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 326
    Code:
    /*
     * Your warranty is... still valid?
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     *
     */

    If you are using a OnePlus 3T, please go to this thread: http://xdaforums.com/oneplus-3t/development/rom-kernel-unofficial-cyanogenmod-13-0-t3517301

    This is a unified CyanogenMod 13.0 ROM that works on both the OnePlus 3 and OnePlus 3T. It is based off of the stable CyanogenMod branch instead of the nightly branch, with the main goal being stability with an overall good user experience. This ROM comes with a highly-customized kernel, as well as some other very custom modifications.

    Custom kernels are not compatible with this ROM. I will NOT provide support if you install a custom kernel.

    Changelogs for each update can be found in the 2nd post of this thread.

    ROM features:
    • Based off latest CyanogenMod 13.0 stable (ZNH5Y) sources (root access is NOT included)
    • OTA updates via built-in CMUpdater
    • Fast fingerprint unlock
    • Pocket mode for the fingerprint sensor (this is always enabled)
    • Improved GPS speed and accuracy
    • Custom camera app featuring:
      -Photo quality comparable to OxygenOS
      -Anti-shake mode (increases the shutter speed to reduce motion blur)
      -Manual shutter speed control (1/5000th of a second up to 30 seconds)
      -Manual ISO control
      -EIS when recording video at resolutions lower than 4k UHD
      -Video HDR mode
      -Antibanding control
      -Exposure control
      -Denoise control
      -Face detection
      -HDR
      -Many other manual controls
    • Many other misc. performance and stability improvements under the hood

    Kernel features:
    • Rebuilt from the ground up using the latest Snapdragon 820 CAF base from Qualcomm (LA.HB.1.3.2)
    • Removed lots of excessive bloat (improves security and performance)
    • Improved stability (several bugs not listed here have been fixed)
    • F2FS support
    • DASH charge
    • Passes SafetyNet bootloader unlock check
    • Dynamic CPU input boost driver I wrote myself (makes the phone feel smooth without destroying battery life)
    • Reduced display power consumption
    • Touchscreen gestures are automatically disabled when the proximity sensor is covered
    • Improved touchscreen processing latency
    • Improved audio jack detection (no more weird buzzing noise and headphones are always detected on the first try)
    • CPU underclocked by default (big cluster: 1824MHz LITTLE cluster: 1478MHz) (you can disable this; read the FAQ for more info)
    • Custom thermal control driver I wrote myself (features 9 thermal throttle steps; keeps the phone cool)
    • Westwood TCP congestion algorithm (enabled by default)
    • No placebo patches, features, or compiler "optimizations"
    • Many other misc. improvements not listed here

    Source code:
    Kernel (cm-13.0-sultan branch): https://github.com/sultanxda/android_kernel_oneplus_msm8996
    Local manifest (contains the rest of the sources): https://github.com/sultanxda/android/blob/master/oneplus3/cm-13.0-stable/local_manifest.xml

    Credits:
    • CyanogenMod and its contributors
    • CAF (aka Qualcomm)
    • myfluxi (awesome friend with lots of amazing contributions)
    • Open GApps
    • glassfish777 for testing and helping me pass AP physics in high school
      The people who first brought CM13.0 to the OnePlus 3:
    • Grarak
    • dianlujitao
    • Steve Kondik
    • If your name should be here and it isn't, then make me use an iPhone 4s running iOS 9

    Installation instructions (for first-time installation):
    First, perform a backup of your existing setup, and then perform a clean install (wipe /data and /system; TWRP is recommended). Next, try flashing the ROM and see if it installs; if it installs without any issues then congratulations! Now just flash a Google apps package, SuperSU if you want root access (ONLY v2.65 OR HIGHER), and then reboot.

    If you get an error when trying to install the ROM ("You do not have the correct firmware installed!" error), then go to the Firmware link in the Downloads section and flash that zip file. Once you flash the firmware zip file, you can install the ROM.


    Installation instructions (for updating to a newer release):
    If you are already running my CM13.0 ROM, then you can update to a newer version of the ROM via the built-in OTA updater or by simply dirty-flashing the new ROM build without wiping anything. HOWEVER, do NOT reinstall Google Apps after installing a new update.

    Downloads:
    Firmware (one-time installation): https://www.androidfilehost.com/?fid=457095661767125310
    ROM:

    Please read through the installation instructions before installing this for the first time.

    Mirror 1: https://xdaforums.com/devdb/project/dl/?id=24515

    Mirror 2: https://www.androidfilehost.com/?w=files&flid=135376&sort_by=date&sort_dir=DESC

    Google Apps (required): Platform: "ARM64", Android: "6.0", Variant: "micro" or "nano" (I will not provide support if you install a different variant)
    SuperSU (if you want root access): http://xdaforums.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703
    Disable CPU underclock (optional): http://xdaforums.com/devdb/project/dl/?id=19944

    XDA:DevDB Information
    Unified CM13.0 with custom 3.18.20 kernel, ROM for the OnePlus 3

    Contributors
    Sultanxda
    ROM OS Version: 6.0.x Marshmallow
    Based On: CyanogenMod

    Version Information
    Status: No Longer Updated

    Created 2016-08-21
    Last Updated 2018-01-20
    154
    Changelog:

    April 30, 2017:
    ROM:
    *Android Security Patch Level: April 1, 2017
    *Camera: Changed default sharpness setting to 2 (this is what OxygenOS uses)

    Kernel:
    *Updated to CAF LA.HB.1.3.2-40600-8x96.0
    *Made CPU governor and CPU boost driver scale up more aggressively (increases overall performance)
    *Fixed power-aware scheduling
    *Fixed random reboot when power save mode is enabled
    *Improved power consumption while the screen is off and reduced latency when turning the screen on (info)

    Old changelogs:

    April 2, 2017:
    ROM:
    *Fixed touchscreen firmware update process
    *Updated touchscreen firmware from the latest OxygenOS Open Beta

    March 25, 2017:
    ROM:
    *Increased the maximum number of background apps allowed in memory back to 60
    *Camera: Reduced the chances of capturing an out-of-focus picture

    Kernel:
    *Fixed memory management issues (the occasional wake-up lag and overall lag are fixed)
    *Fixed several memory leaks
    *Fixed slight noise from the camera lens when exiting an app that uses the camera

    March 18, 2017:
    ROM:
    *Android Security Patch Level: March 1, 2017
    *Camera: Added option to enable/disable refocus on photo capture
    *Reduced the maximum number of background apps allowed in memory from 60 to 32

    Kernel:
    *Updated to CAF LA.HB.1.3.2-37900-8x96.0
    *Updated WiFi drivers to CAF LA.HB.1.3.2-37900-8x96.0
    *Synced with CAF LA.HB.1.3.1.c1-23100-8x96.0 (contains many security fixes)

    February 19, 2017:
    ROM:
    *Fixed VoLTE
    *Camera: Fixed freezing when capturing photos with flash
    *Fixed reboots during H.265 (HEVC) video playback

    Kernel:
    *Added missing cpusets support (cpusets are fully functional now)

    February 12, 2017:
    ROM:
    *Android Security Patch Level: February 1, 2017

    Kernel:
    *Updated to CAF LA.HB.1.3.2-36200-8x96.0
    *Updated WiFi drivers to CAF LA.HB.1.3.2-36200-8x96.0
    *Added missing security fix to camera actuator driver
    *Enabled cpusets (improves battery life and performance)

    January 24, 2017:
    ROM:
    *Camera: Fixed touch-to-focus not working after taking a picture
    *Camera: Fixed shutter button not working once after taking a picture

    January 23, 2017:
    ROM:
    *Updated display auto-brightness configuration from OxygenOS (thanks to @kristofpetho)
    *Camera: Fixed camera not focusing at all sometimes (the actuator would not move at all)
    *Attempted to fix regression from previous build causing the occasional long delay for fingerprint unlocking

    Kernel:
    *Updated to CAF LA.HB.1.3.2-35300-8x96.0

    January 15, 2017:
    ROM:
    *Camera: Fixed distortion at the edges of photos captured in low-light conditions (more info)
    *Camera: Removed focus mode option (didn't provide anything useful)
    *Fixed status bar icons not inverting color correctly after a fingerprint unlock (more info)
    *Fixed out-of-sync audio while streaming videos in the Netflix app
    *Fixed buggy long press to turn off the screen for the home button (more info)

    Kernel:
    *Fixed inability to change the CPU's maximum frequency (you can now change the CPU's max. freq. in apps like Kernel Adiutor)
    *Reduced jitter after turning the screen on
    *Synced with CAF LA.HB.1.3.1.c1-20600-8x96.0 (security fix)

    January 7, 2017:
    ROM:
    *Android Security Patch Level: January 1, 2017
    *Updated WiFi configuration from Google Pixel
    *Removed CyanogenMod statistics
    *Updated audio HAL to CAF LA.HB.1.3.2-34600-8x96.0
    *Updated media HAL to CAF LA.HB.1.3.2-34600-8x96.0
    *Camera: Added back HDR mode for the front camera
    *Camera: Fixed force close when face detection is enabled
    *Camera: Improved auto-focus (the camera will quickly re-focus every time you take a picture; this should make it much easier to take clear photos)
    *Camera: Removed storage location option (it was broken)

    Kernel:
    *Android Security Patch Level: January 1, 2017
    *Updated to CAF LA.HB.1.3.2-34600-8x96.0
    *Fixed home button unintentionally getting long-pressed (more info)
    *Fixed occasional intense lag when waking the device

    December 27, 2016:
    ROM:
    *This update will not install if you are using outdated firmware (if you cannot install this update, then flash the Firmware file from the Downloads section)
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
    *Camera: Fixed photo not getting saved when exiting the camera app before the photo is saved
    *Camera: Added warning message when Anti-shake mode is enabled
    *Camera: Anti-shake mode will automatically turn off every time the Camera app is closed
    *Camera: Fixed low frame rate when recording video (video now records at 30 FPS instead of 24 FPS)
    *Camera: Removed HDR mode from front-facing camera (unstable and OxygenOS does not have it)
    *Updated proprietary libraries from OxygenOS 3.5.4 for the OnePlus 3T
    *Fixed audio randomly not working until the device is rebooted (this is fixed by forcing everyone to use updated firmware)
    *The 'Prevent accidental wake-up' option no longer stops the power button from waking the device
    *Updated AudioFX app from CM nightlies

    Kernel:
    *Fixed 'Prevent accidental wake-up' option never turning off
    *Updated CPU underclock: reduced big cluster maximum frequency to 1824 MHz (1824 MHz is much more efficient than 1920 MHz)
    *Synced with CAF LA.HB.1.3.1.c1-20100-8x96.0 (security fixes)

    December 11, 2016:
    ROM:
    *Added support for the OnePlus 3T (this ROM can be flashed on both the OnePlus 3 and OnePlus 3T)
    *Updated Adreno graphics libraries from OxygenOS 3.5.3 for the OnePlus 3T

    Kernel:
    *Added support for the OnePlus 3T
    *Updated battery and charger drivers from the OnePlus 3T

    December 9, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
    *Android Security Patch Level: December 5, 2016
    *Updated proprietary libraries from OxygenOS 3.5.3 for the OnePlus 3T

    Kernel:
    *Android Security Patch Level: December 5, 2016
    *Updated to CAF LA.HB.1.3.2-33100-8x96.0
    *Fixed lack of vibration when answering phone calls
    *Off-screen gestures (such as DT2W) are always disabled when the proximity is covered (this fixes the random vibrations during phone calls)
    *Fixed inconsistent vibration when unlocking the device using the fingerprint reader
    *Screen turns on slightly faster now

    November 26, 2016:
    ROM:
    *Updated proprietary libraries from OxygenOS Open Beta 7
    *Camera: Fixed photos not always saving (you would have to press the shutter button a few times before it would take the photo)

    Kernel:
    *Haptic feedback is only disabled during phone calls and video recordings (this fixes the vibration issues from the previous build)

    November 25, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
    *Camera: Fixed bad image quality in low lighting
    *Camera: Fixed occasional force close

    Kernel:
    *Removed core_ctl CPU hotplug driver (all CPU cores will remain online now)
    *Overhauled CPU input boost driver (better performance)
    *Haptic feedback is automatically disabled when the microphone is in use (no more noisy vibrations during phone calls and video recordings)

    November 14, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
    *Android Security Patch Level: November 6, 2016
    *Updated proprietary libraries from OxygenOS 3.5.5 (community build)
    *Switched to OnePlus camera HAL
    *Fixed overexposure when capturing images with flash
    *Added new camera app featuring:
    -Photo quality comparable to OxygenOS
    -Anti-shake mode (increases the shutter speed to reduce motion blur)
    -Manual shutter speed control (1/5000th of a second up to 30 seconds)
    -Manual ISO control
    -EIS when recording video at resolutions lower than 4k UHD
    -Video HDR mode
    -Antibanding control
    -Exposure control
    -Denoise control
    -Face detection
    -HDR
    -Many other manual controls

    Kernel:
    *Android Security Patch Level: November 6, 2016
    *Increased CPU boost duration when the screen is woken up (this should address the wake-up lag)

    November 6, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
    *Added new camera app with support for Zero Shutter Lag mode (the new camera app takes pictures very fast)
    *Fixed Vorbis (Ogg) audio playback

    Kernel:
    *Updated to CAF LA.HB.1.3.2-31300-8x96.0
    *Added fix for Dirty COW vulnerability (CVE-2016-5195)
    *Fixed notification slider glitch (notification slider would change to DND mode when it wasn't supposed to)

    October 21, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes

    Kernel:
    *Fixed recent SafetyNet failure (you can use Android Pay again)
    *Fixed fingerprint not working until the screen turned on sometimes
    *Fixed touchscreen not working for a couple seconds after you touch the screen for the first time after boot

    October 16, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
    *Android Security Patch Level: October 1, 2016
    *Fixed lock-screen appearing for a split second when unlocking with the fingerprint sensor
    *Camera: Fixed glitches when zooming
    *Camera: Fixed over-sharpening
    *Fixed bug in reported LTE mobile signal strength (dBm was not being converted to ASU correctly)

    Kernel:
    *Android Security Patch Level: October 1, 2016
    *Updated to CAF LA.HB.1.3.2-29100-8x96.0
    *Partially fixed over-exposure when capturing images with flash (over-exposure still occurs in some cases)
    *Flashlight is 2x brighter
    *Removed GPU input boost
    *Switched from Deadline to CFQ I/O scheduler
    *Switched from cluster_plug to official core_ctl hotplug driver from Qualcomm (better performance + battery life)

    September 28, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
    *Added sRGB mode and all of the LiveDisplay features present in official CyanogenMod
    *Camera: Fixed touch-to-focus
    *Removed cLock wakelock

    September 25, 2016:
    ROM:
    *REQUIRES OXYGENOS 3.2.6 FIRMWARE!
    *Updated to stable/cm-13.0-ZNH5Y CyanogenMod branch
    *Implemented fingerprint pocket mode by myfluxi
    *Updated proprietary libraries from OxygenOS 3.2.6
    *Updated audio, display, and media HALs to CAF LA.HB.1.3.2-27300-8x96.0
    *Updated Adreno graphics libraries to CAF LA.HB.1.3.2-20700-8x96.0 (same as the official CM nightlies)
    *Fixed SIM cards becoming unrecognized when changing the preferred mobile network mode
    *Fixed display brightness not changing after unlocking with the fingerprint sensor while ambient display is running
    *Added Gello browser

    Kernel:
    *Updated to CAF LA.HB.1.3.2-27300-8x96.0
    *Fixed indefinite USB wakelock

    September 17, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Android Security Patch Level: September 6, 2016
    *Improved fingerprint unlock speed
    *Improved GPS speed and accuracy
    *Fixed soft reboots while using GPS

    Kernel:
    *Android Security Patch Level: September 6, 2016
    *Updated to CAF LA.HB.1.3.2-26600-8x96.0 (big update)
    *Updated WiFi drivers to CAF LA.HB.1.3.2-26600-8x96.0

    September 3, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Improved GPS

    Kernel:
    *Updated to CAF LA.HB.1.3.1.c1-13300-8x96.0
    *Fixed microphone not working when headphones are plugged in
    *Fixed random reboots when connected to an Apple AirPort router (thanks to @ShotByMeir for testing)
    *Made CPU boost driver more efficient
    *CPU is underclocked less now (big cluster max frequency: 1920MHz, LITTLE cluster: 1478MHz)
    *Fixed dozens of coding errors detected across the entire kernel
    *Kernel is now compiled with a newer version of Google's toolchain (the latest version available)

    August 25, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Updated WiFi configuration from OxygenOS
    *Fixed incorrect battery statistics
    *Fixed built-in Music app randomly playing music

    Kernel:
    *Updated to CAF LA.HB.1.3.1.c1-12700-8x96.0
    *Added several security fixes
    *Fixed zero deep sleep issue for people who used off-screen gestures (such as DT2W)
    *Fixed constant kernel wake-ups (that were causing poor battery life due to lack of deep sleep)
    *Improved battery life while the screen is on
    *Potentially fixed random reboots
    *Fixed kernel wakelock statistics in BetterBatteryStats

    August 23, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Fixed built-in camera app not working after taking a picture
    *Removed some buggy GPS components

    Kernel:
    *Added replacement for /sys/kernel/debug/wakeup_sources (/proc/wakeup/wakeup_sources; you can view wakelock info from here)

    August 22, 2016:
    ROM:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Fixed FLAC playback

    Kernel:
    *Fixed touch issues in various apps (such as Chrome and Instagram)

    August 21, 2016:
    ROM:
    *Initial release

    Kernel:
    *Initial release
    119
    So, OnePlus sent me a OP3T and it got into my hands a little under a day ago. I'm going to be using the OP3T as my daily driver now, but I don't want to leave OP3 users behind, so I made the ROM unified. As of the December 11 update, this ROM can be flashed on both the OP3 and OP3T. That means that both devices will always be updated at the same time and nobody will be left out :)
    76
    Reserved

    FAQ:

    1. Why did you underclock the CPU?
    Answer: At the underclocked frequencies, the amount of heat generated by the CPU is quite a bit less, so the CPU is throttled less often (leading to better user experience), and battery life is better as well. The performance difference while underclocked is also not really noticeable unless you use a benchmark application. If you want to remove the CPU underclock then flash the zip from the first post that disables the underclock. You must flash this zip every time you install a new ROM update.
    66
    New build is up with all of the terrible camera issues fixed. The included camera app now has all the bells and whistles (manual exposure control, HDR, etc.), and photo quality should be very close to OxygenOS.

    Finally, the camera experience with this ROM is not trash anymore :')