• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

traversone

Senior Member
Feb 18, 2019
79
30
this evening, during the usual AA session with live streaming, CPU probably got 60° (DevCheck info till disconnection reported 59° ) and the usb connection was reset and after some seconds re-established (in past it happened more frequently and I had to disconnect and reconnect usb cable to restore normal AA mode).

I do not know what happened (battery was 37°-38°) but the CPU load slightly increaded along with CPU temperature increase.
 

ace2nutzer

Recognized Developer
Apr 28, 2014
4,404
5,330
37
Cologne
Samsung Galaxy Ace II
Samsung Galaxy S8
Everything normal. Maybe LMK killed the AA stuff. Try with LMK 192 MB(default) + zRam 50 % to avoid killing required background stuff for USB/AA. (If you are 100 % sure the cable is OK)
If it doesn't help, you can try to use lower LMK value in full app. (this works even on test kernel)
The hardcore setting would be LMK 128 MB + zRam 75 %. (maximum multitasking, low responsiveness)
But probably LMK 128 MB + 50 % should be fine.
 
Last edited:
  • Like
Reactions: rostifaner

Adbnpk2013

Member
Mar 1, 2017
48
12
Great !! Thanks, that helps.
It's not a problem if swap is full.
Only important thing is that free RAM is at least 200 MB.
What is your impression now ? - What is better 25 or 50 % ?

Edit:
Uploaded new kernel: Test #23 !

Download for S8

Download for S8+

Again for statbility test !
It has more ram
zRam 25 %
DVFS 65 °C
Optimized DVFS
should be more responsive than test #18.
Hey, dev. If you can, please implement some kind of hack in the upcoming official kernal for removing moisture notification.
In test kernel # 18, the notification would not appear randomly and would stay gone after a simple restart . But in the new test kernel #23, the notification is appearing randomly and often. And once it appears it will remain persistent even after restarting the device.
Other than that both test kernels are stable and I haven't experienced and hard or soft restarts.
 
  • Like
Reactions: ace2nutzer

traversone

Senior Member
Feb 18, 2019
79
30
I am still not able to set zram @ 50% and then I cannot test the DEV's suggestion.

zram is always set to 928Mb even after a reboot and even after changing to 25% or 75%.

So, the issue of USB disconnection in AA is still present when the system is "overloaded"
 

ace2nutzer

Recognized Developer
Apr 28, 2014
4,404
5,330
37
Cologne
Samsung Galaxy Ace II
Samsung Galaxy S8
Hey, dev. If you can, please implement some kind of hack in the upcoming official kernal for removing moisture notification.
In test kernel # 18, the notification would not appear randomly and would stay gone after a simple restart . But in the new test kernel #23, the notification is appearing randomly and often. And once it appears it will remain persistent even after restarting the device.
Other than that both test kernels are stable and I haven't experienced and hard or soft restarts.

That's right, in new build it'll work like in build #18.
Or if you want to have it better/fully fixed, you could try to provide some useful debug info with ADB.

You need USB cable + PC or you could also execute the command in your phone with terminal emulator app.

So how to do that:

flash build #18 boot the phone without cable, disable water detection in a2n app.

insert cable and if the moisture notification will appear, then tap OK, keep cable inserted and continue with the following:

open terminal emulator app and copy paste the following cmds:

Code:
su
dmesg | grep Moisture
dmesg | grep moisture
dmesg | grep Water
dmesg | grep water

post the output here and pray that i'll fix it.

I am still not able to set zram @ 50% and then I cannot test the DEV's suggestion.

zram is always set to 928Mb even after a reboot and even after changing to 25% or 75%.

So, the issue of USB disconnection in AA is still present when the system is "overloaded"
OK, wait for new release, i'll add LMK 64 MB, that will improve it.
In the meantime use LMK 128 MB.
Report dev i install new test kernel when flash magisk 20.4 i got bootloop if not install magisk run normal i from old kernel update hehe
It's Magisk bug, and it's fixed in latest vesions.
Or if you still like oldschool installation over zip in TWRP like me, the latest version is 21.4 and works without patching.
Otherwise you need to patch/workaround it ... chech this !
Update report i got reboot when open story whatsapp i cannot upload log cause no root any suggest to get root ? Or best magisk today ?
Just perform a reboot and boot directly in TWRP.
Do not shutdown the phone, otherwise the log is lost.

Then connect to your PC, use ADB and let's go:

Code:
adb pull /proc/last_kmsg
 
