• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[EOL][ROM+KERNEL+TWRP] Unofficial CyanogenMod 13.0 with 3.4.0 kernel [Mar 25, 2017]

Sultanxda

Recognized Developer
Aug 18, 2012
6,405
37,494
113
California
www.kerneltoast.com
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.
 *
 */
This is an unofficial CM13.0 ROM based off of the stable branch instead of the nightly branch, with the main goal being stability with an overall good user experience. This ROM has many things in common with my OnePlus One ROM.

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

ROM features:
  • Based off latest generic CyanogenMod 13.0 stable sources (root access is NOT included)
  • OTA updates via built-in CMUpdater
  • Configurable multi-color notification LED
  • Custom camera app with several manual controls and high-speed video recording with audio
  • Custom camera HAL I made myself featuring:
    -4K UHD and DCI video recording
    -1440p video recording with the front-facing camera
    -High-speed video recording with audio at 60 FPS and 120 FPS for 720p, and 60 FPS for 1080p
    -Consistent 30 FPS video recording in all lighting conditions
    -Intelligent anti-shake algorithm (significantly reduces motion blur when capturing photos)
    -Faster autofocus in low lighting conditions
    -No stuttering in camera viewfinder
    -Improved photo quality
    -Photo capture up to 4208x3120 resolution (instead of 4160x3120)
  • Many other misc. improvements under the hood

Kernel features:
  • Based off latest CAF Marshmallow kernel source from Qualcomm (LA.BF.1.1.3_rb1.13)
  • Removed lots of excessive bloat
  • Dynamic CPU input boost driver I wrote myself (makes the phone feel smooth without destroying battery life)
  • CPU underclocked to 1958 MHz by default (you can disable this; see why I did this in the FAQ in the 3rd post)
  • Custom thermal control driver I wrote myself (features 8 thermal throttle steps; keeps the phone cool)
  • LCD KCAL by Savoca
  • Westwood TCP congestion algorithm (enabled by default)
  • F2FS support
  • NTFS support
  • 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_onyx
Local manifest (contains the rest of the sources): https://github.com/sultanxda/android/blob/master/onyx/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
    The people who first brought CM13.0 to the OnePlus X:
  • ashwin007
  • Grarak
  • MasterAwesome
  • h2o64
  • If your name should be here and it isn't, then make me use an iPhone 4 running iOS 8

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).

If you plan on using encryption with this ROM, then flash the custom TWRP build in the Downloads section below before flashing the ROM. This custom TWRP build is needed if you want to be able to access data encrypted using this ROM while booted into recovery. Otherwise, you will not be able to access your encrypted data while your phone is in recovery mode.


Then, flash the ROM, flash a Google apps package, SuperSU if you want root access
(ONLY v2.65 OR HIGHER), and then reboot.

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:
REQUIRES OXYGENOS 3.1.3/3.1.4 FIRMWARE!
TWRP (if you want to use encryption): http://forum.xda-developers.com/devdb/project/dl/?id=21072
ROM:

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

Mirror 1: https://forum.xda-developers.com/devdb/project/dl/?id=23895

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

Google Apps: Platform: "ARM", 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://forum.xda-developers.com/showthread.php?t=1538053
Disable CPU underclock: http://forum.xda-developers.com/devdb/project/dl/?id=21084

XDA:DevDB Information
CM13.0 with fancy 3.4.0 kernel, ROM for the OnePlus X

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

Version Information
Status: No Longer Updated

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

Sultanxda

Recognized Developer
Aug 18, 2012
6,405
37,494
113
California
www.kerneltoast.com
Changelog:

March 25, 2017:
ROM:
*Android Security Patch Level: March 1, 2017
*Camera: Reduced the chances of capturing an out-of-focus picture

Kernel:
*Added several security fixes

Old changelogs:

February 20, 2017:
Kernel:
*Fixed reboot when disconnecting from L2TP/IPSec VPNs

February 12, 2017:
ROM:
*Android Security Patch Level: February 1, 2017
*Fixed several memory leaks in the camera HAL
*Updated GPS HAL to CAF LA.BF.1.1.3-02310-8x26.0
*Updated audio HAL to CAF LA.BF.1.1.3-02310-8x26.0
*Updated media HAL to CAF LA.BF.1.1.3-02310-8x26.0

Kernel:
*Updated to CAF LA.BF.1.1.3-02310-8x26.0 (contains many security fixes)
*Updated WiFi drivers to CAF LA.BF.1.1.3-02310-8x26.0

