yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I've uploaded a test kernel for testing the ability to force disable moisture detection for both USB and Jack port !

How to test:

flash kernel ...

boot without cable ...

If moisture detection appears, wait 2 minutes ..

it's still there ? open A2N App and toggle "disable water detection" (to be disabled in the app)

if it's still there, connect the cable, wait 5 sec, unplug, wait 3 sec and replug again, it should disappear and you can charge normally.

Let me know if it works and how it worked, what you need to do to make it disappear ...

It's possible that it still doesn't work, if so i've to hack it some more, indeed it seems to be possible to force it, (needs more work)

I've enabled almost all USB 2.0 / 3.0 ethernet 10/100/1000 Mbit/s adapters from Realtek, ASIX and others. - So i hope it should recognize your Realtek adapter now. Let me know if it works properly.

Since you both have the S8+, i've only uploaded kernel for S8+ variant:

Download

Note: A2N App is disabled in this build, except water detection stuff.

Because it has unstable CPU/GPU DVFS driver ... basically due to unfinished work in newest technology. lol

But it has already very good performance.

Also it's possible that random reboots are still present.
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
Acabo de flashear este kernel y lo confirmo, tengo ethernet funcionando perfectamente, ¡¡muchas gracias !! un paso adelante para el siguiente kernel. Aprovecho la oportunidad para preguntar, ¿este kernel tiene soporte ext4\ ntfs \ f2fs para hdd a través de otg? Tengo uno conectado y solo reconoce el formato exfat
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Thats great !

All supported except NTFS.

If you need it i can enable it, no problem. And what about stock kernel ? Also only exfat ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
at this moment I have your kernel with stock rom and the hard disk in exfat format (it does not recognize ext4, f2fs. I format it from the recovery). I'm going to try right now with stock kernel and ext4 format in hdd and I'll tell you how it went.
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
flash stock kernel and it doesn't recognize ext4 either, a notification tells me wrong format, if I want to format.
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
I honestly don't know which format suits me more precisely for hard disk, (do you recommend any partition? I experienced an error 2 times so far, with exfat after loading data on the disk and restarting the phone it recognized me as a corrupted hdd) if would be great to be able to add ntfs support too, it wouldn't hurt and it would make the kernel more complete.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You should use ext4 for rotational HDD or if it's an SSD use F2FS when using with Linux or Android.

I suggest to format your HDD with lubuntu desktop live cd or usb using gparted tool. But you need a real PC or notebook for this.
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
I am going to try, I am downloading a live usb iso from gparted, I will try to format it from there, although I previously did not recognize ext4, thanks for everything
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
Thank you for your effort ( and remembering).

With time things turn out to be good for me. At the start ( when the moisture problem started) it won't let me charge the phone (whenever i would connect the charger it would keep beeping with the message to disconnect the charger and dry out the charging port). The only workaround for it was( and to some extent still is) that i would turn off the phone and then turn it back on, and as soon as the initial Samsung logo appeared i would connect the charger(not after and not before, but only at the exact time when the logo appeared) and from that point the phone would start charging normally until i restart it or the moisture warning comes back randomly. Currently, my phone status is better. The moisture warning has disappeared to a greater extent. Sometimes it will appear again randomly, but it happens rarely now (not sure if i will persist in the future or disappear completely.

i will check the new test kernel and report back to you if it works when the moisture warning appears again.

EDIT: So the moisture warning has returned. I did exactly as you instructed and it won't go away. But the good thing is when i restarted the phone ( the charger was not connected during the initial Samsung logo, as the workaround i mentioned before) the warning has disappeared. Now the phone is charging normally. Also did 2 3 restarts to make sure if the warning stays gone, and it is not reappearing.

Any further testing or instruction to clarify the problem for your understanding?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@Adbnpk2013

Whith moisture notification and in app it's disabled and you plug and unplug the cable .. it should go away .. if not i need to patch it.
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
With my testing, the notification won't go away whether i disable it or not in the app, and also whether i connect or disconnect the charger. i will go away when i normally restart the phone(not the restart when i connect the charger at the samsung logo)
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
Hi @ace2nutzer

Thank you for this great job.

Random reboot is the only problem for me. Even if i set all options as default. I think you are busy but i am waiting impatiently. When can you fix it?. Here is my log files of last reboot. Maybe it can help you.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Hi, thanks for your report.

After a random reboot open A2N App demo and just generate last_kmsg. Upload it original, do not repack it.

Also if you have S8+ you should use latest S8+ test kernel for now from here:

index - powered by h5ai v0.28.1 (https://larsjung.de/h5ai/)

index - powered by h5ai v0.28.1 (https://larsjung.de/h5ai/)

xda.mister-freeze.eu

Note for S8: do not post logs, it's know to be unstable, i'm working on it.

Also make sure to use latest A2N App demo from latest official release, just save it and install it upon latest test kernel, because A2N App is currently disabled in test kernels and therefore it'll even uninstall A2N App demo after test kernel installation.

I'm going to re-add Demo App in next test kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
hi guys, a few days ago i'm experiencing a problem, a headache. I have a 280gb hdd connected via otg hub (the file explorer application sometimes recognizes as a sd card and sometimes as a hard disk) when transferring large files (either with es explorer or my file app samsung) the file transfer freezes , the rest of the applications are executed but not completely. (Randomly freezes for example at 13% or 35℅ or 95) when restarting the phone, I get a message saying that the partition is damaged. I already tried changing the kernel, changing the OS, increasing the current with a better charger, formatting from pc, always the same result. Exfat is the disk partition. does anyone have an idea? please! could the mount fail?
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
hi, be patient, this guy is working hard for all of us. I recommend you to buy the premium application from playstore to support the project and that the developer has a minimum recognition.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
It's even possible that your HDD is just broken.

Damaged sectors or broken filesystem.

Ot maybe just a contact problem with the cable.
[Samsung Galaxy S8 & S8+ Cross Device Development] Pistero07:
I formatted the disk with the windows tool, I have formatted with disk genius, also with another windows application. scan the disk and found no errors. i have two hdd and the same problem. the cable works fine on windows. In android it recognizes hdd usb but when loading data the transfer freezes and android works badly until I restart. I can only use exfat because the rest don't recognize it (vold ??) is there anything I can try?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Did you try to format with gparted ?

It's really a bad idea to format with Windows .. Android (Linux) is not really compatible with Windows.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
Hi. Thank you for reply and information. Good luck with your work.👏👏
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
Hi. I already did it. I know this guy doing great job and i have great respect for @ace2nutzer
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@Pistero07

use gparted live to format your HDD or flash sticks to be used with Samsung Dex ...

You need an empty USB-Stick and a tool that will copy the gparted live tool to the USB-Stick. The tool will make your USB-Stick bootable.

Finally boot from USB-Stick and gparted live will run.

You can also start your PC with any debian based live distro (iso) and then execute the following in terminal emulator:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
New Test Kernel 2021.09.17 is Up !!

@ ALL

Please test if it's 100 % stable, for at least 3 days, that means no random (soft) reboots and no apps force closes !

Note: re-added latest A2N App demo version 3.5, to be able to easily generate logs.

Full version 3.5 will not work with this new test kernel except water detection stuff for testing purpose.

Post logs directly in XDA without to repack it !

I don't accept logs from other builds.

@Adbnpk2013

Please test water detection stuff, i've patched it some more. ;)

@traversone

Please test Android Auto suff. ;)

Download for S8

Download for S8+
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
Thank you for your efforts. Unfortunately, things haven't improved on my side. With this test Kernal, things have reversed backward actually.

in the previous test kernel, the moisture notification would simply go away with a normal restart and won't come back even if i restarted the phone several times.

With this test kernel, the moisture notification is persistent again. It won't go away no matter what I do ( tried your instructions several times). Again the only workaround is the old handy hack when I restart the phone and connect the charger when the Samsung logo appears.

Any further instructions for testing would be appreciated?

Edit: also check the attached log file for recent reboot.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
first impression is that mobile gets slowed down in the same configuration of previous kernel!

in addition, on every reboot it behaves as dalvik cache is wiped (of course it is not like that)....and probably it runs slow for this reason too

EDIT: after 5 minutes in stand-by, now it is running very well, even better than before

EDIT #2: BatteryCare feature seems not working. Though max level is set to 95%, charge gets 100% and does not stop
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Thanks for testing and report.

As i said a2n app and init.d is disabled in test kernel. You can't change kernel settings for now.

@Adbnpk2013

But for random reboot i need last_kmsg not logcat. Logcat is only useful for apps crashes. I'll upload another test kernel for the moisture notification.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
just got soft reboot (just after touching screen)
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
Sorry for previous misunderstanding, here is last_kmsg for recent reboot.
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
For now no problem with the kernel test 09/17, it seems much smoother than before, less overheating than before in the workloads (new dvfs optimization?) And I have also gained another 200 mb of free ram compared to the previous version (I'm on Alexis Rom 9.3).

The road is good @ace2nutzer.
[Samsung Galaxy S8 & S8+ Cross Device Development] Trasher29:
Got a random reboot while in standby after receiving I think a message. Z-ram: 0%
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yeah :)

Optimized almost everything .. CPU/GPU governors, DVFS, HMP, zRam ... and many more. Once we fix random reboots and water detection, i'll write proper changelog and release adapted A2N App.

Then we are back in the game lol.

I forgot to mention once again, after a random reboot, so u've to enter the PIN, it's right to grad last_kmsg.

But if you just see the SAMSUNG Logo and then it's NOT ask you for the PIN that means it was a soft-reboot ! .. in this case you need to reboot the phone and then grab last_kmsg !

Indeed it's a bit hard to catch soft-reboots, because it can basically happen even while you sleep or while the phone is not in front of your eyes since it doesn't ask for PIN everything looks like normal.

Fortunately i've catched today a soft-reboot, so later i'll check it.
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
I'd uploaded this teboot
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
soft reboot with samsung internet running
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
well this was reuploaded with glitch
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
soft reboots with no tweaks(not that I have premium app to tweak hahaha). btw all previous kmsg were stock kernel
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
New test kernel #18 is online.

Please test the moisture notification.

@ ALL

another test for random reboots !
[Samsung Galaxy S8 & S8+ Cross Device Development] MUNISH MONGA:
@ace2nutzer

Please, release a build with init.d access to change kernel parameters, I have the full version but I used to change kernel parameters through quick settings with my own init.d scripts, so still using older releases...I want to use latest build with init.d access as it was working before...I think just skipping the a2n_allow check for those with full version of the app will allow init.d scripts....I'm OK with any misconfiguration but please bring back the init.d access....
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
What's not working: The moisture notification won't go away,whether i toggle the disable water detection on/off in the app. i tried waiting for several minutes, connecting the cable, remove it, and reconnecting it after few mins.

What's working: A simple restart will now disappear the moisture notification and it won't come back no matter how many times i restart the phone. Now the notification appears randomly and is not persistent like before.

one more thing: after flashing the test kernel, i have noticed that wired handsfree would not work (the phone is not detecting the handsfree) until i restart the phone and then it would start working as usual. i don't know if it's just my phone or anyone else has the same issue?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@ 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.
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
Here is a video demonstration. You can check yourself for better understanding and if i am doing it the right way ?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes, you do very well.

Well, then it's acceptable for now.

At least you are so far the only one, world wide with this issue.

Now it remains to check about stability / random reboots then kernel is fine. Later app adaption and we have it.

So far is latest test kernel rock stable ?

For me yes, so far.
[Samsung Galaxy S8 & S8+ Cross Device Development] Terminator-ios:
No problem for me with the latest test 18, super smooth.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
same at my end
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
that new test kernel is smooth as butter
[Samsung Galaxy S8 & S8+ Cross Device Development] incognitonk:
No reboots with the test 18 version. Tested for 24 hours.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
just for completeness and since I am the only one (it seems) to test in AA environment, I have to report that sometime (in case of high load I suppose) when live-streaming "in picture and picture" mode and parallely using another app (in my teest DevCheck to check the memory usage), live audio becomes jerky and all operations get slower and slower till a reset!
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
What is a reset ?

What about free RAM once the issues starts ? Check also the free swap.
[Samsung Galaxy S8 & S8+ Cross Device Development] panda.musty:
i got boot loop with test kernel 18 and magisk v20.4. Without magisk it is ok but i have to use v20.4 because i use screen2auto app. Could you find any solution for old version magisk? stable release of your kernel is ok with magisk v20.4
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Older Magisk V. like 20.4 can't handle LZ4 compressed ramdisk.

So you need to repack ramdisk with oldschool gzip compression, using AIK-Linux.
[Samsung Galaxy S8 & S8+ Cross Device Development] traversone:
please have a look at 2 screen captures.

sometime CPU load gets 90% and more and, in such a case, mobile runs slow and jerky till random reset (in worst case) that is to say without samsung logo and no PIN request
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Reset = you see the Samsung logo and then all apps are closed ?

You can try with zram 50 %.

Adjustable over init.d or app.

Note CPU GPU DVFS ist limited to 60 °C in test #18.

@traversone please again with same screenshots.
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
yeah with stock kernel it's worst..
[Samsung Galaxy S8 & S8+ Cross Device Development] lataiwan:
A1: Yes, I have installed the kernel control from play store.

A2: My CPU not run on Max (1989Mhz / 2652Mhz), because of instability.

Maybe (1794Mhz/2574Mhz) OK, but I'm not sure this.

I can let it(S8+) run on Max (1989Mhz / 2652Mhz), but don't have that willingness because of instability.

I put on some setting pics.
[Samsung Galaxy S8 & S8+ Cross Device Development] tarikkaya:
add kvm virtualization support pls
[Samsung Galaxy S8 & S8+ Cross Device Development] Quentinos:
Can I install this kernel along side lineage is 16?
[Samsung Galaxy S8 & S8+ Cross Device Development] keyboardhouse:
i've installed this kernel and got issue and changing back my kernel to RZ, gonna try back to overwrite the RZ to this kernel (someone said he doesnt get a bootloop and kernel working fine even overwrite the RZ kernel).

im a gaming guy, the reason I downloaded custom kernel to get a better performance (doesnt mind if my phone get pretty hot or even can cook an egg) as long as it goes smooth on every games (eg : COD Mobile) its ok for me,

---------- Post added at 04:49 AM ---------- Previous post was at 04:25 AM ----------

are you using this kernel for gaming? do you get any kind of crash and freezing? after installed the kernel my phone got freeze and crash its like the pixel is broken its like watching a movie with a broken dvd disk
[Samsung Galaxy S8 & S8+ Cross Device Development] lataiwan:
Yes, I use the kernel to play game like TOS for 45 mins~1hr / one day , not too long time.

If it got freeze or crash and you change back to RZ kernel which is OK.

Which kernel you want to choose by your free willingness, no one force you.

You can change back to RZ kernel or hadesKernel_v1.4 to cover this kernel at any time, if you think this kernel is not good enough.

I'm just like you as a user/tester. I just test this kernel and reply.

I must say:

(a) When I run multi-threads of CPU benchmark on antutu, my phone crash and reboot.

(b) Cannot pass 15 mins burn-testing on antutu, my phone crash an reboot in 6 mins after starting.

My A2N kernel control setteing:

(1) No check "performance mode" in profile column [ use balanced mode (default setting)]

(2) No check "set on boot" in CPU & GPU column

RZ kernel is also a good kernel and more stable... up to now.
[Samsung Galaxy S8 & S8+ Cross Device Development] RXTK7:
Because antutu make CPU run extra (2002Mhz/2808Mhz) even if it is set in a safe range.So will be crash and reboot.That's why I'm not screenshot running results.maybe you can try set governor tuner cluster up to 95% and run again
[Samsung Galaxy S8 & S8+ Cross Device Development] lataiwan:
(1) I try to pull threshold up to 95%, and benchmark on antutu, results still the same: crash & reboot.

(2) You don't screenshot the pics of running results what's choice is smarter/better than my. :)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I've already fixed the issues !