Last edited:

traversone

Senior Member
Feb 18, 2019
79
30
Check the value in

/proc/sys/vm/extra_free_kbytes
and
/sys/module/lowmemorykiller/parameters/minfree

if it'll change.
free_kbytes is 196608 with zram 50%
free_kbytes is 196608 with zram 25%

but I have also read 131072 in 1 case but I am not able to reproduce it anymore

minfree is 67000,68000,69000,70000,71000,72000 if LKM is 256mb
minfree is 51000,52000,53000,54000,55000,56000 if LKM is 192mb
minfree is 35000,36000,37000,38000,39000,40000 if LKM is 128mb
 

ace2nutzer

Recognized Developer
Apr 28, 2014
4,404
5,330
37
Cologne
Samsung Galaxy Ace II
Samsung Galaxy S8
You asked how to check LMK setting verification.
Nothing to do with zRam.
extra_free_kbytes should be 131072 for LMK 128 MB.
zRam like always with termnal emulator

Code:
free -m

as for zRam:
App V. 3.5 default value for zram is 50 %.
If you boot with 50 % then it'll not change zram size because the app expect kernel default is also 50 %.
But kernel default is 25 %.
If you want to set 50 %, you have to set after boot to 50 %, then it'll start to resize to 50 % .. and this takes some time.
And on next boot, you have to reset again to 50 %.
Just set 50 % even if it's already set to 50 %.
This is because the app is outdated right now with test kernels, and therefore some settings completely disabled for now.
 
Last edited:

ace2nutzer

Recognized Developer
Apr 28, 2014
4,404
5,330
37
Cologne
Samsung Galaxy Ace II
Samsung Galaxy S8
Uploaded test kernel #25 for verification if we did everything right.
That means theoretically this build should have random reboots like latest release 2021.06.03. If reboot happens, please post the last_kmsg.
In case of soft reboot, reboot the phone then generate last_kmsg from debug menu (a2n app demo) and post it here.

btw: test kernel #23 rock stable ??

Download for S8

Download for S8+
 
Last edited:

Adbnpk2013

Member
Mar 1, 2017
48
12
That's right, in new build it'll work like in build #18.
Or if you want to have it better/fully fixed, you could try to provide some useful debug info with ADB.

You need USB cable + PC or you could also execute the command in your phone with terminal emulator app.

So how to do that:

flash build #18 boot the phone without cable, disable water detection in a2n app.

insert cable and if the moisture notification will appear, then tap OK, keep cable inserted and continue with the following:

open terminal emulator app and copy paste the following cmds:

Code:
su
dmesg | grep Moisture
dmesg | grep moisture
dmesg | grep Water
dmesg | grep water

post the output here and pray that i'll fix it.


OK, wait for new release, i'll add LMK 64 MB, that will improve it.
In the meantime use LMK 128 MB.

It's Magisk bug, and it's fixed in latest vesions.
Or if you still like oldschool installation over zip in TWRP like me, the latest version is 21.4 and works without patching.
Otherwise you need to patch/workaround it ... chech this !

Just perform a reboot and boot directly in TWRP.
Do not shutdown the phone, otherwise the log is lost.

Then connect to your PC, use ADB and let's go:

Code:
adb pull /proc/last_kmsg
Hy dev.
So i have been trying to execute the commands you asked, on pc as well as, on the phone with terminal emulator with no success.
On pc when there is moisture notification present, the phone connects to pc with "unknown usb device ( device descriptor request failed) " . I have tried installing samsung usb driver as well as other fixes present on the internet but to no avail.
On phone i have installed terminal emulator , but it seems like the commands are not properly executing or i am doing something wrong here.
Please check the attached pic of terminal emulator command performed on phone.
 

Attachments

  • Screenshot_20210925-022858_Terminal Emulator.jpg
    Screenshot_20210925-022858_Terminal Emulator.jpg
    200.1 KB · Views: 13
Last edited:

ace2nutzer

Recognized Developer
Apr 28, 2014
4,404
5,330
37
Cologne
Samsung Galaxy Ace II
Samsung Galaxy S8
Hy dev.
So i have been trying to execute the commands you asked, on pc as well as, on the phone with terminal emulator with no success.
On pc when there is moisture notification present, the phone connects to pc with "unknown usb device ( device descriptor request failed) " . I have tried installing samsung usb driver as well as other fixes present on the internet but to no avail.
On phone i have installed terminal emulator , but it seems like the commands are not properly executing or i am doing something wrong here.
Please check the attached pic of terminal emulator command performed on phone.
It's right, but no output. Probably you waited too long after the water notification. You need to execute very quickly the cmd after the notification.

