yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
if your Phone is already running fine with TWRP, so the format /data is already done, only flash kernel and then Magisk for safe root solution.

Yes, because foreground App only uses big Core. Small Core is used for background tasks.

It's normal if you see 2 Times the Samsung Logo, on the second attempt it will boot.

Yes, as it turned out the phone simply works better with some separation of CPUs instead to use both (non-equal !!) CPUs ..

With latest Version u'll have best Speed + battery, but worse benchmark scores in multitasking.

With some older kernels u'll get exactly the opposite behaviour.

If you don't like that it uses too much max_freq, even on low load, then make sure to set the following settings:

Screen --> input booster duration: 0 ms

CPU ---> Cluster 0/1 up_threshold: 95 %

Boost: disabled (unchecked)

This is the default and is optimized for battery.

I've checked the last_kmsg.txt, i can't see what's wrong, everything looks normal except that there was an suddenly dirty reboot.

Maybe next time the error will be catched, as it's normal that sometimes the system doesn't have time to write to the log.

Yes, like i said before, only in benchmarks, not in real phone usage.

Tested right now and even at full screen + 1080p resolution, both cpus stay at min_freq.

Tested also RAM and Bus Speed, and it turned out bus freq hangs on max freq while playing YouTube Video.

Next update this is fixed, so you can expect even better battery life.

Yes, but i don't see any need to do so, i've provided a lot of setting, with that u can tune the speed + battery like you want.

How are you trying to adjust it ? (since it only doesn't work for you)
[Samsung Galaxy S8 & S8+ Cross Device Development] Alberhasky:
[MENTION=5840412]ace2nutzer[/MENTION] is there anything special I have to do to uninstall your kernel in order to install a different one? The problem is I didn't know that this kernel was meant for stock roms and Installed on custom rom, it never completely booted it, it would get to the optimizing apps part and then it would restart, it kept on doing that for about 10 times until I finally gave up and installed a different custom kernel but the phone since then started being slow and laggy, I even dirty flashed the rom again to see if that would help but it didn't, is there any system modifications that could have happened when installing your kernel or should it uninstall simply by installing a different kernel? I really would appreciate your help as I don't wanna have to start over by resetting the phone so if there's anyway to completely remove any trace of the installation or anything to do please let me know, thanks!!
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No, nothing special, it's usually enough to flash another kernel.

If you feel something is still wrong after that, then simply format /system and flash the ROM.

After that, if you still have any issues, the Problem was not coming from my Kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] Vortenix:
Hi. Thank you for this awesome kernel. I have been using it for over 3 months and the performance is incredible. I have one question. Is it possible to set the selinux back to reinforced ? If so, please let me know how.

Thank you and have a nice day !
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Any reason for enforced mode ?

Is there a Problem ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Vortenix:
No, not really. It might interfere with a banking app I have and brake magisk hide although I am not 100% sure. I was stupid enough to update the app and it will now detect if serious modifications have been made to the device.

Also.. I don't know how ok is to have the selinux off by default(it's a security risk for what I know) but if you had no other way, I guess it's ok :D
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I can provide a switch in demo app for enforced mode.

But again: have you actually issues with any banking apps even with magisk hide-mode enabled in magisk manager app ???

Almost all developers turn Selinux Off, because it sucks when u can't even acces harmless sysfs Interfaces for reading (again: harmless) kernel values like CPU Temp, so yeah it's creazy when it locks even read-only interface where there is no security risk at all.

That means with enforced mode many apps that shows system informations will not work properly.

And maybe it can cause issues with A2N Kernel Control, i will check this.
[Samsung Galaxy S8 & S8+ Cross Device Development] NewTheLife:
Hello, bug test:

CPU small core bug:1898 mhz, 2002 mhz

CPU big core bug: 2652 mhz, 2704 mgz, 2080 mhz

GPU bug: 683 mhz, 764 mhz, 839 mhz

You can also have right to touch the voltage please ?