January 29, 2017:
ROM:
*Android Security Patch Level: January 1, 2017
*Removed CyanogenMod statistics
*Fixed buggy long press to turn off the screen for the home button (more info)
*Camera: Fixed another force close when face detection is enabled
*Camera: Fixed camera not focusing at all sometimes (the actuator would not move at all; more info)
*Removed high-speed video recording option from the front-facing camera (it didn't actually work)

Kernel:
*Added several security fixes from the OnePlus One's LineageOS 14.1 kernel
*Fixed home button unintentionally getting long-pressed (more info)

December 26, 2016:
ROM:
*Camera: Fixed force close when taking a picture after focusing on a bright area while face detection is enabled

December 25, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Android Security Patch Level: December 1, 2016
*Camera: Fixed rare force close
*Camera: Fixed photo not getting saved when exiting the camera app before the photo is saved
*Camera: You can press the shutter button multiple times in fast succession now
*Updated AudioFX app from CM nightlies
*Updated proprietary libraries from OxygenOS 3.1.4

Kernel:
*Android Security Patch Level: December 1, 2016

November 5, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Switched back to old GPS libraries (from the OnePlus One)

Kernel:
*Switched from CFQ to Deadline I/O scheduler (CFQ caused random reboots)
*Camera: Fixed underexposure when using flash

October 25, 2016:
ROM:
*Added new off-mode charging animation from CM nightlies

Kernel:
*Fixed power-off/reboot not working correctly (kernel would crash, causing the device to always reboot back into Android)
*Fixed random reboot issue caused by WiFi drivers

October 23, 2016:
ROM:
*REQUIRES OXYGENOS 3.1.3 FIRMWARE!
*Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes
*Android Security Patch Level: October 1, 2016
*Updated all proprietary libraries (except for camera) from OxygenOS 3.1.3
*Updated modem firmware images from OxygenOS 3.1.3
*Fixed bug in reported LTE mobile signal strength (dBm was not being converted to ASU correctly)
*Removed cLock wakelock

Kernel:
*Updated for new bootloader
*Added fix for Dirty COW vulnerability (CVE-2016-5195)
*Switched from Deadline to CFQ I/O scheduler
*Fixed missing vibration intensity setting

TWRP:
*Updated for new bootloader

September 25, 2016:
ROM:
*Updated to stable/cm-13.0-ZNH5Y CyanogenMod branch
*Android Security Patch Level: September 6, 2016
*Added Gello browser

Kernel:
*Android Security Patch Level: September 6, 2016
*Disabled debugfs for improved security and reduced kernel resource footprint
*Fixed dozens of coding errors detected across the entire kernel

August 13, 2016:
ROM:
*Reverted all recent GPS updates (GPS is now the same as it was in the June 26 build)
*Reverted OxygenOS RIL (RIL is now the same as it was in the June 11 build)

August 12, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Attempted to fix reboots

August 11, 2016:
ROM:
*Fixed location services
*Switched to newer version of Music app (from the nightlies)

August 10, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Android Security Patch Level: August 5, 2016
*Re-enabled Live Lockscreen (LLS) feature
*Screen wakes up faster
*Snap Camera: Fixed touch focus not working on part of the screen sometimes
*Snap Camera: Fixed zoom circle not being centered correctly
*Camera: Enabled chromatic aberration correction
*Updated GPS stack and location services from OxygenOS 2.2.2
*Updated RIL from OxygenOS 2.2.2
*Updated modem and aDSP firmware from OxygenOS 2.2.2
*Updated camera libraries from OxygenOS 2.2.2
*Updated Adreno graphics libraries from HTC M8 MRA58K update

Kernel:
*Android Security Patch Level: August 5, 2016
*Added various SELinux fixes
*Improved efficiency and performance of CPU input boost driver (device feels smoother)
*Improved touchscreen accuracy

June 26, 2016:
ROM:
*Fixed decryption

June 25, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Switched to newer version of Screen Recorder app (from the nightlies)
*Fixed incorrect WiFi MAC address change from previous build

Kernel:
*Added adaptive low-memory-killer feature

June 20, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Fixed rear camera not working at all sometimes (should be fixed for good now)
*Fixed flashlight tile disappearing (should be fixed for good now)
*Switched to OxygenOS RIL (should fix all remaining mobile network issues)
*Fixed built-in OTA updater

June 11, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Android Security Patch Level: June 1, 2016
*Camera: Removed HDR mode (HDR is currently unstable)
*Reduced boot time

Kernel:
*Android Security Patch Level: June 1, 2016

TWRP:
*Updated with new kernel changes

June 5, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Fixed rear camera not working at all sometimes

June 3, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Added Performance battery mode for heavy gaming
*Power save battery mode now saves more power
*Downgraded to Lollipop RIL (mobile network issues and overheating should be fixed)
*Fixed ANT+ support

Kernel:
*Added support for FiiO DAC

May 25, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Enabled Mobile Station Assisted (MSA) and Mobile Station Based (MSB) assisted GPS (GPS locks much faster now)
*Updated handset audio calibration from OxygenOS 2.2.1
*Added Doze (Ambient Display) from official CM13
*Fixed missing flashlight tile

Kernel:
*Fixed overexposure when capturing images with flash (images taken with flash look much nicer now)
*Flashlight is now 2x brighter
*Added various security fixes
*Fixed some random reboots
*Fixed touchscreen issue where the capacitive buttons at the bottom would mistakenly get pressed while scrolling
*Added an 8th thermal throttle zone

TWRP:
*Updated with new kernel fixes
*Customized the version number that is displayed inside TWRP

May 19, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Fixed encryption
*Added custom TWRP build to the Downloads section (you must install this custom TWRP recovery if you want to be able to decrypt your data in recovery)
*ROM now comes with newest modem firmware built in
*Updated GPS binaries
*Updated DRM binaries

Kernel:
*Added support for /proc/last_kmsg logs

May 17, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Camera: Fixed manual shutter speed setting
*Camera: Removed unsupported effects
*Fixed low-power mode not conserving much energy

Kernel:
*Fixed CPU not properly being throttled in rare cases

May 14, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Fixed WiFi (the MAC address is correct now)
*Enabled Fluence noise-cancellation for speakerphone mode
*Actually fixed bug where one of the cameras went missing (i.e. no app could see the rear camera until you rebooted the phone)

May 13, 2016:
ROM:
*Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
*Enabled Fluence noise-cancellation for phone calls
*Fixed speakerphone volume not adjusting during phone calls (thanks to ashwin007)
*Multi-color notification LED blinks more smoothly now
*Fixed choppy audio in Miitomo app
*Fixed incorrect WiFi MAC address
*Fixed HDR in included camera app
*Fixed bug where one of the cameras went missing (i.e. no app could see the front/rear camera until you rebooted the phone)

Kernel:
*Fixed FM radio
*Fixed MaxxAudio

Kernel:
*Initial release

May 8, 2016:
ROM:
*Initial release

Kernel:
*Initial release
 
Last edited:

Sultanxda

Recognized Developer
Aug 18, 2012
6,405
37,494
113
California
www.kerneltoast.com
FAQ:

1. Why did you underclock the CPU to 1958 MHz?
Answer: At 1958 MHz, the amount of heat generated by the CPU is good amount less than at 2265MHz, so the CPU is throttled less often (leading to better user experience), and battery life is better as well. The performance difference between 1958 MHz and 2265 MHz 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:

etoy

Elite Member
Dec 21, 2009
1,814
862
0
a dream comes true. was regretting having sold my OPO just because of this rom. now i can finally enjoy my device. thanks sultan and keep up the good work, as usual ;)
 

