[KERNEL][N/O] Clarity [DT2W/S2W][v4.1][Treble/Non-Treble]

Status
Not open for further replies.
Search This thread

rainforce279

Recognized Developer
May 4, 2013
558
2,839
29
palembang
ryan-andri.github.io
DISCLAIMER
Code:
[B][SIZE="3"]Your warranty is now void.
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.
Please read completely this thread before using for minimize FAQ.
If you coming from other custom kernel, please restore to stock boot.img or dirty flash your rom before flash this!
[/SIZE][/B]

Requirements
  • BACKUP your Boot.img and ROM Before flash this Kernel.
  • Unlock Bootloader as well
  • atleast on Firmware v27, check here
  • Latest TWRP
  • No need Wipe dalvik/art cache

Features
On version 4.1
  • Using Official XIAOMI Patch.
  • Support MIUI/AOSP (Nougat/Oreo)
  • Kernel based on CAF "LA.UM.6.6.r1-09000-89xx.0" (Oreo)
  • Kernel based on CAF LA.UM.6.6.r1-06300-89xx.0 (MIUI/AOSP N)
  • Wlan prima CAF "LA.UM.6.6.r1-09000-89xx.0" (Oreo)
  • Wlan prima CAF LA.UM.5.6.r1-07900-89xx.0 (MIUI/AOSP N)
  • Video En/Decode CAF LA.UM.5.6.r1-06900-89xx.0 (MIUI/AOSP N)
  • Camera Stack CAF LA.UM.5.6.r1-06300-89xx.0 (MIUI/AOSP N)
  • IPA Tethering CAF LA.UM.5.6.r1-06900-89xx.0 (MIUI)
  • Compiled with AOSP Toolchain 4.9.
  • support Doubletap2Wake / Sweep2Wake Gesture.
  • KCAL colour control & Backlight Dimmer
  • Xiaomi Color & Contrast patch (Needed by MIUI).
  • Unlock GPU clock from 475MHz to 500MHz.
  • added latest alucard, nightmare, darkness, clarity, blue active cpu Governors.
  • added Usb force fastcharge (Disabled by default | Please read Disclaimer again)
  • added BFQ-v8r12, Fiops, Maple, Zen, SIO i/o scheduler (CFQ as Default).
  • set default compression zram to Lz4.
  • Support and updated F2FS Filesystem (AOSP)
  • added custom hotplug AutoSMP and AIO (default core control by CAF)
  • added ExFat and NTFS Filesystem support
  • added sound control
  • added dts eagle sound integration
  • added boeffla wakelock blocker
  • added TTL target Support
    More

Telegram Channel for Beta version
https://t.me/claritykernel

FAQ & Changelogs
FAQ
CHANGELOGS

Little Story
Now using official Xiaomi Patch for Redmi 4X
this kernel is nothing without Noyer, first many thanks and credits goes to him and this is his source : msm-3.18
My source is little different with Noyer source, while i'm using CAF tag release.
but this kernel can't be done without Noyer commits in git, i'm still learn to make this kernel more stable with a lots of features.​

Bugs ?

  • Nothing.
    Report with dmesg and last_kmsg if founded.

Credits
(Not in order)
  • Eduardo Noyer a.k.a bitrvmpd
  • silent27121984 | Nikit | Nik001 (All dev bring Oreo Rom)
  • Savoca | Francisco Franco | Alucard24 | Showp1984 | SultanXDA
  • Nichream | TheScarastic | Flar2 | Nathanchance | Andip71 | Msf-jarvis
  • joshuous | LazerL0rd | LuanHalaiko | LuizPauloDamaceno | mostafa-z
  • All authors and commiters on Source
Tell me if i miss someone else

How to enable dt2w/s2w
  • Download Kernel Adiutor at Playstore.
  • Open Kernel Adiutor (KA).
  • KA > Wake > doubletap2wake : Full/Half
  • KA > Wake > sweep2wake : Sweep2wake + Sweep2sleep
    sweep2sleep not working

How to costumize/enhance AutoSMP hotplug (04042018)

Donations
i spend some hours to build this kernel. if you like my work you can buy me a coffee :laugh:
Donate Me || OR || Donate Noyer (bitrvmpd)

Downloads

XDA:DevDB Information
Clarity, Kernel for the Xiaomi Redmi 4X

Contributors
rainforce279, b1tRvmpd
Source Code: https://github.com/ryan-andri/android_kernel_santoni

Kernel Special Features: as mentioned on features.