Alternatively you can also execute this:

Code:
su
cat /proc/kmsg | grep water

then plug the cable.

no output ??
Then abort and try again with "Water", then "Moisture" and "moisture"
This will do live-logging .. and you don't need to be fast.
 
Last edited:
  • Like
Reactions: rostifaner
May 30, 2021
30
28
Uploaded test kernel #25 for verification if we did everything right.
That means theoretically this build should have random reboots like latest release 2021.06.03. If reboot happens, please post the last_kmsg.
In case of soft reboot, reboot the phone then generate last_kmsg from debug menu (a2n app demo) and post it here.

btw: test kernel #23 rock stable ??

Download for S8

Download for S8+
All perfect with test # 23, improved performance and battery significantly.
You did a great job dev.
 
  • Like
Reactions: ace2nutzer

Adbnpk2013

Member
Mar 1, 2017
48
12
It's right, but no output. Probably you waited too long after the water notification. You need to execute very quickly the cmd after the notification.

Alternatively you can also execute this:

Code:
su
cat /proc/kmsg | grep water

then plug the cable.

no output ??
Then abort and try again with "Water", then "Moisture" and "moisture"
This will do live-logging .. and you don't need to be fast.
executing the commands on pc is out of option for now, due to "unknown usb" error.
i want to ask if i can do this on phone with terminal emulator installed on phone ?
if yes, then the above commands would execute the way you discribed directly on phone ?
 

panda.musty

Member
Sep 12, 2021
21
15
Uploaded test kernel #25 for verification if we did everything right.
That means theoretically this build should have random reboots like latest release 2021.06.03. If reboot happens, please post the last_kmsg.
In case of soft reboot, reboot the phone then generate last_kmsg from debug menu (a2n app demo) and post it here.

btw: test kernel #23 rock stable ??

Download for S8

Download for S8+
After 48 hour, I didn't observe any reboot with test kernel 23. It is stable, fast, smooth and battery drain is nice.
 
  • Like
