yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
After you flashed stock ROM, enable "OEM unlock" in developers settings, flash TWRP (the one from my FTP) and then boot directly in TWRP, wipe data with the "yes" option. Flash a2n kernel and reboot to OS.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
New build is up !!

Changelog

Kernel V. 2022.01.16

Improved stability (shmem fix)

zRam: backport from Android kernel 4.9.194 (incl. zsmalloc and lz4 lib)

Note

Tested for few days to work stable on Samsung stock ROM.

If you are using non Samsung ROM and you face random reboots, it's recommended to flash stock ROM. Bug reports that do not follow the rules from post #3 will be ignored !
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I finished configuring and installing the apps 😩. Do you have to clean Dalvik in this version?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
@ace2nutzer Widevine's license did not go down to L3, it remains in L1. Curious. I made root and I have the A2N Kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
This is normal with this kernel + stock ROM. Yes, please wipe cache and dalvik cache after flashing the latest kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer seems like i fixed the conscrypt issue with reflashing the rom, logcat reader doesnt show anymore errors about it, anyway back to testing the kernel😄

Edit:

Still not fixed, tried also a newer conscrypt.jar and also not fixes it
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
ROM: devbase 7.4

Kernel version: kernel 01.16

A2N app version: v5

BUG: hard reboot when trying to play something on youtube vanced, reboot can be still caused by the conscrypt errors or is kernel related not sure about it

How to reproduce: 🤷‍♂️
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Please append logcat too.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Uploaded
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Can I upgrade or if I upgrade will it kill the system?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@ up

Never tried that on S8.

So it's not safe.

If you want to give it a try, i would try in this way:

let it update, but once it'll reboot, once the screen is black and then usually the phone vibrates, then just BEFORE the phone vibrates, boot directly in twrp, if there is still twrp recovery then flash A2N kernel and reboot to the system. If not, boot directly in Download mode and flash twrp from my FTP. Then boot directly in twrp and flash a2n kernel. Then you can safely boot without to trigger force encryption by Samsung kernel.

@Ryujin96

Thanks for your log !

The logcat looks much better now and the CONSCRYPT errors are gone.

I've fixed the issue, so i've uploaded a pre1 build to be found in pre-release folder. Let's hope this was the last bug lol.
[Samsung Galaxy S8 & S8+ Cross Device Development] khanhbang2013:
Update?
[Samsung Galaxy S8 & S8+ Cross Device Development] aikattx:
Does this works with lineage based rom?
[Samsung Galaxy S8 & S8+ Cross Device Development] MarkEsguerra:
Anyone using this kernel on hadesrom?
[Samsung Galaxy S8 & S8+ Cross Device Development] wer159p:
here work very nice
[Samsung Galaxy S8 & S8+ Cross Device Development] contradriver:
Is the overheating problem solved with the 20191118 update or should I wait for the next one?
[Samsung Galaxy S8 & S8+ Cross Device Development] ZeroCount:
Yes. It is usb device. Drivers needs to be enabled in menuconfig i guess. It's Atheros AR9271 chipset. I was trying to add the driver myself, but i got a lot errors on compiling the kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
U need to wait for update, (maybe later) since 20191118 has overheating issue, but still smooth :D

Ah ok, i'll try. Btw what's the reason of using this Device ? Does it having better wifi Signal?
[Samsung Galaxy S8 & S8+ Cross Device Development] ZeroCount:
Yea. It have 4dbi antenna. I was using it on my s6 edge and i got better signal. But it's mostly used for Nethunter or Andrax for Wifi pentesting with OTG cable.
[Samsung Galaxy S8 & S8+ Cross Device Development] contradriver:
By saying later, are you referring that it will need a few more updates to fix that bug or that this next update will come very soon? Thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] MarkEsguerra:
Thanks, do you benchmark results?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Overheating, freezes and reboot caused from too high temperature will be completely fixed in coming build (not next builds).

I'm actually doing some fine-tuning + still need to check if there's updated kernel source from samsung and then updating the app.