Version Information
Status: Stable
Current Stable Version: 4.1
Stable Release Date: 2018-07-23

Created 2017-12-14
Last Updated 2018-07-23
 
Last edited:

rainforce279

Recognized Developer
May 4, 2013
558
2,839
29
palembang
ryan-andri.github.io
How to report bugs & F.A.Q

How to report bugs
For easy steps to report bugs.
You should report bugs with format:
  • Rom information
  • Android version
  • Version of this kernel
  • Any setting that you have done after flash this kernel
  • log: logcat and dmesg if you encounter drivers problem.
  • log: last_kmsg if you encounter random reboot.
Take logs with Kernel Adiutor (KA):
  • Download Kernel Adiutor (KA) on Playstore!
  • Open KA > Settings > search: "Debugging section" > click on dmesg/last_kmsg/dmesg. Then open any file manager locate to storage/emulated/0 or internal storage, the file logs formated with .txt then send it to this thread or PM me.
Reporting bugs with properly way, you not only help me but you help your self too. If any reports bugs or problem without this preference, i'll ignore it!


Frequently asked questions (FAQ)

Q : My touchscreen is not work after flashing this kernel, what should i do ?
A : Go to this thread Firmware and flash v27 firmware, your touchscreen will work again.

Q : This is will work for MIUI rom ?
A : works fine now.

Q : Can you add x or y features ?
A : i'll accept all usefull feature. i think enough for now.

Q : Wifi not work after restore stock boot.img, what should i do ?
A : after restore stock kernel or boot.img and wifi doesn't work you can open any file manager and locate to system/lib/modules and remove wlan.ko then locate to system/lib/modules/pronto copy pronto_wlan.ko into system/lib/modules and rename it as wlan.ko then set permission to 0644, your wifi will work again. (In case for MIUI)!
 
Last edited:

rainforce279

Recognized Developer
May 4, 2013
558
2,839
29
palembang
ryan-andri.github.io
Changelogs

Changelogs AOSP 8.1 or AOSP 8.1 Treble
Code:
[COLOR="Red"]v4.1[/COLOR]
For detail logs, check source on branch "Oreo" Please.
- Disable kernel debugs
- Improve for disabled tracer (less debugs)
- enable specific config to improve zram performance
- simplify checking thermal state for custom hotplug
- add bootinfo from riva-n-oss
- decreased bcl (battery current limit) threshold to 5%

Changelogs MIUI 9/10
Code:
[COLOR="Red"]v4.1[/COLOR]
For detail logs, check source on branch "Nougat/MIUI" Please.
- Improve for disabled tracer (less debugs)
- enable specific config to improve zram performance
- simplify checking thermal state for custom hotplug
- add bootinfo from riva-n-oss
- lots caf commits for improve stabilty
- decreased bcl (battery current limit) threshold to 5%
- upstream ipa tethering from latest CAF

Changelogs AOSP 7.1
Code:
[COLOR="Red"]v4.1[/COLOR]
For detail logs, check source on branch "Nougat/AOSP" Please.
- Improve for disabled tracer (less debugs)
- enable specific config to improve zram performance
- simplify checking thermal state for custom hotplug
- add bootinfo from riva-n-oss
- lots caf commits for improve stabilty
- decreased bcl (battery current limit) threshold to 5%
 
Last edited:

[email protected]

Senior Member
Jul 15, 2015
473
60
DISCLAIMER
Your warranty is now void.
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.

==================================================

Please read completely this thread before using for minimize FAQ
If you coming from other custom kernel, please restore to stock boot.img or dirty flash your rom before flash this!

Requirement
Unlock Bootloader as well
Latest TWRP
atleast on AOSP Based ROM (LOS, AEX, RR, etc).
No need Wipe dalvik/art cache

Features
Based on CAF TAG "LA.UM.5.6.r1-06400-89xx.0"
Upstream to Linux 3.18.87
Compiled with Linaro Toolchain 4.9.4
Compiled with -O2 Flag.
Wlan Prima based on CAF TAG "LA.UM.5.6.r1-06400-89xx.0"
KCAL colour control.
added Zen, BFQ i/o scheduler (BFQ as Default).
enabled "BFQ hierarchical scheduling support"
Customeable MSM Thermal.
Added Boeffla Wakelock blocker.
optimized crypto crc32 for arm64
Set default compression zram to Lz4.
many more.

