yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
New Kernel & App is Up !!

Changelog

Kernel V. 2022.03.11

Fxed lags with and without zRam enabled

CPU/GPU: ondemand gov --> updated scaling logic

CPU/GPU: decreased Freq switching delay from 40 to 20 ms

I/O: increased throughput - read_ahead_kb: 32 @ 256 KB

Overall improvements (speed, responsiveness, lagfree and battery life)

A2N Kernel Control V. 4.4

RAM: added page-cluster and read_ahead_kb tunable

Updated defaults

Release info

Wiping all caches is not required if you already did that on previous release.

Happy tuning & benchmarking !!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] canka591:
I'm so excited to see this kernel in android 10 especially hades rom version. If there is a any beta process, I would be happy to participate.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
If you have some patience, sure, but in a different way. 😉
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ADAMJAMESOVILL:
Can you show me the link where i can download this kernel , i am trying to find a link here but cannot see the link for me to download this
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
@ADAMJAMESOVILL

Check again post #1, I've optimized it now as it was hard to see.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
New release is Up !!

Changelog

Kernel V. 2022.04.06

Stability fix

Improved memory management

Improved multitasking

CPU/GPU: updated DVFS driver - allowed again up to 100 °C

Compiled with -O3 - for higher speed

Enabled CONFIG_SYSVIPC - required for some emulator apps

DEX: allowed all resolutions (presets) as well for HDMI 1.4b (experimental)

USB-OTG: enabled support for HID, PRINTER & MASS_STORAGE (experimental)

Added better support for secure folder in kernel - not tested yet

(to enable it on custom ROMs with secure folder support, after you flashed this kernel and Magisk, write this simple cmd to your init.d script: "start secure_storage", save and reboot.)

A2N Kernel Control V. 4.5

CPU/GPU: DVFS max allowed 100 °C

Stability fix (kernel & app)

MISC: added MTP version changer

Improved performance (kernel & app)

Know issues: MTP version changer is broken in kernel and will be fixed soon.

Buglist - Kernel V. 2022.04.06

MTP only works properly on Samsung stock ROM.

MTP version for Android (custom ROMs) is broken - will be fixed in next build.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] btiu:
Just installed it on my Note 8 N950F, and I'm so surprised that charging voltage actually works at 3300mah. Thank you so much! Hope this gets an android 10.0 version as well, your kernel is the only thing stopping me from moving over from stock to Hades 3.0 haha
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Feardarks:
Can anyone test the Netflix app still streams HDR and HD ? most custom kernels shows L1 but Netflix still can go up to only 540p SDR.

BTW amazing work. Can't thank you enough !!! Huge upgrade from stock kernel.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] btiu:
I'm on latest kernel and stock rom.

Just tried it on Youtube (so phone resolution was set WQHD) - HDR appears on the app options but any hdr video doesn't load correctly on mine, just a green screen while audio plays...

Not sure if my netflix subscription just doesn't include HDR but I only see HD tags and that plays okay.

Also, to @ace2nutzer, not sure if you are open to implementing this but a feature in the app of programmatically/automatically setting charging speeds to be faster when the battery is low and slower when the battery has reached a certain level would be helpful :)

And would using the a2n kernel app (full version) offline be a possibility too? I usually don't have internet constantly connected to my phone, unfortunately 😅
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
HDR support is enabled in kernel:

CONFIG_SUPPORT_HDR=y

Also did you try to force a custom resolution in A2N app ?

I don't know if tit helps, as i don't have Netflix app. But works for Dex and HDMI, you can force even 4K with a cheap 3rd-party HDMI adapter !

It's already that way like you say. Max charging speed only possible while battery voltage is < 4,35 V. Then it'll hold 4,35 V till it drains only 330 mA from charger = 100 %.

Only way is to keep the app in RAM, once it passed license check.

But if it gets killed then you need again to be online sorry.

btw: later I'll upload new release:

pre-changelog:

fixed MTP / PTP / USB tethering

fixed USB-OTG driver - HDD/SSD can be read properly now

HMP: driver update (performance + battery)

btw2:

Fix for bad performance and high battery draining:

(only important for you if you are using AdAway app)

remove

ad.doubleclick.net

www.googleadservices.com

adservice.google.com

from your /system/etc/hosts file or simply flash with TWRP latest patched AdAway_hosts_patcher_g95x.zip.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] btiu:
Thanks, works for most hdr YT vids now!

Not sure if I understand you correctly. Is it possible to set 3300mA charging current from, say, 0-50%, then change to 2300mA current from say 50-80%?