Bye good fixe :)
[Samsung Galaxy S8 & S8+ Cross Device Development] harshkumar07:
Excellent kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] harshkumar07:
Can you please introduce an option to tweak core volatges in your next update of A2N Kernel Control?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Noted, but for now development is paused because it's too warm here in Germany as i don't own an AC.
[Samsung Galaxy S8 & S8+ Cross Device Development] harshkumar07:
No problem [MENTION=5840412]ace2nutzer[/MENTION]. Bye the way, is it possible for you to give core voltage control for each frequency step in your kernel control app ?
[Samsung Galaxy S8 & S8+ Cross Device Development] gb2b:
Hello

Sorry noob question : twrp is already installed, I am on Lightrom JetblackUI, if I just want to instal your kernel, will I lose my data if I instal your kernel ?

I will backup before in twrp, could I restore exactly the phone included actual kernel ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Amrch787:
Will this kernel support pwm fix(dc dimming) ? Or i missed something?)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
If possible yes, but it's actually not sure if it'll be possible at all to increase CPU Voltage, but i think at least increasing CPU OC stability should be possible.

No.

Sure if you do a backup even of a kernel.

Fix ? - What's not working ? Commit ? (patch)
[Samsung Galaxy S8 & S8+ Cross Device Development] harshkumar07:
I see [MENTION=5840412]ace2nutzer[/MENTION]. Even if it increases cpu stability at higher clock speed, it will be very helpful. Please provide cpu voltage control in your kernel control app.

Thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] Amrch787:
Will this kernel work on Evolution X(Android 10) ROM ?
[Samsung Galaxy S8 & S8+ Cross Device Development] harshkumar07:
No.
[Samsung Galaxy S8 & S8+ Cross Device Development] Orangelelo:
Hi please introduced underclocking also of cpu like this.it is possible.poco x2 underclocked 100 mhz

https://xdaforums.com/poco-x2/development/hardrock-kernel-v0-1-poco-x2-t4079001
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Sorry, but not useful for our Platform. All System Clocks are already low enough and Voltage is also very low on the lowest Freqs, so that there would be no benefit at all.
[Samsung Galaxy S8 & S8+ Cross Device Development] Orangelelo:
Hmm.just try if u time.may be some wonderful comes.i can test it.
[Samsung Galaxy S8 & S8+ Cross Device Development] mrchino_mapache:
good day. I have installed this kernel, I have an s8 + g955f, I follow the procedure but I always stay in bootloop, but it restored my backup with twrp and voila, the problem arises when I have tried to install another ROM, twrp puts error, that my device is dreamlte and not dreamlte2 , and are Roms that previously already installed and tested.

Enviado desde mi SM-G955F mediante Tapatalk
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Hello ! - Such things happens when you Guys install some wrong ROMs, or misconfigured ROMs from some fake developers.

To use this Kernel properly, flash S8+ Android 9 ROM, then flash a2n_kernel_g955x_9.x_20200603.zip and then latest Magisk.zip.

If u face still an issue, then i do suggest to fully clean flash your Phone from scratch using latest Samsung stock ROM, flashing it over ODIN.
[Samsung Galaxy S8 & S8+ Cross Device Development] rn2web:
Hi! Awesome kernel???

I already have root twrp and last Magisk.zip

Android 9 stock.

I Just need flash a2n_kernel_g955x_9.x_20200603.zip ? Or any more step?

Thanks a lot and keep great work. :good::good:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Hi !

yes, just flash this zip for the S8+, otherwise for S8 it's g950x.

After kernel is flashed, flash the Magisk.zip for quite and safe root solution. :good:
[Samsung Galaxy S8 & S8+ Cross Device Development] salahomer:
I want to say that the kernel features are amazing, but it's worthless without it's own kernel manager paid version.

Unfortunately Not every user can write his own script by init.d (me included).

So if there any other way to manage it, I'll be so appreciated.

I try other free kernel manager to tune it, but no luck.

Anyway thanks.
[Samsung Galaxy S8 & S8+ Cross Device Development] rn2web:
Well, I'll leave you as my installation was.

I already had root and TWRP.

android 9

galaxy 955FD

I installed the kernel and Magisk again.

I restarted the system and was in an infinite loop.

I entered twrp again, gave a wipe data.