Status
This kernel is very high experimental due the source is from ported.
Boot = OK.
Sound, speaker, earphone, mic = OK.
Camera [front/back] = OK.
Fingerprint =OK.
Touchscreen = OK.
IR Blast = Not testing yet.
WIFI = OK.
RIL = OK.
Radio = OK.

BUGS ?
So far, i'm never facing any problem.
tell me if you found it.


CREDITS ?
Eduardo Noyer a.k.a bitrvmpd
Nicecream
TheScarastic







XDA:DevDB Information
Clarity, Kernel for the Xiaomi Redmi 4X

Contributors
rainforce279
Source Code:https://github.com/ryan-andri/android_kernel_santoni

Kernel Special Features:

Version Information
Status: Beta
Current Beta Version: 1.0
Beta Release Date: 2017-12-15

Created 2017-12-14
Last Updated 2017-12-14
where is the link
 

Yousef Algadri

Senior Member
May 31, 2014
828
1,301
23
Jakarta
IR working and all working fine here
:good:

Sent from my Redmi 4X using Tapatalk

---------- Post added at 05:57 PM ---------- Previous post was at 05:56 PM ----------

Add fast charge and Alucard if possible please :)

Sent from my Redmi 4X using Tapatalk
 

Randyshare

Senior Member
Apr 10, 2014
126
22
After flash FW 027, Touchscreen work.

But now , fingerprint was broken.

Also missing this option in setting.

Pls help..
 

Attachments

  • Screenshot_20171215-011330.png
    Screenshot_20171215-011330.png
    81.2 KB · Views: 1,644

brunozod

Member
Jul 24, 2017
28
9
DISCLAIMER
Your warranty is now void.
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.

==================================================

Please read completely this thread before using for minimize FAQ
If you coming from other custom kernel, please restore to stock boot.img or dirty flash your rom before flash this!

Requirement
Unlock Bootloader as well
atleast on Firmware v27, check here
Latest TWRP
atleast on AOSP Based ROM (LOS, AEX, RR, etc).
No need Wipe dalvik/art cache

Features
Based on CAF TAG "LA.UM.5.6.r1-06400-89xx.0"
Upstream to Linux 3.18.87
Using Reversed dtb from Stable MIUI 9.1.1.0.
Compiled with Linaro Toolchain 4.9.4
Compiled with -O2 Flag.
Wlan Prima based on CAF TAG "LA.UM.5.6.r1-06400-89xx.0"
KCAL colour control.
added Zen, BFQ i/o scheduler (BFQ as Default).
enabled "BFQ hierarchical scheduling support"
Customeable MSM Thermal.
Added Boeffla Wakelock blocker.
optimized crypto crc32 for arm64
Set default compression zram to Lz4.
many more.

Status
This kernel is very high experimental due the source is from ported.
This kernel tested on (Official RR, AEX, Citrus-CAF).
Boot = OK.
Sound, speaker, earphone, mic = OK.
Camera [front/back] = OK.
Fingerprint =OK.
Touchscreen = OK.
IR Blast = "User report" OK.
WIFI = OK.
RIL = OK.
Radio = OK.

BUGS ?
So far, i'm never facing any problem.
tell me if you found it.

Little Story
this kernel is nothing without Noyer, first many thanks and credits goes to him and this is his source : msm-3.18
My source is little different with Noyer source, while i'm using CAF tag release and manual upstream to Kernel.org.
but this kernel can't be done without Noyer commits in git, i'm still learn to make this kernel more stable with a lots of features.

CREDITS
(Not in order)
Eduardo Noyer a.k.a bitrvmpd
Savoca
Francisco Franko
Nicecream
TheScarastic
Tell me if i miss someone else.

Download
XDA-DOWNLOAD



XDA:DevDB Information
Clarity, Kernel for the Xiaomi Redmi 4X

Contributors
rainforce279, bitrvmpd
Source Code:https://github.com/ryan-andri/android_kernel_santoni

Kernel Special Features: KCAL, Wakelock Blocker.

Version Information
Status: Beta
Current Beta Version: 1.0
Beta Release Date: 2017-12-15

Created 2017-12-14
Last Updated 2017-12-14