and curious if an AdAway N95x variant would be possible too?

Thanks so much for all of your amazing work.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
No, sorry, but of course it's possible to do that, but please understand that i'll not add any new feature for just one user.

You can safely flash the g95x variant, it's compatible for Note8.

I'm glad that i could make so many S8 / Note8 users happy.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Feardarks:
Thanks for reply. Can you test downloaded videos on netflix app can play too ?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] btiu:
Hi, sorry for the wrong info a while ago. Actually having trouble playing anything on Netflix. Both streaming and downloads do not play (error 5.7) despite other apps showing L1 support.

I installed safetynet magisk fix and used magisk hide, so safetynet passed and device got play store certification again. But still, netflix doesn't play. It doesn't even show up in the playstore...
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Feardarks:
sorry to hear that. That's a bummer. stuck with the stock kernel again...
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Please check post #3 how to properly report issues.

You need to trigger the issue, then generate logcat & dmesg with a single tap over my a2n demo app. Finally post the logs here and i'll take a look into it.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] btiu:
I'm curious, did you have to install liboemcrypto disabler module to get 540p playback? I had to use that, which of course downgraded to L3 but at least it plays now for me too.

Gotcha! But I feel like it's not specific to your kernel. It's been a long standing issue of netflix L1 support being buggy on rooted devices.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
New build is up !!

Kernel V. 2022.04.26

USB: fixed MTP/PTP/USB-tethering connections

USB-OTG: fixed SSD/HDD connection - thanks @PORTER2002 for testing

HMP_CUSTOM: updated driver - reduced delay on task migration - fixed background tasks that was sometimes going back to BIG CPU !

Disabled stacktrace

Changed dexopt to "speed" - for quick app launch

Version Info:

If you wipe dalvik-cache, consider that first boot takes up to 30 minutes ! (due to highest app optimization)

If you have the app "AdAway" installed or the Magisk module for hosts, I suggest to uninstall it for now, and flash instead a simpler hosts file patcher (patched by me) for ads blocking. The current official hosts.txt file is buggy (I've reported the bug to the AdAway team), it contains 3 domains that are causing high CPU load, (logcat spamming like hell) thus drains more battery and reduces overall performance.

----------------------------------------------------------------------------------------------

Hmm interesting thing. So L1 serves nothing on kernel ? If so, i can trip to L3 if it's better for you guys.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] btiu:
Some (on other devices) have been lucky and got L1 to work correctly on their rooted device, so I feel like keeping it as is is still better on the slight chance it works.

My device may still currently be in RMM state lock because I cannot yet re-enable OEM unlocking under developer tools. It always reverts to unchecked after I enter the screen lock pattern. Not sure if this interferes with Netflix's root checking.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
This kernel has forced OEM unlock, hence you can't disable. This prevents accidentally turning it off, resulting in a non usable phone.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Feardarks:
yeah with that disabler netflix works but quality is pretty bad despite I have 4k plan. I'm using netflix for easy to use just tap and play / download without thinking. I'm looking for alternative because it does only works on stock kernel stock from ( with full hdr and HD support ). Im backto using stock kernel for now.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Which stock kernel do you use ?

And which ROM ?

Btw: can you please try the Netflix thing with this Stock kernel ?

It's fully patched, removed forced encryption and so on. You can flash it like an a2n kernel update without any wipes. We use this stock kernel for help with debugging.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Feardarks:
Done some test with my old smashed up note 8 (still works miraculously) Looks like it is nothing to do with the kernel (Samsung stock or custom) . problem is having root. no matter what I've tried if I have root netflix and amazon prime does not stream HDR or HD.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] btiu:
I read somewhere on xda that widevine check apparently happens at the bootloader level so as long as bootloader is unlocked, we can only play SD version.

Is it possible for you to relock bootloader while under rooted stock kernel?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Feardarks:
I didn't try that. will try when I get back from work.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
@btiu

Breaking News​

Start reading here:

https://xdaforums.com/t/kernel-9-a2...sot-high-end-2022-04-26.3875640/post-86803177
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
@Feardarks @btiu

OK guys, I've found the issue for Netflix ! - It was caused by me, sorry.

Fix:

change the following build.prop flag:

ro.config.iccc_version=iccc_disabled
to
ro.config.iccc_version=3.0

use ADB + nano over TWRP or use any build.prop editor apps, save and reboot. Wait a few minutes, check in Play Store if Netflix will re-appear again in the list, if so, Netflix should work again in Full-HD ! ... if you use the stock ROM, otherwise probably only SD resolution. lol
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Feardarks:
Stock rom + magisk hide + build prop icc thing.

Netflix appeard on play store. But still same 5.7 error.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Yeah because L1 is broken for now on rooted devices. I'm trying to patch that. In the worst case I'll switch to L3, then stream will be stable and if someone really need L1, there is a patch available for Netflix app that will force L1.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mrci2010:
hiii, i just got my note 8, im new to this and there is alot to choose from.

What is the best rom to use with this kernel to achieve best SOT and performance?

What do y'all recommend?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Hi, latest stock ROM (uninstall all apps you don't need), twrp, a2n kernel and magisk.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mrci2010:
Thanks for advice!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mrci2010:
That 10 hrs SOT screenshot is with stock firmware right? O.o
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
I can confirm (and many others too) 10 h SOT was possible with S8 with a2n kernel with max 2 - 3 years old battery. With older battery you get less SOT. Also I don't know how it's for Note8. But I aspect to have similar results. It has bigger screen but also bigger battery, so it's balanced.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mrci2010:
Thats nice. How much SOT did you have on full stock?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Didn't pay that much attention, sorry.