migueldbr

Elite Member
Nov 30, 2011
1,879
510
0
Coimbra
Thanks a lot @Sultanxda

Btw does it include the fix for the noise cancelling mic?

edit: rom does not boot using opengapps arm 6.0 micro. Its the same with official cm13, some kind of bug with opengapps (flashed banks gapps on official cm13 so they probably work with this rom too)

edit 2: It booted with banks gapps. Excellent rom and camera!

Any way you could make a zip file to make gpu idle @ 200mhz instead of 27mhz?
 
Last edited:

Jude Aranha

Senior Member
May 15, 2015
777
1,661
0
Queens, NYC
Downloading !
BTW @Sultanxda do you think buying the ONE is still a good deal ? I need a spare device, and the development of the ONE amazes me to unimaginable extents, the X might probably still be my primary, but for home and personal use, i will use the ONE, should i go for it ?
PS - Getting a 4 month old device in US $150. [Black, 64GB]
 

advance26

Senior Member
Apr 20, 2015
70
6
8
I'm using your custom camera HAL since the beginning, your CM13 rom must be amazing.
I've just one question before starting a clean flash, is the OTA synchronised with the official CM13 branch or with your custom branch ?
 

nauman236

Member
Dec 9, 2013
36
13
0
Islamabad
working good. system+data+cache to f2fs. used open_gapps-arm-6.0-mini. root and xposed framework installed. previous rom cm 13 by ashwin007.
currently i m assessing the performance of my device. i will report back and if any bugs then i will upload log file of it.
 

CertifiedBlyndGuy

Retired Forum Moderator / Inactive Recognized Deve
Jun 11, 2014
1,936
2,983
0
Boulder
Just saw your manifest on GitHub man! Great job

---------- Post added at 10:43 PM ---------- Previous post was at 10:42 PM ----------

Sultan-onyx-Disable-CPU-Underclock.zip

What is this and in what conditions should i use it? Thanks!
It reverts the frequency from 1.9 to 2.2 as default
 

Loureiro

Senior Member
Aug 6, 2011
808
427
0
Alentejo
Played a bit with the camera and it is amazing.

It is possible to change shutter speed on the front facing camera!
1440p recording is great too.

Thank you so much
 
Last edited:

CertifiedBlyndGuy

Retired Forum Moderator / Inactive Recognized Deve
Jun 11, 2014
1,936
2,983
0
Boulder
So should i use it?
No. It isn't worth it. You'll save more power this way and won't notice the difference

---------- Post added 09-05-2016 at 12:07 AM ---------- Previous post was 08-05-2016 at 11:24 PM ----------

Oh and thank god for the AFH mirror

If anyone uses BB for anything anymore I may pull my hair out haha