Thanks man! in my lineage os 14.1 work perfectly!
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 116
    DISCLAIMER
    Code:
    [B][SIZE="3"]Your warranty is now void.
    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.
    Please read completely this thread before using for minimize FAQ.
    If you coming from other custom kernel, please restore to stock boot.img or dirty flash your rom before flash this!
    [/SIZE][/B]

    Requirements
    • BACKUP your Boot.img and ROM Before flash this Kernel.
    • Unlock Bootloader as well
    • atleast on Firmware v27, check here
    • Latest TWRP
    • No need Wipe dalvik/art cache

    Features
    On version 4.1
    • Using Official XIAOMI Patch.
    • Support MIUI/AOSP (Nougat/Oreo)
    • Kernel based on CAF "LA.UM.6.6.r1-09000-89xx.0" (Oreo)
    • Kernel based on CAF LA.UM.6.6.r1-06300-89xx.0 (MIUI/AOSP N)
    • Wlan prima CAF "LA.UM.6.6.r1-09000-89xx.0" (Oreo)
    • Wlan prima CAF LA.UM.5.6.r1-07900-89xx.0 (MIUI/AOSP N)
    • Video En/Decode CAF LA.UM.5.6.r1-06900-89xx.0 (MIUI/AOSP N)
    • Camera Stack CAF LA.UM.5.6.r1-06300-89xx.0 (MIUI/AOSP N)
    • IPA Tethering CAF LA.UM.5.6.r1-06900-89xx.0 (MIUI)
    • Compiled with AOSP Toolchain 4.9.
    • support Doubletap2Wake / Sweep2Wake Gesture.
    • KCAL colour control & Backlight Dimmer
    • Xiaomi Color & Contrast patch (Needed by MIUI).
    • Unlock GPU clock from 475MHz to 500MHz.
    • added latest alucard, nightmare, darkness, clarity, blue active cpu Governors.
    • added Usb force fastcharge (Disabled by default | Please read Disclaimer again)
    • added BFQ-v8r12, Fiops, Maple, Zen, SIO i/o scheduler (CFQ as Default).
    • set default compression zram to Lz4.
    • Support and updated F2FS Filesystem (AOSP)
    • added custom hotplug AutoSMP and AIO (default core control by CAF)
    • added ExFat and NTFS Filesystem support
    • added sound control
    • added dts eagle sound integration
    • added boeffla wakelock blocker
    • added TTL target Support
      More

    Telegram Channel for Beta version
    https://t.me/claritykernel

    FAQ & Changelogs
    FAQ
    CHANGELOGS

    Little Story
    Now using official Xiaomi Patch for Redmi 4X
    this kernel is nothing without Noyer, first many thanks and credits goes to him and this is his source : msm-3.18
    My source is little different with Noyer source, while i'm using CAF tag release.
    but this kernel can't be done without Noyer commits in git, i'm still learn to make this kernel more stable with a lots of features.​

    Bugs ?

    • Nothing.
      Report with dmesg and last_kmsg if founded.

    Credits
    (Not in order)
    • Eduardo Noyer a.k.a bitrvmpd
    • silent27121984 | Nikit | Nik001 (All dev bring Oreo Rom)
    • Savoca | Francisco Franco | Alucard24 | Showp1984 | SultanXDA
    • Nichream | TheScarastic | Flar2 | Nathanchance | Andip71 | Msf-jarvis
    • joshuous | LazerL0rd | LuanHalaiko | LuizPauloDamaceno | mostafa-z
    • All authors and commiters on Source
    Tell me if i miss someone else

    How to enable dt2w/s2w
    • Download Kernel Adiutor at Playstore.
    • Open Kernel Adiutor (KA).
    • KA > Wake > doubletap2wake : Full/Half
    • KA > Wake > sweep2wake : Sweep2wake + Sweep2sleep
      sweep2sleep not working

    How to costumize/enhance AutoSMP hotplug (04042018)

    Donations
    i spend some hours to build this kernel. if you like my work you can buy me a coffee :laugh:
    Donate Me || OR || Donate Noyer (bitrvmpd)

    Downloads

    XDA:DevDB Information
    Clarity, Kernel for the Xiaomi Redmi 4X

    Contributors
    rainforce279, b1tRvmpd
    Source Code: https://github.com/ryan-andri/android_kernel_santoni

    Kernel Special Features: as mentioned on features.

    Version Information
    Status: Stable
    Current Stable Version: 4.1
    Stable Release Date: 2018-07-23

    Created 2017-12-14
    Last Updated 2018-07-23
    28
    How to report bugs & F.A.Q

    How to report bugs
    For easy steps to report bugs.
    You should report bugs with format:
    • Rom information
    • Android version
    • Version of this kernel
    • Any setting that you have done after flash this kernel
    • log: logcat and dmesg if you encounter drivers problem.
    • log: last_kmsg if you encounter random reboot.
    Take logs with Kernel Adiutor (KA):
    • Download Kernel Adiutor (KA) on Playstore!
    • Open KA > Settings > search: "Debugging section" > click on dmesg/last_kmsg/dmesg. Then open any file manager locate to storage/emulated/0 or internal storage, the file logs formated with .txt then send it to this thread or PM me.
    Reporting bugs with properly way, you not only help me but you help your self too. If any reports bugs or problem without this preference, i'll ignore it!


    Frequently asked questions (FAQ)

    Q : My touchscreen is not work after flashing this kernel, what should i do ?
    A : Go to this thread Firmware and flash v27 firmware, your touchscreen will work again.

    Q : This is will work for MIUI rom ?
    A : works fine now.

    Q : Can you add x or y features ?
    A : i'll accept all usefull feature. i think enough for now.

    Q : Wifi not work after restore stock boot.img, what should i do ?
    A : after restore stock kernel or boot.img and wifi doesn't work you can open any file manager and locate to system/lib/modules and remove wlan.ko then locate to system/lib/modules/pronto copy pronto_wlan.ko into system/lib/modules and rename it as wlan.ko then set permission to 0644, your wifi will work again. (In case for MIUI)!
    24
    Changelogs

    Changelogs AOSP 8.1 or AOSP 8.1 Treble
    Code:
    [COLOR="Red"]v4.1[/COLOR]
    For detail logs, check source on branch "Oreo" Please.
    - Disable kernel debugs
    - Improve for disabled tracer (less debugs)
    - enable specific config to improve zram performance
    - simplify checking thermal state for custom hotplug
    - add bootinfo from riva-n-oss
    - decreased bcl (battery current limit) threshold to 5%

    Changelogs MIUI 9/10
    Code:
    [COLOR="Red"]v4.1[/COLOR]
    For detail logs, check source on branch "Nougat/MIUI" Please.
    - Improve for disabled tracer (less debugs)
    - enable specific config to improve zram performance
    - simplify checking thermal state for custom hotplug
    - add bootinfo from riva-n-oss
    - lots caf commits for improve stabilty
    - decreased bcl (battery current limit) threshold to 5%
    - upstream ipa tethering from latest CAF

    Changelogs AOSP 7.1
    Code:
    [COLOR="Red"]v4.1[/COLOR]
    For detail logs, check source on branch "Nougat/AOSP" Please.
    - Improve for disabled tracer (less debugs)
    - enable specific config to improve zram performance
    - simplify checking thermal state for custom hotplug
    - add bootinfo from riva-n-oss
    - lots caf commits for improve stabilty
    - decreased bcl (battery current limit) threshold to 5%
    21
    Push Clarity for v2.6

    Changelogs:
    - Merge stable tag upstream 3.18.100 (kernel.org)
    - Unlock 500Mhz gpu frequency.
    - stabelize overclock to 1.57GHz (Fixed).
    - Fix time getting reset on Oreo (Thanks @mostafaz pointed me at commit)
    - Try to optimized charging speed and USB force fastcharge.
    More log see at https://forum.xda-developers.com/showpost.php?p=74850240&postcount=3

    Note:
    - This is enough for overclocked frequency on CPU or GPU too, i'll ignore any request about frequency from now. I need stable like stock btw.
    - in this version i've remove limit from Xiaomi on charger and increasing max alowed ma with standart caf too including for quick charge v2.0. Please test while battery 50% or lower and also if u using "quick charge" please report any result for next developtment.
    - increase alowed max miliAmpere to 1200ma for USB Force fastcharge (Use with your own risk about this).

    Downloads
    https://drive.google.com/open?id=1jSJJedwhr0_2cyftesxGR-M9UBLcshz7
    20
    Push update v2.5 (Miui/Nougat/Oreo)

    Changelogs:
    - Bring Cultivation, Ironactive CPU governors
    - Maintained Alucard, Nightmare, Darkness CPU governors
    - Updating zsmalloc, zram.
    - Overclock Little CPU to 1.2 and Big CPU 1.6 GHz
    - Merging caf "LA.UM.6.6.r1-06700-89xx.0" only for Oreo (8.1)
    - more changelogs > https://forum.xda-developers.com/showpost.php?p=74850240&postcount=3

    Downloads
    https://drive.google.com/open?id=1jSJJedwhr0_2cyftesxGR-M9UBLcshz7

    Thanks!
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