It was just slow and phone often overheated, so I started to build my own kernel.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mrci2010:
I cant figure out how to enable HDR

In youtube app video just frozes with audio playing
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
In YouTube only some videos supports HDR. You can see this over the usual resolutions settings. Anyway L1 is broken and on next build we will use L3.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] OSKnight:
Hello.

Since the beginning of this thread with this kernel, I have been following it and thinking about installing it. I am wondering about the security issue of using this kernel, since it is an unofficial kernel, according to the description this kernel provides better security than the stock kernel and I wonder why, since after installing this kernel, services such as Samsung KNOX, Tim etc. do not work. My second question is by The installation of this kernel is whether this kernel is stable, because if an application has to crash or the phone constantly reboots, then I would not want to install this kernel, of course I mean the default settings of this kernel, because if someone overclocks the cpu and will be unstable, no wonder that the phone will be unstable?

The last thing I think about is where the better battery life comes from, which is mentioned in the description, that with a battery in good condition, you can get up to 10 hours on the screen, can this effect be achieved by installing this kernel only and using default settings, or this effect can be achieved by enabling all possible energy savings, lowering the CPU clock, etc.?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Well, that statement was valid at the beginning of this kernel development. We was using higher security stuff, yes even without knox, tima, and selinux, but later I had to use default security level since it wasn't stable. In addition, the more security stuff is enabled in kernel config, the slower the kernel will be. Security not only depends on kernel, but also from the ROM and the used apps. e.g. highest security level in kernel will not rescue you if you use some cracked apps.

It's stable and ready for daily usage with default settings.

This is just my work and know-how over the years.

If you have enough time and some little understanding about C, you can check the source code, it has actually 393 commits upon latest stock kernel from Samsung.

Yes, with default settings.

You may get +1h SOT with some more aggressive settings, (need the pro-version app).

For instance, a new user @mrci2010 of this kernel said to me via pm:

With a2n kernel 7h ?!

For the case, you don't like it, there is a ready to flash and use stock kernel (removed forced encryption, dm-verity ..) just for fun and for comparision and debugging reasons. But so far no one prefer to use stock kernel over this.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mrci2010:
Yes, have 7hrs SOT with medium to high usage (youtube, snapchat, web browsing and some games on home wifi, gps, sync off)

So my average SOT with this kernel is 6-7hrs with a bit older battery

Also performace, after installing this kernel my Galaxy Note 8 exynos is performing way better than my Galaxy S9 exynos

I don't know how but its just way smoother and faster especially when i am multitasking, s9 can't keep up :)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
OK I've checked this issue now more carefully:

As for HDR 1080p playback issue on YouTube:

There is nothing wrong with the kernel, it's app / encoder issue.

Using another encoder may fix the issue.

The encoder isn't very well optimized for the hardware.

It uses only max. 3 threads, and phone gets very hot ... tried with stock Freq @ 100 °C DVFS... but it can't still play the video smooth, it hangs every few seconds. Use HDR 720p instead.

Edit: I don't see any point on using HDR, it just uses too much CPU power. Using VP9 codec @ 1080p runs smooth and phone stays very cool.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mrci2010:
Oh cool, how to ude VP9 instead of regular av1? (or whatever is regular one)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
If you have YouTube Vanced, check Vanced settings there you can override codec to VP9.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] OSKnight:
In the end I decided to install this kernel, I installed everything according to the instructions. I downloaded the latest twrp and installed them, then turned off the phone and immediately put it into the twrp recovery mode, I made a data backup, only parts because I had no access to / data at all, then installed the kernel and when I start the phone, I have information that my data are encrypted and I have to enter a password. Could someone help on this? @ace2nutzer
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Which kernel and recovery was you using before installing this ?