(then i can release, so it'll take still some hours .. probably 1 - 2 days...).
[Samsung Galaxy S8 & S8+ Cross Device Development] wer159p:
i use antutu score 23xxxx (i forgot)
[Samsung Galaxy S8 & S8+ Cross Device Development] contradriver:
Ok, good!
[Samsung Galaxy S8 & S8+ Cross Device Development] wer159p:
i got new bug here

Volte wont work
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@ up

it should work on coming build.
[Samsung Galaxy S8 & S8+ Cross Device Development] khanhbang2013:
Wait......thank bro!
[Samsung Galaxy S8 & S8+ Cross Device Development] shayanb2004:
after flashing the latest magisk canary device went to bootloop
[Samsung Galaxy S8 & S8+ Cross Device Development] Resync:
since i flashed this kernel i seem to have lost the ability to quick charge my phone.

regardless which charger i use i can only get 5v 2a to work.

any trick for that?

its an s8+ with the latest samsung DBT firmware (rooted with magisk)

it doesnt work in the OS nor shutdown on the circleloader thing

(it worked stock with all my chargers...)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Thanks! I'll check if it's kernel issue.

AFC (adaptive fast charge) is disabled by default in my kernel, because AFC hurts battery lifetime a bit.

U need to enable AFC in A2N Kernel Control APK (Full Version), then plug the Cable and set any charging current up to 3A.
[Samsung Galaxy S8 & S8+ Cross Device Development] Resync:
so i need to pay to get quick charge back?

dont you think thats a shady tactic?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Thanks for the tips, but I won't risk it. I've seen reports of people who did and crashed the Rmm in prenormal and couldn't flash the twrp again. Is there any way to disable the updater app without breaking the system?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@Driieel its safe to upgrade it, its the same samsung rom what devbase 7.4 uses in latest release so it should work with this kernel, but keep in mind if you upgrade it you cab loose your recovery and root access. So you have to go in download mode and use tools like odin to flash twrp again, afterwards boot to twrp and flash a2n kernel and magisk😊 else if you dont want to risk anymore to lose recovery just download and flash devbase 7.4. Its a odexed and slighty modified stock samsung rom and its compatible to dirty flash it over a stock samsung rom.

@ace2nutzer Alright, that it is fixed finally lol, wasnt sure about it becus logcat reader and logcat in termux terminal listed some of the logs of conscrypt as errors🤷‍♂️ but idk what fixed it, a reflash of the rom or a newer version of conscrypt what i replaced it, anyway it is weird🤷‍♂️ alright, gonna flash the pre build and have our fingers crossed it is finnally stable. 😄
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You can let logcat run all the time in background like this ...

Use terminal emulator app.

Use copy & paste.

su
logcat | grep CONSCRYPT

If it logs nothing, it means conscrypt is fixed.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Oh i know what i did wrong now, i used conscrypt in lowercase when i typed it, it shows then some logs about that one, but if i run it with upercase CONSCRYPT it doesnt show something lol, guess both are different things?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Of course ...

At the beginning of the log message, there is letter like " E " = error or " W " = warning or " I " = info or " D " = debug.

To track only errors you can try this:

logcat | grep " E "

But not everything you see there is a real error.

Unfortunately this is often abused by noob developers and messes D with E and so on. As you can see it's quite easy and there is no need for any logcat apps.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright, thank for explaining me this😊 anyway, i runned the the logcat command for CONSCRYPT errors and nothing showed up so i guess i fixed it lol
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
@ace2nutzer It would be great if you added an option to add custom profiles in the A2N app, not just the "performance plus". Here's a suggestion, thanks in advance!
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Sorry, but i don't think i'll add more options to the profiles. It'll make it too much confusing.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer i guess you left something behind when making the flashable zip, found boot.img.bat in the pre1 zip when i extracted it for getting the boot.img for patching the default.prop
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Nope, everything ok.

".bat" is probably coming from Windows.

I told you many times that it's a really bad idea to edit Android / Linux files on Windows.

I suggest to you to install lubuntu in parallel.

You can resize your drive C: .. then you have C: and D: .. on D you can install lubuntu. Then when you turn your notebook on, you can choose which OS you want to boot up.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Yea my fault probably🤷‍♂️dont know how it ended up there, probably with being to hastily and putted boot in one of the .bat files instead the .img file, anyway removed and extracted the folder so it should work again. if i want to i can use my linux machines what i use for server hosting as build server, anyway too clumsy compared to if it works also on windows and still my phone can boot up without issues. :)
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Cool ! What do you build there ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
You mean what i build server wise or?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You use the server for compiling software like Firefox, Android ROM or just as a web server ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Oh i run pterodactyl panel on them (game server panel), one of them runs things like webserver and mysql stuff to get the panel working and besides that runs a daemon what makes it possible to talk and to make new game servers and talk to the docker instances, i have another one what just runs the daemon and last one runs also a daemon and my personal smb server to use as a nas also, i have also a second nas what runs freenas😊
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Got a soft reboot after writing last message.

Edit:

Noticed i didnt reboot back to twrp or turn off and on the phone after flashing, maybe that caused it, anyway doing more testing if it is more stable.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
26 hours and no reboot, that's a record for me.

Edit: 42h
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
No one will disturb you anymore after this build has been released.😆 @ace2nutzer
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@Driieel

With pre1 build ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I'm using a2n_kernel_g950x_9.x_2022.01.16. The last released. No problem so far.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
OK stay on that build, just out of curiousity if you get also a hard reboot.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I will keep you informed.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Same here, seems like it is running fine now with the right memory layout so with turning off and on phone or rebooting to a2n twrp after flashing, so if i got again issues ill let you know
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@ up

16.01. ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
16.01 pre
[Samsung Galaxy S8 & S8+ Cross Device Development] madhatter57:
Even using all power saving options available I still can't get the 10h SOT on my S8 (should be 8h since my battery is 80%). Ironically, the version that gave me the best battery life was one from June last year, version 3.5.

I'd love to hear if there's something else I can do or if you are planning to look into this soon.

Performance is great otherwise, long battery life is the only thing that matters to me though.

According to accubattery my estimated SOT is around 5h30.

Also, is there any battery calibration method you recommend for the S8?

I'm on HorizonROM, essentially heavily debloated stock.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Was you using any BT device ?

Charge till LED is green then unplug the cable and use calibration method from A2N app: "Real Battery Capacity in %" and tap RESET.

That ROM never worked properly, also it's no longer maintained.

I suggest to you to start from scratch, flashing latest stock ROM with ODIN then like you already know, enable OEM unlock. flash a2n twrp, wipe data and flash a2n kernel, if you are tired of bugs.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Nope i dont even have bluetooth on lol
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Even not in 16.01. (not the pre1) ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Also in 16.01 official i didnt, earphones are usb or jack so i dont know where i need it for to turn it on and use it😅
[Samsung Galaxy S8 & S8+ Cross Device Development] madhatter57:
Ok so this method doesn't change battery back to 100%, just to the real battery capacity after calibration, right?

Thanks, I'll consider that. Only thing its a somehow time consuming process especially since I'm on a Mac.

I wonder if there's a way to flash stock ROM using twrp method that will work for this kernel well?

Or maybe another ROM that people here are using. I actually never had big problems with horizon, but I'm willing to try another.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes and will go slowly down to it's real cap. It's possible that you see after a few days the same %. But it's more over to calibrate the battery gauge. It's meant after (new!) battery replacement, but can be used to recalibrate battery gauge like i said.

Yeah, of course it's annoying job, but sometimes it's not possible to workaround weird ROM bugs with kernel hacks.

So far nobody did that. But probably it's possible.

Anyway not worth it, since it's now "deprecated" Android version.

Soon we will go up.

Good luck !
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Almost 3 days and no random reboots. Can we celebrate now?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Sounds great, but it's better to fill 7 days uptime.

Please don't reboot the phone in a row for 7 days.

After that it's 99,99 % stable i would say. XD

And after 7 days uptime, post the output of "uname -r".
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I'll do it!

Edit: I reset the battery count in the A2N utility and the battery does not go beyond 100%. I should wait? I didn't want to restart the phone.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
What you did reset ? Battery charge cycle ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Battery charge cycle. It's back to normal.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I had reset it right there 😂. It's back to normal, I didn't have to restart.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer Question, does dualboot patcher works with android 9 and a2n kernel so far you know? I tried to patch the ramdisk but got a bootloop afterwards, when i wanted to make a report on their thread it was closed😅anyway reflashing kernel fixed the bootloop.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No idea about dualboot.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright kinda sad its eol, anyway then doing the hard way. just making twrp backups and app backups and wiping everything and flashing the rom i want, restoring app backup and making nandroid backup again, and when i want to switch from i have to restore one of the twrp backups😄
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
After 4 days a random reboot happened when I clicked to watch a movie on Amazon Prime video.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Hmm it isnt only me who has still random reboots etc, but luckily happens less and less with every new build😄
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Uploaded pre2 build for stability test.
[Samsung Galaxy S8 & S8+ Cross Device Development] XDA.Samsung:
Will you make it for G950W?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No, exynos only.
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
hey dev, I would like to suggest you that you should fix than dalvik cache issue. Cause whenever I update a2n kernel and wipe dalvik cache, mobile seriously gets slower than even my old galaxy grand and this continues till more than two weeks for mobile to retain it's original condition.

