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

Search This thread


Aug 31, 2010
I am wondering whether XPrivacy is working ok or not on the Sultan Nougat version with XPosed. Has anyone here already tried?

Xprivacy doesn't work or is at least not reliable on nougat. You can just build your own lineageOS 13 including the manifest from the start post so that you have the custom kernel and the modifications. I successfully generated a rom with the security patch of November.

I really like this great rom :)
  • Like
Reactions: lammpat


Jul 27, 2016
Would be great if this ROM would receive one final update to fix the terrible KRACK vulnerability. So we could continue to use it if we want to. But with unpatched KRACK it's very unsafe.
  • Like
Reactions: lammpat


Senior Member
Apr 9, 2013
Would be great if this ROM would receive one final update to fix the terrible KRACK vulnerability. So we could continue to use it if we want to. But with unpatched KRACK it's very unsafe.
+1 I will too come back to this if it get final version with latest security fixes. @Sultanxda please spare some time bro, and release a finale version. ?


New member
Apr 11, 2018
NEOS OnePlus 3 image in AVD emulator


I apologize if this is the wrong place for this question, I haven't posted in XDA before and I'm not very knowledgeable about android development.

Has anyone successfully loaded the CM13 image for the OnePlus 3 in the Android SDK provided emulator?

I work with a team that's porting the Comma NEO and OpenDrive platform to a Kia Soul. The NEO is an open source device based on the OnePlus 3, it provides an interface for CAN messages to the usb port on the phone and OpenDrive uses the camera from the phone to make decisions about control of steering, acceleration etc...

I'm trying to emulate the provided system.img as an AVD in the Android SDK. It looks like the image provided by comma is for CM 13 so I thought maybe someone in this thread would be able to help.

The primary reason for exploring emulation is that we currently only have one device built so it becomes a bottleneck if we want to do development across the team.

Initially I tried creating an AVD with the following settings:

kernel.path = ~/Android/Sdk/system-images/android-23/default/x86//kernel-ranchu
disk.ramdisk.path = ~/Android/Sdk/system-images/android-23/default/x86//ramdisk.img
disk.systemPartition.initPath = ~/.android/avd/NEO_Test_Device.avd/system.img

Currently when the emulator starts is will remain in a black screen, even after a couple hours it will not boot. When closing the emulator it says the device had not finished booting. Additionally there's an error when trying to use adb shell that /system/bin/sh wasn't found even though the device is listed. When I mount the system.img in linux there is a bin folder with sh so my best guess is that the ramdisk/kernel I'm using is not compatible.

Has anyone used this particular CM13 image for the OnePlus 3 with the Android SDK emulator and what ramdisk.img / kernel worked? Comma provides a boot.img and I've seen discussions about repackaging that into a separate kernel and ramdisk for emulation. I appreciate any recommendations on best path or resources I should be looking at.

NEOS OS Image (NEOS v3 zip download page):

Cat /etc/CHANGELOG-CM.txt


Visit http-github-com-CyanogenMod for full source and git access.

Visit http-review-cyanogenmod-org for our Gerrit instance.

CHANGELOG (notable new features)

### 13.0 ZNH5Y
* Common: Android 6.0.1 (Google)
* Android Security Bulletin - August 1st update


New member
Apr 17, 2018
My one plus works fine, but after a phone call I lose touch function until u restart, what can fix this problem. I got a new screen installed from a shop and ever since that its been acting up.

Top Liked Posts

  • There are no posts matching your filters.
  • 326
     * 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://forum.xda-developers.com/one...m-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
      -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

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

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

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

    Mirror 1: https://forum.xda-developers.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://forum.xda-developers.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703
    Disable CPU underclock (optional): http://forum.xda-developers.com/devdb/project/dl/?id=19944

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

    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

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

    *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:
    *Fixed touchscreen firmware update process
    *Updated touchscreen firmware from the latest OxygenOS Open Beta

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

    *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:
    *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

    *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:
    *Fixed VoLTE
    *Camera: Fixed freezing when capturing photos with flash
    *Fixed reboots during H.265 (HEVC) video playback

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

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

    *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:
    *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:
    *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

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

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

    *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:
    *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)

    *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:
    *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

    *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:
    *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

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

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

    *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:
    *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)

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

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

    *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:
    *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
    -Many other manual controls

    *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:
    *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

    *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:
    *Latest upstream (stable/cm-13.0-ZNH5Y) CyanogenMod changes

    *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:
    *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)

    *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:
    *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:
    *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

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

    September 17, 2016:
    *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

    *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:
    *Latest upstream (stable/cm-13.0-ZNH2K) CyanogenMod changes
    *Improved GPS

    *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:
    *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

    *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:
    *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

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

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

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

    August 21, 2016:
    *Initial release

    *Initial release
    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 :)


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