I repeated the installation.

again infinite loop.

I repeated the installation again ... this time it worked and entered android.

Now I will buy the full version and do performance tests.

Does the developer recommend a test app that compares performance to this new kernel?

In stock I did a test that I received 2111 points, I don't remember the name of the app, it's the most famous test there.

Ah, an additional detail.

Last year, when I left rom stock 7.0 to 9.0, my android lost fast charging.

(A detail that he had already fallen into the pool 2 times and recovered months ago, at this time)

Some colleagues here recommended a full memory swipe, which I had never done before.

Today, I did the swipe, installed this kernel, the problem continues, when turn off the cellphone and plugged in the charger it is informing that there is water in the USB plug type c.

Is there any possibility inside your kernel to disable the water check on this plug, releasing fast charging?

or is it a defect in the hardware of this plug, as I read in other topics that it is a chronic defect of the s8+ over time.

thanks for your support.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I'm sorry, but that's the deal. Anyway, even with kernel defaults and a bit slower charging time, it's still better than a stock kernel.

Because of higher efficiency, better ram management and it's more smooth.

The App only allows you to improve it even more.

If you don't like it, flash another custom kernel, here are enough, they are all for free.

It's normal that you can see 2 times the Samsung logo .. but not 3 times .. then there is something very wrong with your Phone, i can say that because it works as expected with my phone.

For CPU, best APP IMHO:

https://play.google.com/store/apps/details?id=com.primatelabs.geekbench5

and for GPU:

https://play.google.com/store/apps/details?id=com.futuremark.dmandroid.application

Make sure to use "Sling Shot Extreme" .. because all the other tests are not powerful enough for the Galaxy S8 ... (Because the GPU from S8 is too much powerful, it has 20 Cores !!!)

Did u already tried to use another charger and cable ??

Also u can try to gently cleaning the USB Port.

Water detection is already disabled:

# CONFIG_CCIC_WATER_DETECT is not set

Ohh wait, after some research in source code, it seems that this config option is not used at all and water detection is forcibly hardcoded in kernel ... lol typical SAMSUNG BUG ... i'll offer a switch for disabling water detection in next build.
[Samsung Galaxy S8 & S8+ Cross Device Development] rn2web:
Thanks for the answers.

I bought your app yesterday to support the development of the project.

I will test the apps you have indicated.

And about water detection, yes I already tried other cables and clean several times.

in this same category in this forum you will see several other users with the same problem on the s8... when they switched Android versions.

I will test several things today and post the results tomorrow. :laugh:
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
Hello!

Just installed this kernel, everything feels awesome except one bug, when I'm playing COD mobile, this game just closes unexpectedly, every like 5 minutes. Same bug I encountered in Lineage OS 17.1. I thought it's something from rom itself, but I can see that the problem is in kernel. With stock kernel, the game runs just fine. Can you help me with this?:confused:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Probably u need to enable zRam.
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
I know I can sound little stupid, but my main reason for changing stock kernel was very bad gaming performance in COD or PUBG, like graphics to minimum and fps to max, but the gameplay was way too weak, I've seen on the same model gameplays a lot better.. sorry if it may not be related to kernel thread:(
[Samsung Galaxy S8 & S8+ Cross Device Development] Amrch787:
I mean pwm flicker free mode(reduses negative impact on eyesight)

---------- Post added at 07:51 AM ---------- Previous post was at 07:41 AM ----------

