ROM [ROM+KERNEL][6.0.1] Unofficial CyanogenMod 13.0 with 3.4.0 kernel

  1. 69gm
    Jelly Bean Nov 6, 2015

    69gm , Nov 6, 2015 :
    For those of you who are fans of @Sultanxda's work, I present to you his Marshmallow goodness. Remember I am NOT the dev. Just his trusted beta tester.

    So without further ado, here is @Sultanxda's work in HIS own words :

    * 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 the successor to my no-frills CM12.1 ROM: http://forum.xda-developers.com/onep...-12-1-t3120259

    Unlike other unofficial CyanogenMod builds, these builds are based off of the stable branch instead of the nightly branch.

    Custom kernels are not compatible with this ROM unless otherwise noted. 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
    • OxygenOS camera libraries (no camera bugs and improved camera performance)
    • Snapdragon Camera app by Qualcomm (comes with many unique features, such as high-speed recording with audio)
    • Custom camera HAL I modified myself from CAF featuring:
      -Intelligent anti-shake algorithm (significantly reduces motion blur when capturing photos)
      -Faster autofocus in low lighting conditions
      -No stuttering/frame drops in camera viewfinder (viewfinder frame rate won't go below 30 FPS)
      -Slow-motion video recording at 60 FPS, 90 FPS, and 120 FPS for 720p, and 60 FPS for 1080p
      -High-speed video recording with audio at 60 FPS, 90 FPS, and 120 FPS for 720p, and 60 FPS for 1080p (you need to use the Snapdragon Camera app in order to use high-speed recording)
      -1080p video recording with the front-facing camera
      -2.5k 1440p video recording with the front-facing camera and back camera (only with the Snapdragon Camera app that comes with the ROM)
      -4k video recording at UHD and DCI resolutions
      -Manual focus
      -Manual ISO control
      -Slow shutter (ranging from 1/5000th of a second to 2 seconds)
      -More picture sizes than plain OxygenOS, such as 9.7MP 16:9
      -JPEG quality is always set to 100% (pictures are very high quality)
    • Many other misc. improvements under the hood

    Kernel features:
    • Based off latest CAF Marshmallow kernel source from Qualcomm (LA.BF.1.1.3_rb1.11)
    • Removed lots of excessive bloat
    • Rewrote battery driver (for the BQ27541 fuel-gauge chip; battery % readings are more accurate, there are various
      safety mechanisms now, and you may get better battery life)
    • Rewrote half of the Synaptics touchscreen driver (over 2500 lines of code modified; your touchscreen may work better)
    • Newest-available Synaptics touchscreen firmware
    • Dynamic CPU input boost driver I wrote myself (makes the phone feel smooth)
    • CPU underclocked to 1958MHz by default (you can disable this; see why I did this in the FAQ in the 3rd post)
    • Vibrator is automatically disabled when recording videos (so the buzzing noise doesn't get in the videos)
    • Custom thermal driver I wrote myself (keeps the phone cool)
    • LCD KCAL by Savoca
    • Westwood TCP congestion algorithm (enabled by default)
    • NTFS support
    • No placebo patches, features, or compiler "optimizations"
    • Many other misc. improvements not listed here

    Source code:
    Kernel (cm-13.0-caf branch): https://github.com/sultanxda/android...neplus_msm8974
    Local manifest (contains the rest of the sources): https://github.com/sultanxda/android...l_manifest.xml

    • CyanogenMod and its contributors
    • CAF (aka Qualcomm)
    • myfluxi (awesome friend with lots of amazing contributions)
    • 69gm (loyal guinea pig)
    • Open GApps
    • 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). 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, and then reboot.

    If you get an error when trying to install ("oppo.verify_trustzone" error), then first you must install/use TWRP recovery (TWRP cannot properly update the modem). Next, download and flash the latest official CM13.0 snapshot. Then,without rebooting from recovery, wipe /system and flash my ROM. This process is necessary to update various firmwares (including TrustZone), as the updated firmware is needed by my ROM. After flashing my ROM, flash a Google apps package, SuperSU if you want root access, 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.


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

    Mirror 1: https://forum.xda-developers.com/devdb/project/dl/?id=24514
    Mirror 2: https://www.androidfilehost.com/?w=f...&sort_dir=DESC
    Mirror 3: https://drive.google.com/open?id=0B0JHzN-9w20RNWNEaWtOR1JGR0U

    Google Apps: Platform: "ARM", Android: "6.0", Variant: Do NOT choose "Stock" or above. You will lose Snapcam.
    [STRIKE] SuperSU (if you want root access): http://forum.xda-developers.com/apps...v2-05-t2868133 [/STRIKE]
    I now recommend Magisk for root access. With it, I am able to pass Safetynet and, therefore, use Android Pay and Snapchat without issue: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
    Disable CPU underclock: http://forum.xda-developers.com/devd...t/dl/?id=15052

    XDA: DevDB Information
    CM13.0 with clean 3.4.0 kernel, ROM for the OnePlus One

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

    Version Information
    Status: Stable

    Created 2015-11-06
    Last Updated 2016-03-21
    Last edited: May 1, 2017

    leizhang123, Espeno, pluscat and 71 others like this.
  2. 69gm
    Jelly Bean Nov 6, 2015

    69gm , Nov 6, 2015 :

    April 30, 2017:
    *Android Security Patch Level: April 1, 2017
    *Camera: Fixed shutter button not working sometimes when taking pictures with the rear camera

    March 25, 2017:
    *Android Security Patch Level: March 1, 2017
    *Camera: Fixed out-of-focus photos when hitting the shutter button while the camera is automatically focusing

    *Added several security fixes

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

    February 12, 2017:
    *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

    *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 28, 2017:
    *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)

    *Added several security fixes from the LineageOS 14.1 kernel

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

    December 24, 2016:
    *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

    *Android Security Patch Level: December 1, 2016

    November 5, 2016:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes

    *Switched from CFQ to Deadline I/O scheduler (CFQ caused random reboots)
    *Fixed inaccurate battery percentage reported when the device is asleep for long periods of time (battery percentage would drop quickly after waking the device from a long period of sleep)

    October 26, 2016:
    *Removed Gello browser

    October 25, 2016:

    *Added new off-mode charging animation from CM nightlies

    *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:
    *Updated to stable/cm-13.0-ZNH5Y CyanogenMod branch
    *Android Security Patch Level: October 1, 2016
    *Updated Adreno graphics libraries from OnePlus X (CAF branch: LA.BF.1.1.3_rb1.12)
    *Fixed bug in reported LTE mobile signal strength (dBm was not being converted to ASU correctly)
    *Removed cLock wakelock
    *Added Gello browser

    *Added fix for Dirty COW vulnerability (CVE-2016-5195)
    *Switched from Deadline to CFQ I/O scheduler

    September 21, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Android Security Patch Level: September 6, 2016
    *Updated Adreno graphics libraries from HTC M8 MRA58K update

    *Android Security Patch Level: September 6, 2016
    *Fixed battery percentage dropping from 92% to 90% and from 50% to 48%
    *Disabled debugfs for improved security and reduced kernel resource footprint
    *Fixed dozens of coding errors detected across the entire kernel

    August 8, 2016:
    *Fixed choppy display brightness scaling

    *Fixed random reboots
    *Added a missing security fix

    August 6, 2016:

    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Android Security Patch Level: August 5, 2016
    *Added upstream fix for Bluetooth stutters (doesn't do anything on the OnePlus One)
    *Re-enabled Live Lockscreen (LLS) feature

    *Android Security Patch Level: August 5, 2016
    *Improved efficiency and performance of CPU input boost driver (device feels smoother)

    July 17, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Android Security Patch Level: July 5, 2016
    *Switched to newer version of Music app (from the nightlies)
    *Snap Camera: Fixed touch focus not working on part of the screen sometimes
    *Snap Camera: Fixed zoom circle not being centered correctly
    *Added upstream NFC fixes

    *Android Security Patch Level: July 5, 2016
    *Added various SELinux fixes

    June 24, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Fixed built-in OTA updater
    *Fixed NTFS R/W functionality
    *Switched to newer version of Screen Recorder app (from the nightlies)

    *Added adaptive low-memory-killer feature

    June 10, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Android Security Patch Level: June 1, 2016
    *Enabled Mobile Station Based (MSB) assisted GPS when a newer Baseband is in use (i.e. if your Baseband version starts with ".4.0.1" then you will get faster GPS locks)

    *Android Security Patch Level: June 1, 2016

    June 3, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Added Performance battery mode for heavy gaming
    *Power save battery mode now saves more power
    *Potentially fixed SIM card not being detected for some users

    *Added support for FiiO DAC

    May 26, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes

    *Added various security fixes
    *Added an 8th thermal throttle zone
    *Fixed CPU not properly being throttled in rare cases

    May 14, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Android Security Patch Level: May 1, 2016
    *Fixed choppy audio in Miitomo app

    *Increased scheduler tick rate to 300 Hz (reduces overall system latency)
    *Updated WiFi drivers to CAF LA.BF.1.1.3_rb1.13

    April 30, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Re-enabled new weather API (see: http://www.cyanogenmod.org/blog/plug-play-weather)
    *Fixed pink line in DNG photos captured with FreeDCam

    *Re-wrote my thermal control driver
    -CPU is now throttled in 7 different stages instead of 3
    -CPU throttling is less intrusive and more effective now

    April 23, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Re-enabled noise cancellation for phone calls
    *Snap Camera: Fixed UI glitches when camera is opened from the lock screen
    *Camera: Reduced frame drops when recording high-speed and slow-motion videos

    *Synced with CAF LA.BF.1.1.3_rb1.13

    April 18, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Camera: Fixed flickering when using Sports mode
    *Snap Camera: Re-arranged icons in the top bar

    *Increased boost frequency for non-primary CPU cores (improves performance)

    April 10, 2016:
    *Fixed "Invalid number" error message after a phone call ended
    *If you are on T-Mobile USA, reset your APN (go to Settings -> Cellular networks -> Access Point Names -> 3 dots in the corner -> Reset to default)

    April 9, 2016:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Android Security Patch Level: April 2, 2016
    *Fixed force close when accessing voicemail settings
    *Fixed crash when receiving two calls simultaneously and placing one on hold
    *Reverted to Lollipop RIL (should fix all mobile network issues)
    *Fixed random soft reboots
    *Removed 'Update Cyanogen recovery' setting from Developer options

    *Synced with CAF LA.BF.1.1.3_rb1.12
    *Fixed display backlight not turning off during off-mode charging

    April 4, 2016:
    *Fixed lock screen issues (lock screen unresponsive, icons not disappearing, etc.)

    *Fixed display flicker

    April 3, 2016:
    *Updated to new stable/cm-13.0-ZNH2K CyanogenMod branch
    *Fixed weather not displaying in cLock widget
    *Fixed crash when attempting to place call on hold
    *Disabled Fluence noise cancellation
    *Snap Camera: Fixed 100% picture quality setting
    *Snap Camera: Fixed some minor visual bugs

    *Updated display backlight driver from upstream cm-13.0
    Last edited: May 1, 2017

    dramkler, h0aX, pooceq and 13 others like this.
  3. 69gm
    Jelly Bean Nov 6, 2015

    69gm , Nov 6, 2015 :

    1. Could you add camera slow-shutter times greater than 2 seconds?
    Answer: No, I cannot. The reason why exposure times are capped at 2 seconds is due to the proprietary camera libraries from OxygenOS. Only OnePlus and Cyanogen Inc. can modify the proprietary camera libraries, so there is no way for me, a regular consumer, to implement exposure times greater than 2 seconds.

    2. Why did you use OxygenOS camera libraries? They don't have 4K camcorder support!
    Answer: My custom camera HAL enables 4K camcorder support with Oxygen's camera libraries, so this isn't an issue. Cyanogen's camera libraries have had some issues with the camcorder since day 1. The big issue that I have been able to reproduce on all OnePlus One devices I've come across is graphical artifacts in recorded videos (look towards the right @25 seconds):
    (issue report on JIRA: https://jira.cyanogenmod.org/browse/BACON-3582)
    OxygenOS' camera libraries do not have this issue, and thanks to my modifications, we now have 4K camcorder support with the OxygenOS libraries, so not much is lost by using them. The OxygenOS libraries can also take pictures faster/better than Cyanogen's libraries.

    3. Why did you underclock the CPU to 1958MHz? Yer crazy, bro.
    Answer: At 1958MHz, the amount of heat generated by the CPU is quite a bit less than at 2457MHz, so the CPU is throttled less often (leading to better user experience), and battery life is better as well. The performance difference between 1958MHz and 2457MHz 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: Nov 7, 2015

  4. 69gm
    Jelly Bean Nov 6, 2015

    Gaurav Rohilla and Evokkimus like this.
  5. 69gm
    Jelly Bean Nov 6, 2015

  6. Artur Deus
    Gingerbread Nov 6, 2015

    armmani2001 and 69gm like this.
  7. pjcsantos
    Froyo Nov 6, 2015

    atulnda likes this.
  8. Antoine Vdb
    KitKat Nov 6, 2015

  9. 69gm
    Jelly Bean Nov 6, 2015

    69gm , Nov 6, 2015 :
    Remember everyone. Even in Sultan's own words, this is an Alpha build so keep that in mind before posting mindless dribble. If you find a bug, logcat or it didn't happen.

    My guess is that most things people find is a CM thing so we have to wait for CM upstreams. Let's all hope CM continues to maintain this at a feverish pace!

    Antoine Vdb likes this.
  10. ittakary
    Eclair Nov 6, 2015

    ittakary , Nov 6, 2015 :
    Going to try it tomorrow!
    Is there any app for the kernel to modify CPU settings such as voltage and speed?

    HFR video with audio really works?!

    Thank you sir!

  11. 69gm
    Jelly Bean Nov 6, 2015

    69gm , Nov 6, 2015 :
    Don't fool around with setting for now. Remember this is an Alpha build so you're asking for trouble if you start messing with it.

    Best thing to do is give it a try and see how it is...

  12. csabreu
    Ice Cream Sandwich Nov 6, 2015

    csabreu , Nov 6, 2015 :
    Awesome work! I was waiting for the official CM13 nightlies to be released, but wanted also to try this CAF ROM for a while. Seems like I'll try it sooner now... what am I saying, I'm downloading it as we speak. I've to try it asap :)
    Last edited: Nov 6, 2015

    DannyG1979 likes this.
  13. amuffla
    Ice Cream Sandwich Nov 6, 2015

  14. 69gm
    Jelly Bean Nov 6, 2015

    Jost Schwider and amuffla like this.
  15. auerbach
    Honeycomb Nov 6, 2015

    auerbach , Nov 6, 2015 :
    gonna try it for sure
    have been on his lollipop rom for months and i think it is the best so i can't doubt that he is going to do it again with marshmallow

  16. yoshpe
    Gingerbread Nov 6, 2015

  17. ash23
    Jelly Bean Nov 6, 2015

    ash23 , Nov 6, 2015 :
    Well I know what I'm doing when I get home. Haven't used sultans lollipop ROMs but I hear they are the best

  18. Evokkimus
    KitKat Nov 6, 2015

    Evokkimus , Nov 6, 2015 :
    OMG! Thank you @Sultanxda, my favorite Developer, for making this. And thanks @69gm for providing a great thread here on OP forums.

    I'm looking forward to the development of this ROM.

    Edit: Gonna try multirom. Which GApps is recommended for 6.0 at the moment?

    jstepa likes this.
  19. Evokkimus
    KitKat Nov 6, 2015

    Last edited: Nov 13, 2015

  20. ash23
    Jelly Bean Nov 6, 2015

    ash23 , Nov 6, 2015 :
    That animation makes things feel way faster

    gonadwarrior and Evokkimus like this.