[KERNEL] NX Kernel | R30 | 07 AUG '20

Search This thread

Noxxxious

Senior Member
Apr 9, 2012
1,595
3,387
Samsung Galaxy S22 Plus
d9vYCEu.png

Short summary:
NX kernel aims at providing you a smooth experience, while maintaining the best of your battery life. The kernel requires no further user customization and therefore should be used as available.

Features:
• First unified S8/S8+ kernel for F(D)/N variants only: 1 kernel to support both devices.
• Permissive by default
• Knox 0x0 with Safetynet bypass
• LED fade control
• Wakelock control (blacklisting not adviced)
• Moro sound control
• Wake gestures mod by Flar2
• Memory management improvements
• Improved touch latency
• Drivedroid support (0.10.48+)
• Unofficial DEX support
• Wireguard VPN support
• Other misc. optimizations

Download link:
Pie




Credits to my dear testers:
@Benji1983
@bininga59
@destan4503
@hans_olo
@jeebspawnshop
@moelle
@mwilky
@parser
@pcvroon
@s-advance
@sswagonman
@teutate
@zafer61


Caution:
I am not responsible for anything that happends after flashing the work provided here.

Sharing is caring, so according to the (much unwelcomed) rule 12 you can use my open source on GitHub without my explicit consent or credits. But this is where the caring stops as I do not allow you to use any of my own provided files (except for unmodified stock files). Section 3 of this rule states that you can try to bypass my explicit consent by releasing it as your own when you succeed to make significant changes to the work.

Goodluck and happy CopyMaxing.




Source Code: Github
 
Last edited:

Noxxxious

Senior Member
Apr 9, 2012
1,595
3,387
Samsung Galaxy S22 Plus
Changelog

R28
- Updated to DSF source
- Improved performance and efficiency.

Old changelog:


V1 - Initial XDA release, based on 2nd test 38

R2:
- Fixed freezes that was caused to a minority of users on particular roms
- Fast charging fixed to work for everyone
- Potentially improved battery life at the cost of slight overhead

R3:
- Fixups and hiccups
- GPU control added in Synapse

R4:
- Removed Synapse and OC, mtweaks is good enough
- Based on Test 50

R5:
- Oreo release

R6
- Merged N8 March Oreo source
- LED fixed
- WiFi blob detection fixed (still requires a few files due nvram path..)
- Faster booting
- Tweaked for better idle drain and battery life

R7
- Bug fixes caused by N8 merge

R8
- Rebased the kernel by filtering out bad changes for battery life, performance and so on.
- Updated to latest CRD source
- Fixed LED (hopefully definitely)
- Fixed WiFi (works like stock kernel)
- Mount system earlier to boot faster
- Added overclock for cluster1
- Fully Permissive (no longer fake enforcing)

R9
- Removed lots of useless stuff -> faster kernel and less size
- Still CRD7 based with CREF ramdisk (CRED source has worse battery life according to my groups experience)
- More stable LED implementation
- Removed Fsync/CRC toggles because data stability is way more important than this benchmark cheater

R10:
- Fixup of R9

R11
- REQUIRES NEW MODIFIED TWRP FIRST
- New fading led approach -> enabled by default and not bugging anymore. You can control it with Mtweaks V2.9
- Quotas enabled, which works thanks to the new TWRP. More info
- Some fixes and optimizations.

