KudKernel r45 - mido - AOSP 9

Search This thread

krasCGQ

Recognized Contributor
Apr 13, 2015
5,433
4,937
20
Kendari
kud.my.id
[SIZE=+1][SIZE=+2]KudKernel – from KudProject Development[/SIZE]
for the Redmi Note 4(X) Snapdragon – codenamed mido

~ designed to be minimal and will always be ~[/SIZE]​

Disclaimer – your (already) old, repeated, boring notice:
Code:
/*
 * Your warranty might not be void (thanks Xiaomi). However...
 *
 * 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 KERNEL
 * 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.
 */

Not-a-features-list-sheet – except base, are changes from XenonHD Official kernel:
  • CAF LA.UM.7.5.r1-05300-8x96.0 tag with android-3.18 kernel/common changes + Linux 3.18.140 (EOL) merged in.
  • Powered by osm0sis' AnyKernel3!
  • Compiled using Clang 9 built from source.
  • Compat vDSO from Pixel XL kernel.
  • Rapid GC patches for F2FS from arter97.
  • sdFAT file system from Samsung for vfat and exFAT; modified and backported by LineageOS Team with additional contributors.
  • WireGuard – fast, modern, secure kernel VPN tunnel
  • Maximum CPU frequency after boot is set to 1804 MHz by default (still user configurable).
  • westwood enabled and set as default TCP congestion algorithm.
  • SafetyNet bypass code by Sultanxda.
  • Boeffla Wakelock Blocker by Lord Boeffla
  • KCAL Color Control by savoca; MDSS MDP v1.7 port by tbalden
  • CPUFreq governors: performance, interactive.
  • Enabled Yama LSM for increased security. Default to admin-only attach.
  • Software CRC check exposed to userspace and disabled by default.
  • Excluded most of debugging symbols for kernel size reduction.
  • Any other improvements and tweaks that aren't worth to be listed here.
  • ...maybe I forget more? Check sources. It speaks for itself.

Compatibility – as things are changed rapidly:
r1-r10: Oreo-MR1 non-treble ROMs only.
r3+ should support newer OV13855 camera blobs.
r4+ should support EBBG display and Goodix GT9xx touch panel.
r11-r39: Oreo-MR1, both treble and non-treble ROMs.
r26+ should support installation on P Semi-GSI with AOSP 8.1 vendor AOSP 9.0 for convenience, but remains unsupported on my side.
r37-r39 wouldn't support Pie ROMs with extremely weird Android versioning (9.0.0, 09.0.0, etc.).
r40+: Pie treble ROMs only.
Future releases: Who knows?

How-to-install:
  • Just flash it using your favourite recovery (TWRP, RedWolf, OrangeFox, or whatever it is), no additional hassle needed.
  • r39 and older zips are signed with Android test-keys; starting r40, zips are signed with KudProject release keys.
  • Switching from/to another custom kernel requires re-flashing of the original boot image, or when explicitly notified to do so.

r11-39's AnyKernel2 backend have been configured to detect ROM's ro.treble.enabled prop and use appropriate DTB during kernel installation.

Downloads:

Credits – if not mentioned on features list:
  • The Linux Foundation, CodeAurora
  • abhishek987, highwaystar_ru
  • nathanchance - android-linux-stable
  • franciscofranco
  • All mido developers who're working on making the device great again (well, not you, buildbots!)
  • All others who have their commits or contributions picked.

XDA:DevDB Information
KudKernel (mido), Kernel for the Xiaomi Redmi Note 4

Contributors
krasCGQ
Source Code: https://github.com/KudProject/kernel_xiaomi_msm8953-3.18

Kernel Special Features: Mentioned above. ;)

Version Information
Status: Stable
Current Stable Version: r45
Stable Release Date: 2019-07-12

Created 2018-02-16
Last Updated 2019-07-12
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,433
4,937
20
Kendari
kud.my.id
[SIZE=+1]Changelogs[/SIZE]​
r45 - 12-07-2019 (UTC+8) - commit 3cb76add702a
  • Compiled with Clang 9.0 at revision ffb4d2bff7f1
  • Assembled and linked with Binutils 2.32.51.20190624
  • CAF LA.UM.7.6.r1-05500-89xx.0
  • Synced with android-3.18 changes up to July 10 UTC+8
  • WireGuard kernel module version 0.0.20190702
  • Small fixes and improvements

r44 - 23-06-2019 (UTC+8) - commit 8c819daf5c12
  • CAF LA.UM.7.5.r1-05300-8x96.0
  • Synced with android-3.18 changes up to June 20 UTC+8
  • Now powered by AnyKernel3!
  • Implemented deferred resume work for FT5435