I can pass all test in Geekbench, Antutu, + KI and 3DMark.

Using stock ROM + A2N Kernel with kernel defaults (no OC).

That fixed Kernel is coming ... only need to fix very bad GPU Governor, then i'll upload new official release.

For now, for testing i can suggest the one i've uploaded to the FTP Server without date. (even if it's not fully stable)
[Samsung Galaxy S8 & S8+ Cross Device Development] Solace50:
Gave the kernel a second whirl on the test build, the instability is solved but man does this kernel ever lag (5+ second hangs) compared to stock or anyone elses. I understand its tweaked for power savings but I managed to tweak my S4 kernel without compromising performance that much to do nearly the same that what was done here. Along without the 7$ app to mange the kernel for your own preference its pretty much a waste of time. Also the battery appears to be charging slower than stock and cannot be tweaked without paying for the app lol...
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
[MENTION=4176798]Solace50[/MENTION]

Thanks for testing and for your feedback !

The test kernel isn't optimized ... it was just a wild attempt to fix freezes.

Please wait for new reelase i'm improving Battery, Speed and stability a lot !

This Kernel will be better from update to update, that's my promise.

btw: as for the App, u probably missed Post #3. ;)
[Samsung Galaxy S8 & S8+ Cross Device Development] Solace50:
If your referring to giving a ecstatic rating to receive a product key I do not endorse such models. That is just fabricating reviews and influence instead of accurately reviewing a product then posting a review. This is why I asked for a activation key in advance in my previous post mentioning the instability when trying out the kernel for the first time. If you structure things where people can try before they buy and then comment on your work it would better benefit your project. Eg. 30 day trials etc...
[Samsung Galaxy S8 & S8+ Cross Device Development] kote156mza:
Please sopport for N8
[Samsung Galaxy S8 & S8+ Cross Device Development] iacopocattaneo:
How can I set governor parameters using init.d scripts

I searched on Google but couldn't find useful results

someone can help me

Thanks