[KERNEL][9] A2N Kernel [10h SOT][Easy Guide Step by Step][2021.04.17]

Search This thread

ace2nutzer

Recognized Developer
  • Apr 28, 2014
    4,223
    4,898
    36
    Cologne
    bro i have installed eclipse rom with nx kernel cuz nx kernel and ur kernel the only ones OC. so i overclokced nx kernel to 2.6ghz max and 2.6 min freq and their wasnt any abnormal battery draining, i had overheat though (83C)
    but that didnt drop my fps at all. it was so smooth so could you please add minum freq back as it really helps me, i first tried doing it on hktweaks app but ahahaha it didnt work so only way i know is to ask u

    That's a painfully method to make a device smoth. I can't recommend to increase min_freq at all, but you can do it anyway by adding the following command in init.d script:

    Code:
    # set min_freq for big to 1.8 GHz
    echo 1807000 > /sys/devices/system/cpu/cpu4/cpufreq/user_scaling_min_freq

    Furthermore you can try the following settings in A2N App:

    • LMK to 64 MB
    • zRam 75 % (it's unstable for now and will be stable in next build)
    • all up_thresholds to min value
    • touch boost to 4000 ms
    • DVFS at max temp
    • GPU/CPU max stable for your device

    DEV..
    my s8 battery is swollen a little... when I'm gaming the battery temp is nearly around 40c and i use performance plus mode(all other settings are high including cpu temp 85c etc..) and battery idle is on after charging phone up to 90% (2500mah charging current). Reason why its enlarged? any fix? or how to prevent it getting enlarged further in future..

    Probably because it's old and has many charge cycles, means the end of its lifespan.
    Check charge cycles + real battery cap in %.
    Note: if you did a reset, you need to wait 3 charge cycles for correct real capacity.

    Edit: @God's Bro
    You can prolong the liefespan by using batt idle to 90 - 95 % .. right and charge temp not higher than 40 °C. Charging current maybe more safe to not go over 75 % of its capacity. Last one is just my opinion, so it doesn't mean it's 100 % right, according to my knowhow it's safe to charge a li-ion battery to max 1C means 100 % of its capacity. You can google this, there is some pretty website like "batteryuniversity" ....
     
    Last edited:

    Devil90

    Senior Member
    Jan 11, 2021
    119
    96
    31
    Roma
    Update for 2.0 Ghz little core test:

    After more than 48 hours and various tests both in general use by setting the cpu set 0-3 for foreground tasks, and various benchmarks including Geekbench 4 and 5, I can say that 'at least' in my chip the frequency is 100% stable , I didn't have any reboots or crashes.


    ps: using 0-3 for foregrount tasks there are general lags and performance drops, but of course I think it is due to the optimization of the use of therads and therefore it is normal.
     

    rtyuakatsuki

    Senior Member
  • May 18, 2020
    113
    57
    Samsung Galaxy S8+
    Update for 2.0 Ghz little core test:

    After more than 48 hours and various tests both in general use by setting the cpu set 0-3 for foreground tasks, and various benchmarks including Geekbench 4 and 5, I can say that 'at least' in my chip the frequency is 100% stable , I didn't have any reboots or crashes.


    ps: using 0-3 for foregrount tasks there are general lags and performance drops, but of course I think it is due to the optimization of the use of therads and therefore it is normal.
    You are on s8 or s8+ ? My s8+ cannot touch 2ghz and 2,8 if touch it will be reboot
     

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,223
    4,898
    36
    Cologne
    Update for 2.0 Ghz little core test:

    After more than 48 hours and various tests both in general use by setting the cpu set 0-3 for foreground tasks, and various benchmarks including Geekbench 4 and 5, I can say that 'at least' in my chip the frequency is 100% stable , I didn't have any reboots or crashes.


    ps: using 0-3 for foregrount tasks there are general lags and performance drops, but of course I think it is due to the optimization of the use of therads and therefore it is normal.

    OK, that's luck. Yeah and therefore we don't use little cores for foreground because we don't want a phone that lags like hell.
     

    Devil90

    Senior Member
    Jan 11, 2021
    119
    96
    31
    Roma
    All stock except frequency gpu cpu and zram
    And when i touch more then 2,7ghz will reboot even it not get hot only touch 2,8ghz will reboot just like that now i has been clean install horizon rom i want to try it again maybe work
    Leave big cpu 2.3ghz and select little 2.0ghz and try if you have reboots.
     

    predict9

    Senior Member
    Aug 13, 2020
    118
    44
    That's a painfully method to make a device smoth. I can't recommend to increase min_freq at all, but you can do it anyway by adding the following command in init.d script:

    Code:
    # set min_freq for big to 1.8 GHz
    echo 1807000 > /sys/devices/system/cpu/cpu4/cpufreq/user_scaling_min_freq

    Furthermore you can try the following settings in A2N App:

    • LMK to 64 MB
    • zRam 75 % (it's unstable for now and will be stable in next build)
    • all up_thresholds to min value
    • touch boost to 4000 ms
    • DVFS at max temp
    • GPU/CPU max stable for your device
    it worked but i put it to 2.4ghz lower then 2.3ghz lags my game but i get so many reboots... isnt a way to remove reboots? my phone wasnt overheatin but its still rebooted 3x b4 i even started the game
     

    predict9

    Senior Member
    Aug 13, 2020
    118
    44
    turn it off?
    edit: turned on/off but still my phoen rebooting every 10 sec when it boots up, in nx kernel i egt reboot too but after 2 hours.
    "/sys/devices/system/cpu/cpu4/cpufreq/user_scaling_min_freq" cuz of this? because it is only 1 core i think so i have to add 3 more cores?


    edit: lol battery temp was 40 i put it to 45 it wokred but MY GOD it reached 100C for first time do i get high benchmark scores if i run a test? thanks bro i amma try zram again and give report
     
    Last edited:

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,223
    4,898
    36
    Cologne
    turn it off?
    edit: turned on/off

    Turn zRam OFF read carefully ....

    but still my phoen rebooting every 10 sec when it boots up, in nx kernel i egt reboot too but after 2 hours.

    Then good luck to find what you have broked in your phone, if you use several scripts + any non-a2n kernel manager apps then it's no wonder and here ends the warranty lol.

    "/sys/devices/system/cpu/cpu4/cpufreq/user_scaling_min_freq" cuz of this? because it is only 1 core i think so i have to add 3 more cores?

    Nope.

    edit: lol battery temp was 40 i put it to 45 it wokred but MY GOD it reached 100C for first time do i get high benchmark scores if i run a test? thanks bro i amma try zram again and give report

    Please stop to spam the thread with such bad reports, no logs and no clearly instructions how to reproduce.
    First of all, do a clean installation.
    Then don't install any 3rd-party kernel manager apps, (i said that already for years that it wont work stable with universal kernel manager apps)
    You can use your own custom init.d scripts of course, but only if you know what you do and actually it doesn't seem so.
     

    Devil90

    Senior Member
    Jan 11, 2021
    119
    96
    31
    Roma
    DEV..
    my s8 battery is swollen a little... when I'm gaming the battery temp is nearly around 40c and i use performance plus mode(all other settings are high including cpu temp 85c etc..) and battery idle is on after charging phone up to 90% (2500mah charging current). Reason why its enlarged? any fix? or how to prevent it getting enlarged further in future..
    My battery is also a bit swollen, you can feel it by touching the back of the glass, my S8 is 2 years old, maybe it is due to the use of fast charging.
    But it still has 91% capacity so I'll wait to replace it.

    ps: in the app I decreased the charge temperature to 35° and I always active the dvfs at 60° to avoid stress on the battery.
     
    • Like
    Reactions: God's Bro

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,223
    4,898
    36
    Cologne
    My battery is also a bit swollen, you can feel it by touching the back of the glass, my S8 is 2 years old, maybe it is due to the use of fast charging.
    But it still has 91% capacity so I'll wait to replace it.

    ps: in the app I decreased the charge temperature to 35° and I always active the dvfs at 60° to avoid stress on the battery.

    I don't think that the reason is fast charging ... even the fact that fast charging is enabled by default in samsung's stock kernel. If you search the web, you will find informations about specs for li-ion batteries.
    There are some standard suggestions about limits like:
    • max temp while charging: 45 °C
    • Max charging current 1C = same as battery capacity in mAh

    and this kernel / app doesn't allow you to go over those limits.
    I can break those limits, but i don't do that, because i don't want to damage your batteries.

    Also note that SAMSUNG gives you only 12 months warranty for the battery ... and there is a reason for this. :sneaky:

    Swelling happens if your phone is too often in contact with water and high humidity.
    Also notice that some manufacturer consideres a battery as old and "end of lifespan" if the charge cycles are over 300.
    Warning: be carefully by using bloated batteries ! - As they can explode and start burning.

    Battery swelling is normal on li-ion batteries, so there is no trick or tip to avoid this, but surely you can prolong by not keeping the battery for too long at 100 % or 0 %. Reducing charging current to 0.75 C and max charging temp to 40 °C.
    Also you should avoid wireless charging and charging and playing games at the same time.
    Maybe at least with battery IDLE enabled, but not setting charging current to the max (3000/3500 mA) and playing pubg like a dumb.

    hi all, today other 2 spontaneous reboot...please find LOG attached.

    thank you

    You don't follow the thread ? - Disable zRam for now ... (0 %)
    On next build you can re-enabled it then, i've already fixed it and works 100 % stable now.
     

    Pappons

    Member
    Feb 28, 2021
    9
    6
    Hi @ace2nutzer , I have now discovered this kernel after I rooted my S8, you reborn my phone when I decided to change it for an s10!
    Do you recommend a good setting for the frequencies and up_threshold of Big / little cpu to increase performance a little without consuming too much battery?
    thank you
     

    Devil90

    Senior Member
    Jan 11, 2021
    119
    96
    31
    Roma
    Hi @ace2nutzer , I have now discovered this kernel after I rooted my S8, you reborn my phone when I decided to change it for an s10!
    Do you recommend a good setting for the frequencies and up_threshold of Big / little cpu to increase performance a little without consuming too much battery?
    thank you
    I advise you to leave stock freq for the Big core, increasing it if you are not a player will serve you nothing, it only increases the consumption of battery and heat.
    It makes more sense to increase Little freq to 2.0ghz if you chip support, and don't have reboots or 1.9ghz which is 100% stable.
     
    • Like
    Reactions: Pappons

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,223
    4,898
    36
    Cologne
    Hi @ace2nutzer , I have now...

    Try it, almost all settings are failsafe and doesn't even need a reboot, so you can change on-the-fly and see what is best for your needs.
    The only setting that needs 2 - 3 minutes is the zRam size, because if you change the size it'll first decompress the swapped data and then a new size can be applied, during decompression the phone can heat up a little bit, 4 threads full load on the big CPU.
     

    predict9

    Senior Member
    Aug 13, 2020
    118
    44
    Try it, almost all settings are failsafe and doesn't even need a reboot, so you can change on-the-fly and see what is best for your needs.
    The only setting that needs 2 - 3 minutes is the zRam size, because if you change the size it'll first decompress the swapped data and then a new size can be applied, during decompression the phone can heat up a little bit, 4 threads full load on the big CPU.
    idk if this helps but after the new update zram doesnt freeze or heat phone so its has become better...
     
    • Like
    Reactions: ace2nutzer

    Pappons

    Member
    Feb 28, 2021
    9
    6
    Try it, almost all settings are failsafe and doesn't even need a reboot, so you can change on-the-fly and see what is best for your needs.
    The only setting that needs 2 - 3 minutes is the zRam size, because if you change the size it'll first decompress the swapped data and then a new size can be applied, during decompression the phone can heat up a little bit, 4 threads full load on the big CPU.
    The kernel is fantastic, very fast, but how much I play and the phone overheats, dvfs starts and the phone lags a lot, for what frequency does it limit the cpu?
    Now we set it to 65 degrees, up to what temperature I'm sure not to damage the phone and battery?
     

    Top Liked Posts

    • 5
      Okay thank you all for the logs !
      I'll check them and trying to understand what's wrong.
      It can take some time.
      I think i've enough logs now, not needed to post furthermore logs.
      But you could post logs if it'll still reboot even with zram 0 %.
      1
      Just got a random reboot while reading the comments of a paused YouTube video.
      Profile: balanced
      Zram:50%
      1
      Got another one while spotify was open.
      1
      Okay thank you all for the logs !
      I'll check them and trying to understand what's wrong.
      It can take some time.
      I think i've enough logs now, not needed to post furthermore logs.
      But you could post logs if it'll still reboot even with zram 0 %.
      wow, i check on galaxy ace 2 have 800mhz GPU i hope this samsung s8 and S8+ can be 839mhz too that was amazing work on galaxy ace 2 and undervolt on that wow i hope soon as possible can make on S8&s8+
      btw dev since install i only got 1 random reboot but i forgot make the log because not too disturb
      1
      wow, i check on galaxy ace 2 have 800mhz GPU i hope this samsung s8 and S8+ can be 839mhz too that was amazing work on galaxy ace 2 and undervolt on that wow i hope soon as possible can make on S8&s8+
      btw dev since install i only got 1 random reboot but i forgot make the log because not too disturb

      OFFTOPIC:
      hehe.. do you have Galaxy Ace 2 too ? - Stock GPU Freq was 400 MHz and with the max overvolting the hardware can give it was possible to run it stable at 700 - 750 MHz for GPU. At 800 MHz i've graphical glitches, but well that's the double speed lol.
      Funny thing, GPU clock has not any limit, i could set it even at real 3 GHz, but it never would work stable due to voltage limitation from hardware voltage regulator.
      And CPU stock 800 MHz and worked stable up to 1250 MHz, and for one guy it worked even stable at 1300 MHz. And RAM OC from 800 @ 1000 MHz stable even without the need to increase voltage.
      That was good old times, hehe.
    • 8
      Changelog

      Kernel V. 2021.04.17
      • Source code update: DTF1 -> DUA3 - thanks @ Samsung
      • HMP_CUSTOM: update - should fix several bugs e.g. with BT
      • zRam: updated driver for higher efficiency in MM and higher security (encryption) - thanks @ minchank
      • zRam: improved performance and compression ratio
      • MM: optimized CMA*/RBIN* usage - for the better memory allocation
      • MM: saved around 100 MB of a wasted RAM from RBIN - zRam driver will use it now
      • Debug: reverted some debug log buffers sizes to stock - probably it caused some instabilities
      • Fixed BT disconnections - thanks @traversone for testing in Android-Auto !
      • Improved stability
      • HMP_CUSTOM: updated driver
      • Optimized MM
      • zRam: updated LZ4 lib
      • Encryption: enabled hardware acceleration
      • Optimized boot-script for boot glitch fixup (needs some testing) ;)
      • Added some patches e.g. EXFAT support provided by @ remilia15
      • Some more minor kernel tweaks
      • Uploaded also patched stock kernel - DUA3
      • Uploaded twrp with latest a2n kernel inside

      *MM = Memory Management
      *CMA = Contiguous Memory Allocator
      *RBIN = recyclable reserved RAM for camera (228 MB)
      7
      Changelog

      Kernel V. 2021.03.24
      • Fixed audio call recording - thanks @rostifaner for help
      • Charger Control: added support for USB-CDP (used in cars) - thanks @traversone for report and log
      • Thermal Throttling: driver update and allow up tp 95 °C stable CPU/GPU Temp (adjustable over the app or script) and add a proper overheat protection
      • Added more TCP congestions algorithm
      • lib/lz4: updated to LK 4.11.12 (for zRam stability and performance)
      • zRam: decreased overhead and reduced memory usage
      • I/O: increased read_ahead_kb for max speed
      • mm/zsmalloc: removed all samsung changes
      • Enable WQ_POWER_EFFICIENT_DEFAULT & MALI_DMA_FENCE
      • Custom HMP: update

      A2N Kernel Control V. 3.4
      • Charger Control: added USB-CDP ( for USB charging in cars)
      • CPU/GPU: optimized DVFS
      • Profiles: Performance Plus: allow custom Freqs
      • Network: added more TCP congestions algorithm
      • Advanced Power Menu: updated
      6
      Another test kernel, in the hope to fix some leftover issues !

      a2n_kernel_g950x_9.x_test4.zip

      a2n_kernel_g955x_9.x_test4.zip

      Tip:
      if you need to change zRam size then i do recommend to reboot instead to wait, because new zRam driver is quite slower when it comes to change the size, but it's quite faster at normal operation.
      Next A2N app version will inform you to reboot after changing zRam size.

      So now let's hope that it finally works properly !

      Changelog: check my GitHub or wait till i'll write it (once it works 100 %)

      @traversone
      now it's your turn !
      6
      Pre-release version 2021.04.02

      • Source code update: DTF1 -> DUA3 - thanks @ Samsung
      • HMP_CUSTOM: update - should fix several bugs e.g. with BT
      • MM*: disabled samsungs aggressive force_reclaim patch - should reduce freezes
      • zRam: updated driver for higher efficiency in MM and higher security (encryption) - thanks @ minchank
      • zRam: improved performance and compression ratio
      • MM: optimized CMA*/RBIN* usage - for the better memory allocation
      • MM: saved around 100 MB of a wasted RAM from RBIN - zRam driver will use it now
      • Debug: reverted some debug log buffers sizes to stock - probably it caused some instabilities

      *MM = Memory Management
      *CMA = Contiguous Memory Allocator
      *RBIN = recyclable reserved RAM for camera (228 MB)

      If random reboots are now fixed with this build, then we can considering this as our next official release !

      a2n_kernel_g950x_9.x_2021.04.02.zip

      a2n_kernel_g955x_9.x_2021.04.02.zip

      Note: after flashing kernel and magisk then instead to directly reboot to system, power off and start with power button, required for the updated RAM layout.
      5
      Woah pre release i just want make bug report for test kernel 3 , for test kernel 3 the bug is only when play game and use big cpu 2.7 ghz and got random reboot for other setting all save nothing to get random reboot
      This the file bug report
      And now time to test the pre release yeeee😂😂😂
      As is said before, do not report bugs if you use OC.
      Anyway i've checked the log and the cause for the freeze / reboot was because you changed gpu_min_clock to 572 MHz, don't do that.
      Same, just had a random reboot, but after it boots up, i was stuck at "phone starting.." and had to force reboot.
      Caused by Filesystem error at sda24.
      Fix: format /data by typing "yes" in TWRP to make a real format of /data, so not only wipe data.
      Here report pre release random reboot i have many random reboot last night i report only one
      Becuase last night i use all oc option and LMK 16mb
      Damn it !
      It's still the same bug as before, hmm.
      Need to check more deeper.
    • 56
      A2N Kernel for the Galaxy S8 / S8+ Plus Exynos Chip

      Supported Devices
      • G950F
      • G950FD
      • G950N
      • G955F
      • G955FD
      • G955N

      This Kernel aims are to
      • reduce the power consumption
      • improve the Performance
      • make it more smooth
      • reduce RAM usage
      • improve RAM Management
      • increase the Security
      • extend Device Features
      • and many more ...

      A2N Kernel Special Features

      • FULL Android 9 Pie SAMSUNG Stock ROM Support
      • Added Charger Control by me - Allows to configure custom max input current for S8 between 200 - 3000 mA and for S8+ Plus between 200 - 3500 mA in 100 mA Steps separately for AC / USB-PD / Wireless / USB 3.0 / USB 2.0 - that means real Fast Charging even with Screen ON (see Ampere Screenshot charging with 3000 mA) - Allows even to charge at max current possible with 3rd-party Chargers !! (if they can handle the current, otherwise it'll step down to a stable current)
      • Support for battery IDLE and battery care (see Ampere Screenshot IDLE with 0 mA)
      • AUTO AFC: the AFC Setting in Android --> Battery --> Settings will have no effect with this Kernel
      • More accurate remaining time to full charged battery
      • Added Flashlight Torch Control - You can adjust Brightness of your Torch from 1 - 15 - Default/Stock Kernel is just 5 :p
      • Wireguard Support - always latest Version
      • Dex with any HDMI Adapter - thanks @ Barna Keresztes from GitHub
      • Higher SOT (10h) even with Kernel defaults
      • Based on latest Stock Source from SAMSUNG
      • Ramdisk always latest
      • Compiled with OFFICIAL ARM/Linaro GCC-8.3 Toolchain
      • Optimized Memory Managent for better multitasking even with swap disabled
      • Improved Performance
      • Improved Battery Life
      • Reduced Device heat
      • More Responsive and smooth
      • Fixed Laggs (especially for some 2D Games)
      • Increased Efficiency
      • RAM: 3485 @ 3710 MB
      • Unlocked higher CPU Freq Steps - Thanks @Noxxxious for initial CPU OC
      • SELinux in permissive mode - Thanks @Noxxxious
      • Disabled SSWAP
      • Added zRam Support with fast LZ4 Compressor
      • Added KSM Support - patched for Android by me
      • Configurable Touch Booster Freq and time
      • Fixed very bad CPU IDLE
      • CPU: Interactive @ conservative gov - for higher efficiency
      • SELinux: Removed Audit dependency - Thanks @ kerneltoast && arter97
      • Added Support for F2FS (requires F2FS capable ROM)
      • Kernel Modules for CIFS and NFS
      • VoLTE + Wifi-Calling works fine on all Android 9 ROMs
      • TCP Congestion Control: cubic by default, new reno, bic, westwood+
      • Fully working optional device encryption
      • init.d Support
      • Partially enabled HMP Driver for proper handle of both CPU's
      • LED-RGB: ability to adjust blink delays for missed notifications / low battery
      • LED-RGB: added sysfs interfaces to disable low-power-mode for RED GREEN BLUE LED (higher brightness in the darkness)
      • Power: USB: ability to disable water detection
      • Drivers: enabled support for Xbox / Sony PS / Nintendo Wii / Gamepads
      • CPUSETS: moved some tasks and services (e.g. Audio encoder) to the little CPU in order to relieve the big CPU, improving performance for foreground Apps !
      • Optimized some system clocks for higher powersaving !
      • Interface for custom suspend cpu max_freq
      • And many more Kernel Tweaks - i can't list them all here ... :eek:

      A2N Kernel Control

      For full Control over Performance, Battery, RAM Management and many new cool features like "Torch brightness tuning", LED blink delays adjustment and many more !
      (3rd-party Kernel Manager Apps will not work properly with this Kernel, use only genuine A2N Kernel Control)

      ### App features ###
      # Power
      --> Charger Control: Adjust AC / USB-PD / Wireless / USB 3.0 / USB 2.0 / max Input Current in 100 mA Steps, Range: 200 - 3000/3500 mA (S8/S8+)
      --> Fast (Wireless) Charging even with Screen ON (make sure to use an active cooling pad for Wireless)
      --> Shows the actual,
      accepted Charging (input) Current
      input Voltage
      Battery Temp in °C / °F
      --> Battery care support (e.g. stop charging at 95 % to reduce battery capacity loss)
      --> Battery idle feature (power supply your S8 over cable or wireless without to use the battery - useful for DeX or Gaming)
      --> Ability to disable water detection if needed

      # Audio
      --> Volume + / - over the App - useful if the Hardware Buttons are broken

      # Screen
      --> Turn the Screen OFF over the App

      # CPU
      --> OC Control:
      --> BIG CPU: 741 - 2808 MHz
      --> LITTLE CPU: 455 - 2002 MHz
      --> Set max_freq for Screen OFF for both CPUs
      --> BIG CPU Cool Freq (DVFS) - Ability to set higher Max Freq limit when the device is hot and should cool down, i.e. stock is 1469 MHz but you can set it to 1807 MHz or higher in order to avoid too big performance drops from thermal throttling
      --> Check if BIG CPU Max Freq is actually throttled from thermal driver
      --> CPUSET Control for both CPUs - allows you to disable unstable cores in order to get higher stable OC rate !

      # GPU
      --> Freq Control:
      --> Ability to reduce max_freq - Range 260 - 572 MHz
      --> Ability to fully disable DVFS, i.e. no GPU performance drops at all while the device is getting hot (fail-safe)

      # Hardcoded Performance Profiles
      --> Powersave (UC)
      --> Balanced (UC)
      --> Performance (Kernel default)
      --> Performance Plus / Gaming (OC)

      # RAM
      --> Memory Management Control:
      --> LMK - very easy and fail-safe method to adjust the amount of Free RAM - improving Multitasking. Range: 16 - 256 MB | Default: 64 MB
      --> zRam - LZ4 compressed swap block-device in RAM (Multitasking) (25 %, 50 % or 75 % of the RAM Size)
      --> Ability to drop all caches and buffers (to free some RAM)

      # Network
      --> Enable Kernel Support for Network File Systems: CIFS and NFS
      --> TCP Congestion Algorithm (cubic, new reno, bic, westwood+)

      # Misc
      --> Flashlight Brightness Control - up to 3 times brighter than with Stock Kernel ! Range: 1 - 15 | Default: 5
      --> Adjust LED-RGB blink delays (for missed notifications / low battery)
      --> LED-RGB: Optimize RED GREEN and BLUE LED separately (higher brightness in the darkness)
      --> Accelerometer Calibration

      # Debug (in-App-menu)
      --> Disable restoring of te settings on reboot - if you are not sure whether the settings are stable

      For more details, please check the Screenshots.

      How to force Android 9 update

      STEP 1
      Download latest Android 9 for your Phone Model and save it to your PC or Laptop.
      To find out your Phone Model, open the "Phone" app and type "*#1234#"

      Now on the PC, open your Web Browser and copy and paste one of the following Links: (adjust the Link to your needs of course ! )

      Examples:

      Link for S8+ SM-G955F DTB Germany:

      Link for S8 SM-G950F DTB Germany:

      STEP 2
      After the download is done, unpack the *.zip package to a Folder with the same name like the *.zip but without ".zip" in the folder name.
      Now you should have a folder with Files *.tar.md5. If so, then it's correct !

      STEP 3
      Now download ODIN v3.13.1 Click! and save it to your PC.

      STEP 4
      Unzip the Odin3_v3.13.1.zip File and go into the unpacked Folder and execute the Program file: "Odin3 v3.13.1.exe"
      Click "OK" and the ODIN Offline-flasher is ready for use now.
      Click on "options" and make sure that only "Auto Reboot" is checked.

      STEP 5
      Now click on "BL" and navigate to the unpacked Android 9 Firmaware Folder with the *.tar.md5 Files inside, there you just choose the File that starts with "BL_..." and click "open"
      Same way for "CP" and "AP".
      But for "CSC" you use "CSC_..."
      Tip: I suggest to add "AP" as the last one ... because it's biggest one and needs longer to check MD5 sum. ;)

      STEP 6
      Phone: Backup all the data from internal sdcard to your PC / micro-sd card or USB Stick, because installing a new firmware will wipe /data, which contains also the internal sdcard data !

      STEP 7
      On the Phone: Settings --> Phone Info ---> Software Informations --> Tap 7 times on "Buildnumber", now go 2 x back and you will see new Menu:
      "Developer Options" --> enable "OEM-Unlocking"
      If you can't find it, (it's usually the third Button) then you can't unlock the Bootloader for now. In this case, it can be helpful to just log-in into your Google Play Account,..
      Wait some minutes and check again, usually it should appear now. If not, then let Phone up (without to reboot) for exactly 7 Days, then it should appear.

      STEP 8
      Shutdown the Phone.

      STEP 9
      Then press and hold "Volume down" + "Bixby" + "Power button" till you see the Warning message.
      Press "Volume Up" for "Continue" and now you can connect the Phone with the USB Cable to your PC.

      On some older Windows systems like Win xp, you will need to download and install the "SAMSUNG USB Drivers" Click! yourself, otherwise the System will install them automatically once you connect your Device to your PC. To unpack this *.rar File you may need to download Winrar, Click for 64-bit or Click for 32-bit

      Anyway wait till "ID:COM" the box below will be blue ... then the Phone was successfully recognized and you are ready to flash.

      STEP 10
      ODIN: Now click "Start" .. wait till you see "PASS!"
      Unplug the USB Cable.
      Close ODIN.
      Wait till you see the Setup Wizard
      DONE !

      Installation for normal People

      Requirements:


      • Since this Kernel requires Samsung Stock ROM Android 9, make sure you have Android 9 installed, to check this, open the "Settings" App on your phone, then "Phone Info" ---> "Software Informations" --> Android-Version = 9 ?, If not start first with "How to force Android 9 update" then perform "installation for normal People" here.
      • Who is able to peform this installation? - Everyone who has already downloaded and installed any Windows Programs
      • Time: 40 - 60 Minutes
      • Windows PC or Laptop with Win XP or higher
      • USB Cable - for connecting your Device with PC
      • Micro-sd Card or USB Stick with adapter that fits to your Device

      Short Summary:

      • Backing up all the data from internal sdcard to your PC / micro-sd card or USB Stick
      • Unlocking bootloader
      • Installing with ODIN the new "TWRP Recovery" to your Device
      • Installing A2N Kernel with TWRP
      • Installing Magisk* with TWRP - this will ROOT your Device, e.g. you can use all the A2N Kernel Control features.
      • Optional but very recommended: buy A2N Kernel Control for best control over Battery usage, Performance and charging speed
      * = Magisk will ROOT your Phone in a very safe way, that means, SafetyNet will still be OK after flashing Magisk Root Solution.

      INFO:
      If your Device Model is S8, then choose always the packages for "...g950x...", otherwise
      if it's S8+ Model, then choose always "...g955x...".

      STEP 1
      Download latest patched TWRP Click! from Folder "General" choose *.tar File and ODIN v3.13.1 Click! and save them to your PC.

      STEP 2
      Download latest A2N Kernel Click! choose "Android 9" and the *.zip File and
      Download Magisk Click ! and scroll down to "Downloads" and click on "Latest Stable" and save both files to your micro-sd card or USB Stick.

      STEP 3
      Unzip the Odin3_v3.13.1.zip File and go into the unpacked Folder and execute the Program file: "Odin3 v3.13.1.exe"
      Click "OK" and the ODIN Offline-flasher is ready for use now.
      Click on "options" and untick everything.
      Now click on "AP" and load the TWRP recovery *.tar file into it.

      STEP 4
      Backup all the data from internal sdcard to your PC / micro-sd card or USB Stick, because installing any Custom Kernel for the first time will require to wipe /data, which contains also the internal sdcard data !

      STEP 5
      On the Phone: Settings --> Phone Info ---> Software Informations --> Tap 7 times on "Buildnumber", now go 2 x back and you will see new Menu:
      "Developer Options" --> enable "OEM-Unlocking"
      If you can't find it, (it's usually the third Button) then you can't unlock the Bootloader for now. In this case, it can be helpful to just log-in into your Google Play Account,..
      Wait some minutes and check again, usually it should appear now. If not, then let Phone up (without to reboot) for exactly 7 Days, then it should appear.

      STEP 6
      Shutdown the Phone.

      STEP 7
      Then press and hold "Volume down" + "Bixby" + "Power button" till you see the Warning message.
      Press "Volume Up" for "Continue" and now you can connect the Phone with the USB Cable to your PC.

      On some older Windows systems like Win xp, you will need to download and install the "SAMSUNG USB Drivers" Click! yourself, otherwise the System will install them automatically once you connect your Device to your PC. To unpack this *.rar File you may need to download Winrar, Click for 64-bit or Click for 32-bit

      STEP 8
      ODIN: Now click "Start" .. wait till you see "PASS!"
      Unplug the USB Cable.
      Close ODIN.
      Press and hold "Volume down" + "Power button" till the Download menu disappear.
      Now press and hold immediately "Volume Up" + "Bixby" + "Power button" .. till the SAMSUNG Logo appear.

      STEP 9
      In TWRP Recovery: Tap on "Wipe" --> "Format Data" and Type "yes" and tap on the Blue button.
      Now go several times back and tap on "Reboot" ---> "Recovery" ---> "Do Not Install"
      Wait till TWRP rebooted again to TWRP
      Check "Never show this screen during boot again" and
      Swipe the big blue button to allow Modification.

      STEP 10
      insert micro-sd card or the USB Stick where you have stored the A2N Kernel and Magisk *.zip Files to your phone.
      Press "Install" ---> "Select Storage" --> and choose the inserted Media (Micro SD card or USB OTG) and then "OK"
      Now choose a2n_kernel_****.zip and "Swipe to confirm Flash"
      go back and install the same way: Magisk-v***.zip.
      Go back to the main menu of TWRP
      Press "Mount" and uncheck your Storage in order to unmount it and remove the USB Stick. (if it was the micro-sd card, then keep it inside the Phone)
      Go back to the main menu
      Press "Reboot" --> "System" (SAMSUNG Boot Logo may appear 2 times .. this is normal for first boot)

      STEP 11
      Be patient for at least 10 minutes.. then the Setup Wizard should appear.
      Follow the Setup Wizard and once you are done you will find in the App Menu a red App "A2N Kernel Control" ..
      Open this App and try to change any Settings, an Alert Dialog Box will appear where you can click OK and it will you redirect to the Full Version of the A2N Kernel Control on Google Play Store. Finally it's your decision to buy the App or not.

      DONE !
      Enjoy your A2N Kernel with full control over A2N Kernel Control App !!
      :)

      Installation for power users / developers

      • Backup all your Files from internal sdcard to your sdcard or PC
      • Unlock bootloader (enable OEM in developer options)
      • Install with ODIN my patched TWRP Version you will find it in Folder "General" (in options uncheck everything, especially "Auto Reboot")
      • Boot directly to TWRP
      • Wipe ---> format data ---> type "yes"
      • reboot to recovery
      • Install A2N Kernel
      • Install Magisk
      • reboot to system (SAMSUNG Boot Logo may appear 2 times .. this is normal for first boot)
      • Be patient for at least 10 minutes.. then the Setup Wizard should appear.
      • Done
      • Optional but very recommended: buy A2N Kernel Control App for best control over Battery usage and Performance

      How to keep this Kernel Up-To-Date and how to install it if you have already TWRP installed
      • Download latest A2N Kernel and save it to your (internal) sdcard
      • Reboot to recovery
      • Install latest A2N Kernel
      • Install latest Magisk
      • Reboot to System and enjoy the new Kernel Version :)


      Big Thanks @ Mobile Tech Point for making this Awesome Video ! :good:​


      FAQ

      Disclaimer

      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, otherwise i'll report you and your Thread will be removed.

      Credits

      Linus Torvalds the creator of Linux kernel
      Linux upstream for the root kernel base
      Google for Android Kernel patches
      SAMSUNG for opening Kernel source
      @corsicanu for TWRP Recovery - Original Thread
      @ All users whose have tested this Kernel and direct the development along the right path
      @ All those users, who I forgot to mention (PM me if so)
      Thanks @S.AMU for providing FTP-Server
      Thanks @ Noxxxious for the nice Disclaimer Text

      XDA:DevDB Information
      [KERNEL][9] A2N Kernel [STABLE][10h SOT][Easy Guide Step by Step], Kernel for the Samsung Galaxy S8

      Contributors
      ace2nutzer
      Source Code: https://github.com/ace2nutzer/Samsung_dreamlte_Kernel

      Kernel Special Features: Efficiency, Performance, Powersaving, Smooth, responsiveness, Charger Control, Fast Charging even with Screen ON, Lite Kernel, Performance Profiles, Flashlight Brightness Control, CPU/GPU OC Control, unique Features

      Version Information
      Status: Stable
      Current Stable Version: 2020-11-06
      Stable Release Date: 2020-11-06
      Current Beta Version: 2019-10-19
      Beta Release Date: 2019-10-16

      Created 2018-12-04
      Last Updated 2020-11-05
      23
      Bugs and Issues Kernel 2021.04.17
      • You tell me :)

      Changelog

      Kernel V. 2021.04.17
      • Source code update: DTF1 -> DUA3 - thanks @ Samsung
      • HMP_CUSTOM: update - should fix several bugs e.g. with BT
      • zRam: updated driver for higher efficiency in MM and higher security (encryption) - thanks @ minchank
      • zRam: improved performance and compression ratio
      • MM: optimized CMA*/RBIN* usage - for the better memory allocation
      • MM: saved around 100 MB of a wasted RAM from RBIN - zRam driver will use it now
      • Debug: reverted some debug log buffers sizes to stock - probably it caused some instabilities
      • Fixed BT disconnections - thanks @traversone for testing in Android-Auto !
      • Improved stability
      • HMP_CUSTOM: updated driver
      • Optimized MM
      • zRam: updated LZ4 lib
      • Encryption: enabled hardware acceleration
      • Optimized boot-script for boot glitch fixup (needs some testing) ;)
      • Added some patches e.g. EXFAT support provided by @ remilia15
      • Some more minor kernel tweaks
      • Uploaded also patched stock kernel - DUA3
      • Uploaded twrp with latest a2n kernel inside

      *MM = Memory Management
      *CMA = Contiguous Memory Allocator
      *RBIN = recyclable reserved RAM for camera (228 MB)

      A2N Kernel Control V. 3.4
      • Charger Control: added USB-CDP ( for USB charging in cars)
      • CPU/GPU: optimized DVFS
      • Profiles: Performance Plus: allow custom Freqs
      • Network: added more TCP congestions algorithm
      • Advanced Power Menu: updated

      Older Changelogs

      Kernel V. 2021.03.24
      • Fixed audio call recording - thanks @rostifaner for help
      • Charger Control: added support for USB-CDP (used in cars) - thanks @traversone for report and log
      • Thermal Throttling: driver update and allow up tp 95 °C stable CPU/GPU Temp (adjustable over the app or script) and add a proper overheat protection
      • Added more TCP congestions algorithm
      • lib/lz4: updated to LK 4.11.12 (for zRam stability and performance)
      • zRam: decreased overhead and reduced memory usage
      • I/O: increased read_ahead_kb for max speed
      • mm/zsmalloc: removed all samsung changes
      • Enable WQ_POWER_EFFICIENT_DEFAULT & MALI_DMA_FENCE
      • Custom HMP: update
      Kernel V. 2021.02.06
      • Fixed device heating up - this time for real ;)
      • CPU/GPU: added my custom (DVFS) thermal throttling driver
        range: 45 - 85 °C
        default: 65 °C**
        adjustable temperature separately for CPU/GPU !
        STABLE OC up to 2.8 GHz !! ***
      • Fixed random reboots - thanks @rostifaner for the hint !
      • Swap: added more optimizations for zRam
      ** Max possible performance only @ 85 °C for CPU/GPU !
      *** I was able to pass Geekbench + 3DMark @ CPU 2.8 GHz / GPU 572 MHz with DVFS 85 °C

      A2N Kernel Control V. 3.3
      • CPU/GPU: replaced "Cool Freq" (DVFS) with "Max Temperature"
      • Profiles: updated "Performance Plus" BIG-CPU 2.5 @ 2.8 GHz :cool:
      • Optimized reboot routine

      Kernel V. 2021.01.26
      • Fixed device heating up
      • CPU/GPU: optimized thermal throttling (performance)

      A2N Kernel Control V. 3.2
      • CPU/GPU: updated "Cool Freq" (DVFS)

      Kernel V. 2021.01.20
      • Optimized system clocks
      • Fixed stability issues with/without zRam from previous release
      • Charger Control: added battery volt & battery (charge) max_temp interface
        Reverted all temperature settings to stock
        HACK: allow to reset battery capacity without JIG :cool:
        FIX: fast charging in LPM and any issues with fast charging, likely with wireless fast charging
      • CPU: updated ondemand governor
      • GPU: added a simple ondemand governor ;)
      • Source code cleanups
      • Reduced log buffer to the Min
      • Reenabled touch booster driver
      • Swap: improved zRam performance (page-cluster reset to stock)
      • Wi-Fi: allow to disable 5 GHz or 2.4 GHz band (this will fix severe issues with Wi-Fi routers that doesn't allow to use different SSID for 2.4 GHz / 5 GHz band)
        Extended driver
      • RAM: 3724 MB

      A2N Kernel Control V. 3.1
      • Power: added "Battery Voltage Check"
        fixed 3500 mA current for S8+
        added "Battery Cycles" & "Real Battery Capacity" and allow to reset it
        added "Max Charging Temperature"
      • CPU/GPU: readded "up_threshold" & "Disable Boost"
        added "Increase Sampling Rate"
      • Added more dialogs / checks
      • RAM: optimized "Drop Caches / Buffers"
      • Screen: readd "Input Boost Duration"
      • Added a quick 3-way reboot menu
      • Network: added "Wi-Fi Band Set"
      • Stability fix
      • Grammar fixes
      • Updated defaults
      A2N Kernel Control V. 3.0

      • Improved stability

      Kernel 2020.11.06
      • Fixed graphical screen glitches at resolutions > 1080
      • Optimized system clocks
      • RAM: Allowed to use higher RAM Freq - 1794 @ 2093 MHz (if Supported by binning)
      • CPU: updated cool freq logic - by default it uses system default (depending on binning)
      • GPU: improved stability, performance and readded OC up to 839 MHz
      • GPU: added "Cool Freq" Interface as well like on CPU for better handling of the higher Freqs > 572 MHz (since fully disabling DVFS would overheat the Phone)
      • CPU: Fixed Suspend Max Freqs feature
      • Power: Updated Charger Control to V. 2.6
      • Charger Control 2.6: increased default charging current to:
        AC/USB-PD: 1500 @ 2200 mA(S8) / 1800 @ 2600mA (S8+)
        Wireless: 900 @ 1200 mA
      • Disabled a lot of excessive debugging / log spamming / tracing
      • RAM: 3710 @ 3727 MB (with latest stock kernel it's 3679 MB) :cowboy:
      • Source cleanup
      • Fully disabled INPUT_BOOSTER to avoid painfully battery draining even when it's not needed e.g, if you just keep your finger on the Screen
      • CPU: switched from conservative gov to ondemand (conservative gov was cool but it's time for the new sh!t !)
      • SWAP: improved zRam Stability (disabled PGTABLE_MAPPING ... caused freezes and random reboots for me)
      • Patched system binary "dex2oat" to run only on big CPU - faster Apps optimization after wiping dalvik-cache and in general also it speeds up usual app installation and updating time from Play Store :cool:
      • More responsive, smoother and better performance ..... better battery life as well ?? - Let me know as i didn't test it yet :D

      A2N Kernel Control V. 2.9
      • GPU: re-added OC up to 839 MHz
      • GPU: added GPU Cool Freq
      • Power: added Battery Cycle Info
      • Apply settings earlier on boot
      • Updated defaults / text
      • Fixed crashes
      Kernel 2020.09.27
      • RAM: Optimized memory management - higher memory pressure for better multitasking even without swap
      • Charger Control V.2.5: increased max allowed batt temp to 45 °C - faster charging for Wireless and Cable
      • LED-RGB: allowed also to disable lowpower-mode for RED and GREEN LED
      • BIG CPU: enabled BOOST by default
      • CPU: enabled touch booster by default with 500 ms duration
      • Charger Control V.2.5: fixed battery level wrongly increasement when battery level is high at around 95 % and battery idle mode is active
      • Fixed all bugs with Battery iDLE, Battery Care and the mess with RGB-LED (now it finally works properly)
      • GPU: Removed Freq steps > 572 MHz since it doesn't work stable
      • GPU: added some useful sysfs interfaces to /sys/kernel/gpu (for debugging)
      • More responsive and smoother

      A2N Kernel Control V. 2.8
      • RAM: added very easy and fail-safe control over Low-Memory-Killer
      • CPU: added CPUSET Control - ability to disable some unstable cores in order to get higher stable overclock rate
      • CPU: added ability to set a custom max_freq for Screen OFF
      • Misc: added ability to optimize also GREEN and RED LED
      • Reworked App layout
      • Updated defaults / Profiles
      • Removed unnecessary features
      • Simplified usage
      Kernel 2020.08.27
      • Charger Control: increased high_temp_recover from 40 @ 43 °C (faster charging)
      • Battery Care: Fixed Blue LED / Non-Charging randomly

      A2N Kernel Control V. 2.7
      • Compiled with SDK 29 (Google Play requirement)
      • Power: fixed "Battery IDLE mode" description

      Kernel 2020.08.24
      • Improved Performance - also more smoother
      • LED-RGB: Proper handling of BLUE LED for Battery Care / Battery IDLE :D
      • Extended Input Support for mouse, keyboard, joysticks and touchscreen panels

      A2N Kernel Control V. 2.6
      • Misc: LED-RGB: replaced "disable low-power-mode" with "Optimize Blue LED" (higher brightness in the darkness)*
      * Since only the Blue LED needs an increasement

      Kernel 2020.08.11
      • Fixed Call Audio

      Kernel 2020.08.06
      • Source update DTC6 --> DTF1
      • Ramdisk Update DTEA --> DTF1
      • Partially enabled HMP Driver for proper handle of both CPU's
      • Updated Charger Control to V. 2.4: added support for battery idle* and battery care
      • LED-RGB: added ability to adjust blink delays for missed notifications
      • LED-RGB: added ability to disable low_power_mode - higher LED brightness in the darkness
      • Power: USB: ability to disable water detection
      • Drivers: enabled support for Xbox / Sony PS / Nintendo Wii / Gamepads
      • CPUSETS: moved some tasks and services (e.g. Audio encoder) to the little CPU in order to relieve the big CPU, improving performance for foreground Apps !
      • Optimized some system clocks
      *= when battery is in idle, the LED will light up BLUE :D

      A2N Kernel Control V. 2.5
      • Power: added battery care support (e.g. stop charging at 95 %)
      • Power: added battery idle feature (power your phone over cable-only)
      • Power: added ability to disable water detection (to deal with wrong water detection)
      • Misc: added ability to adjust LED-RGB blink delays (for missed notifications)
      • Misc: LED-RGB: added ability to disable low-power-mode (higher LED brightness in the darkness)
      • RAM: added ability to drop all caches and buffers (to free some RAM)
      Kernel 2020.06.03

      • Ramdisk Update DTC1 -> DTEA
      • defconfigs: switched back to EXT4_FS_ENCRYPTION *
      • Build.prop tweaks (dalvik-heap)
      * if you are using device encryption and your device can't boot with this release, then flash previous release

      A2N Kernel Control V. 2.4

      • CPU: DVFS: unlocked all Frequencies - allows to disable CPU DVFS entirely
      • GPU: DVFS Fix

      Kernel 20200519

      • Source Update DTA6 -> DTC6
      • Charger Control: allowed higher chg_temp - should charger faster, especially for 3000+ mA
      • defconfigs: re-enable Gear VR related drivers
      Kernel 20200513

      • Memory Management: reverted to stock minfree values - slightly optimized
      • Dex with any HDMI Adapter - thanks @ Barna Keresztes from GitHub
      • zRam: stability Fix
      • init.d Fix
      • Improved Demo App auto installation - stability fix
      Kernel 20200509

      • Memory Management: decreased memory pressure since it caused hangs
      • init.d Fix
      • Improved Demo App auto installation

      Kernel 20200507

      • FIXED: VoLTE and Wi-Fi Calling for all ROMs and SIM Cards (especially Jio 4G VoLTE) - thanks @Orangelelo for testing
      • Charger Control: AFC Fix
      • enabled CONFIG_IP_NF_TARGET_TTL
      • FIXED: random reboots from previous version
      • FIXED: Lags from previous Version
      • Wi-Fi: Driver bug fix
      • Improved Demo App auto installation
      Kernel 20200427

      • Charger Control: Driver update to V. 2.2
      • Charger Control: Auto AFC - user friendly
      • Charger Control: Fixed Wireless Charging overheat issue - thanks @Ranbir7878 for testing
      • Charger Control: Reduced heat when charging with > 5 V (AFC aka fast charging)
      • Charger Control: Fixed S8+ max charging current 3000 -> 3500 mA
      • RAM: optimized multitasking - fixed (restarting) notifications
      • Kernel config: disabled MPTCP
      • Binary Code Optimizations (CRC, Crypto, FPU, NEON)
      • Fixed init.d interferences with A2N App Full Version
      • Fixed Demo App auto installation - thanks @ChronoMonochrome for help

      A2N Kernel Control V. 2.3

      • Updated Defaults
      • Power: Auto AFC (removed switch)
      • GPU: DVFS Fix (3D improvement)
      • Power: added batt temp
      • Bug Fix - Fixed interferences with init.d scripts

      A2N Kernel Control V. 2.2

      • Request Root on App startup
      • Bug Fix
      Kernel 20200403

      • FIXED: moving Apps to micro-sd card
      • FIXED: USB-PD Charging
      • RAM: optimized memory management - especially improved Multitasking
      • RAM: increased dalvik heap from 512 to 768 MB
      • Updated Kernel Config
      • Disabled HMP - this Kernel uses hardcoded CPUSETS (background tasks only on small CPU and foreground tasks only on big CPU)
      • Optimized system Clocks
      • CPU: conservative gov update - added Boost Control - in order to switch from min to max freq immediately
      • UFC/CPU: use stock cool_freq by default - 1469 MHz (but you can increase it over the App up to 2002 MHz)
      • GPU: Optimized OC - now Freq's higher than 572 MHz are also available but uses the same Voltage like 572 MHz (before the voltage wasn't set at all)
      • GPU: Enabled DVFS by default - (but you can disable it in A2N Kernel Control App if you need higher 3D Performance even on high temps)
      • Charger Control: updated driver to V. 2.1
      • SWAP: optimized zRam
      • Re-Added Wireguard importer - latest version
      • Updated kernel source to DTA6
      • Updated Ramdisk to DTC1

      A2N Kernel Control V. 2.1

      • GPU: unlocked all steps up to 839 MHz
      • CPU: added Boost Control - in order to switch from min to max freq immediately
      • GPU: allows to disable DVFS - for higher 3D Performance
      • Updated defaults and Performance Profiles

      A2N Kernel Control V. 2.0

      • Improved Stability
      • Allowed to use the App in Offline-Mode - Check "INFO" in the App description in google Play
      Kernel 20200117

      • Fixed Device Encryption
      • NET: total available tcp congestion algorithm: cubic(default), reno, bic, westwood
      • Fixed Wifi-Calling (VoLTE already worked in previous release)
      • HMP: re-eneabled and reworked / optimized for max speed + Battery life
      • zRam: optimized for full speed (use all 8 cpu cores at the same time)
      • added choice for loading one of the three sizes: 25, 50 or 75 % of the RAM size
      • Improved Memory Management + Multitasking
      • Cooling Control: Added interface for adjusting the cool down CPU Freq max limit
      • Optimized input booster - enabled hmp_boost by default
      • Default USB Config is now sec_charging (if u need MTP or else, enable yourself in statusbar)
      • Higher performance + Better battery lifetime + smoother
      • Uploaded also new TWRP powered with this kernel release inside + fixed USB MTP

      A2N Kernel Control V1.9

      • Performance Profiles: optimized for higher efficiency
      • Network: added TCP Congestion Control (cubic, reno, bic, westwood)
      • RAM: Swap / zRam: added choice for size 25 %, 50 % and 75 % of total RAM
      • CPU: Device Cooling Control: allows to change the CPU Max Freq limit for cool down
      • Cooling Control: check if there is currently an cooling event
      • Screen: Reworked Input Boost Control - Adjust Freq and duration
      • Bug Fix: Fixed back arrow
      Kernel 20191224

      • Fixed Audio in Calling
      • Fixed VOLTE / Wifi-Calling
      • Fixed boot loop if magisk canary was installed
      • Charger Control: added support for USB-PD and increase default charging current for S8+ from 1500 to 1800 since it has higher capacity
      • Charger control: increased max charging current from 3000 to 3500 mA for S8+
      • Swap: optimized zRam
      • RAM: optimized Multitasking
      • Overall improvements - performance, battery, scrolling
      • Removed Wireguard
      • Improved my TWRP Version stability
      • Uploaded also updated/optimized twrp for S8/S8+ and stock kernel for reference purposes
      • This Version may fix a bunch of other bootloop issues with custom ROMs - Needs testing!

      A2N Kernel Control V1.8

      • Power: added USB-PD current control
      • Charger control: increased max charging current for S8+ from 3000 to 3500 mA
      • Charger control: increased default charging current for S8+ from 1500 to 1800 mA
      • CPU: added all available overclock frequencies steps - for both CPUs

      Kernel 20191216

      • Kernel source code update DSI1 --> DSJC
      • Ramdisk update DSI1 --> DSK9
      • Updated conservative gov
      • Re-enabled input_booster by default since it makes scrolling on chrome browser smoother (Home Tab)
      • Disabled HMP driver since it caused randomly overheating issue
      • Foreground tasks will run only on big CPU while background tasks will run only on small CPU - this will eliminate tasks migration relates delays between both clusters completely
      • Updated GPU config
      • Optimized system clocks like MIF clock and so on
      • Reduced boottime: cluster0 @ 1,9 GHz and Cluster1 @ 2,5 GHz during boot sequence
      • Reverted all the network stuff to stock (only the disabled ones .., not new enabled features)
      • Changed back to stock: ECRYPT to EXT4 encryption
      • Added filesystem encryption support for F2FS
      • Fixed USB Tethering (tested on win xp lol)
      • Cluster0 min_freq 715 @ 455 MHz back for screen ON in order to save some power
      • Fixed several errors from logs
      A2N Kernel Control V1.7

      • Screen: updated input booster (for max smoothness)
      • CPU/Profiles: Cluster0 is back stock min_freq of 455 MHz (still smooth :cool:)
      • Perf. Profiles: added Performance Plus and updated the other profiles
      • Fixed app reset settings if stock kernel was installed (now settings will survive if u go back to a2n kernel)
      • Added new menus RAM + Network and sorted things properly into it
      Kernel 20191118

      • Attempt to fix randomly heating up
      • HMP: Calibrated Tunables - now it works properly when the Small Cpu is overclocked
      • Removed OC Freqs for the Big CPU - not stable (caused miscalculations)
      • Improved performance and battery life
      • More smoothly and more responsive
      • Extras:
      • Uploaded also twrp recovery including this kernel version for S8 / S8+ (fixed instability and improved speed)

      A2N Kernel Control V1.6

      • CPU/Profile: Removed OC Freqs for Big CPU (was not stable)
      • Performance Profile works properly now

      Kernel 20191114

      • Fixed stability + performance issues from previous Version
      • Charger Control: set AC / WC current 1200 @ 1500 mA by default
      • Updated kernel config
      • Enabled CONFIG_NETFILTER_XT_TARGET_NFLOG and CONFIG_NETFILTER_XT_TARGET_LOG to support Afwall
      • Optimized CPU/GPU Governor
      • Disabled input booster by default - but it can be enabled in userspace (e.g. over scripts or App)
      • Re-enabled HMP Driver - but this time patched to finally work PROPERLY :eek:
      • Added KVM Support - (low-level VM support for max performance)
      • Optimized zRam - max_compression_streams = 4 @ 8
      • Optimized memory management
      • Improved performance and battery life
      • More smoothly and more responsive
      • Extras:
      • Uploaded also twrp recovery including this kernel version for S8 / S8+
      • Uploaded also patched stock kernel - Fixed Camera

      A2N Kernel Control V1.5

      • Power: AC / WC current 1200 @ 1500 mA by default
      • Removed unsafe Frequencies Steps
      • Updated defaults and strings
      • GPU: added min Freq control
      • Screen: added input booster control (Freq and time)
      Kernel 20191019 BETA

      • FULL Android 9 Pie Support
      • Based on Stock Source Code DSI1
      • Ramdisk DSI1
      • Compiled with the OFFICIAL ARM/Linaro GCC 8.3
      • Optimized Memory Managent
      • Improved Performance
      • Improved Battery Life
      • Reduced Device heat
      • More Responsive
      • Fixed Laggs (especially for some 2D Games)
      • Increased Efficiency
      • RAM: 3485 @ 3711 MB
      • Unlocked higher CPU/GPU Freq Steps - Thanks @Noxxxious
      • SELinux in permissive mode - Thanks @Noxxxious
      • Disabled SSWAP
      • Added zRam Support with fast LZ4 Compressor
      • Added KSM Support - patched for Android by me
      • Optimized Input Booster
      • Fixed very bad CPU IDLE
      • CPU: Interactive @ conservative gov - for higher efficiency
      • Added Wireguard Support
      • CPU: Cluster 0: Screen ON min_freq 455 @ 715 MHz to Fix Lags - 455 MHz Step is used for Screen OFF
      • Compiled with DEFAULT_USE_ENERGY_AWARE / WQ_POWER_EFFICIENT_DEFAULT - for better Battery Lifetime
      • Optimized Crypto, NEON SIMD Hardware Acceleration (e.g. faster device encryption due of hardware acceleration)
      • Disabled HMP since it serves nothing - Hardware doesn't allow to use real cpu_hotplugging ...
      • Added Charger Control 2.0 by me - Allows to configure custom max input current from 100 - 3000 mA in 100 mA Steps separately for AC / USB 2.0 / USB 3.0 / Wireless - that means real Fast Charging even with Screen ON - Allows even to charge at max current possible with 3rd-party Chargers !!
      • Added Flashlight Torch Control - You can adjust Brightness of your Torch from 1 - 15 - Default/Stock Kernel is just 5 :p
      • SELinux: Removed Audit dependency - Thanks @ kerneltoast && arter97
      • Added Support for F2FS
      • Accurate remaining time to full charged battery
      • init.d Support
      • And many more Kernel Tweaks - i can't list them all here ... changelog is already too long isn't it ?! :laugh:

      A2N Kernel Control V1.4

      • The best Way to manage this Kernel for full functionality (3rd-party Kernel Manager Apps will not work properly with this Kernel)
      • Compiled with API 28 Android 9 Pie
      • Power: Charger Control - Allows to configure custom max input current from 100 - 3000 mA in 100 mA Steps separately for AC / USB 2.0 / USB 3.0 / Wireless - that means real Fast Charging even with Screen ON - Allows even to charge at max current possible with 3rd-party Chargers !!
      • Added switch for "Adaptive Fast Charging" so u can directly toggle AFC in the App.
      • Ability to check actual accepted charging current and Input Voltage
      • CPU: OC Control: Cluster 0: up to 2002 MHz and Cluster 1: up to 2808 MHz
      • CPU Governor tuning: Adjust up_threshold to balance between Battery Lifetime and Performance separately for each Cluster
      • GPU: OC Control up to 839 MHz
      • Hardcoded Performance Profiles:
      • --> Powersave (Underclocked)
      • --> Balanced (Kernel Default)
      • --> Performance (Overclocked)
      • Misc: switch for zRam, KSM
      • Misc: Torch Brightness Control - up to 3 times brighter flashlight than with a stock Kernel !!
      • Misc: Ability to load kernel Module for CIFS and NFS with just one Tap
      • Misc: Accelerometer Calibration
      • Debug: u can call this Menu over the App built-in Menu (3 dot) - ability to save logcat and dmesg with one tap to your sdcard ..
      Kernel 20190105

      • Patched ramdisk to fix Copy & Paste and maybe VoLTe too ?
      • Enabled 12 usb_audio drivers for testing (Modules)
      • Disabled some left overs useless drivers

      A2N Kernel Control [G95x] V1.2

      • Compiled with API 26 instead 28
        We use still API 26
      Kernel 20181231

      • Sources update - CRGH -> CRL3
      • Fixed WifiCalling / VoLTE (not confirmed yet)
      • Compiled with latest GCC 8.2 ARM Toolchain
      • Fixed ADB
      • Re-enabled USB Sound Card Drivers
      • Optimized Memory Management
      • USB-OTG: Updated Max Vbus draw Current from 500 mA -> 900 mA, since USB 3.0 Spec allows 900 mA
      • Updated AC Charge Current from 1000 -> 1200 mA
        and AC Fast Charge Current from 2000 -> 2200 mA


      A2N Kernel Control [G95x] V1.1


      • Supports now all Galaxy S8 & S8 Plus with Exynos Chip :cowboy:
      • Adjusted AC Charge Current according to the CRL3 Source from 1000 -> 1200 mA
        and AC Fast Charge Current from 2000 -> 2200 mA
      • Updated Tips for CPU-Max-Freq on Suspend

      Kernel 20181209
      • Fixed mount ext-sdcard
      • Uploaded new Packages: stock kernel, twrp fully patched with latest A2N Kernel
      • Full Version of A2N Kernel Control for Galaxy S8 is now available!

      A2N Kernel Control [G950] V1.0
      • Initial Release - All Features you can see in the built-in Demo App by flashing the Kernel package
      • Supports for now only G950F

      Kernel 20181205
      • Initial Release - All changes compared to the Stock Kernel u can find it in Post #1 "A2N Kernel Features"
      • Based on Stock CRGH Source
      • Compiled with GCC Linaro 7.3.1
      14
      FAQ

      Q: On which ROMs this Kernel works ?
      A: I've built and optimized this Kernel for SAMSUNG Stock ROM 9.
      It may or not works as well on custom ROMs based on Android 9, no warranty that it works perfect like on stock ROM from SAMSUNG !

      Q: If I flash this to replace Samsung Kernel and I don't make any customisations - what difference will I notice in terms of day to day usage or in other words if I don't want to customise A2N Kernel over the Full Version App, i'm wasting my time flashing it ?
      A:
      Without customizations, you will get this:

      • Better performance
      • Better battery lifetime (up to 10h SOT)
      • Better memory management
      • More smooth and responsive
      • Reduced device + battery heat
      • A bit faster charging with screen ON
      • A bit slower charging with screen OFF

      With customization you get this:

      • Higher performance - especially for gaming
      • Faster charging than stock even with screen ON/OFF
      • Battery Care - to reduce battery aging
      • Stop Charging at 50 - 99 % in order to reduce battery stress (especially useful when charging over night)
      • Battery IDLE Support - useful for DeX and Gaming
      • Better Multitasking even without swap !
      • Increasing the brightness of the Torch (3 times brighter)
      • Adjust LED blink dealys ON/OFF
      • Increase the brightness of the RED GREEN BLUE LED
      • Adjustable CPU max_freq for suspend
      • Adjust the the CPU Cool Freq when the Temp is high
      • CPUSET Control: ability to disable unstable cores in order to get higher CPU OC results
      • Ability to disable GPU high temp throttling
      • Performance Profiles: one tap for switching between "Performance Plus" for Gaming and "Balanced" for daily usage
      • Support for CIFS and NFS (Kernel Modules)
      • TCP Congestion Control: westwood+, cubic etc..
      • Low-Memory-Killer Tuning - easy and fail-safe
      • swap - zRam Size selection: 25, 50 or 75 % of RAM Size
      • And some more exclusive features

      Q: What are the best settings for highest FPS in Games ?
      A: GPU --> "Disable Cooling" Enable
      CPU --> "Cool Frequency" to 1807 MHz (or max 2002 MHz but more heat !)
      Profiles --> "Performance Plus" Enable
      Later when you are done with gaming and want more battery life instead full speed, just enable "Balanced" Profile ...
      And again later for gaming: just switch to "Performance Plus" ... that's it !! Quite simple !!

      Q: How i can tune this Kernel ??
      A: U've 2 ways:
      Search in Play Store for "A2N Kernel" and u'll find the corresponding App "for Galaxy S8". (quite Solution)
      or
      write your own Scripts in /system/etc/init.d.

      Q: Can i use your Kernel with other Kernel Tuner Apps like Kernel Audiutor ?
      A: This is the worst way to tune a custom Kernel, (because u can't change the most useful things) such universal Kernel Tweaker Apps are more suitable for Stock Kernels. Use always the proper App that comes with the CUSTOM Kernel or use init.d Scripts.

      Q: Can i use your Kernel Control App with other (custom) Kernels ?
      A: No, it works only with this Kernel and Device - it's not an Universal Kernel Manager App.

      Q: What can i do with the Demo Version of the APP ?
      A: Only a few features works.. read-only things like reading current charging Current, Charging Voltage, Battery Temp ...
      The Demo Version doesn't change any System / Kernel Parameters at all. You need the Full Version.
      You can generate very easy system logs, in debug menu.

      Q: I've installed the Full Version of the App, will it change any Kernel Settings by default if i do not change them ?
      A: No, default App Settings = default Kernel Settings. It'll set (almost on-the-fly) your Settings and after a reboot your custom Settings will be applied on boot, this is the case after 2 Minutes. after you entered your SIM PIN.

      Q: I've the Full Version of A2N Kernel Control APK, do i still need the Demo Version of the App ?
      A: Yes, i recommend to keep them both installed, because you can provide Logs very easy with the Demo Version which it's not possible with the Full Version.

      Q: How to enable the "Fast Charging" aka AFC feature?
      A: Choose your power source and adjust the current .. For the original AFC USB Charger would be "AC" .. set there 2200 mA and connect the cable, this gives you fast charging like on stock kernel, but not only when the Screen is OFF, so it'll charge with "Fast Charging" even with Screen ON. (charging your Phone faster even if you use it) - The AFC switch in Android -> Battery Settings will have no effect with this Kernel, because it uses AUTO AFC !

      Q: if I use the fast charging options will it effect my battery and charger ? And will it heat more due to this?
      A: It's already since 2 years possible to charge with 3000 - 3500 mA and so far nobody reported a broken battery due to this.
      Usually i don't expect that it'll damage the battery because every normal Li-Ion battery is able to charge at least with 1C, means charging current same like the capacity. That means for S8 it's 3000 and for S8+ it's 3500 mA(h).
      Also it'll reduce charging current to 500 mA once it's 45 °C and restores the current once it cools up to 43 °C in order to not heating up the battery too much.
      So it's considered to be safe.

      Q: i've the full Version of the A2N App, will my Custom A2N Settings survive if i install stock Kernel and then going back to A2N Kernel ?
      A: Yes, as long as you don't uninstall it.

      Q: I've S8 plus and when I set AC Current Max to 3500 mA after some time it drops to 3000 mA .. why ?
      A: Probably you are using the original AC (AFC) Charger ... check the specs ... if it's like this:

      9 V == 1.67 A
      5 V == 2.0 A


      Calculate the max charging current:
      9 x 1.67 = 15 W
      15 W / 5 V = 3 A = 3000 mA max output current

      then for the S8+ model it's needed to buy a powerful USB-PD Charger if you want to charge at full speed 3500 mA.

      Q: How to report Bugs ?

      Please do NOT report Bugs if you:
      • are using custom ROMs (Eclipse stock, is a custom ROM)
      • have Xposed installed
      • are using CPU / GPU Clocks higher than stock. (small CPU max 1690 MHz, big CPU max 2314 MHz, GPU max 546 MHz)
      • have issues with non Play Store Apps

      A: Open the A2N Kernel Control Demo App and tap on the in-app Menu (3 dots), then --> "Debug" and then on "logcat and dmesg" after an App Force Close or if some features didn't work. Or if the Phone rebooted randomly, then tap on "last_kmsg". U'll find the logs in internal storage. After that you can attach them here in your Bug Report, by clicking "Post Reply" or "Go advanced" then scrolling down u'll see
      "Additional Options" ---> Manage Attachments.
      There u can directly upload files without to pack them.
      Please write also what you did shortly before the BUG happened.
      Then i'll read the logs and i'll try to fix the Bug.

      BUG REPORTS THAT DO NOT FOLLOW THESE RULES WILL BE IGNORED !!!

      WARNING: if you compile by yourself, then you are only allowed to use it for yourself !
      12
      Hello dear Friends i'm back with a great Changelog ...

      Kernel 20191019

      • FULL Android 9 Pie Support
      • Based on Stock Source Code DSI1
      • Ramdisk DSI1
      • Compiled with the OFFICIAL ARM/Linaro GCC 8.3
      • Optimized Memory Managent
      • Improved Performance
      • Improved Battery Life
      • Reduced Device heat
      • More Responsive
      • Fixed Laggs (especially for some 2D Games)
      • Increased Efficiency
      • RAM: 3485 @ 3711 MB
      • Unlocked higher CPU/GPU Freq Steps - Thanks @Noxxxious
      • SELinux in permissive mode - Thanks @Noxxxious
      • Disabled SSWAP
      • Added zRam Support with fast LZ4 Compressor
      • Added KSM Support - patched for Android by me
      • Optimized Input Booster
      • Fixed very bad CPU IDLE
      • CPU: Interactive @ conservative gov - for higher efficiency
      • Added Wireguard Support
      • CPU: Cluster 0: Screen ON min_freq 455 @ 715 MHz to Fix Lags - 455 MHz Step is used for Screen OFF
      • Compiled with DEFAULT_USE_ENERGY_AWARE / WQ_POWER_EFFICIENT_DEFAULT - for better Battery Lifetime
      • Optimized Crypto, NEON SIMD Hardware Acceleration (e.g. faster device encryption due of hardware acceleration)
      • Disabled HMP since it serves nothing - Hardware doesn't allow to use real cpu_hotplugging ...
      • Added Charger Control 2.0 by me - Allows to configure custom max input current from 100 - 3000 mA in 100 mA Steps separately for AC / USB 2.0 / USB 3.0 / Wireless - that means real Fast Charging even with Screen ON - Allows even to charge at max current possible with 3rd-party Chargers !!
      • Added Flashlight Torch Control - You can adjust Brightness of your Torch from 1 - 15 - Default/Stock Kernel is just 5 :p
      • SELinux: Removed Audit dependency - Thanks @ kerneltoast && arter97
      • Added Support for F2FS
      • Accurate remaining time to full charged battery
      • init.d Support
      • And many more Kernel Tweaks - i can't list them all here ... changelog is already too long isn't it ?! :laugh:

      A2N Kernel Control V1.4

      • The best Way to manage this Kernel for full functionality (3rd-party Kernel Manager Apps will not work properly with this Kernel)
      • Compiled with API 28 Android 9 Pie
      • Power: Charger Control - Allows to configure custom max input current from 100 - 3000 mA in 100 mA Steps separately for AC / USB 2.0 / USB 3.0 / Wireless - that means real Fast Charging even with Screen ON - Allows even to charge at max current possible with 3rd-party Chargers !!
      • Added switch for "Adaptive Fast Charging" so u can directly toggle AFC in the App.
      • Ability to check actual accepted charging current and Input Voltage
      • CPU: OC Control: Cluster 0: up to 2002 MHz and Cluster 1: up to 2808 MHz
      • CPU Governor tuning: Adjust up_threshold to balance between Battery Lifetime and Performance separately for each Cluster
      • GPU: OC Control up to 839 MHz
      • Hardcoded Performance Profiles:
      • --> Powersave (Underclocked)
      • --> Balanced (Kernel Default)
      • --> Performance (Overclocked)
      • Misc: switch for zRam, KSM
      • Misc: Torch Brightness Control - up to 3 times brighter flashlight than with a stock Kernel !!
      • Misc: Ability to load kernel Module for CIFS and NFS with just one Tap
      • Misc: Accelerometer Calibration
      • Debug: u can call this Menu over the App built-in Menu (3 dot) - ability to save logcat and dmesg with one tap to your sdcard ..

      If u've any Questions, feel free to ask here.

      Enjoy your new A2N Kernel ! :)
      10
      New Build is Up !!

      Changelog

      Kernel 20200519

      • Source Update DTA6 -> DTC6
      • Charger Control: allowed higher chg_temp - should charger faster, especially for 3000+ mA
      • defconfigs: re-enable Gear VR related drivers

      --------------------------------------------------------------------------------

      Updated also TWRP Kernel.
    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