yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
btw: I suggest to start here and follow instructions on how to implement it in your kernel.

Tip: you don't need to resolve rejects related to arch/arm/* since we use a 64-bit kernel, only "arch/arm64/* is relevant. So you can also ignore changes to "arch/x86/* and so on.

And yes, software development is quite time consuming job.

Good luck!

edit: it's in *.patch format, but it's the same like *.diff.

When you open the patch in your browser, click on "raw" then you get this:

"https://raw.githubusercontent.com/sleirsgoevy/exynos-kvm-patch/master/kvm.patch"
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
N

Bro if you have little bit time add the moro sound bro that will good to make the phone fully modded because only that thing i struggle to control
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Sure, if you can give me their github link for the source files i can try to add it.
[Samsung Galaxy S8 & S8+ Cross Device Development] heukpyo:
I tested the settings one by one.

But nothing has solved this problem.

My cell phone still has problems with sound and screen freezing.

If there is no problem with this kernel, is it a problem with my cell phone?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes it seems so as I don't have those issues, even not with kernel defaults.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
I dont have issues too with the r55 release, so guess there is an problem with ur phone.
[Samsung Galaxy S8 & S8+ Cross Device Development] heukpyo:
I thought there might be a problem with my phone, so I got another s8 and tested it.

But the same problem occurs in another s8.

I don't think this is a cell phone problem.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Its kinda weird indeed if it happens on the same identical phone.

Best thing u can do is generate a log with the a2n demo app and put them on here
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
OK, there are 2 options to fix this issue:

1. you wait for R56 and see if it fixed the issue.

2. you do the following to catch the issue:

You need a PC or laptop, USB cable and working ADB.

Open one terminal emulator window an run ADB in full screen mode, then record a video showing the output from the ADB screen while there is a sound issue. You repeat this for those 3 monitoring cmds:

1:

adb shell
su
top

2:

adb shell
su
cat /proc/kmsg

3:

adb shell
su
logcat | grep " E "

To exit the aboce cmds, just press "Strg + C".

When you are done, exit ADB by typing "exit" a few times till the window will close.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Question, is adb standard available on linux? Or do you need to download it like on windows or install it from apt?
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
I was curios about battery maybe that get not enough current since the phone have beast consume battery

And did you know? This phone can consume 15 watt power just for GPU

And 3 watt cpu maybe

Try with pd charger and make it to 3.5 A or 3A

In my case i use s8 plus from korean 6/128 it has same problem when play heavy game that make the battery lose of power and must use charger for backup power
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I don't remember right now. Just try it, otherwise try to install it with "sudo apt-get install adb" or run "sudo synaptic" to use GUI and search for adb.
[Samsung Galaxy S8 & S8+ Cross Device Development] heukpyo:
Is this how we record?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes, very good! Now try to record at the same time the audio from the phone. While the sound fails, you should see something weird in one of the 2 logs or on the CPU load. Try to record it, then i'll see if I see what's going wrong.
[Samsung Galaxy S8 & S8+ Cross Device Development] heukpyo:
It's a video where the sound of the rr3 game is recorded together.

Is this the right way to do it?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer Question, adding support for newer android versions in kernel is depended on phone & linux kernel source version? So yes then i need to have put in the right kernel version source and starting from scratch?
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Bro Here link for moro sound control it works in hktweaks
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
Something's phish after just month since battery replacement.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
This is a proof that your battery is defective or it was never replaced, or if replaced it was just still an old battery, because see my real mAh capacity for still original battery that is now a few years old with 661 charge cycles. In fact even the Android device care app correctly detected that your battery is broken and you should contact a Samsung support center for fixing this.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
alright thanks, i'll try that to get it working on linux.

thanks, i'll look in to it and try to merge it in the kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No, you only need to check on Android developers site what are the kernel requirements from Android 9 @ 10. Sometimes you only need to enable it in defconfig and if it's missing you need to do a backport for the required driver. Often Google itself provides a patch that you can add it like the moro sound patch.

Just see what are the requirements and enable / add the patches. Then you need to update ramdisk. Basically you need the boot-scripts from any Android 10 ROM. In addition if it'll not boot, you may need to update mali drivers in kernel.

Yeah, that's all, since you are a beginner, that'll be very hard for you.

You need a lot of patience, then that could work.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
ah okay, that clears things up lol, its not something i would do rn maybe in future. Anyways i added moro sound control by patching and the kvm patch and removed f2fs and nfs and comitted and pushed to my repo besides kvm patch. anyways something is wrong with the a2n kernel source? becus it throws errors when i try to build it since i updated my source with your source, even with just cloning clean from your source it throws errors. Or did i miss something like i need a newer compiler or something since your repo is upgraded?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
On your repo:

Revert the 4.4.302 commit:

git revert 925ecbb256198d515a3b06e6fb5787d0cf216d89

Because it's not buildable for now since it needs a commit that should fix all build errors, didn't had time to do it, but I'd still push it to git as an backup, since my HDD is quite old now.

As for the moro sound:

Are you really sure that you did it right? The original commit has more changed files and much more changed lines of code. So I don't think that it'll work or compile at all.

One last thing:

while it's ok to cherry-pick commits from other developers, you always should need to keep the credits to the original autor. You can still use the "patch -p 1 -i 0.patch -r rejects" method, but when you commit, add at least the original autor or git link to the commit.

Another also nice way ist to generate a *.patch patch, instead a *.diff patch.

Then it'll write proper commit message with the original autor. (Like nox did)

To apply such patch, the cmd is even more easier:

git am 0.patch

If no conflicts, it'll add and commit the patch. Otherwise follow the error message to see how to fix the source files... then use "git add ." And then "git am --continue" or something like that, I don't know exactly right now as I'm only on the phone online right now. Anyway you will see the exact cmds on your terminal emulator, so don't worry.

Note:

Sometimes when you add patches, it'll also add new files. Those new files are untracked, so even if you commit with the "-am' option, it'll still not add the new files. To fix it, before you commit the patch, use "git add .".
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Maybe i give wrong commit or something because i think

This the original moro sound or just in the app ?

Here link
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Oh well, that explains a lot then😂 anyway i revert that one commit (if it lets me). Btw its a good idea to buy a ssd, it saves a lot in time too and gives more performance than a slow mechanical disk. My laptop has 2 m.2 ssds and a regular sata ssd so im not bottlenecked by that😄

Not sure if im did it right but i wasnt done either with it, anyway i add more commits from it. Same with manually patching from kvm patch and was kinda confused about it becus when i needed to add or remove lines and where, but when i got used to it it got easier. Anyway if im adding commits by patching its fine if i add the orginal dev name in a explain line above it or something or in a commit to push it to my rep? Ah okay i can try it that way too it saves me also for adding the orginal author of it😅

Yea i had that before when i changed the build and edit scripts names becus it was kinda long to type it everytime lol, but i add them manually and commited them. Also for the cpio thing, it is fixed now and doesnt give the warnings anymore.

Other one was fine, it was from the kernel source, but this one is feom the app indeed. But im gonna look for more commits and adding them becus its not complete yet
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
@ace2nutzer for some reason S8 refuses to get undervolt settings from ADB through USB. Dmesg states "store_cpu_big_volt" a2n: unprivileged access!
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
You need to unlock kernel settings by starting a2n app.
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
Dude I did already and I tried to double check already too ☠️

I had to reboot because I wanted to remove Zram. Guess I'll reboot again
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
Bro it's still not working ☠️☠️☠️☠️☠️☠️

I'll try from phone Terminal

Even from phone Terminal it's not working. A2N Kernel app starts up and all wtf happend :coffee:☠️
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
OK but keep in mind that you can only unlock latest kernel with latest a2n app. Every other combination will not unlock kernel.

In addition, if you try to change 3 a2n settings without license validation, then kernel is locked for ever. To fix it you need to reboot.
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
I'm pretty damn sure I'm on latest release. I checked with A2N Kernel manager, it says I'm on latest Kernel version
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Therefore make sure to put you init.d scripts in init.d.a2n ... to avoid kernel locking at boot.

@TechNoobForSale

This is very likely the reason.

Move all scripts from init.d to init.d.a2n, that will solve the issue.
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
I tried to change some settings through A2N Kernel Manager app such as CPU frequencies

The changes don't apply ☠️☠️☠️☠️☠️☠️☠️☠️

I'll reboot once again
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
Fresh boot and settings legit are not applying even if I use the app.

I'll try to flash kernel again
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
I'll check this out once the thing is done optimizing apps
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
After reflashing Kernel it's working. Or so it seems.

I noticed however that battery temp is now a null reading. @ace2nutzer must be a devcheck issue though.

Time to reboot yet again!

Battery reading is broken on Devcheck monitor but works within the app. Odd. Kernel settings apply.

Yep everything works again. I don't know what the hell had happened.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@TechNoobForSale

Yes that can be the culprit as well if any other app try to set kernel settings before a2n app isn't ready.

That's why I don't recommend to install 3rd-party kernel manager apps.

One more interesting thing that all of you didn't know so far why sometimes it fixes the issue after wiping dalvik-cache is simply, it'll change the order of the apps on boot that apply settings on boot. Afrer some time maybe the order will change and then issues start again. This happens randomly. The only way to avoid this is to make sure that other kernel app and init.d scripts starts to run only when a2n app is done applying setting. The safe way for users scripts is like I said init.d.a2n folder and nothing else.
[Samsung Galaxy S8 & S8+ Cross Device Development] heukpyo:
Hello

I wonder if you have any plans to update this kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Sure I'm working on new build, but it'll be still only for Android 9.

It'll have big improvements in performance and it'll be upstreamed to latest Linux 4.4.302.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Im working too on adding stuff eg moro sound and trying to add kvm, but so far i readed on here https://github.com/boerck/android_kernel_samsung_universal8895_kvm/issues/1

Knox needs to patched too and the code is different with s8 s8+ and note so yea, but i kinda hope if i take one of the repos as patch and patch the kernel with it it & build and flash hopefully kvm starts to work properly but i doubt it. But i guess i takes some reverts in the kernel and apply a other patch it maybe starts to work but yea🤷‍♂️ but it takes a while becus i get busy in reallife or i get a migraine and cant do anything then lol
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@Ryujin96

You added the moro sound patch properly. It's only one commit.

But you didn't commit it properly properly because you didn't add the 2 new files to your local git therefore git didn't upload them. You should see it with "git status" you should see at least 2 files from the moro commit.

Anyway it's easy to fix.

You don't need to revert commits .. more cleaner way is to use git reset --hard commit.

Then you do again or you can even cherry-pick your own commits from github. So the ones that you want to use. So again... you can go back like this:

git clean -d -f

git reset --hard 57faeee9769a327acf83b307fb6226b0a40326ed

git cherry-pick 07cb03fa9e03f09ebb13be4dab9ba8c293aac633

git cherry-pick 515d7fd036230ad87d8bcdae02274d15375309fd

The last 2 commits you may get errors ... just correct them manually in defconfig file...

Then cherry pick your moro commit:

git cherry-pick 093ab2e807fdb8be32b717f2309ade4919286d74

Now add the 2 missing files by hand ... just use cooy paste...

Then

git add .

# here you have the chance to edit the commit message as well ... so you can add something like "credits @ ..."

git commit --amend

git cherry-pick 38df3f74efbb03b54261baf426646f6c68578cc9

git cherry-pick c42b037a6c7293f7a487972585b716c24bf3973d

git push -f

This should compile without errors, moro sound should work.

If you don't know how to fix some errors, just post it here.
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
@Ryujin96 you added the moro sound :v

Can i taste it hehe becus only moro sound can boost the earpiece until goes boom but my project it make my own tab s8 plus :v
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Yea i did, but i have to revert first the linux 4.4.111 to 4.4.302 merge from ace his repo becus its not ready and kinda broken rn, else i cant compile becus i get compile errors😅 but i have to revert more things becus i didnt commit correctly becus i didnt add the orginal author of it.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yeah that upstream commit has 6,736 changed files with 102,704 additions and 47,771 deletions.... do you really expect that would compile without any errors? lol

Is it really so hard to make copy paste? - I gave you all cmds ...

Or should I explain it better? Noob style?

BECUS I've that strange feeling that you will mess it up once again.

Anyway it's OK, making mistakes will make you better and learn from it.

Try to fix your local repo, then force push "git push -f" and I'll check if it's right then.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Well that upstream commit i didnt apply as a patch but i synced my rep with yours from the webpage itself. But yea thought it would work lol.

No its not that hard, but yea. Like applying eg kvm patch and some things fails so i have to add them manually can be hard becus looking up the right line in the coding and some things arent sometimes the same what the pstch file says. Anyways its just getting used to it thats all😅

But first fixing my repo and add the commits back what i did. And make a local backup too before it breaks again.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes I know, you did it right, you just merged my latest commits into your fork. After that you need to run "git fetch" to our local repo and it'll update your local repo. But for now latest code base is not ready for compilation.

Yeah that's true ... it's quite hard and annoying job sometimes.

Just copy one line of code without the "+" or "-" near the line that you should add or remove and then in the source file just use the search feature like "Strg + F" and paste the line of code, if it doesn't find it, grab another line .... till you find and then try to understand where is the right place to patch the lines. And yes, it's often different ... and that's why it fails to auto-patch!

Yeah, it's a good exercise indeed.

Hmm, it's usually not needed to backup every time your local kernel source if you use git properly. Also because that will kill your SSD XD.

The best thing from git is that you have backup and commit history on both local and web all the time available.
[Samsung Galaxy S8 & S8+ Cross Device Development] adrimixfire:
Is Netflix working in HD?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Nope, becus you need to have widevine drm in L1 and its not rlly possible with root / unlocked bootloader and custom kernel so it changes to L3 state, but you can watch netflix still in 480p or 720p idk, but only if you bypassed safety net and your device is certificied in google play. But i know if you make your phone 100% stock like reflashing official samsung stock rom and stock kernel without root it works again in L1 mode so you can high quality again on netflix.

@ace2nutzer correct me if im wrong lol
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
In every custom kernel you will have L3.

For Full-HD (L1) you should flash the stock kernel. in addition:

rename

"/system/vendor/lib/liboemcrypto.so.bak"

in

"/system/vendor/lib/liboemcrypto.so");

And probably it'll only work on Samsung ROM with TWRP.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
So far i know roms not based on stock roms dont work nicely with netflix
[Samsung Galaxy S8 & S8+ Cross Device Development] adrimixfire:
Thanks to both of you.

Do I need to make a backup of LiboemCrypto before installing a new kernel?

How does the battery work with Android 9 stock + A2N and undervolting?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No, the lib will be only renamed (disabled) with A2N and re-enabled if if flash a stock kernel from my download site.

Note: the current stock kernel will not do this automatically, so you need to rename yourself, but I'll update patched version together with new build.

Depends on your settings and usage.

Also it'll not fix a broken or old battery, lol.
[Samsung Galaxy S8 & S8+ Cross Device Development] Nakashima Taiki:
No.

Will you put moro like sound control on the next update?
[Samsung Galaxy S8 & S8+ Cross Device Development] khanhbang2013:
Let me ask, the higher the ram, the better?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No, sorry.

what do you mean ?
[Samsung Galaxy S8 & S8+ Cross Device Development] kamoto51:
hello I need if someone can help me set up a2k control of an s8 + for fast charging, longer battery life and more thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] monoik:
Would it be possible to make a switch to totally roll back all of the tweaks and changes you do for the charging and revert to stock behavior? The current version slow charges (450ma) on both my PD powerbank and my 65W laptop charger.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Ahh good to know ! - No, but it's on my to-do list to fix it.

btw it looks like that latest A2N App V1.9 doesn't work well with custom ROMs ? (RAM menu crash)

i've appended a test version, could you guys with RAM menu crashes test if it's OK with this test version ?

Just download and install the app over the current one.

Fix: Uninstall the App and re-install it again or simply wipe data of the App.
[Samsung Galaxy S8 & S8+ Cross Device Development] monoik:
For me clearing the app data fixed it
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
So the Version from Play Store is fine ???
[Samsung Galaxy S8 & S8+ Cross Device Development] khanhbang2013:
I mean, how much should Ram be suitable for in this range?
[Samsung Galaxy S8 & S8+ Cross Device Development] khanhbang2013:
This new version seems to be delayed for 1 to 2 seconds, when I return to my home, the feeling of delay is about that.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
lol for what do u need franco kernel manager if u've the full version of a2n kernel control ?

In my App u can choose for zRam size:

25% = 919 MB

50% = 1847 MB

75% = 2775 MB

The absolutely max would be 100% = 3700 MB of zram ... but that would be an overkill and your phone will be quite slow.

Again: only enable zRam if u can face an improvement on Multitasking. Otherwise set it as lowest possible or even better keep disabled (0%).

As for delay when return to the home screen, read what i've posted in post #543 about extra_free_kbytes and report which size worked best for you.

AFAIK Secure folder isn't supported at all on custom kernels. I've tested it on both patched stock kernel + this latest kernel and it doesn't work at all ... because of KNOX disabled stuff. So i think u mean something else.
[Samsung Galaxy S8 & S8+ Cross Device Development] khanhbang2013:
Yes, thank bro!
[Samsung Galaxy S8 & S8+ Cross Device Development] Sp33dway:
For me everything now works perfect. I made wipe data after installing test version and RAM manage on Alexis ROM works now. Thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] sandert98:
Just installed the updated kernel, seems like it works pretty well! Thanks :) I will post an update in a few days how it works on longer term.

Quick question. Is the device encryption fixed? I don't want to wipe my device again tbh, so just asking before I test it :')
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes it's fixed, i'd just forgot to write it in changelog.
[Samsung Galaxy S8 & S8+ Cross Device Development] destan4503:
call wifi does not work
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
It works perfectly on stock ROM + A2N Kernel.

Please check the FAQ before posting bugs. ;)
[Samsung Galaxy S8 & S8+ Cross Device Development] destan4503:
i am following on hades rom its does not work
[Samsung Galaxy S8 & S8+ Cross Device Development] dorjan1976:
Will be nice to create a backup of settings XML file regards