Do i need to buy a full version of app to get possibility to change charging power?
[Samsung Galaxy S8 & S8+ Cross Device Development] Illutorium:
Latest kernel eg. of "Kernel.org" are be :4.4.229" (30/6/2020) when if be a LTS then be can update to a Latest instead of "4.4.111" as Stock...
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
Does stock kernel have zRam enabled? If not, how can it be the solution for games crashing with this kernel if it was ok with stock version? And what value uses stock kernel in up_threshold? (I've seen 95 by default in this kernel)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No, stock has sswap with 2048 MB.

While this kernel has no swap enabled by default, but you can enable zRam wich is more efficient than sswap.

available sizes: 25 % (919 MB), 50 % (1847 MB) and 75 % (2775 MB) of total userspace RAM of 3711 MB.

Stock kernel uses interactive ... and uses:

#define DEFAULT_TARGET_LOAD 90
and:
#define DEFAULT_GO_HISPEED_LOAD 99

but this kernel uses custom conservative with only up_threshold ... or with boost enabled it acts like interactive (go_high_speed_load) or ondemand governor. .. means switching directly from min_freq to the highest freq. That's why this kernel offers only one gov, because depends how you configure it, it'll result in every possible gov, performance, balanced or powersave mode like stock conservative with boost disabled.
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
Your premium app looks incredible, and I would like some settings in this app for full gaming experience, if you can give me some presets or recommends, although maximizing cpu frequency isn't enough I think. :)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You are Welcome !

What is missing in Kernel Manager App ?

I was trying to avoid to put useless stuff in, in order to keep it user-friendly. But maybe i'm missing something?

btw: coming kernel + App update will be even more awesome Guys .. ! You are so lucky here !!

Many users from other Phones like S7, S9 etc. wishes to have kernel like this, but it's for me not possible to maintain many devices.
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
I meant that in performance profiles, these settings are only for GPU/CPU frequencies, but I think it will be better if these profiles had settings like *in performance mode: disabled throttling, boost cores, zram set, etc*. In power saving: everything opposite (I hope you know what I want to say.)

And still encountered some crashes in some games:laugh:

Even with zRam with all sizes tested

EDIT: if it's not very hard and time consuming for you, It would be amazing if you could test this Call of Duty Mobile with this kernel and performance tweak, because I don't know if it's kernel issue or game itself. Thanks in advance :)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Hmm that's basically a good idea, but it's very customary ... because you can have Apps that need a lot of CPU Power but doesn't need a lot of RAM, so enabling zRam would be not optimal then. Not every user buy this App for improving Games. It's a Smartphone, not only a gaming Console. ;)

Well that shouldn't happen of course, i can't see your Phone config from here, maybe you can provide some informations like:

ROM:

Any kernel changes ? - made from App or scripts ?

Check with terminal emulator (free from play store) if zRam is properly enabled, it requires root for zRam.

in terminal emulator type:

free -m

Check last Line with "Swap"

When u was using zRam 50 % and you switched to 75 %, be aware that it needs some time (around 3 - 5 Minutes) till the new size is active.

Because it needs some time to decompress the zRam device .. even it's using all 8 Cores at the same time.

I can't promise as i'm always very low on time. :)
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
[/COLOR]

1st try: (game crashes after 5min)

- performance mode (default)

- zRam at 25% (waited 5 min)

- disabled thermal throttling for CPU and GPU

- up_threshold 20% (both clusters)

- cluster 1 Boost checked

- input booster 1807Mhz with 1500ms

2nd try: (game crashes after 2 min)

- performance PLUS

- zRam at 50% (waited 5 min)

- up_threshold 20% (both clusters)

- cluster 1 Boost checked

- input booster 1807Mhz with 1500ms

3rd try: (game crashes after 5 min)

- performance PLUS

- zRam at 75% (waited 5 min)

- up_threshold 20% (both clusters)

- cluster 1 Boost checked

- input booster 2808 Mhz with 1500ms

4th try: (game crushes after 5 min)

- performance mode (default)

- zRam at 0%

- KSM checked (300 pages to scan)

- input booster disabled

Maybe I should give up with this lol :laugh:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You need an PC or Laptop with installed Samsung usb mobile driver and working ADB.

Once ADB works, you have 2 different methods for catching live errors when some Apps crashes ....

First of all connect the phone with your PC over USB and launch ADB:

adb shell
su

Method 1: Kernel log:

cat /proc/kmsg

Method 2: ROM log:

logcat | grep " E "

You can also use both Methods at the same time like i always do ... using 2 terminal shells ...

INFO: the "E" stands for "errors", so it'll show only error messages, while W = warnings, D = debugging, I = info.