Also which twrp did you install ?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] OSKnight:
Before that, I used everything original from Samung, stock kernel, latest android 9, installed twrp twrp-3.6.1_9-0.

I downloaded this recovery from the official twrp website.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
So you was using all stock ? that means you had stock android recovery ?

If so, that's not the way to flash this kernel.

The installation on post #1 is meant for users that are already using any custom kernel, means TWRP is already properly installed with unlocked bootloader.

The installation method starting from scratch:

First enable "OEM unlock" in developer settings.

Then with ODIN, flash a twrp.tar from here. (you flashed a not tested one by me)

Then you have to wipe data in TWRP.

Then you can proceed with the instructions from post #1.

But for now, since you are locked now at boot, due to encryption...

try to flash twrp from my download site as linked. If you can mount /data, you may lucky and can do a backup of /data.

If not, there is a stock kernel in the same link, flash that if you can boot with that. Both the stock kernel and twrp that you can download from my site, are already patched, that means dm-verity and forced encryption is already patched / removed.

Edt:

@OSKnight

Anyway, if your /data is still (forced) encrypted from samsung kernel, then, in TWRP: do this: wipe ---> format data ---> "yes" (type yes) and ENTER.

This will format /data and internal sdcard wiping all apps and settings including all your data from internal sdcard. (not micro-sd) after that your phone is ready for flashing a custom kernel or custom ROM.

The ROM, /system apps, will stay on place. So you don't need to flash any new ROM if you are already on latest stock ROM.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] OSKnight:
No, we didn't understand each other. Before installing anything, twrp I had the original Samsung soft and stock kernel installed, then I checked how to install twrp and installed twrp according to the yt tutorial, i.e. I entered the settings and the OEM unlock option was turned on, then I opened the download mode and installed the twrp that I downloaded through odin , but I canceled the auto reboor and f reset time options, turned off the phone and booted to twrp recovery the first time, I did a partial data backup there because there was no access to / data and then I flashed this kernel and restarted the phone and then I got the information that data is encrypted. I do not care about data because I copied everything important to my computer beforehand. Then in twrp I restored the backup that I had made before installing the kernel, because I thought that this way I would be able to get rid of this encryption, but unfortunately not, it had the opposite effect because the phone did not turn on at all, so I downloaded the original Samsung soft from SAMMOBILE and I installed it and now my phone works, I would like to install this kernel anyway, could you help me out step by step what should I do?

EDIT:

Before restoring the backup, I did format / data and after rebooting the phone started up to the Samsung logo and after a while it restarted immediately and so on.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Alright,

in TWRP: do this: wipe ---> format data ---> "yes" (type yes) and ENTER.

This will format /data and internal sdcard wiping all apps and settings including all your data from internal sdcard. (not micro-sd) after that, power off and boot to twrp and flash a2n kernel, reboot to the system. Let it fully boot then power off and boot to twrp. Your phone is now ready for flashing a custom kernel or custom ROM.

Check post #1 for further installation method. (Magisk etc...)

The ROM, /system apps, will stay on place. So you don't need to flash any new ROM if you have already latest stock ROM.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] OSKnight:
This is not what I meant, I would like you to write step by step ( starting from twrp installation to kernel installation to get it right ) what to do when using stock rom with stock recovery and stock kernel because I had to reinstall the original soft for the phone to work.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
@OSKnight

I've updated installation method for you !

Good luck !

If there is something unclear, feel free to ask.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] TheKaptan23:
I successfully installed this kernel on Hades rom(not v3) and bought the A2N Kernel Pro application. Do I need to do anything extra for better battery life?

What are the settings we need to change from the kernel application?

edit: AdAway_hosts_patcher_g95x.zip doesn't install on TWRP. How can I install?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
Uploaded new AdAway_hosts_patcher_g95x.zip package.

Installation on Note8 should work now.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ace2nutzer:
New Release is Up !!

Changelog

Kernel V. 2022.05.13

HMP_CUSTOM: updated driver

Audio: fixed stuttering - thanks @MUNISH MONGA for report and tests

DRM switched to L3 - should fix Netflix stream

Improved stability

A2N Kernel Control V. 4.8

Debug: added "fix permissions" (useful if you use this app with other kernel manager apps)

Improved stability

Bug fixes

A2N Kernel Control V. 4.7

Improved stability

Bug fixes