yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yeah, it's related to memory management, or better say to the dalvik heap. Check installation notes, i was suggesting to delete some flags.

Probably you need to readd them:

dalvik.vm.heapstartsize=8m
dalvik.vm.heapminfree=2m
dalvik.vm.heapmaxfree=8m

To your build.prop.

If it doesn't fix the issue, you should remove them again.

No need to wipe dalvik cache for this little change.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
I readded it, but those werent in the build prop so guess the dev who modded the rom removed them. But im trying it out now if it is fixed now.
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Report random reboot dev when using online shop tokopedia

May you can check it

My settings is balanced
[Samsung Galaxy S8 & S8+ Cross Device Development] Zakles:
developer, the core of the latest version is just super. but wired headphones are not detected. the sound goes through the speaker. on previous versions everything was fine.
[Samsung Galaxy S8 & S8+ Cross Device Development] madhatter57:
Isn't there a way to apply settings automatically after boot whitout having to start the app manually each time?
[Samsung Galaxy S8 & S8+ Cross Device Development] samsungFanboy85:
What rom this will work ?

Im on Q so have to wipe to get back on 9 but i dont want full Samsung stock 9 come on...
[Samsung Galaxy S8 & S8+ Cross Device Development] samsungFanboy85:
What rom this work?
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Only android 9 whatever it is will work but will fully working on samsung stock or mod android 9

Any android 9 rom but not at all rom can work will fully work on samsung stock or mod android 9
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Did you flash also latest twrp from my FTP before flashing kernel ?

Uncheck moisture detection, before you plug headphones.

It's a new bug introduced with moisture detection hack.

I'll fix it in next update.

Actually no way, but hopefully on next update.
[Samsung Galaxy S8 & S8+ Cross Device Development] madhatter57:
Looking forward to that, staying on 3.5 version for now...

Why is it not possible to configure a2n kernel with other managers like hktweaks?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Okay, so you use old buggy and unstable kernel for now ? Because latest kernel doesn't work with 3.5.

Why you ever want this if you have already the full version ? I'm missing something in a2n app, that is available in other managers ?
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
Kernel performance is great. But one thing got itchy that wireless charging is continuously pausing and starting when I keep mobile on charger also slow charging with fast charger..

And both of the problems would be solved if I just restart the phone with charger connected.
[Samsung Galaxy S8 & S8+ Cross Device Development] Grainroot:
[Problem report]

Dex connection unstable

The problem is as follows:

When the a2n kernel is installed, Dex cannot be connected, and when I return to the original kernel, Dex is connected immediately.

I want to use Dex with the a2n kernel installed.

(because i can improve dex performance by overclocking cpu)
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Umm no i will try you advice thx dev
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer hi dev, i getting random that an app is crashing after 1 day or longer without reboot, happens mostly with google playstore or a other app and when i reboot my phone it is solved for some days, it happens rarely but is kinda annoying if it happens. Dont know if it is something to do with the kernel but i let you know about it. Besides that everything runs smootly without a random reboot or earlier issues.
[Samsung Galaxy S8 & S8+ Cross Device Development] Raidexen:
I had random reboot while viewing notifications. Using power save profile, zRam size 60% and LMK 256MB.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer random reboot happend when on screen off.

Lmk 256

Zram 60%
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You need to increase ! "AC current max" and "max charging temperature", personally i use 2000 or 2200 with 45 °C max.

I can't test Dex, sorry, but maybe something to do with moisture detection hack ? Check if it's checked in the app and just uncheck it, it's buggy for now.

No problem. So far it's stable yet ?

To remember: you need to flash latest twrp from my FTP server.

Otherwise everytime you reboot to the system from twrp, you will end up with RAM screwed up.

Therefore flash twrp with a2n kernel inside, or if you don't want to change recovery, you can also try to power off the phone if you was in recovery. instead to use the "reboot to system" button.
[Samsung Galaxy S8 & S8+ Cross Device Development] arjunkumariitg:
Hi, Can this kernel be flashed on AOSP ROM?
[Samsung Galaxy S8 & S8+ Cross Device Development] Besdensaa:
@ace2nutzer

Please make it possible to use the "a2n" app without magisk
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Okay, but already did that. I flashed first the twrp from your ftp, rebooted, and then flashed the kernel and cleared cache/dalvik cache. After that im not been in twrp.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Else i try with reflashing the rom with your twrp and reflashing your kernel again, maybe something gets ****ed up from installing from the normal twrp.
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
worked👍 thanks again
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
and yeah I learned that setting wireless charger current to 2200 charges as fast as cable can I keep this setting or it's risky
[Samsung Galaxy S8 & S8+ Cross Device Development] xperia modder:
Been having random reboots on latest version i saw on one reply that my problem might be that i didnt have the optimised twrp but then i installed it and reinstalled the kernel cleared cache and art cache , now the phone rebooted and before i can get the log it rebooted again and got this one's log
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Okay, later i'll check your log.

For me so far 0 issues with latest release.

No, that's not needed.

No idea, it's experimental since i don't have datasheet for this hardware.

Also i don't have any wireless chargers. In theory it should be safe. Since we don't allow temps over 45 °C for all charging parts.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Okay, i hope its not again an kernel issue, but ill wait it what you can find in the kernel log.
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
well I actually found out that 1800 to 2000 is good cause over 2100 it reaches temperature and gives annoying sound with warning notification pausing the charging
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@pranil60

Yeah, is it with a fan cooler ?

So you tested with the max 45 °C ?

You can get better results with active fan cooler.
[Samsung Galaxy S8 & S8+ Cross Device Development] white5pirit:
Looking excellent. 👀

Is there any compatibility issues with DeluxeRom? I'm not sure if it's my fault or the kernel doing kernel things, but on DeluxeROM with Work profile enabled through Island & root, it seems to reboot a lot, and there were issues with rebooting when changing the USB mode to file transfer from the default charging only.

I would prefer this over DeluxeRom's kernel I think 🤔
[Samsung Galaxy S8 & S8+ Cross Device Development] Raidexen:
I was using your version of TWRP, but yesterday I uploaded TWRP from your FTP server to my phone just in case and cleared cache. Today I had another random reboot while opening Facebook
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Again random reboot when screen off, trying now with 0% zram, just in case. Let you know if im 1 or more days stable with 0%
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
This kernel made for stock rom but if you want try other custom rom you can try may its have many bug but not all rom for stock rom that will stable
[Samsung Galaxy S8 & S8+ Cross Device Development] Besdensaa:
ace2nutzer

Please cancel the need for MAGISK :(
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
It cant, you need root for applying modifications.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer i found out if you set zram 0% and reboot it stays on 0% but if you reboot again it turns on again on a random % value.
[Samsung Galaxy S8 & S8+ Cross Device Development] Besdensaa:
No. MAGISK is not required for changes
[Samsung Galaxy S8 & S8+ Cross Device Development] Besdensaa:
@ace2nutzer

If you can tell me how to increase the charging speed In the NX KERNEL :(

I could not find the appropriate code
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You guys need to flash latest twrp that was uploaded together with latest kernel. Then reboot to recovery, flash a2n kernel, wipe cache, wipe dalvik and everything is fine. I still didn't face reboots or app crashes. Only issue i'm facing so far is that an foreground app gets broken when coming from deep sleep. Will fix it later.

Why ? - This app can't work properly without root.

Nope, check again after few minutes then it's right. Kernel default is 30 % and if you set something else than 30 %, it'll resize .. and this takes a few minutes, because it's just a single thread and can't use all 8 cores.

Why you want that if you have already the premium a2n app ?

You can try to search in /sys/class or something like that.

But even if you find it, it'll not work as good as it does in this kernel because of missing patches for proper removal of countless of restrictions.
[Samsung Galaxy S8 & S8+ Cross Device Development] rostifaner:
@ace2nutzer Hi bro! I really appreciate your work and thanks for the latest huge update!

I also noticed random reboot is still here, at night when phone been in deep sleep and second when I used Facebook feed.

Here is a .zip with logcat, kmsg and my build.prop. Also noticed some phone freezing for a ~5 seconds when I use YT or FB or Inst.

All installation was with your recommendation and with latest twrp.
[Samsung Galaxy S8 & S8+ Cross Device Development] Besdensaa:
I bought the a2n app but I do not want to ROOT sorry :(

Hopefully ROOT will no longer be mandatory

More specifically if you can
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer Yea make sense for me then that it loads automaticly the standard values on boot and when loading the app it loads the configured values from the app. Does it btw matter if kernel was flashed first and then flashed your latest twrp? Becus thats the order how did it. Kernel flash, twrp flash and wiping cache & dalvik. Btw 24 hour stable with 0% zram.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Hmm i'm sorry .. but why are you so scared about root ?

Using ROOT with latest Magisk Manager (with tapjacking-protection enabled) is quite safe. I've never heard that someone had any bad consequences. You will still have a "certified device" in Google Play and SafetyNet will still pass. (with "Fake Enforce" enabled in A2N Demo App.)

Sorry, but it was just an idea / hint. I've never tried by myself. I just guess maybe it's there.

All right, the only important thing is to reboot to recovery with the new flashed twrp before you finally reboot to Android.
[Samsung Galaxy S8 & S8+ Cross Device Development] Besdensaa:
I for example had a problem with an app that also recognized ROOT permissions In the system

I think it should be voluntary, But of course recommended a ROOT :)
[Samsung Galaxy S8 & S8+ Cross Device Development] tarikkaya:
ace2nutzer kvm version add plss
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Then wait for Update, it'll be even better ;)

I suggest to wait for Update, then maybe works, (but no warranty because it's tested and optimized for Stock ROM)

Hi, u don't check my GitHub ? :o

https://github.com/ace2nutzer/Samsu...mmit/97b5c0039342a4b29a1b39ba440728f61e938215

Wait for Update ...
[Samsung Galaxy S8 & S8+ Cross Device Development] kamoto51:
the new version can be used in room EclipseSTOCK v9.1
[Samsung Galaxy S8 & S8+ Cross Device Development] keyboardhouse:
yes I downloaded it on google play store

cannot wait to see whats on the next update

hope it getting more stable and powerful
[Samsung Galaxy S8 & S8+ Cross Device Development] tarikkaya:
ace2nutzer I can't create kernel. now i am trying to install windows using tcg accelerator. too slow please kvm compile a simple kernel? zip version

I really look at all the resources. But I can't.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Kernel Version 20191114 and App V1.5 for ultimate performance

Changelog

Kernel 20191114

Fixed stability + performance issues from previous Version

Charger Control: set AC / WC current 1200 @ 1500 mA by default

Updated kernel config

Enabled CONFIG_NETFILTER_XT_TARGET_NFLOG and CONFIG_NETFILTER_XT_TARGET_LOG to support Firewalls

Optimized CPU/GPU Governor

Disabled input booster by default - but it can be enabled in userspace (e.g. over scripts or App)

Re-enabled HMP Driver - but this time patched to finally work PROPERLY :o

Added KVM Support - (low-level VM support for max performance)

Optimized zRam - max_compression_streams = 4 @ 8

Optimized memory management

Improved performance and battery life

More smoothly and more responsive

Extras:

Uploaded also twrp recovery including this kernel version for S8 / S8+

Uploaded also patched stock kernel - Fixed Camera

A2N Kernel Control V1.5

Power: AC / WC current 1200 @ 1500 mA by default

Removed unsafe Frequencies Steps

Updated defaults and strings

GPU: added min Freq control

Screen: added input booster control (Freq and time)

Flash and enjoy extreme performance :cool:

PS: attached screenshots was made with this latest A2N Kernel on Stock ROM.

Also u can find latest Demo App V1.5 for the case that it didn't install automatically.

INFO: The benchmark results are made with stock CPU/GPU Frequencies.
[Samsung Galaxy S8 & S8+ Cross Device Development] Nakashima Taiki:
[MENTION=5840412]ace2nutzer[/MENTION]. Will you include support for moro sound control like hades kernel?
[Samsung Galaxy S8 & S8+ Cross Device Development] tarikkaya:
[MENTION=5840412]ace2nutzer[/MENTION]

android terminal

#su

# ls /dev/kvm

ls: cannot access /dev/kvm: No such file or directory

linuxdeploy

virt-manager

Could not access KVM kernel module: Permission denied

failed to initialize KVM: Permission denied

No accelerator found!

android terminal

#su

#modprobe kvm-intel

#modprobe kvm-amd

/etc/modprobe.conf no such file or directory
[Samsung Galaxy S8 & S8+ Cross Device Development] RickyCabj:
download kernel zip please?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
It's on Post #1. But i've to admit it's hard to see, i'll make it better.

There u go:

http://xda.mister-freeze.eu/XDA-files/ace2nutzer/

[MENTION=1847289]tarikkaya[/MENTION]

What are u trying to do ?

Our Phone is ARM64 and not amd or intel.

There's no KVM module, the KVM Support is built-in.

We don't have neither amd vt acceleration nor intel vt Support.

Try some Apps instead for QEMU.

Enable zRam and try again.
[Samsung Galaxy S8 & S8+ Cross Device Development] tarikkaya:
thx sorry

Can you please take a look at a topic I'm following?

https://github.com/limboemu/limbo/wiki/KVM

Step 2

Once Android boots up open the android terminal and make sure you have the device file /dev/kvm exists and has appropriate file permissions:

ls /dev/kvm

chmod 666 /dev/kvm

known application.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
The Kernel options mentioned in the Wiki are all enabled.

So i've no clue why there's no kvm device file.

U can ask the Guy if he ever tested it successfully, since the how-to seems to be more tested for Android that's running on x86 Platform. (which is amd or intel cpu)
[Samsung Galaxy S8 & S8+ Cross Device Development] RickyCabj:
Sorry for my language, I'm from Argentina. I have some questions. With which rom does this kernel work better? , stock ?, in addition, there is some function of the input lag in applications, for example what they take to open, the lag in multitasking, etc. And I'm going to buy the kernel modifier, what parameters do you recommend me to modify to have the best performance and a screen usage of at least 5 hours?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes. :)

I don't have such lags, it works perfectly with kernel defaults. So probably it's caused by 3rd-party Kernel manager apps.

I do suggest to use only the original one that comes with the kernel. If u need some new kernel tuning option that it's missing, ask if it makes sense to add it. In General i've only added options that are worth it to change on user basis. So the missing options are already set to its best in kernel by default, no need to change.

Usually "Profile" ---> "Performance" (but it's buggy for now, i'm working on it, so keep "Balanced" for now)

"Screen" ---> "Use Input Booster" ---> set 1690 MHz for boost freq ---> input booster time @ 1500 ms.

Optional u can also test if it's better with zRam enabled (misc ---> zRam)

But the most important thing: Use stock ROM, and then uninstall all 3rd-party kernel manager apps and don't use weird init.d scripts unless u really know what the script do. If u're unsure if some script is useful or not, just post it and i'll analyze it, giving u feedback if it's good or not.
[Samsung Galaxy S8 & S8+ Cross Device Development] Nouman Warraich:
my phone heated up and acted so awkwardly
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
During the use of YouTube app my Phone also heated up ... so far i don't know the reason ... since the Phone wasn't connected to ADB :)

But fortunately it happended only one time so far, next time i'll connect to ADB and i'll see what's going on behind our back.

Next build Performance Profile will be fixed + HMP Driver optimizations for the better performance or battery life ... don't know how i'll solve it for now.

Maybe i'll add some more tunabled to adjust Performance / Battery life ...

CPU / GPU Governor is fine, only the HMP driver needs some fine tuning. But at least itsn't buggy anymore... (was samsung bug)

btw: with that latest kernel, even it's actually not fully optimized the HMP driver .. i was able to use YouTube for 9:40h SOT with just one charge ... this is amazing.
[Samsung Galaxy S8 & S8+ Cross Device Development] Krawzer:
With the stock configs? Since we cant change things without the app :p
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes with Kernel defaults.

When u install the Full Version of the App it'll change nothing .. the App default Settings = Kernel Settings.

Anyway, because XDA is a good Community, i've decided to provide the Full Version completely for Free.

U still can do a Donation if u think it's worth it.

Check Post #3 for more informations.
[Samsung Galaxy S8 & S8+ Cross Device Development] Krawzer:
I'll give it a try using a stock base rom and report back :good:

Edit: Unfortunately I was not able to use the kernel, tried it on Hari Rom and the phone got super hot right from the start, battery drained like crazy and the phone was acting weird, maybe an incompatibility with the ROM? Well, I may try it again on full stock ROM and see how it goes later. Anyways, thanks for the work, looking forward to it.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Thanks for testing ! - Before u spend time for installing the stock rom, i do suggest to wait for the Update. I not 100% sure, but it believe that the heat issue is fixed and overclocking will be stable + fast. But if it'll still not work fine for non stock roms, then please try with stock rom.

The fixed kernel will be available in 1 - 2 hours.. working hard on it.
[Samsung Galaxy S8 & S8+ Cross Device Development] Adbnpk2013:
Hello dev.

Been using the latest verison of kernal , with 60% zram and stock rom and haven't experienced any random reboots till now. Kernal is fluid and smooth.

One issue i am face is battry drain when phone is in sleep. To put it in numbers , overnight the battery drains about 30 to 35 percent. Further battery life is really poor for me , as i am keeping the kernal at balance profile but still i am getting max 3 to 3.5 hours of SOT. Battery health is 85%.

Any thought about on it will be appropriated.
[Samsung Galaxy S8 & S8+ Cross Device Development] ksant0s:
@ace2nutzer where can i find latest twrp from you? I checked your FTP and i only found twrp 3.3.1-1.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer which setting do you use for lmk/zram?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Thats the one u need to flash
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Can you please post the link to this app ? How to reproduce ? I see the issue already after starting the app ?

I'm sorry, but root requirement will stay for ever. I didn't add it just for fun.

I'm fine with defaults there.

You need to check upload time

This is the right version for Android 9.

But the most important thing is that recovery runs with the same kernel that you will use for Android.

On next build i'll try to flash kernel and twrp automatically, since it's painful.

Over 30 % overnight is not normal, normal is 1 - 2 %. There is a problem with your phone.

Install betterbatterystats to see what is draining those 30 % in deep sleep.
[Samsung Galaxy S8 & S8+ Cross Device Development] xperia modder:
Bro , root is a privilege for the user to act as system admin and change/modify stuff in the system where normaly you cant because wthout root(magisk/super su) gives u that privilege or permission , thus making any modification on any kernel a2n or nx kernel in your situation is impossible without root , that's why u need root to run the kernel app or use hktweaks for example on nx kernel , only way for you to modify the kernel's sertings without root is basically getting the source code , edit it and compile it and install it on your phone.

Since u even installed nx kernel that means you're half rooted since it's a custom kernel after all. Please refrain from asking weird questions cuz what you're saying is like can i have a lamborghini motor in my car with no gas pedal, without root u are gonna have to stay with the kernel's default settings which is pretty good already for every day usage
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
That's right, even without flashing Magisk, your phone is rooted, at least in twrp recovery.
[Samsung Galaxy S8 & S8+ Cross Device Development] rostifaner:
@ace2nutzer here is another reboot, just watching YT. Btw do I need to delete these lines when I want to use exynos-m2 or with m1 also?

dalvik.vm.heapstartsize=8m
dalvik.vm.heapminfree=2m
dalvik.vm.heapmaxfree=8m
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
No is not needed, you can still remove those lines so youre rom is more optimized with this kernel but is not required, i have those lines becus i have some weird memory managment glitches.
[Samsung Galaxy S8 & S8+ Cross Device Development] rostifaner:
Can you send me your build.prop?

A u also have random reboots?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer it not possible to use a build.prop from someone who uses a different rom? Guess its not gonna work out without weird behavior or big problems?
[Samsung Galaxy S8 & S8+ Cross Device Development] rostifaner:
Lol I know bro, its not for using just to compare some lines
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Thought so😅 well i uploading mine
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Oh well, file extension isnt supported @rostifaner
[Samsung Galaxy S8 & S8+ Cross Device Development] rostifaner:
Just add to .zip
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Here you go @rostifaner