When you execute the logcat command with " E ", then wait till it's quite, then press for 3 seconds the ENTER button in order to make some separation to the mess above ... then open an App watch on your PC what happens ... if it'll crash, immediately copy the last few lines ... from the crash ... the more the better ... and paste it here in the Thread.
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
Hey there! So I ran 2 adb shells, 1 for ROM and 1 for KERNEL.

And I ran 3 tests where this game crashes, and copied the code from them. So here are 6 log files in this archive (3 for kernel, 3 for rom)

Btw I searched through them, but nothing suspicious noticed..maybe you can see something..expect one code from ROM shell:

"HWComposer: onVsync Failed to find display 0"

(hundreds times repeatedly, and game lagged very bad)
[Samsung Galaxy S8 & S8+ Cross Device Development] Niscchay:
Do I have to enable the high performance mode to enjoy the performance boost offered by this kernel
[Samsung Galaxy S8 & S8+ Cross Device Development] Niscchay:
i want to play pubg will it have any effect on the fps?
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
Performance mode is already as default in kernel, but you can activate performance PLUS with premium app (Basically overclocking), also enabling zRam and a lot more to customize your gaming experience. :)
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
Finally found out the problem for crashes!!

After hours of researches and looking at adb, it seems that the reason for force closings and overheating in some apps/games was Magisk detection (I don't know why they do that) but after renaming package of Magisk and hiding it, all problems mentioned above were eliminated! I don't know why exactly it happens with THIS kernel, and not in stock, but I'm happy that it's finally done. :victory:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Thanks for the logs ! - There are some interesting errors that i can maybe debug if needed.

Hmm thats quite strange ! I don't have any issues using latest Magisk STABLE Release on samsung stock rom with this kernel.

Maybe you had some left overs from older magisk manager versions ?? In this case it helps to flash over TWRP the official uninstall-magisk-zip package from the magisk developer ... this will cleanup the whole Magisk files and should resolve a lot of problems with magisk itself.

Very strange thing, and who knows maybe many users that had bad experience with this kernel it's basically the same issue.

So what should users do if they have issues with app crashes ? Can you explain in a noob way ?

btw: in the logs you have provided here is nothing about "magisk" ... so how did you find out it's related to the magisk manager ??

Was you seeing high magisk cpu load by using command "top" in ADB ??

Anyway it's great that it finally works how it should be ! :good:

This was a PM, but it should be here in public ;)

This is a "new feature" that comes with this kernel. It basically allows to charge with the highest current possible even with non-original chargers.

You can read this also in Post #1... kernel features ...
[Samsung Galaxy S8 & S8+ Cross Device Development] moreformusic:
Looking many times at the logs when the game crashes, I remembered that something strange in log happened exactly like when I tried to open an banking app without hiding Magisk Manager package, basically dev's are still using this root detection method (other one is searching for OEM locking) I can't explain exactly how they show this in code, but just that alignment of codes in a certain time happens also in banking app case.

Btw: I don't know why some apps or games uses detection for root for not a damn reason :eek:

Here is how to hide Magisk Manager from other apps:

1. Randomize your package name:

Open the Magisk Manager app, tap the menu icon on the left, then head to "Settings." Locate the "Hide Magisk Manager" option, then tap it once to begin the process of randomizing your package name. It will make the necessary changes in the background real fast, close the app, then reopen it once more with a newly randomized package name.

2. Use Magsik Hide:

Open the newly named "Manager" app to the main screen like before, tap the menu on the left, then head to the "Magisk Hide" entry on the list. Locate the offending app(s) that are detecting your root access and tap the dot on each one to put a checkmark on them.

I HIGHLY RECOMMEND TO CHECK ALL APPS EXCEPT ONES THAT REQUIRE ROOT ACCES!

PS: I've verified this method, and after restoring Magisk Manager original name of package, same apps start to crash again after rebooting the phone.

Maybe it's just a coincidence, but after performing this steps, phone themperature drops down A LOT, and even with fast charging and performance PLUS mode, temp is quite low and everything is smoother.

[MENTION=5840412]ace2nutzer[/MENTION] I don't have very much development knowledge, so can't tell you much from this research...that was more a memory coincidence..