I assume that this issue occurs everyone who does the same process. So have a try on it too. Phone gets too slow that it gives me, "throw it on the wall" vibes, lol.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
I guess you cant fix that in kernel, only thing you can do is to unpack the boot.img in the a2n flashable zip and edit all dextopt variables to speed-profile or speed in default.prop and save it and then repack the boot.img and flashable zip and flash it, after wiping dalvik it should be faster than normally but keep it takes a while when the first boot optimalisation finishes. Also keep in mind if you do something wrong with unpacking and repacking the boot.img it causes a bootloop.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright, flashing that one afternoon
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Can you pass me the pre2 with these modifications ready?
[Samsung Galaxy S8 & S8+ Cross Device Development] God's Bro:
Hi back to the S8. Recent builds looks GOOD!
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright, i dont have one already but i make it this afternoon. 😊
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
btw i have to talk first with ace about it, becus i want to release for every releas with this modification
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
i would like to hear full procedure from you cause I'm not familiar, also it would help others in the case tho
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
well, releasing it is not a real good idea yet becus he needs to test it also before it is possible.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
its kinda too difficult to explain it, first download and extract android image kitchen from here https://xdaforums.com/t/tool-androi...kernel-ramdisk-win-android-linux-mac.2073775/ and extract the a2n kernel flashable zip with winrar and copy the boot.img from it and copy it to the android image kitchen folder. then you need to hit unpackimg.bat and it should create a folder "ramdisk" and "split_img", you need to go in the ramdisk folder and look for a file "default.prop" and open it with for example notepad++, then you need to look for everything what starts with "pm.dextop" and replace everything with the variable "speed" (apps are faster optimized on boot with duration of 10-30 mins) or "speed-profile" (apps will be optimized within 7 days when on charger) and if you got everything save the file and dont mind the error just hit save. reopen the file again to check if it saved the changes. if is everything right go back to the android image folder and hit repackimg.bat and it should create "image-new.img". delete the boot.img and rename the "image-new.img" to "boot.img". copy the new boot.img to the a2n folder and replace it with the old one. afterwards select everything and rightclick and select "add to archive" and it should open winrar. before making a archive, be sure you selected the archive format zip. choose also a nice archivename for example a2n_kernel_g950x_9.x_preXX_proppatch or a2n_kernel_g950x_9.x_DATE_proppatch ,then hit "OK" and it makes a new flashable zip. and done. move the zip file to your phone and flash it and flash magisk afterwards and be sure to clear dalvik cache and cache. but like i said the first boot for choosing everything on "speed" variable can take 10-30 or more, depends how much apps you have. hope this explains more :)
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@pranil60 👆
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Thank's, Bro! 😁
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Glad to help out!😄
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I will start testing now.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I faced a random standby reboot on prev2, I will be going back to using 16.01
[Samsung Galaxy S8 & S8+ Cross Device Development] mmxandy:
After flashing this kernel secure folder locks not working....
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
@Ryujin96 When I get to the ''unpacking'' part in android kitchen this error happens. Do you know what it could be?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I did the procedure in another way. I downloaded ES FILE EXPLORER, gave root permission, went to the "default.prop" directory and made the changes you mentioned. I don't have that slowness anymore. It looks like it worked like that. I didn't change the "First" or the "boot", I was in doubt if I should. @Ryujin96
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Tbh i dont know😅 can be the file is corrupy or something?😅

Hmm, tbh i dont think it worked becus the file gets replaced with the one out of the /boot partition when you reboot the phone. Only way to change it is to flash a boot.img with a editted default.prop. anyway i attached a editted a2n kernel with a editted prop inside. If you get issues just flash the a2n kernel from ace his ftp😊
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I've tested the following flags and they works very well:

dalvik.vm.usejitprofiles=false
pm.dexopt.first-boot=quicken
pm.dexopt.boot=quicken
pm.dexopt.install=speed
pm.dexopt.bg-dexopt=speed
pm.dexopt.ab-ota=quicken
pm.dexopt.inactive=speed
pm.dexopt.shared=speed

This will be the new default in next build.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
It might have been a false positive then. 😆
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Could you make the official version 16.01? It's the most stable and best on my phone.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright, looking forward how that works😄
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Okay, on to it. ill let you know when i got it ready.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ up

Alright time to release the 22.01.16 official & pre1 and pre2 kernel builds with new default.prop variables what @ace2nutzer tested with and worked very well. thanks for looking and testing :)

if there issues ex with the flashable zips or getting random reboots let me know, anyway all three are tested and should work on your devices without issues guys :)
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Thank you for sharing with us! 😄