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

Search This thread

ace2nutzer

Recognized Developer
  • Apr 28, 2014
    4,248
    4,993
    36
    Cologne
    Hi all, good morning.

    Test in car with AA are definitely OK !!!! Thanks again to DEV.

    But 5 hours later, while navigating thruough APP menu to search clock APP, mobile rebooted. On the SIM card PIN input screen it rebooted again!

    I have balanced profile enabled, disable boost activated on both CPU/GPU and both Suspend Maximum Frequency set to the hint values. Apart from reboot event, could someone comment on the meaning/impact of such frequencies?

    Here is the log: I have read in the thread it could depend on data partition corruption, could'nt i?

    thank you.
    Hi, no FS-erros detected.
    The reboot was caused by the ROM, which ROM are you using ?

    To be precise, RescueParty was triggered:

    You could also provide this log:
    /data/system/uiderrors.txt
    according to the android source website.
     

    traversone

    Member
    Feb 18, 2019
    41
    18

    Attachments

    • uiderrors.zip
      196.2 KB · Views: 2

    Devil90

    Senior Member
    Jan 11, 2021
    128
    103
    31
    Roma
    Dev a curiosity, I was fiddling with the chrome flags and I noticed the "restrict to little cores" function but I deduce that it is useless given our custom Hmp which implies the load of the main applications only on the big cores, right?

    Report dev no reboot again after i make 2,6ghz big cpu 🤣🤣🤣
    Leave this maximum frequency that in my opinion your reboots are because your chip doesn't hold 2.7Ghz, so you won't notice any difference.

    Out of curiosity what is your binning?
    You can find it by entering download mode under the heading
    CPUCL0=LITTLE
    COUCL1=Big
     
    Last edited:
    • Like
    Reactions: ace2nutzer

    bntnja

    Member
  • Oct 27, 2013
    30
    27
    2 random reboots but I only have 1 last_kmsg file. It happened when I was using Google Chrome.
    Stock settings except DVFS and 50% zRAM
    No MicroSD card insert also
    Thank you
     

    Attachments

    • last_kmsg.txt
      2 MB · Views: 3
    • Like
    Reactions: ace2nutzer

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,248
    4,993
    36
    Cologne
    @Devil90
    You can move apps from big cpu to little cpu like you want.

    But it'll only stay on little cpu for the time when the app is open on the screen.
    Once you press the home button and re-open the app it'll be set back to big.

    But works fine for own services and everything else.
    If you want to do some experiments with little/big core, you can do easily with ADB as follows:

    e.g. move whatsapp to little CPU:

    1. open whatsapp and then in ADB type "top" and you'll find the process-name.
    For me it's: com.whatsapp
    Then find the pid: or grab it directly from "top"
    Code:
    top
    q // to exit from top ...
    PID=$(pidof com.whatsapp)
    # check current allowed cpus
    cat /proc/$PID/status | grep Cpus_allowed_list
    #Cpus_allowed_list:    4-7
    # move to little
    echo $PID > /dev/cpuset/background/tasks
    # verify
    cat /proc/$PID/status | grep Cpus_allowed_list
    #Cpus_allowed_list:    0-3
    #move again to big
    PID=$(pidof com.whatsapp)
    echo $PID > /dev/cpuset/top-app/tasks

    Right now i found out once you press the home button and the app is basically running in background .. you can try with "com.sec.android.app.music" (Samsung music app) ... then the app is automatically moved to the little CPU.
    That means listen mp3s with screen OFF will not use the big CPU, but executes on little.
     
    Last edited:

    Devil90

    Senior Member
    Jan 11, 2021
    128
    103
    31
    Roma
    @Devil90
    You can move apps from big cpu to little cpu like you want.

    But it'll only stay on little cpu for the time when the app is open on the screen.
    Once you press the home button and re-open the app it'll be set back to big.

    But works fine for own services and everything else.
    If you want to do some experiments with little/big core, you can do easily with ADB as follows:

    e.g. move whatsapp to little CPU:

    1. open whatsapp and then in ADB type "top" and you'll find the process-name.
    For me it's: com.whatsapp
    Then find the pid: or grab it directly from "top"
    Code:
    top
    q // to exit from top ...
    PID=$(pidof com.whatsapp)
    # check current allowed cpus
    cat /proc/$PID/status | grep Cpus_allowed_list
    #Cpus_allowed_list:    4-7
    # move to little
    echo $PID > /dev/cpuset/background/tasks
    # verify
    cat /proc/$PID/status | grep Cpus_allowed_list
    #Cpus_allowed_list:    0-3
    #move again to big
    PID=$(pidof com.whatsapp)
    echo $PID > /dev/cpuset/top-app/tasks

    Right now i found out once you press the home button and the app is basically running in background .. you can try with "com.sec.android.app.music" (Samsung music app) ... then the app is automatically move to the little CPU.
    That means listen mp3s with screen OFF will not use the big CPU, but executes on little.
    Thanks Dev, that was just what I had in mind, so as to save even more battery with the apps I use the most that are lightweight and test Little to 2.0Ghz. (y)
     
    • Like
    Reactions: ace2nutzer

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,248
    4,993
    36
    Cologne
    Thanks Dev, that was just what I had in mind, so as to save even more battery with the apps I use the most that are lightweight and test Little to 2.0Ghz. (y)
    Right ! - But keep in mind, once you re-open the app it'll be set again to the previous config.
    That means you could write a script like this for several apps you want to move to little and then execute the script in a loop that checks your apps every 20 or 30 secs to be in the little cpu.
    Finally you could move it to init.d scripts.
    Usually i had planned such feature to implement it in my app, but it's quite tricky.
     

    Devil90

    Senior Member
    Jan 11, 2021
    128
    103
    31
    Roma
    Right ! - But keep in mind, once you re-open the app it'll be set again to the previous config.
    That means you could write a script like this for several apps you want to move to little and then execute the script in a loop that checks your apps every 20 or 30 secs to be in the little cpu.
    Finally you could move it to init.d scripts.
    Usually i had planned such feature to implement it in my app, but it's quite tricky.
    Yes, everything is clear, now I will do some tests and the apps that work well without delays I will move them permanently via init.d script.

    In my opinion it is a great idea to implement this feature in the app, it would be an exclusive thing also because I think nobody has done it so far.
    Then I think the Little Cpu with OC 1.9/2.0Ghz is able to handle some light apps.
    We'll see, I really like testing. ;)
     
    • Like
    Reactions: ace2nutzer

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,248
    4,993
    36
    Cologne
    @ up you are fully right, but every new idea maybe is cool and easy to say but it takes every time a lot of time to make it really working to the end-user. I think this project has enough unique features that work quite stable. We have limited time to live, so my plan was not to spend my whole live in developing things, even if i really like it. But live is not only coding cool stuff.
    I'm making this kernel stable and then it's time to start with ROM development.
    Also shortly i'll add support for Note8. It all requires time.
    Otherwise we will never move to next Android version if we implement new features all the time. ;)
     

    rtyuakatsuki

    Senior Member
    May 18, 2020
    126
    69
    Samsung Galaxy S8+
    Dev a curiosity, I was fiddling with the chrome flags and I noticed the "restrict to little cores" function but I deduce that it is useless given our custom Hmp which implies the load of the main applications only on the big cores, right?


    Leave this maximum frequency that in my opinion your reboots are because your chip doesn't hold 2.7Ghz, so you won't notice any difference.

    Out of curiosity what is your binning?
    You can find it by entering download mode under the heading
    CPUCL0=LITTLE
    COUCL1=Big
    I never expect my chip is cannot holding 2,7ghz i realize it when other people use under 2,7ghz and works fine no reboot and other my device when 2,7 with lightprocess like social media and etc that not have problem sometime reboot but no problem when play game
    I got 3 or 4 reboot under 5 minute that make me angry sometime because my phone reboot when front of enemy 🤬🤬🤬 after that i try lower clock little bit and got no reboot just only stuttering sometime i dont know how to tune it to make no stuttering any idea ?

    Edit: my binning is
    CPUCL0=3
    CPUCL1=6
    And how about that? good or what i dont understand it hehe🤣🤣
     
    Last edited:
    • Like
    Reactions: Devil90

    ace2nutzer

    Recognized Developer
  • Apr 28, 2014
    4,248
    4,993
    36
    Cologne
    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)
     

    rtyuakatsuki

    Senior Member
    May 18, 2020
    126
    69
    Samsung Galaxy S8+
    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)
    Screenshot_20210417-133818_AnTuTu Benchmark.jpg

    Yeah
     

    Devil90

    Senior Member
    Jan 11, 2021
    128
    103
    31
    Roma
    I never expect my chip is cannot holding 2,7ghz i realize it when other people use under 2,7ghz and works fine no reboot and other my device when 2,7 with lightprocess like social media and etc that not have problem sometime reboot but no problem when play game
    I got 3 or 4 reboot under 5 minute that make me angry sometime because my phone reboot when front of enemy 🤬🤬🤬 after that i try lower clock little bit and got no reboot just only stuttering sometime i dont know how to tune it to make no stuttering any idea ?

    Edit: my binning is
    CPUCL0=3
    CPUCL1=6
    And how about that? good or what i dont understand it hehe🤣🤣
    As I thought your binning is lower than mine, I have:
    CPUCL0=5
    COUCL1=7
    That's why you definitely can't handle the last few oc big / LITTLE frequency steps.
    You should set 2.6Ghz / 1.9Ghz and see how it goes, the other settings leave everything in default (except zram and dvfs that you adjust to taste).
    You shouldn't have lag.


    @ace2nutzer This update is awesome, the startup block seems to be gone too, great! (y)
     
    Last edited:

    Devil90

    Senior Member
    Jan 11, 2021
    128
    103
    31
    Roma
    I found that setting the Dvfs at 95 ° with the same frequencies, the general performance increases considerably, obviously without reaching the limit temperature.
    This is also confirmed by the benchmark...

    Cpu Big=2.6Ghz
    Cpu Little=1.9Ghz
    All settings default exept cpu dvfs.
    Max benchmark run temp 55°
     

    Attachments

    • Dvfs 95°.jpg
      Dvfs 95°.jpg
      256.3 KB · Views: 18
    • Dvfs stock 75.jpg
      Dvfs stock 75.jpg
      257.5 KB · Views: 17
    Last edited:

    Top Liked Posts

    • There are no posts matching your filters.
    • 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
      zRam value isn't an issue here. Next build will have set 50 % zRam by default.
      @ ALL
      Thanks for all the reports and logs ! - Actually you don't need to post further reports/logs.
      I'm not sure but i believe that now it's 100 % stable. I'll test further 3 days before releasing it to make sure it's really stable. So far after 24 h, no random (soft) reboot and no FC (force close apps) happened.

      btw: actually i'm implementing a new feature that checks if there is a new a2n release when you open the full/demo app. But for this service i need an FTP server, or any other sort of web hosting where i can have a link to a text file like this here., which contains just the release date.
      I've already tried this on my offered FTP server, but it doesn't allow such direct raw access to the files.
      Also honestly i don't want to make our FTP server slow. - Again, it's not my own FTP server, also i don't pay anything for that server. I got the FTP server access from my old friend from galaxy ace 2 forum.
      So if someone is aware of some free web hosting service, let me know. Of course it should be legal solution, not an hacked web server lol.
      Also it's for me very important that the service is for free, since this project is almost for free.

      Edit:
      already found one :D
      6
      with 2.7ghz it restarts 2 minutes later.rom stock zram deactivated, cpu LITTLE 1.8ghz.

      This report is for kernel build from 06.02.2021.
      I don't provide support for such old releases, therefore i suggest to update to the latest build.

      Just got a random reboot while reading the comments of a paused YouTube video.
      Profile: balanced
      Zram:50%
      Got another one while spotify was open.

      Something went wrong with the log .. there is no useful debug data.
      Generate the log right after the random reboot happens .. do not reboot yourself before or even worse do not shutdown the phone.
      Update: maybe it was a "soft-reboot" ?? if so you need to grab logcat then reboot and grab last_kmsg.
      But actually you guys should only report bugs for pre-18 build i had uploaded last sunday.

      random reboot while it was idling/standby.
      I don't remember my setting about cpu clock but I believe just a little bit oc.
      LMK 64 Swap 50%
      I don't know why I can't attach the file.
      link: here

      Was it from pre-18-build ?
      OC was 2652 MHz.
      Anyway there is also no useful debug data.

      The provided logs looks normal, hence the reboot reason was not "random" but normal by "user-request".
      At least according to the logs.

      Summary:
      actually i don't have no one bug report for the pre-18-build i had uploaded last sunday.
      Anyway i do is still believe that it's not fully stable, at least with zRam enabled.
      Still searching for bugs.

      dev this kernel so amazing bein usin the latest version encountered 0 problems
      using 2002mhz on lil core and big 1807mhz its stable

      my question is i got bored of android 9 i want to uprgade to android 10 oneui 2.5 but i want to ur kernel on it
      so u still workin on it ? if possible i would like to test it keep up the great work

      pre-18-build or 17.04 release ???

      Hello. thank you for your hard work. one request - can you somehow correct the control of the flashlight? due to the fact that your core has control implemented, the brightness is not regulated by standard means. I'm not going to buy the app, because I just want to install the kernel and forget it. but it is inconvenient without adjusting the brightness of the flashlight

      Hello, thanks for you report ! - This is actually a good finding ! - So far you are the first who reported this. When i had added "Flashlight Brightness Control" i even didn't know that it's possible to adjust it over stock kernel or stock ROM.
      Therefore the default value of 5 in my app/kernel corresponds to the stock value of the stock kernel of "3" (same brightness). Anyway my value of max. "15" is still higher than the stock value "5" in terms of torch brightness. Also i don't know if i can manage to make it possible to control it over stock method + my custom method together. If i can't fix it due to possible interferences then i've to say sorry, but i'll check this and inform you.
      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 !
      5
      For who is facing random reboots in latest release, you should try this new pre-18 build:

      Edit:
      Links removed due to untrusted hostservice.

      Changelog:
      • reverted some changes in MM
    • 57
      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