yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
So it's been four months since the latest release and I'd like to announce some improvements that had been done so far

A brand new scheduling method supporting 32-bit and 64-bit task scheduling

A few scheduler fixes for overall stability

Gaming tweaks for GPU (yes, I don't and never need CPU/GPU overclocking for this)

F2FS support (been testing this for quite a long time so far)

Apart from the new changes, there are fixes done for sure like earpiece issue on latest stock (which is very simple without doing source merge)
[Samsung Galaxy S8 & S8+ Cross Device Development] Leo222:
Hi, is there a link to download the latest version. Since I don't have a telegram. Thank you!
[Samsung Galaxy S8 & S8+ Cross Device Development] igalmarino:
Telegram does not let me join the group. It keep saying that the group does not exists
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
You probably got banned by the bot due to not doing confirmation. Ping me your username so I could remove your account from blacklist
[Samsung Galaxy S8 & S8+ Cross Device Development] PopaStefanx:
Also here think got banned "stexvp" my telegram username
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
done
[Samsung Galaxy S8 & S8+ Cross Device Development] Mxel:
Also here think got banned "helx91" my telegram username. plz
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
New build is up, and this will be the final build of the kernel project!

Changes:

A brand new scheduling method supporting 32-bit and 64-bit task scheduling

A few scheduler fixes for overall stability

GPU governor fixes and tunings for better performance and thermal handling/stability

[NEW] F2FS support (require latest TWRP)

Fixes in-call audio issue on latest stock

mDNIE color tunings (require EXKM or any kernel managers support the feature)

As this is the final build of the whole kernel project, I'd like to say thank you to all supporters/developers who helped me improving the kernel. It had been a very long and great journey with the project, but everything has come to its own end. This and the RZ Kernel project for Exynos 9810 will also be abandoned, unfortunately

Once again, thank you for all your support!
[Samsung Galaxy S8 & S8+ Cross Device Development] bordstain:
Could you please write a short instruction how to build the kernel yourself or could you publish the required commands?
[Samsung Galaxy S8 & S8+ Cross Device Development] spezl:
Thanks for all your work! Hope to see you again later at another project! All the best!
[Samsung Galaxy S8 & S8+ Cross Device Development] BadKarma0:
Thank you

Thank you for you wonderful project. Hope to see you soon. And all the best for your bright future.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
1. Set up build environment:

source

2. Clone/download all the required stuffs

The kernel source: https://github.com/diepquynh/android_kernel_samsung_universal8895

AnyKernel3 flasher (clone to the root kernel path, the default cloned folder name is ak3): https://github.com/diepquynh/AnyKernel3

GCC 9.2 arm/aarch64 (extract to the root kernel path): Get from official ARM download site

clang 9 (in case you want to build the kernel with clang) (also clone to the root kernel path): Google source

Required patches for specific ROM type building (in attachments) (extract in root kernel path as req_patches)

The build script:

you can either make yourself or use my given build script below in attachments

3. Build:

If you're using my build script, remove the .txt suffix then simply execute it as:

bash build_gcc.sh

or below if you want to build with clang:

bash build_clang.sh

I believe the commands are quite self-explanatory so I don't need to explain anything furthermore
[Samsung Galaxy S8 & S8+ Cross Device Development] myaslioglu:
Works smooth.. thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] spezl:
Does anybody know if someone proceeded this great project?
[Samsung Galaxy S8 & S8+ Cross Device Development] just6chill:
great

yeah, i like your work
[Samsung Galaxy S8 & S8+ Cross Device Development] Bogdans29:
Is ii possible in future that we will get this kernel for ONE UI 2.5 port?
[Samsung Galaxy S8 & S8+ Cross Device Development] AndrzejDwo:
it is there already, check tg group.
[Samsung Galaxy S8 & S8+ Cross Device Development] Bogdans29:
I cant find tg link..
[Samsung Galaxy S8 & S8+ Cross Device Development] AndrzejDwo:
RZ Kernel || S8/S8+/Note 8

Rules:	- Ask anything publicly, I won't accept PMs	- No blames, no fights. Respect everyone	- Free to discuss "almost" anything (even other kernels or ROMs)	- Want latest test/official link/install instructions? Use "/notes"	- Asking VoLIT on AOSP = kbye

t.me
[Samsung Galaxy S8 & S8+ Cross Device Development] Bogdans29:
Thnx a lot!
[Samsung Galaxy S8 & S8+ Cross Device Development] JOEDOM2:
Hi!

Tg group link has expired. Can anyone give the link for the RZ Kernel compatible with android Q?

Thank you
[Samsung Galaxy S8 & S8+ Cross Device Development] AndrzejDwo:
the one i shared 2 posts above still works
[Samsung Galaxy S8 & S8+ Cross Device Development] maej72:
Best kernel for the s8/note 8
[Samsung Galaxy S8 & S8+ Cross Device Development] MMunir:
Hi.. I cant join the telegram group. Maybe I'm banned by the bot. Here's my username "MMunir02"

Thanks.
[Samsung Galaxy S8 & S8+ Cross Device Development] Benjamin2557:
I have 2 questions :

- "Support zRAM with default size of 3/4 RAM size" --> This means that SWAP memory = 3072 Mb instead of the default 2048 Mb ?

- "9/10/TREBLE" --> I thought android 9 PIE is only compatible, so does android 10 Q (ONE UI 2 ROM) is compatible or not ? What about AOSP ?

Thanks.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Done

1. Yes

2. No One UI 2 support for now, because the builds were built before One UI 2 supported kernel is released, hence the term "10". Only AOSP is supported
[Samsung Galaxy S8 & S8+ Cross Device Development] samsungFanboy85:
Only kernel that boots my s8 after flashing :)

Rest eitger bootloop or else i.e. auto Reboot into dl mode loop...

4.4.194-20200822-0052-ReZero

#1 Sat Aug 22 00:56:42 +07 2020

Am i on latest one and is making treble worth it as it equals full wipe :(

Ty

P.s.

On Q RR 8.6 5
[Samsung Galaxy S8 & S8+ Cross Device Development] Ninjaassassin22:
Join the group. New Kernel Update. You using old version.
[Samsung Galaxy S8 & S8+ Cross Device Development] goodness4411:
edit... it works..
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
The kernel doesn't come with root methods because I want users to have freedom of choices

And by the way, I can still root my device with Magisk 18.0 though
[Samsung Galaxy S8 & S8+ Cross Device Development] jgun007:
Yes it a gd thing u give us choices and i believe u should keep it that way as i still use super su but i tried flashing magisk and it gave me updater error v18.0 also tried super su but same thing
[Samsung Galaxy S8 & S8+ Cross Device Development] jgun007:
Look what it say when i try to flash magisk.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Can you try installing Magisk first before installing the kernel?
[Samsung Galaxy S8 & S8+ Cross Device Development] jgun007:
It worked only when i flashed back the kernel i was using which is tgp and in amora options i didn't choose a root option then flashed magisk Uninstaller then flashed ur kernel after and then super su and it worked! I think u need to modify ur kernel to uninstall any previous root for everyone to be able to flash their desired root method so they won't have any issues and i believe the issue stems from ur kernel not having a feature to uninstall previous root to start fresh with a unpatched/untouched boot image can you look into that please?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
The kernel installer itself only replaces ramdisk files to the source ramdisk, which is from the previous packed boot.img of the device. I'm sure that it doesn't interfere with any root installation methods, or just because you installed a different kernel that heavily patches ramdisk files, which will cause Magisk conflicts in this situation

And for the option to uninstall previous root method, well.... I don't think I'm gonna add that, because I would like to keep the installer as clean as possible. Also for the uninstallation method, I won't keep track of Magisk or SuperSU ramdisk changes in future builds, so it will be complicated to uninstall these root methods. Only proper way here is to use their uninstallers provided by the developers, or just simply reflash your backed up stock boot.img, which is the cleanest way
[Samsung Galaxy S8 & S8+ Cross Device Development] jgun007:
Cool thanks for the info... Kernel is running smooth right now will do further testing... ?
[Samsung Galaxy S8 & S8+ Cross Device Development] dmartuniac:
Kernel running smooth and good. 3% drain overnight (~0.5% per hour, wich is acceptable for me)

My question is..will we get OC in this kernel? 2.65 or 2.81 GHz?
[Samsung Galaxy S8 & S8+ Cross Device Development] xudahua123:
Great kernel

Let S8 get a new life

Now, power saving is the most important

S8 is a bit old

It is best to add voltage

This saves more power

thank you very much
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
First of all, I accept no CPU OC on this platform. 2,3GHz on big cluster is enough to kill battery when you run benchmarks already

Daily normal tasks won't even use up to that high frequency usually

Second, Samsung is doing something weird to the kernel. I did tried changing CPU frequency tables once and find that it automatically reverts to default. This might due to ECT driver that I am totally unsure how it works. OC'ing or even UC'ing is currently not possible
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Oh no why adding voltage?
[Samsung Galaxy S8 & S8+ Cross Device Development] xudahua123:
Turn down the cpu gpu voltage to save power
[Samsung Galaxy S8 & S8+ Cross Device Development] Kizoky:
Underclocking (same as with Overclocking) is impossible

Underclocking would be nice though, mainly I use my phone just to browse and use Discord, I rarely play any games
[Samsung Galaxy S8 & S8+ Cross Device Development] burza_:
WOW.. great times came for our devices!

A lot of respect for you for your very hard work.

Will you also bring your kernel to Pie when sources will be available?

I was always wondering about energy model of the phone. Is it hard to make this model and how to do that?
[Samsung Galaxy S8 & S8+ Cross Device Development] Maverick Jester:
I'd like to know the same thing (regarding the energy model).
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Build 20190129 is up with few changes:

Upstreamed to Linux 4.4.172

Fixes wrong transition latency for schedutil that causes unwanted frequency ramp ups

Added Boeffla wakelock blocker driver with wakelock list imported (Idk if it actually saves battery but let's give a try)

Files are uploaded to Drive. Please check OP for download link!
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Super short answer: https://github.com/ARM-software/lisa

About Pie: Yes, I will. Just wait for Samsung to release their P kernel
[Samsung Galaxy S8 & S8+ Cross Device Development] parser:
thanks mate! there are some stupid wireless wakelocks even flar2 says they cause some battery drain (on his s9+ kernel thread). So believe me, it helps :)

Also Did u have time to check flickerfree? It is known to prolong screen lifetime actually (was discussed on s7e thread) but one guy had told me that it burns the screen (dunno where he got the idea)
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Here comes the quick update for today's build: 20190102. Changes:

Switched IO scheduler back to CFQ, significantly boosts app startup speed

Disabled KSM permanently, as it doesn't do much thing and instead cause more battery drain

Adapted universal9810's EAS stuff

Files are uploaded to Drive. Please check OP for download link!
[Samsung Galaxy S8 & S8+ Cross Device Development] Maikol250:
I do not work the touch

Help, I installed it on top of a custom rom called deluxe rom and I did not work the touch
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Well, recheck if your installation procedure is right

And.... what do you mean by "do not work the touch"? If touchscreen then it's fine
[Samsung Galaxy S8 & S8+ Cross Device Development] Maikol250:
Install the last update that is today and I did not answer the touch could not do anything
[Samsung Galaxy S8 & S8+ Cross Device Development] dmartuniac:
You installed the wrong version. If you have the s8 just install dream-20190201 version, if you have the s8+ install the dream2-20190201 version..for god sake, what xda have become.
[Samsung Galaxy S8 & S8+ Cross Device Development] kooldool:
dont know why but build 20190102 causes bootloop for me the others worked like charm

#update: after redownloading it worked, guess the 1. download was corrupted...
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Kinda weird, because I'm using that build and it booted fine

I'm on CRK1 stock btw. Not sure about other ROMs as I never tried those

p/s: Actually I'm using today's build but it doesn't have any changes compared to yesterday's
[Samsung Galaxy S8 & S8+ Cross Device Development] Maikol250:
Sorry I had not read the dreamlte well, thank you very much, I was downloading the wrong one:good::fingers-crossed:
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Another build with small updates of today (20190203) is coming! Changes:

Rebased kernel source

Killed UHQ upscaler frequency lock. There should have no battery drains while listening to music with this mode on from now

Updated CFQ I/O scheduler from dumpling kernel

Configurable swap methods. We can now choose to use between vnswap and zram with just two steps: setprop then reboot (see here)

Properly fixed WALT panics without hack. We have stable EAS kernel from now on

Files are uploaded to Drive. Please check OP for download link!

[NOTE]: This time I have sorted kernel builds with specified device name written in folder names in my drive, so there should have no mistakes flashing wrong build from now on
[Samsung Galaxy S8 & S8+ Cross Device Development] yym8819574:
:) Thx for your great work!

This Kernel works great on my exynos 8895.

But still got some animations lagging on daily use with performance profile .
[Samsung Galaxy S8 & S8+ Cross Device Development] oyir:
He's right. I tested for 3 days, lag is very noticable.
[Samsung Galaxy S8 & S8+ Cross Device Development] Maverick Jester:
[MENTION=7969495]remilia15[/MENTION] Have you ever had a look at the EAS commits that [MENTION=5438598]RenderBroken[/MENTION] and [MENTION=6745491]joshuous[/MENTION] have implemented into their RenderZenith kernel? They've done a fantastic job bringing the functionality over to the OP5, which too did not implement EAS by default.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Yes, alongside with other msm8998 sources like wahoo or HTC U11. I have written that in post #4

Currently I'm trying to have common balance between benchmark and normal usage. There are boost drivers that [MENTION=4032833]farovitus[/MENTION] mentioned me but I'm still hesitating about implementing them

Like he said, "The device would fly", but battery is still the most important factor of this phone, and EAS itself too
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
How's your daily usage? Heavy multitasking or something? Please tell me specifically
[Samsung Galaxy S8 & S8+ Cross Device Development] yym8819574:
I use with heavy multitasking.

device Idle has great battery life,but sometimes lagging.

Still thx for great work

---------- Post added at 03:07 PM ---------- Previous post was at 03:00 PM ----------

BTW I think there's might have some temperature issue, could it be Samsung dvfs messing it up?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Well I'm testing the kernel with pure stock with removed RMM and yeah, did notice abnormal temperature increase, and still finding the actual culprit of that........
[Samsung Galaxy S8 & S8+ Cross Device Development] yym8819574:
wish ya good luck

and waiting for future updates :D
[Samsung Galaxy S8 & S8+ Cross Device Development] Jazz2000:
This kernel looks interesting. One of the Best stats for me. Thank you :good:
[Samsung Galaxy S8 & S8+ Cross Device Development] spezl:
Same here!

Great, thanks a lot!
[Samsung Galaxy S8 & S8+ Cross Device Development] maej72:
What's your rom please?
[Samsung Galaxy S8 & S8+ Cross Device Development] spezl:
Alexndr's Dev Base,black themed with "Pie for Oreo"
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Today's new kernel build is up! This build mostly aims on performance so there might come with less or more battery usage for different users

Changes:

Updated to Linux 4.4.174

Built with Linaro 4.9 toolchain for aarch64

Killed Samsung userspace CPU & GPU DVFS hack. From now we'll let EAS decide everything it needs to do for CPU

Re-factorized Spectrum profiles (check 3rd post for the new profiles table)

Improved touch boost, frame rendering and fingerprint speed

Set 338MHz minimum GPU frequency. As it has the same voltage as stock 260MHz so there should have no power increase but improved rendering performance

Files are uploaded to Drive. Please check OP for download link!

[NOTE]: The development might suspend for a few months (4 or 5 maybe), as I'm going to have really busy work after today

However, I'll still merge Linux updates when it comes. That will ensure device's performance, stability and security. Looks okay right?
[Samsung Galaxy S8 & S8+ Cross Device Development] yym8819574:
AWESOME works !

Now going to flash and play with new kernel
[Samsung Galaxy S8 & S8+ Cross Device Development] ubelai:
Thanks for bringing EAS to the S8, and making us feel as though S8 development has not been forgotten.

Curious, is gpu always_on intentional?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Oh, forgot to mention that in changelog

I have written about it in my commit: https://github.com/diepquynh1501/an...mmit/25c34f79df4b5b78df80fbe43522bea37371cd82

During whichever power policies it is on, we only need to care about GPU usage, therefore it affects power usage

All 20 cores are on or not, just a single swipe up from the launcher will power them on anyway. Also during idle, I find no extra power consumption of GPU compared to demand policy. As a result, switching to always_on will significantly bring better UI experience with zero bottlenecks caused by core management policy of the GPU driver

Power measurements are done through parsing sysfs's current_now node
[Samsung Galaxy S8 & S8+ Cross Device Development] dj-alejandro34:
Hi, where did you find "pie for oreo" theme ?
[Samsung Galaxy S8 & S8+ Cross Device Development] hanspampel:
Its OT, but take a look at here.
[Samsung Galaxy S8 & S8+ Cross Device Development] dj-alejandro34:
very good, thanks a lot :D
[Samsung Galaxy S8 & S8+ Cross Device Development] ubelai:
Thank you for such a thorough explanation! :)

Really enjoying it so far. Haven’t really been able to measure battery life as I have been out and about, plugged in and out, since I flashed this kernel. But I must say it feels solid so far.
[Samsung Galaxy S8 & S8+ Cross Device Development] ubelai:
Compelled with the results so far. I do not think I have achieved these results for a while now, and the performance is still excellent. :good:
[Samsung Galaxy S8 & S8+ Cross Device Development] Maikol250:
Custom ROM + kernel?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Another build for today is up! Changes:

Refactorized GPU set for all spectrum profiles (see post #3 for new profiles table)

Improved Mali driver multi-core handling, significantly improve performance and battery life (see commit e6717ec)

Yet improved real-time rendering performance (83625c8 668bbb6)

Adapted pwrutilx governor from OP5 Helix Kernel (check how it works in this post)

Set back GPU power policy to demand, as we've improved cores handling performance and it's to avoid users confusion

Files are uploaded to Drive. Please check OP for download link!

Edit: Q&A is also added to OP as well!
[Samsung Galaxy S8 & S8+ Cross Device Development] ubelai:
Eager to see what variations of tunings to come out of pwrutilx :)

Yep, Soldier’s Oreo ROM and this kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Oops, I forgot that the version of pwrutilx we have has no tunables available xD

The only difference here, like the mentioned post says, is the frequency calculation. Anything else is the same as schedutil
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Sorry guys. I've just found a small derp in pwrutilx and schedutil commits so I've uploaded 20190124 build with fixed governor names. Please check them out

Thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] yym8819574:
Thx for releasing another build ！
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Guys, I've made an experimental build for LineageOS 15.1. Could anyone here test and report here if it actually boot properly?

S8: Drive link

S8+: Drive link

Thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] Maverick Jester:
Not even utilboost?
[Samsung Galaxy S8 & S8+ Cross Device Development] Lmperio:
tried and stuck on boot animation
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Welp, I think foreground boost in spectrum performance mode is enough

Nice. So not only me get this problem

Actually it gives black screen after boot animation somehow (actually just few seconds after lock screen is shown)
[Samsung Galaxy S8 & S8+ Cross Device Development] dmartuniac:
What governor do you recommend in day-to-day use? pwrutilx or schedutil? I mean in terms of battery life, i don't care if it take 0.003s more to load.
[Samsung Galaxy S8 & S8+ Cross Device Development] cantenna:
Install spectrum; offers Quick Setting toggles for different presents by op.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Today's new build is up! Changes:

Remade EAS energy costs, significantly improved power management

As for the energy model remake, foreground boost from Spectrum profiles are now removed

Adapted msm8998 cpu-boost driver (touch boost configurable through Kernel Adiutor app). This replaces foreground boost as well (LOL my main idea was to speed up user interactions with launcher xD)

Fixes mali big cluster frequency lock on gaming mode. Earlier build had it broken

Minor optimizations to kernel cryptographic algorithms

Files are uploaded to Drive. Please check OP for download link!
[Samsung Galaxy S8 & S8+ Cross Device Development] burza_:
Have you seen that pie sources are out for N8? Is it possible to merge something and make it work for s8 pie?

Best regards,

Pawel

// https://www.xda-developers.com/samsung-galaxy-note-8-exynos-kernel-source-android-pie/
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Wait for stable stock P first, then stable P kernel later

That's the case of our S8(+) I need
[Samsung Galaxy S8 & S8+ Cross Device Development] Maverick Jester:
[MENTION=7969495]remilia15[/MENTION] how difficult would it be to make this kernel compatible with the Note 8?

---------- Post added at 09:42 PM ---------- Previous post was at 09:31 PM ----------

Also, any chance of adding noop as an optional I/O scheduler?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Simply just dts merges, nothing serious. Problem here is the P stock which is still in beta stage, and I don't want to stick with it

It's built with the kernel by default
[Samsung Galaxy S8 & S8+ Cross Device Development] ubelai:
Looking forward to a Pie release of this kernel. :D
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Soon™