R12
- REQUIRES NEW MODIFIED TWRP
- Middle of rebase, not done yet..
- Manually updated to CRF
- Added CRGB support
- More unification work done (fixes Samsung's screw up by delaying probe after booting up, which would result in an unresponsive lockscreen until init occured.

R13
- REQUIRES NEW MODIFIED TWRP
- Merged CRGB source update (seems the R12 fix was short lived)
- Re-added changes I forgot for R12, e.g. Drivedroid support, OC.
- Fixed WiFi-calling as confirmed by @bininga59

R14
- Requires modified TWRP - See post for explaination
- Almost done rebasing
- Fixed bad code using GCC 7.3 (also fixed booting compiled kernel with 7.x/8x toolchains due bad alignment)
- Reduced kernel overhead, improved security (fully disabled debugfs)
- Removed ability to overclock the big clusters

R15
- Added TWRP patcher: During installation it will detect unmodded TWRP and modify it. If it detects a modified TWRP it will skip this step. If you care for MTP in TWRP then you still must flash the TWRP provided in post #644. The only reason I added this script is because many fail to follow instruction (flash modded twrp and kernel/rom).
- CRGH source update
- Re-added GPU sysfs and underclocked to 112Mhz
- Some under the hood optimizations for more stability, better consumption and idle improvements.
- Probably N9 port ready (untested)
- Still rebasing...

R16
- Linaro 7.3 compiled
- Re-added big cluster OC
- Fixed Gear VR & recording call bugs
- Not N9 ready (requires more ramdisk changes + still waiting for a working port)

R17
- Requires modified TWRP (due to proper Oreo support) -> See post 644
- CRI based
- Forgot the rest

R18
- CRK source drop merged
- Improved touch latency
- Updated LZ4 module to 1.8.3
- Other misc improvements; e.g. improved idle consumption, bug fixes, smoothness, snappiness etc.

R21
- Last kernel to support Oreo.

R23
- Properly upstreamed to 4.4.176 with no cpu bugs etc.
- Compiled with GCC 8 and fixed all buffer overflows -> should improve stability but also has an overall positive effect
- Better idle -> Don't take my word for that as I don't know how upstream will affect the change
- Touchscreen backport from Pixel 3 for better touch latency on S8 devices (too bad S8+ uses a different panel)
- Re-added overclock abillity
- Other minor optimizations that positively affect performance and battery life

R24
- Updated to latest DCSB source
- Upstreamed to 4.4.178*
- Sound control mod backported (requires latest Mtweaks)
- Wakegestures backported: Doubletap2wake, sweep2sleep, sweep2wake.**
- Fixed permissive state to work with banking apps (no reboots)
- Fixes on top of fixes and optimizations that will affect performance and idle drain.

* Still indecisive about upstream
** Enabling gestures will kill AOD touch and hard press to wake

R25
- Dropped upstream as I always was convinced it resulting in worse battery life.
- Switched from Zswap to ZRam.
- Added overclock abillity for little cores to 1898Mhz (fixed this possibility)
- Big cluster min clock is set to 858MHz
- Added GPU OC abillity to 572MHz
- Compiled with my custom compiler to target exynos-cortex (big.LITTLE)
- Some other minor optimizations to improve idle and battery life.

R26
• Compiled with custom GCC 9.1.1
• Updated to the latest available source for S8/N8.
• Selinux: now you can switch enforcing by writing "setenforce 0" in a terminal or by using an app like Mtweaks. This can be useful incase your banking app requires an enforced phone (e.g. rebooting)
• Updated moro sound control: fixes unlinked L/R control and resets
• Wake gestures: added a proximity state check so that an enabled wakegesture cannot wakeup the phone when the proximity sensor is active, like during a phone call.
• Other changes to improve performance, reduce kswapd usage and hopefully preserve a bit more battery life.
 
Last edited:

Noxxxious

Senior Member
Apr 9, 2012
1,595
3,387
Samsung Galaxy S22 Plus
FAQ

Q: Does this support non stock roms?
A: The kernel does not support ports, e.g. note 9 port, while it may have the possibility to support note 8 based roms. This kernel will never have AOSP support.

Q: Can you add X to the kernel?
A: No, this is a personal kernel and therefore won't have what I don't want. This is a take it or leave it kernel, so if it doesn't have Spectrum, Flickerfree etc. then I'd leave it.

Q: I lost root
A: The zip contains no root, because rooting is optional. You need to flash Magisk manually after flashing the kernel.

Q: I have a problem!
A: Make sure you use no Xposed framework. If we have that cleared, please post a dmesg and last kmsg of the moment right after the problem occured. You can use Syslog app for that from the play store.

Q: Want my benchmark score?
A: No this is no pissing contest thread who can reach the furthest.

Q: Can I donate you?
A: No, I am doing this to improve my phone in the first place and sharing takes 2 clicks. Not into the money business by putting up a big ass donation button in the first post. Go spend your money on family or yourself instead.
 
Last edited:

afcaajax

Senior Member
Jun 2, 2016
147
44
Thanks to the developer for this kernel. I'm gonna test this one. Anybody got problems with Synapse?

Verstuurd vanaf mijn SM-G950F met Tapatalk
 

zafer61

Senior Member
Sep 24, 2017
59
58
Cologne
acedns.de
In case of retirement, you have to ban me out of your telegram group and put me on ignore on private,
otherwise i'll never retire :laugh::laugh::laugh:

I enjoyed every single minute testing this great project..
Best kernel on Samsung S8 /S8+ planet....
 

Top Liked Posts

  • There are no posts matching your filters.
  • 227
    d9vYCEu.png

    Short summary:
    NX kernel aims at providing you a smooth experience, while maintaining the best of your battery life. The kernel requires no further user customization and therefore should be used as available.

    Features:
    • First unified S8/S8+ kernel for F(D)/N variants only: 1 kernel to support both devices.
    • Permissive by default
    • Knox 0x0 with Safetynet bypass
    • LED fade control
    • Wakelock control (blacklisting not adviced)
    • Moro sound control
    • Wake gestures mod by Flar2
    • Memory management improvements
    • Improved touch latency
    • Drivedroid support (0.10.48+)
    • Unofficial DEX support
    • Wireguard VPN support
    • Other misc. optimizations

    Download link:
    Pie




    Credits to my dear testers:
    @Benji1983
    @bininga59
    @destan4503
    @hans_olo
    @jeebspawnshop
    @moelle
    @mwilky
    @parser
    @pcvroon
    @s-advance
    @sswagonman
    @teutate
    @zafer61


    Caution:
    I am not responsible for anything that happends after flashing the work provided here.

    Sharing is caring, so according to the (much unwelcomed) rule 12 you can use my open source on GitHub without my explicit consent or credits. But this is where the caring stops as I do not allow you to use any of my own provided files (except for unmodified stock files). Section 3 of this rule states that you can try to bypass my explicit consent by releasing it as your own when you succeed to make significant changes to the work.

    Goodluck and happy CopyMaxing.




    Source Code: Github
    156
    FAQ

    Q: Does this support non stock roms?
    A: The kernel does not support ports, e.g. note 9 port, while it may have the possibility to support note 8 based roms. This kernel will never have AOSP support.

    Q: Can you add X to the kernel?
    A: No, this is a personal kernel and therefore won't have what I don't want. This is a take it or leave it kernel, so if it doesn't have Spectrum, Flickerfree etc. then I'd leave it.

    Q: I lost root
    A: The zip contains no root, because rooting is optional. You need to flash Magisk manually after flashing the kernel.

    Q: I have a problem!
    A: Make sure you use no Xposed framework. If we have that cleared, please post a dmesg and last kmsg of the moment right after the problem occured. You can use Syslog app for that from the play store.

    Q: Want my benchmark score?
    A: No this is no pissing contest thread who can reach the furthest.

    Q: Can I donate you?
    A: No, I am doing this to improve my phone in the first place and sharing takes 2 clicks. Not into the money business by putting up a big ass donation button in the first post. Go spend your money on family or yourself instead.
    81
    Changelog

    R28
    - Updated to DSF source
    - Improved performance and efficiency.

    Old changelog:


    V1 - Initial XDA release, based on 2nd test 38

    R2:
    - Fixed freezes that was caused to a minority of users on particular roms
    - Fast charging fixed to work for everyone
    - Potentially improved battery life at the cost of slight overhead

    R3:
    - Fixups and hiccups
    - GPU control added in Synapse

    R4:
    - Removed Synapse and OC, mtweaks is good enough
    - Based on Test 50

    R5:
    - Oreo release

    R6
    - Merged N8 March Oreo source
    - LED fixed
    - WiFi blob detection fixed (still requires a few files due nvram path..)
    - Faster booting
    - Tweaked for better idle drain and battery life

    R7
    - Bug fixes caused by N8 merge

    R8
    - Rebased the kernel by filtering out bad changes for battery life, performance and so on.
    - Updated to latest CRD source
    - Fixed LED (hopefully definitely)
    - Fixed WiFi (works like stock kernel)
    - Mount system earlier to boot faster
    - Added overclock for cluster1
    - Fully Permissive (no longer fake enforcing)

    R9
    - Removed lots of useless stuff -> faster kernel and less size
    - Still CRD7 based with CREF ramdisk (CRED source has worse battery life according to my groups experience)
    - More stable LED implementation
    - Removed Fsync/CRC toggles because data stability is way more important than this benchmark cheater

    R10:
    - Fixup of R9

    R11
    - REQUIRES NEW MODIFIED TWRP FIRST
    - New fading led approach -> enabled by default and not bugging anymore. You can control it with Mtweaks V2.9
    - Quotas enabled, which works thanks to the new TWRP. More info
    - Some fixes and optimizations.

    R12
    - REQUIRES NEW MODIFIED TWRP
    - Middle of rebase, not done yet..
    - Manually updated to CRF
    - Added CRGB support
    - More unification work done (fixes Samsung's screw up by delaying probe after booting up, which would result in an unresponsive lockscreen until init occured.

    R13
    - REQUIRES NEW MODIFIED TWRP
    - Merged CRGB source update (seems the R12 fix was short lived)
    - Re-added changes I forgot for R12, e.g. Drivedroid support, OC.
    - Fixed WiFi-calling as confirmed by @bininga59

    R14
    - Requires modified TWRP - See post for explaination
    - Almost done rebasing
    - Fixed bad code using GCC 7.3 (also fixed booting compiled kernel with 7.x/8x toolchains due bad alignment)
    - Reduced kernel overhead, improved security (fully disabled debugfs)
    - Removed ability to overclock the big clusters

    R15
    - Added TWRP patcher: During installation it will detect unmodded TWRP and modify it. If it detects a modified TWRP it will skip this step. If you care for MTP in TWRP then you still must flash the TWRP provided in post #644. The only reason I added this script is because many fail to follow instruction (flash modded twrp and kernel/rom).
    - CRGH source update
    - Re-added GPU sysfs and underclocked to 112Mhz
    - Some under the hood optimizations for more stability, better consumption and idle improvements.
    - Probably N9 port ready (untested)
    - Still rebasing...

    R16
    - Linaro 7.3 compiled
    - Re-added big cluster OC
    - Fixed Gear VR & recording call bugs
    - Not N9 ready (requires more ramdisk changes + still waiting for a working port)

    R17
    - Requires modified TWRP (due to proper Oreo support) -> See post 644
    - CRI based
    - Forgot the rest

    R18
    - CRK source drop merged
    - Improved touch latency
    - Updated LZ4 module to 1.8.3
    - Other misc improvements; e.g. improved idle consumption, bug fixes, smoothness, snappiness etc.

    R21
    - Last kernel to support Oreo.

    R23
    - Properly upstreamed to 4.4.176 with no cpu bugs etc.
    - Compiled with GCC 8 and fixed all buffer overflows -> should improve stability but also has an overall positive effect
    - Better idle -> Don't take my word for that as I don't know how upstream will affect the change
    - Touchscreen backport from Pixel 3 for better touch latency on S8 devices (too bad S8+ uses a different panel)
    - Re-added overclock abillity
    - Other minor optimizations that positively affect performance and battery life

    R24
    - Updated to latest DCSB source
    - Upstreamed to 4.4.178*
    - Sound control mod backported (requires latest Mtweaks)
    - Wakegestures backported: Doubletap2wake, sweep2sleep, sweep2wake.**
    - Fixed permissive state to work with banking apps (no reboots)
    - Fixes on top of fixes and optimizations that will affect performance and idle drain.

    * Still indecisive about upstream
    ** Enabling gestures will kill AOD touch and hard press to wake

    R25
    - Dropped upstream as I always was convinced it resulting in worse battery life.
    - Switched from Zswap to ZRam.
    - Added overclock abillity for little cores to 1898Mhz (fixed this possibility)
    - Big cluster min clock is set to 858MHz
    - Added GPU OC abillity to 572MHz
    - Compiled with my custom compiler to target exynos-cortex (big.LITTLE)
    - Some other minor optimizations to improve idle and battery life.

    R26
    • Compiled with custom GCC 9.1.1
    • Updated to the latest available source for S8/N8.
    • Selinux: now you can switch enforcing by writing "setenforce 0" in a terminal or by using an app like Mtweaks. This can be useful incase your banking app requires an enforced phone (e.g. rebooting)
    • Updated moro sound control: fixes unlinked L/R control and resets
    • Wake gestures: added a proximity state check so that an enabled wakegesture cannot wakeup the phone when the proximity sensor is active, like during a phone call.
    • Other changes to improve performance, reduce kswapd usage and hopefully preserve a bit more battery life.
    74
    Update: this modified TWRP will not be updated any longer, because we finally have proper Oreo support with the official TWRP release provided here:

    https://xdaforums.com/showpost.php?p=77735480&postcount=1

    But before flashing NX oreo kernel you will first need to flash this modified version of official TWRP.
    The reason is because Oreo has added Quota support which the official TWRP doesnt have (due to the lack of maintenance) and therefore breaks data reading. Quota has nothing to do with encryption as some noob might want you to believe.

    * It works on S8/S8+.
    * It works on any oreo kernel and rom
    * Installation steps: Boot into recovery > Install > install image > select the downloaded .img > select option "recovery" > swipe to install
    * Do not flash a data mount fix zip afterwards, because quotas will be lost. But most impotantly it will replace the ramdisk's fstab which will fail to boot NX kernel.


    Download:

    a. dreamlte
    b. dream2lte

    A big thanks to all my testers for their effort, time and patience.
    42
    NX R16 released.

    Changelog:
    - Linaro 7.3 compiled
    - Re-added big cluster OC
    - Fixed Gear VR & recording call bugs
    - Not N9 ready (requires more ramdisk changes + still waiting for a working port)

    Grab here: https://mega.nz/#!R9QAEQoS!njswA7ut4a0BbBwo79Vr8tENb2_S-r-ZGw2DYfS3MJs