Reactions: ace2nutzer

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Thanks, i'm already aware of instability, battery and multitasking issues.
    Everything will be fixed on new release.
    It's planned for the next 8 - 48 h.
    7
    There was a problem. I think it'll take 1 - 2 days for release.
    5
    @Ac32021 It's not nice for developers to make thread comparisons worse and better, each kernel has its own particularities. However now we are still in the testing phase, in the latest versions the battery has improved a lot, surely you are using an outdated kernel version.

    Kindly respect the work of others.
    4
    Thank you for your efforts. Unfortunately, things haven't improved on my side. With this test Kernal, things have reversed backward actually.
    ...

    New test kernel #18 is online.
    Please test the moisture notification.

    @ ALL
    another test for random reboots !
    4
    @ up
    A2N App control + init.d only in official releases, not in test kernels.
    Debugging should be done with kernel defaults.

    @Adbnpk2013
    Check "disable water detection"
    Then plug, unplug and plug the cable with always 4 secs. pause between the steps. That should work.
    I can't test with my phone.
  • 64
    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/USB-CDP/Wireless/USB 3.0/2.0 Max input current - For faster charging - Range: 100 - 3000/3500 mA (S8/S8+)

    -- Battery Informations
    -- Shows:
    -- accepted charging current
    -- input voltage
    -- battery temperature
    -- battery voltage

    -- Battery Care
    -- Stop charging at some lower level than 100 % to reduce battery aging - Range: 50 - 100 %
    -- Battery IDLE
    -- Power supply your phone over cable or wireless without to use the battery - Useful for DeX or gaming
    -- Set Max Charging Temperature - Range: 35 - 45 °C

    -- Battery Service
    -- Shows:
    -- charge cycles and ability to reset to 0
    -- real battery capacity in %/mAh and ability to reset (battery gauge recalibration)

    -- Water Detection
    -- Ability to disable water detection
    -- Show water detection status

    # Screen
    -- Input Booster - Adjust touch boost CPU duration in ms - To improve scrolling

    # CPU
    -- Overclock Control
    -- BIG CPU: 741 - 2808 MHz* - default: 2314 MHz
    -- LITTLE CPU: 455 - 2002 MHz* - default: 1690 MHz
    -- Set Max Freq for screen OFF
    -- Ability to disable boost - For power save
    -- Governor up_threshold - To adjust balance between performance and power save
    -- BIG CPU DVFS Max Temp (thermal throttling)** - Range: 65 - 95 °C

    # GPU
    -- Overclock Control - 260 - 839 MHz* - default: 546 MHz
    -- Ability to disable boost - for power save
    -- Governor up_threshold - To adjust balance between performance and power save
    -- GPU DVFS Max Temp (thermal throttling)** - Range: 65 - 95 °C

    * Max stable Freq depends on the quality of the SoC !
    ** To avoid too big performance drops from stock thermal throttling driver

    # Performance Profiles
    -- Power Save
    -- Balanced
    -- Performance (Kernel Default)
    -- Performance Plus (Gaming/OC) (Adjustable CPU/GPU Freq)

    # RAM
    -- Memory Management
    -- Low Memory Killer - Set the amount of min free RAM* - Range: 128 - 256 MB - Default: 192 MB
    -- Swap / zRam* - LZ4 compressed swap block-device in RAM - Choice: 0, 25, 50 or 75 % of RAM size
    -- Ability to drop caches / buffers - To free RAM

    * For multitasking, gaming, responsiveness and battery life

    # Network
    -- Adds kernel support for network file systems CIFS & NFS
    -- TCP Congestion Control - Choice: cubic, new reno, bic, westwood+, vegas, veno, hybla, etc..
    -- Wi-Fi Band Selection - Choice: 2.4/5 GHz, 2.4 GHz only or 5 GHz only

    # Misc
    -- Torch - Set brightness for the highest level in Android quick settings - Range: 10 - 15
    -- LED-RGB - Set blink ON/OFF delay for notifications / low battery
    -- Optimize RED, GREEN, BLUE LED - Increases brightness by disabling power save mode on low lux
    -- Accelerometer Calibration

    # Advanced Power Menu
    -- Reboot to:
    -- system
    -- recovery
    -- download
    -- or shutdown

    # Privacy #
    -- In case the app crashes it will send only technical debug info to the play store server, for debugging.

    # CREDITS #
    -- World-gear-symbol by Freepik from www.flaticon.com - edited by ace2nutzer

    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:
    Note: the video is no longer up-to-date, but it's still a good starting point.

    Free Fast Download

    Current Bugs and Changelog

    FAQ


    Support me via PayPal

    Join Telegram group

    Note: the group is not maintained by the kernel developer. - I'm not responsible if you get anything bad from that group.

    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
    26
    Bugs and Issues Kernel 2021.06.03
    • You tell me :)

    Changelog

    Kernel V. 2021.06.03 (Hotfix)

    • Charger Control: Fixed AFC regression
    • Kernel Config: re-enabled CONFIG_PGTABLE_MAPPING
      Disabled CONFIG_RBIN - maybe this will fix zRam random reboots (needs some testing)

    Kernel V. 2021.05.30
    • CPU/GPU: updated ondemand gov
    • Charger Control V. 2.9: optimized AFC handling
    • Kernel Config: re-enabled CONFIG_SECURE_OS_BOOSTER_API for maximum speed for iris, fingerprint and face unlock
      Disabled CONFIG_PGTABLE_MAPPING - maybe this will fix zRam random reboots (needs some testing)

    Kernel V. 2021.05.22
    • zRam: set to 50 % size by default
      improved stability
    • Memory Management: optimized low-memory-killer to have min 192 MB free RAM
      for quick response even if RAM is in high pressure state
    • Torch: fixed torch control interferences with Android's quick settings
    • SELinux: added ability to fake enforce status (in demo app)
    • CPU big/lit: updated ondemand gov for the better smoothness and battery life - up_threshold 95 by default
    • CPU big/lit: up_threshold=95 and disabled boost always fixed on suspend for more power saving
    • CPU little: increased min_freq to 598 MHz, up_threshold 95 and enabled boost but on suspend it'll use 455 MHz for power saving
    • GPU: updated ondemand gov for more powersaving - up_threshold 95 - boost enabled
    • GPU: removed unused governors
    • Input Touch Booster: disabled by default for more power save
    A2N Kernel Control V. 3.5
    • New: check for new A2N Kernel release on app launch
    • Misc: fixed torch control interferences with Android's quick settings
    • Updated defaults
    • Bug fixes
    • Removed redundant buttons
    • Reduced network traffic and debugging
    Older Changelogs

    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
    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
    16
    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.