r43 - 19-05-2019 (UTC+8) - commit b7c721272e19
  • Linux 3.18.140 (finally it's EOL for good)
  • F2FS v5.2-rc1
  • Merged latest android-3.18 changes.
  • Updated F2FS rapid GC patches from arter97.
  • Reverted LMK driver to android-3.18 version.

r42 - 10-05-2019 (UTC+8) - commit a86a041e06cd
  • Compiled with Clang 9.0 at revision cb1beee76f52.
  • CAF LA.UM.7.5.r1-04800.8x96.0

r41 - 28-04-2019 (UTC+8) - commit d24296a8ed06
  • Relaxed Yama LSM's ptrace_scope settings to only allow admin-only attach.

r40 - 27-04-2019 (UTC+8) - commit 27c39980604d
  • Fully rebased; now based on my own XenonHD Official kernel.
  • Compiled with Clang 9.0 at revision aa162682ca23.
  • CAF LA.UM.7.5.r1-04500-8x96.0
  • Linux 3.18.139
  • Dropped support for Oreo-MR1 and non-treble ROMs.
  • Updated base kernel with latest android-3.18 kernel/common changes.
  • Updated SafetyNet cmdline patches to only remove Verified Boot and verity status.
  • Updated F2FS rapid GC patches to be inline with arter97's OnePlus 5/5T kernel.
  • Re-enabled variable initialization.
  • Forced use of /dev/urandom.
  • Included fix for (the very long) display wakeup issue from nichcream.
  • Dropped unnecessary patches.
  • AnyKernel2: Updated base.
  • Ramdisk: Converted modifications to shell script; currently only works for Magisk and LineageSU users.
  • Ramdisk: Yama LSM's ptrace_scope value is now properly hardcoded.

r39 - 12-04-2019 (UTC+8) - commit 8d81a4c5cd94
  • Linux 3.18.138
  • F2FS v5.1-rc1

r38 - 27-01-2019 (UTC+8) - commit 88cce616b41b
  • Linux 3.18.133
  • CAF LA.UM.6.5.r1-10500-8x96.0
  • F2FS v5.0-rc1
  • sdFAT v2.1.8
  • SDcardFS changes from AOSP kernel/common merged.
  • Compiled with Clang 9 from LLVM monorepo.

r37 - 31-12-2018 (UTC+8) - commit 595c1558b99c
  • Linux 3.18.131
  • Assembled and linked with GNU-A 8.2-2018.11.
  • Updated AnyKernel2 backend; now uses upstream version of Android version checking, doesn't support Pie ROMs with extremely weird Android versioning (9.0.0, 09.0.0, etc.) as osm0sis doesn't support it.

r36 - 10-12-2018 (UTC+8) - commit 3f5ae4e4729c
  • Linux 3.18.128
  • CAF LA.UM.6.6.r1-10400-89xx.0
  • F2FS v4.20-rc1
  • Binder updates.

r35 - 18-11-2018 (UTC+8) - commit 3d555ac351d6
  • CAF LA.UM.6.6.r1-10100-89xx.0
  • Linux 3.18.125
  • Doesn't have local init sanitazion for now. No more local init sanitized build.

r34 - 29-09-2018 (UTC+8) - commit c095c384fa0c
  • Linux 3.18.123
  • CAF LA.UM.6.6.r1-09800-89xx.0
  • Applied most USB and MMC changes skipped by CAF during series of Linux stable kernel merges.
  • Synced F2FS changes with Linux v4.19-rc1.

r33 - 19-09-2018 (UTC+8) - commit 8c6a09462c53
  • CAF LA.UM.6.6.r1-09700-89xx.0

r32 - 11-09-2018 (UTC+8) - commit a5dde8b374f0
  • Linux 3.18.122

r31 - 05-09-2018 (UTC+8) - commit 5a25b02a564d
  • Linux 3.18.121
  • Added and enabled support for compat vDSO.
  • Disabled zcache, dm-verity, and USB network framework.
  • Removed PPOP and unsupported CPU features.

r30 - 28-08-2018 (UTC+8) - commit bb50c4d835c8
  • Linux 3.18.120

r29 - 26-08-2018 (UTC+8) - commit 8da351891bf3
  • CAF LA.UM.6.6.r1-09600-89xx.0

r28 - 18-08-2018 (UTC+8) - commit 429d8e7fb9dd
  • Linux 3.18.119
  • sdFAT 2.0.8
  • Reverted a commit from 09200 prima tag that causes deep sleep issues when WiFi isn't connected.
  • Removed clarity CPU governor.

r27 - 10-08-2018 (UTC+8) - commit c47e4addcd7c
  • Linux 3.18.118
  • CAF LA.UM.6.6.r1-09500-89xx.0
  • Enabled local init sanitizer.

r26 - 28-07-2018 (UTC+8) - commit f2e30fabce83
  • Linux 3.18.117
  • CAF LA.UM.6.5.r1-09300-8x96.0
  • Synced with LineageOS kernel changes.
  • Synced SDcardFS changes from Google common kernel.
  • AK2: Allowed installation on P Semi-GSI.
  • AK2: Switched to 64-bit binaries extracted from AIK-Mobile v3.3.
  • AK2: Removed unused binaries.

r25 - 23-07-2018 (UTC+8) - commit d46eeb4d3e6c
  • Linux 3.18.116
  • CAF LA.UM.6.6.r1-09200-89xx.0
  • F2FS v4.18-rc1
  • Synced rapid GC with F2FS v4.18-rc1.
  • no-op as default I/O scheduler during boot, then switch to BFQ after it's completed.
  • ft5435: Fixed unbalanced enable IRQ on screen wake up.

r24 - 12-07-2018 (UTC+8) - commit f6a4f0f0dd84
  • Merged Linux 3.18.115.
  • Merged latest LineageOS changes.
  • Removed reboot to EDL interface. (again)
  • Fixed massive CPUFreq stats memory leaks. (Sultanxda)
  • Reverted a potentially troubling, MMC related changes.
  • Silenced a logspam.

r23 - 03-07-2018 (UTC+8) - commit ac99f0269f62
  • Merged Linux 3.18.114.

r22 - 01-07-2018 (UTC+8) - commit 1fd5c3eda900
  • Merged CAF LA.UM.6.6.r1-09000-89xx.0 tag.
  • Pulled cherry-picks from LineageOS qcom_msm8996 kernel.
  • Pulled SDcardFS updates from Google common kernel.
  • Enabled HW accelerated CRC32 module.
  • Disabled kernel debugging.
  • Rebased AnyKernel2.
  • Initial stub support for Franco Kernel Manager Performance Profiles.
  • Miscellaneous changes.

r21 - 13-06-2018 (UTC+8) - commit 73589ae93fc1
  • Merged Linux 3.18.113.
  • F2FS updates from Google common kernel.
  • Made sure only specific Adreno codes are compiled.
  • Made sure only newer qcrypto is compiled.
  • Enabled LZ4 support for ZRAM and set it as default algorithm.
  • Disabled obselete erratum workarounds.
  • Added a missing CVE patch.

r20 - 30-05-2018 (UTC+8) - commit 0ae98ce456f0
  • Merged Linux 3.18.111.
  • Merged CAF LA.UM.6.6.r1-08600-89xx.0.

r19 - 26-05-2018 (UTC+8) - commit 55f6f731dc46
  • Merged Linux 3.18.110.
  • Kernel is now compiled using clang 7.0 built from source.
  • Default CPU maxfreq after boot is now 1804 MHz.
  • ext4, F2FS, SDcardFS, binder, and FUSE updates from Google common kernel.
  • sdFAT updates from the upstream.
  • Updated clarity's screen off maxfreq to 1036 MHz.
  • Removed unused display panels from DTBs.
  • Various code improvements (to make compiler happy a bit).

r18 - 16-05-2018 (UTC+8) - commit cd1d36e529d5
  • Merged Linux 3.18.109.
  • Merged CAF LA.UM.6.6.r1-08500-89xx.0 tag.
  • Merged latest LineageOS 15.1 changes.
  • Kernel is now compiled using clang 7.0.2 from AOSP.
  • Added clarity CPUFreq governor.
  • Added and enabled TTL target support.
  • Implemented more security hardening setup from Copperhead.
  • Various fixes and improvements.

r17 - 03-05-2018 (UTC+8) - commit 7a6736332e64
  • Merged Linux 3.18.108.
  • Eliminated vendor mismatch warning on every (re)boot.
  • Switched to 300 HZ timer interrupt.
  • Removed unused NFC from DTBs.
  • CFQ now defaults to IOPS mode on SSDs.
  • Queued more MSM drivers into system_power_efficient_wq.
  • Various improvements to devfreq and cpufreq_interactive, and more.

r16 - 29-04-2018 (UTC+8) - commit f3926ae3f7f6
  • Merged Linux 3.18.107.
  • Merged CAF LA.UM.6.6.r1-08300-89xx.0 tag.
  • Merged SDcardFS updates from Google common kernel.
  • Kernel is now compiled using GCC 9.0.0.

r15 - 24-04-2018 (UTC+8) - commit 25102fbbe16a
  • Merged Linux 3.18.106.
  • Merged changes from android-linux-stable.
  • Upstreamed SDcardFS and F2FS (v4.17-rc1) from Google common kernel.
  • Merged a few LMK changes from Google common kernel.
  • Implemented additional check to AnyKernel2 backend to avoid flashing on incompatible ROMs.
  • Minor updates to sdFAT.

r14 - 15-04-2018 (UTC+8) - commit cb5c80fea281
  • Merged CAF LA.UM.6.6.r1-07400-89xx.0 tag.

r13 - 14-04-2018 (UTC+8) - commit df0fe73295ed
  • Merged Linux 3.18.105.
  • Fixed gt9xx support.
  • Imported sdFAT file system to provide support for both vfat and exFAT.
  • Re-enabled CFQ and deadline I/O schedulers.

r12 - 08-04-2018 (UTC+8) - commit 3ebccc08f5db
  • Merged Linux 3.18.103.

r11 - 03-04-2018 (UTC+8) - commit 3641e3754623
  • Rebased to msm8953 common kernel with ALS merged in.
  • Merged CAF LA.UM.6.6.r1-07200-89xx.0 tag.
  • Added support for treble-enabled ROMs.
  • Added a few patches from my Redmi 3 kernel.
  • Killed TZ log, CoreSight, and EXT2 drivers.

r10 - 25-03-2018 (UTC+8) - commit 4a66b317b08c
  • Merged Linux 3.18.102.

r9 - 22-03-2018 (UTC+8) - commit cace90e96bfe
  • Merged Linux 3.18.101.
  • Merged latest F2FS and SDcardFS patches from Google common kernel.
  • Merged latest uid_sys_stats patches from Google common kernel.
  • Optimized touchscreen drivers using -funroll-loops.
  • Killed USB Type-C detection using Pericom chip (useless with mido having MicroUSB).
  • Removed KCAL tweaks.

r8 - 19-03-2018 (UTC+8) - commit 48256d5d53c3
  • Merged Linux 3.18.100.

r7 - 15-03-2018 (UTC+8) - commit 5cf3e7ea7f80
  • Merged LA.UM.6.6.r1-06700-89xx.0 tag.
  • Custom init rc cleanup.

r6 - 12-03-2018 (UTC+8) - commit 8b06dc92a73f
  • Merged Linux 3.18.99.
  • Removed TIMER_STATS.
  • External storage read ahead is now 128 kb by default.
  • Disabled BFQ slice idle for encrypted storage as well.

r5 - 04-03-2018 (UTC+8) - commit b0081d1736ba
  • Merged Linux 3.18.98.

r4 - 28-02-2018 (UTC+8) - commit 6dba8382eac8
  • Merged Linux 3.18.97.
  • Merged CAF LA.UM.6.6.r1-06500-89xx.0 tag.
  • Merged (more) missing linux-stable commits.
  • Synced defconfig with latest CAF changes.
  • Support for EBBG display and Goodix GT9xx touch panel.

r3 - 27-02-2018 (UTC+8) - commit 1ebb7604c6ec
  • Merged Linux 3.18.96.
  • Merged changes to camera stack from LA.UM.5.6.r1-06900-89xx.0 tag.
  • Merged changes to binder, F2FS, and SDcardFS from Google common kernel.
  • Compiled with -O2 optimization flags.
  • Removed performance, powersave, and userspace devfreq governors.
  • Updated devfreq governor whitelist.
  • Should support newer OV13855 camera blobs.

r2 - 17-02-2018 (UTC+8) - commit d7cf1abb43fe
Tagged commit doesn't match the one on kernel version string. This is a non-issue.
  • Merged Linux 3.18.95.
  • Enabled westwood and set it as default TCP congestion algorithm.
  • Excluded all debugging symbols (reduces kernel size a bit).

r1 - 16-02-2018 (UTC+8) - commit 30167a843144
  • Initial release.
 
Last edited:

krasCGQ

Recognized Contributor
Apr 13, 2015
5,433
4,937
20
Kendari
kud.my.id
Last edited:

krasCGQ

Recognized Contributor
Apr 13, 2015
5,433
4,937
20
Kendari
kud.my.id
Feather maybe :p
NoU

A bit O.T. - but do you have a link to the toolchain that you used to build it? Thanks.
Unfortunately, I don't. If I ever share it, it won't be statically linked and may work only on Arch Linux; the Linux distro I'm using.

You can use this script to build the toolchain however.
Code:
./build -a arm64 -s gnu -v 8

Sent from my Redmi Note 4 using XDA Labs
 
  • Like
Reactions: DarthJabba9

PriPhaze

Senior Member
Oct 3, 2014
941
359
OnePlus 7 Pro
Correct me if i'm wrong but doesn't aything below 1.8ghz becomes counterproductive due to the fact that it takes longer to the CPU to be done with some tasks?
And before someone comes and tells me " hey you can always use kernel audiutor or Ex kernel manager to change that!" I KNOW THAT.

Anyways , thanks a lot for working on mido and i'm already trying it out, everything seems to be working correctly and i will wait a bit long to see how's battery life.
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,433
4,937
20
Kendari
kud.my.id
Correct me if i'm wrong but doesn't aything below 1.8ghz becomes counterproductive due to the fact that it takes longer to the CPU to be done with some tasks?
For me it doesn't. It's the best compromise I get.

Work for nougat or just oreo?
Maybe spending a minute reading the short OP will get you an idea about it...

Sent from my Redmi Note 4 using XDA Labs
 
  • Like
Reactions: PriPhaze

Top Liked Posts

  • There are no posts matching your filters.
  • 124
    [SIZE=+1][SIZE=+2]KudKernel – from KudProject Development[/SIZE]
    for the Redmi Note 4(X) Snapdragon – codenamed mido

    ~ designed to be minimal and will always be ~[/SIZE]​

    Disclaimer – your (already) old, repeated, boring notice:
    Code:
    /*
     * Your warranty might not be void (thanks Xiaomi). However...
     *
     * 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 KERNEL
     * 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.
     */

    Not-a-features-list-sheet – except base, are changes from XenonHD Official kernel:
    • CAF LA.UM.7.5.r1-05300-8x96.0 tag with android-3.18 kernel/common changes + Linux 3.18.140 (EOL) merged in.
    • Powered by osm0sis' AnyKernel3!
    • Compiled using Clang 9 built from source.
    • Compat vDSO from Pixel XL kernel.
    • Rapid GC patches for F2FS from arter97.
    • sdFAT file system from Samsung for vfat and exFAT; modified and backported by LineageOS Team with additional contributors.
    • WireGuard – fast, modern, secure kernel VPN tunnel
    • Maximum CPU frequency after boot is set to 1804 MHz by default (still user configurable).
    • westwood enabled and set as default TCP congestion algorithm.
    • SafetyNet bypass code by Sultanxda.
    • Boeffla Wakelock Blocker by Lord Boeffla
    • KCAL Color Control by savoca; MDSS MDP v1.7 port by tbalden
    • CPUFreq governors: performance, interactive.
    • Enabled Yama LSM for increased security. Default to admin-only attach.
    • Software CRC check exposed to userspace and disabled by default.
    • Excluded most of debugging symbols for kernel size reduction.
    • Any other improvements and tweaks that aren't worth to be listed here.
    • ...maybe I forget more? Check sources. It speaks for itself.

    Compatibility – as things are changed rapidly:
    r1-r10: Oreo-MR1 non-treble ROMs only.
    r3+ should support newer OV13855 camera blobs.
    r4+ should support EBBG display and Goodix GT9xx touch panel.
    r11-r39: Oreo-MR1, both treble and non-treble ROMs.
    r26+ should support installation on P Semi-GSI with AOSP 8.1 vendor AOSP 9.0 for convenience, but remains unsupported on my side.
    r37-r39 wouldn't support Pie ROMs with extremely weird Android versioning (9.0.0, 09.0.0, etc.).
    r40+: Pie treble ROMs only.
    Future releases: Who knows?

    How-to-install:
    • Just flash it using your favourite recovery (TWRP, RedWolf, OrangeFox, or whatever it is), no additional hassle needed.
    • r39 and older zips are signed with Android test-keys; starting r40, zips are signed with KudProject release keys.
    • Switching from/to another custom kernel requires re-flashing of the original boot image, or when explicitly notified to do so.

    r11-39's AnyKernel2 backend have been configured to detect ROM's ro.treble.enabled prop and use appropriate DTB during kernel installation.

    Downloads:

    Credits – if not mentioned on features list:
    • The Linux Foundation, CodeAurora
    • abhishek987, highwaystar_ru
    • nathanchance - android-linux-stable
    • franciscofranco
    • All mido developers who're working on making the device great again (well, not you, buildbots!)
    • All others who have their commits or contributions picked.

    XDA:DevDB Information
    KudKernel (mido), Kernel for the Xiaomi Redmi Note 4

    Contributors
    krasCGQ
    Source Code: https://github.com/KudProject/kernel_xiaomi_msm8953-3.18

    Kernel Special Features: Mentioned above. ;)

    Version Information
    Status: Stable
    Current Stable Version: r45
    Stable Release Date: 2019-07-12

    Created 2018-02-16
    Last Updated 2019-07-12
    45
    [SIZE=+1]Changelogs[/SIZE]​
    r45 - 12-07-2019 (UTC+8) - commit 3cb76add702a
    • Compiled with Clang 9.0 at revision ffb4d2bff7f1
    • Assembled and linked with Binutils 2.32.51.20190624
    • CAF LA.UM.7.6.r1-05500-89xx.0
    • Synced with android-3.18 changes up to July 10 UTC+8
    • WireGuard kernel module version 0.0.20190702
    • Small fixes and improvements

    r44 - 23-06-2019 (UTC+8) - commit 8c819daf5c12
    • CAF LA.UM.7.5.r1-05300-8x96.0
    • Synced with android-3.18 changes up to June 20 UTC+8
    • Now powered by AnyKernel3!
    • Implemented deferred resume work for FT5435

    r43 - 19-05-2019 (UTC+8) - commit b7c721272e19
    • Linux 3.18.140 (finally it's EOL for good)
    • F2FS v5.2-rc1
    • Merged latest android-3.18 changes.
    • Updated F2FS rapid GC patches from arter97.
    • Reverted LMK driver to android-3.18 version.

    r42 - 10-05-2019 (UTC+8) - commit a86a041e06cd
    • Compiled with Clang 9.0 at revision cb1beee76f52.
    • CAF LA.UM.7.5.r1-04800.8x96.0

    r41 - 28-04-2019 (UTC+8) - commit d24296a8ed06
    • Relaxed Yama LSM's ptrace_scope settings to only allow admin-only attach.

    r40 - 27-04-2019 (UTC+8) - commit 27c39980604d
    • Fully rebased; now based on my own XenonHD Official kernel.
    • Compiled with Clang 9.0 at revision aa162682ca23.
    • CAF LA.UM.7.5.r1-04500-8x96.0
    • Linux 3.18.139
    • Dropped support for Oreo-MR1 and non-treble ROMs.
    • Updated base kernel with latest android-3.18 kernel/common changes.
    • Updated SafetyNet cmdline patches to only remove Verified Boot and verity status.
    • Updated F2FS rapid GC patches to be inline with arter97's OnePlus 5/5T kernel.
    • Re-enabled variable initialization.
    • Forced use of /dev/urandom.
    • Included fix for (the very long) display wakeup issue from nichcream.
    • Dropped unnecessary patches.
    • AnyKernel2: Updated base.
    • Ramdisk: Converted modifications to shell script; currently only works for Magisk and LineageSU users.
    • Ramdisk: Yama LSM's ptrace_scope value is now properly hardcoded.

    r39 - 12-04-2019 (UTC+8) - commit 8d81a4c5cd94
    • Linux 3.18.138
    • F2FS v5.1-rc1

    r38 - 27-01-2019 (UTC+8) - commit 88cce616b41b
    • Linux 3.18.133
    • CAF LA.UM.6.5.r1-10500-8x96.0
    • F2FS v5.0-rc1
    • sdFAT v2.1.8
    • SDcardFS changes from AOSP kernel/common merged.
    • Compiled with Clang 9 from LLVM monorepo.

    r37 - 31-12-2018 (UTC+8) - commit 595c1558b99c
    • Linux 3.18.131
    • Assembled and linked with GNU-A 8.2-2018.11.
    • Updated AnyKernel2 backend; now uses upstream version of Android version checking, doesn't support Pie ROMs with extremely weird Android versioning (9.0.0, 09.0.0, etc.) as osm0sis doesn't support it.

    r36 - 10-12-2018 (UTC+8) - commit 3f5ae4e4729c
    • Linux 3.18.128
    • CAF LA.UM.6.6.r1-10400-89xx.0
    • F2FS v4.20-rc1
    • Binder updates.

    r35 - 18-11-2018 (UTC+8) - commit 3d555ac351d6
    • CAF LA.UM.6.6.r1-10100-89xx.0
    • Linux 3.18.125
    • Doesn't have local init sanitazion for now. No more local init sanitized build.

    r34 - 29-09-2018 (UTC+8) - commit c095c384fa0c
    • Linux 3.18.123
    • CAF LA.UM.6.6.r1-09800-89xx.0
    • Applied most USB and MMC changes skipped by CAF during series of Linux stable kernel merges.
    • Synced F2FS changes with Linux v4.19-rc1.

    r33 - 19-09-2018 (UTC+8) - commit 8c6a09462c53
    • CAF LA.UM.6.6.r1-09700-89xx.0

    r32 - 11-09-2018 (UTC+8) - commit a5dde8b374f0
    • Linux 3.18.122

    r31 - 05-09-2018 (UTC+8) - commit 5a25b02a564d
    • Linux 3.18.121
    • Added and enabled support for compat vDSO.
    • Disabled zcache, dm-verity, and USB network framework.
    • Removed PPOP and unsupported CPU features.

    r30 - 28-08-2018 (UTC+8) - commit bb50c4d835c8
    • Linux 3.18.120

    r29 - 26-08-2018 (UTC+8) - commit 8da351891bf3
    • CAF LA.UM.6.6.r1-09600-89xx.0

    r28 - 18-08-2018 (UTC+8) - commit 429d8e7fb9dd
    • Linux 3.18.119
    • sdFAT 2.0.8
    • Reverted a commit from 09200 prima tag that causes deep sleep issues when WiFi isn't connected.
    • Removed clarity CPU governor.

    r27 - 10-08-2018 (UTC+8) - commit c47e4addcd7c
    • Linux 3.18.118
    • CAF LA.UM.6.6.r1-09500-89xx.0
    • Enabled local init sanitizer.

    r26 - 28-07-2018 (UTC+8) - commit f2e30fabce83
    • Linux 3.18.117
    • CAF LA.UM.6.5.r1-09300-8x96.0
    • Synced with LineageOS kernel changes.
    • Synced SDcardFS changes from Google common kernel.
    • AK2: Allowed installation on P Semi-GSI.
    • AK2: Switched to 64-bit binaries extracted from AIK-Mobile v3.3.
    • AK2: Removed unused binaries.

    r25 - 23-07-2018 (UTC+8) - commit d46eeb4d3e6c
    • Linux 3.18.116
    • CAF LA.UM.6.6.r1-09200-89xx.0
    • F2FS v4.18-rc1
    • Synced rapid GC with F2FS v4.18-rc1.
    • no-op as default I/O scheduler during boot, then switch to BFQ after it's completed.
    • ft5435: Fixed unbalanced enable IRQ on screen wake up.

    r24 - 12-07-2018 (UTC+8) - commit f6a4f0f0dd84
    • Merged Linux 3.18.115.
    • Merged latest LineageOS changes.
    • Removed reboot to EDL interface. (again)
    • Fixed massive CPUFreq stats memory leaks. (Sultanxda)
    • Reverted a potentially troubling, MMC related changes.
    • Silenced a logspam.

    r23 - 03-07-2018 (UTC+8) - commit ac99f0269f62
    • Merged Linux 3.18.114.

    r22 - 01-07-2018 (UTC+8) - commit 1fd5c3eda900
    • Merged CAF LA.UM.6.6.r1-09000-89xx.0 tag.
    • Pulled cherry-picks from LineageOS qcom_msm8996 kernel.
    • Pulled SDcardFS updates from Google common kernel.
    • Enabled HW accelerated CRC32 module.
    • Disabled kernel debugging.
    • Rebased AnyKernel2.
    • Initial stub support for Franco Kernel Manager Performance Profiles.
    • Miscellaneous changes.

    r21 - 13-06-2018 (UTC+8) - commit 73589ae93fc1
    • Merged Linux 3.18.113.
    • F2FS updates from Google common kernel.
    • Made sure only specific Adreno codes are compiled.
    • Made sure only newer qcrypto is compiled.
    • Enabled LZ4 support for ZRAM and set it as default algorithm.
    • Disabled obselete erratum workarounds.
    • Added a missing CVE patch.

    r20 - 30-05-2018 (UTC+8) - commit 0ae98ce456f0
    • Merged Linux 3.18.111.
    • Merged CAF LA.UM.6.6.r1-08600-89xx.0.

    r19 - 26-05-2018 (UTC+8) - commit 55f6f731dc46
    • Merged Linux 3.18.110.
    • Kernel is now compiled using clang 7.0 built from source.
    • Default CPU maxfreq after boot is now 1804 MHz.
    • ext4, F2FS, SDcardFS, binder, and FUSE updates from Google common kernel.
    • sdFAT updates from the upstream.
    • Updated clarity's screen off maxfreq to 1036 MHz.
    • Removed unused display panels from DTBs.
    • Various code improvements (to make compiler happy a bit).

    r18 - 16-05-2018 (UTC+8) - commit cd1d36e529d5
    • Merged Linux 3.18.109.
    • Merged CAF LA.UM.6.6.r1-08500-89xx.0 tag.
    • Merged latest LineageOS 15.1 changes.
    • Kernel is now compiled using clang 7.0.2 from AOSP.
    • Added clarity CPUFreq governor.
    • Added and enabled TTL target support.
    • Implemented more security hardening setup from Copperhead.
    • Various fixes and improvements.

    r17 - 03-05-2018 (UTC+8) - commit 7a6736332e64
    • Merged Linux 3.18.108.
    • Eliminated vendor mismatch warning on every (re)boot.
    • Switched to 300 HZ timer interrupt.
    • Removed unused NFC from DTBs.
    • CFQ now defaults to IOPS mode on SSDs.
    • Queued more MSM drivers into system_power_efficient_wq.
    • Various improvements to devfreq and cpufreq_interactive, and more.

    r16 - 29-04-2018 (UTC+8) - commit f3926ae3f7f6
    • Merged Linux 3.18.107.
    • Merged CAF LA.UM.6.6.r1-08300-89xx.0 tag.
    • Merged SDcardFS updates from Google common kernel.
    • Kernel is now compiled using GCC 9.0.0.

    r15 - 24-04-2018 (UTC+8) - commit 25102fbbe16a
    • Merged Linux 3.18.106.
    • Merged changes from android-linux-stable.
    • Upstreamed SDcardFS and F2FS (v4.17-rc1) from Google common kernel.
    • Merged a few LMK changes from Google common kernel.
    • Implemented additional check to AnyKernel2 backend to avoid flashing on incompatible ROMs.
    • Minor updates to sdFAT.

    r14 - 15-04-2018 (UTC+8) - commit cb5c80fea281
    • Merged CAF LA.UM.6.6.r1-07400-89xx.0 tag.

    r13 - 14-04-2018 (UTC+8) - commit df0fe73295ed
    • Merged Linux 3.18.105.
    • Fixed gt9xx support.
    • Imported sdFAT file system to provide support for both vfat and exFAT.
    • Re-enabled CFQ and deadline I/O schedulers.

    r12 - 08-04-2018 (UTC+8) - commit 3ebccc08f5db
    • Merged Linux 3.18.103.

    r11 - 03-04-2018 (UTC+8) - commit 3641e3754623
    • Rebased to msm8953 common kernel with ALS merged in.
    • Merged CAF LA.UM.6.6.r1-07200-89xx.0 tag.
    • Added support for treble-enabled ROMs.
    • Added a few patches from my Redmi 3 kernel.
    • Killed TZ log, CoreSight, and EXT2 drivers.

    r10 - 25-03-2018 (UTC+8) - commit 4a66b317b08c
    • Merged Linux 3.18.102.

    r9 - 22-03-2018 (UTC+8) - commit cace90e96bfe
    • Merged Linux 3.18.101.
    • Merged latest F2FS and SDcardFS patches from Google common kernel.
    • Merged latest uid_sys_stats patches from Google common kernel.
    • Optimized touchscreen drivers using -funroll-loops.
    • Killed USB Type-C detection using Pericom chip (useless with mido having MicroUSB).
    • Removed KCAL tweaks.

    r8 - 19-03-2018 (UTC+8) - commit 48256d5d53c3
    • Merged Linux 3.18.100.

    r7 - 15-03-2018 (UTC+8) - commit 5cf3e7ea7f80
    • Merged LA.UM.6.6.r1-06700-89xx.0 tag.
    • Custom init rc cleanup.

    r6 - 12-03-2018 (UTC+8) - commit 8b06dc92a73f
    • Merged Linux 3.18.99.
    • Removed TIMER_STATS.
    • External storage read ahead is now 128 kb by default.
    • Disabled BFQ slice idle for encrypted storage as well.

    r5 - 04-03-2018 (UTC+8) - commit b0081d1736ba
    • Merged Linux 3.18.98.

    r4 - 28-02-2018 (UTC+8) - commit 6dba8382eac8
    • Merged Linux 3.18.97.
    • Merged CAF LA.UM.6.6.r1-06500-89xx.0 tag.
    • Merged (more) missing linux-stable commits.
    • Synced defconfig with latest CAF changes.
    • Support for EBBG display and Goodix GT9xx touch panel.

    r3 - 27-02-2018 (UTC+8) - commit 1ebb7604c6ec
    • Merged Linux 3.18.96.
    • Merged changes to camera stack from LA.UM.5.6.r1-06900-89xx.0 tag.
    • Merged changes to binder, F2FS, and SDcardFS from Google common kernel.
    • Compiled with -O2 optimization flags.
    • Removed performance, powersave, and userspace devfreq governors.
    • Updated devfreq governor whitelist.
    • Should support newer OV13855 camera blobs.

    r2 - 17-02-2018 (UTC+8) - commit d7cf1abb43fe
    Tagged commit doesn't match the one on kernel version string. This is a non-issue.
    • Merged Linux 3.18.95.
    • Enabled westwood and set it as default TCP congestion algorithm.
    • Excluded all debugging symbols (reduces kernel size a bit).

    r1 - 16-02-2018 (UTC+8) - commit 30167a843144
    • Initial release.
    28
    Release 19 is up.

    Pulled changes from Linux kernel, Google common kernel, upstream sdFAT repo, and more. CPU maxfreq increased to 1804 MHz and set proper screen off frequency tunable for clarity. Other changes including display panel cleanups and clang used to compile the kernel is now built from source!

    Builds can be obtained from GitHub releases and AndroidFileHost.

    Enjoy!
    25
    For everyone who still stay with me: r35 is up with latest upstream changes.
    24
    Release 24 with Linux 3.18.115 is up, with LineageOS changes and a few other changes to ensure stability and security.

    Builds can be obtained from my webserver, GitHub releases, or AndroidFileHost. Enjoy!

    Sent from my Redmi Note 4 using XDA Labs
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone