yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] Sav9:
Here what I did to achieve root Im running android 8.1 64 gb 4gb ram Verizon Varient DOwnload the S48c.img in this post copy to root, DL Magisk zip DL Force dm Encrypt copy to root,You can only boot twrp thru fastboot cmd as this man explained, once booted into twrp if asks for encrypt password hit cancel swipe to allow mod, Factory reset not using advanced wipe jus factory reset, then back up, once you have a back up hit format then flash magisk, then flash the force encrypt zip reboot system and Bam No more Encrpt with root access Now weres the Roms? you got me
[Android Q&A, Help & Troubleshooting] 143htc:
hii .... dear my s48c is stuck on boot loop after complete uninstall of magisk..
[Android Q&A, Help & Troubleshooting] adure 36:
post how to do it
[Android Q&A, Help & Troubleshooting] luispro503yt:
hHello, I have a problem is that when I enter the twrp recovery it asks me for a decryption password and when I want to use the USB OTG it does not allow me or detect the internal storage space
[Android Q&A, Help & Troubleshooting] Bilalzawar6629:
Sir please send me files
[Android Q&A, Help & Troubleshooting] Van Dinh Binh:
Cat s48c does anyone install Android 9 or a custom version?
[Android Q&A, Help & Troubleshooting] Chokerfly4:
can anyone open their phone and give values of these components i can find any other forum to ask device is almost non-existent
[Android Q&A, Help & Troubleshooting] Chokerfly4:
does anyone here have a cat s48c and repairing setup i broke a tiny cap and want to know what should it be replaced with
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.*/

RZ Kernel aims for as stock experience as possible. It is made from Samsung's stock kernel with stability updates thanks to great guys who made ELS (exynos-linux-stable) branch

It also attempts to increase overall multitasking performance while maintaining good battery life with proper settings

Features

I/O Scheduler: CFQ (default), noop

Governors

schedutil (DEFAULT FOR EAS)

CPU

Support EAS (Energy Aware Scheduling), which balances battery life while maintaining great overall performance

Fine-tuned schedtune values for super fluid user experience

GPU

Fixed interactive governor for better load burst handling

Memory

Support zRAM with default size of 3/4 RAM size

Multiple compression algorithms for zRAM: zstd, lzo, lz4(default), lz4hc

Other tweaks and optimizations

F2FS filesystem support (require latest TWRP)

Init.d support (A BIG MUST for scripters)

Disabled battery-hogging WAKELOCKS

Westwood TCP congestion algorithm (small boost on network speed)

SELinux Permissive (for V4A and etc...)

WireGuard and DriveDroid support

XDA:DevDB Information

RZ Kernel, Kernel for the Samsung Galaxy Note 8 (2017 Phone)

Contributors

remilia15

Source Code: https://github.com/diepquynh/android_kernel_samsung_universal8895/tree/tw90-android-p-eas

Kernel Special Features: Energy Aware Scheduling

Version Information

Status: Testing

Created 2019-03-30

Last Updated 2020-08-27
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Download link:

Drive folder

CHANGELOG:

20190330: Initial release

20190430: Post #39

20190503: Post #55

20190828: Post #63

20190909: Post #64

20191014: Post #81

20200406: Post #91

20200822 [FINAL]: Post #98
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Notices and Q&A

The kernel is based on tw90-android branch of ELS, which is currently at stable state from my experience

Other related features of the kernel were picked from other sources. Credits belong to the owner

I have totally ditched Samsung's HMP implementation by myself, and adapted aosp-common kernel's EAS commits with the brand new kernel scheduler (called Exynos Mobile Scheduler (EMS)) from Exynos 9820 kernel source, which seemed doing nice on our Exynos 8895. Because HMP isn't doing really well on our 8895, and to take advantage of 64bit kernel, I've done EAS by myself

The kernel's EAS figures were self-made using specific CPU capacity benchmarks and energy usage measurements, along with performance benchmarks for better balance and improved as possible

Questions and Answers (Q&A)

Q: My phone gets hot while using this kernel?

A: Short answer: It's your own issue, fix it yourself. Nobody makes a kernel just to burn your hands

Long answer:

Install

Termux

app from Play Store

Enable screen rotation, open

Termux

in landspace mode

Type this command: su -c top -d 2

A list of processes will appear and refresh with 2s interval. Find which process consumes the most CPU usage with [%CPU] column and the package name in ARGS column. You should see the culprit of your issue

Reminder: There is no such thing as "I have nothing in background but the phone still heats up". There definitely something happen and 99% of the time it's some of the rogue apps running in background

Q: Can you add X Y Z feature to this kernel?

A: I want to keep the kernel clean and simple. However, if the feature is really useful, I'll consider adapting it with proper performance check before releasing

Q: I can't connect to any access point after installing this kernel?

A: If you can't connect to an access point on stock/stock-based ROM, simply forget its password and connect again

Q: This kernel is unbootable on my One UI ROM?

A: If you came from previous builds, it's because of Secure Folder. You can either continue using previous build (which I would not recommend) or uninstall Secure Folder, install the latest build and reinstall it again. It's all because I have removed Samsung's FIPS cryptographic API which breaks device encryption

Q: My touchscreen/XYZ hardware stuff doesn't work after flashing kernel

A: Make sure your flashing procedure is right. I'd recommend flashing the kernel with a clean stock boot.img (Magisk or SuperSU-patched one is also okay)

Also, check your device name first before downloading (S8/S8+ and it has to be EXYNOS)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Installation instructions

Select proper kernel variant to download (Stock SE/One UI, LineageOS, Treble)

Put the downloaded kernel flashable zip in the internal storage or SD card

Flash the zip with ease (no root re-installation needed, because the kernel isn't shipped with prebuilt stock boot.img)

Selecting kernel variant:

Non-treble ROMs: RZ-LineageOS-* (might not compatible with all non-treble ROMs as each might use its own kernel and stuffs)

Treble ROMs: RZ-treble (note that it is meant to be used with hadesTreble). If you didn't install hadesTreble, use non-treble build for non-treble AOSP ROMs

One UI/Stock SE: The remaining build
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Voytec83:
Great job! Nice to see some new kernel development for Note 8?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] drumbeater79:
+1 for this!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] tabeebjarrah:
Thank you developer
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] TurricanM3:
Runs very smooth. Thank you!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] FelipeAlfa:
Very good kernel. 0 lag, run smooth and fast. Excelent!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
My device stays on the highest freq on the BIG cores all the time. With the same setup and other kernels, CPUs tend to power down after a while but with RZ it seems that all cores are on and running at or close to max speed. Is that supposed to be the way with EAS and/or schedutil?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] blackhawk_LA:
That was the behaviour of EAS on my old LG G6, and that's why i still prefer stock interactive, which I think is very efficient on my exynos note 8

The screenshots were taken after some hours of medium - heavy tasks, including ~40min of RR3 playing.

I will try this kernel anyway when I have some time.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
If you use apps like Kernel Adiutor, they aren't showing correct frequencies, as with EAS, freqs are decided as per workload

From my experience, CPUfloat is my best choice. If you wanna see correct frequencies that you're currently in, use CPUfloat with 100-200ms refresh interval
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
Thanks for the responses! After letting the device settle, I think cpu usage has come down to normal.

Speed on this kernel is fast, Ill see how it balances out battery life too.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] FelipeAlfa:
This kernel continues to surprise me
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ricardo2511:
How is the battery on this kernel? Anyone tried it with hades rom?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Don't ask. Just try

Nobody will give the right answer because their usages vary
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ~M☆tis~:
I had the same problem and fixed it by clearing the data of any kernel controlling app and rebooting the phone
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] MrElectrifyer:
Thanks very much for this! Please does this add support for DriveDroid? There's a whole lot of uses to gain with DriveDroid support, including using our Note 8s as recovery tools for other computers. No more keeping track of different USB drives for different OSs. Just an example.

Also, does this break DeX or any other Samsung features? I personally make a lot of use of DeX, heck, even more than my Surface Pro 2 nowadays, so, personally wouldn't want anything breaking it up.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Leejhay1714:
I try to add game but i got this error
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
For DriveDroid, I may consider adding it then. Thanks for the hint

Next build may also come with WireGuard

About DeX, since I don't have any stations to try so I don't know if it works, but DeX for unofficial stations has been adapted to the kernel. I assume DeX should work

Which error btw? Forgot screenshot?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Leejhay1714:
O yeah i forgot
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] hshah:
You aren't meant to put the < > around the package name... it's just a way of showing that you are meant to use your own entry there.

So in your example, you would do:

su

add_game com.mobile.legends
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Leejhay1714:
Still got an error
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] blinkt88:
Hi is work this on all custom roms?Im on Deluxe ROM Pie Note8 Exynos
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
Yup, I am on the same rom as you.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] hshah:
I think you should try another terminal app or double check that the kernel is actually installed. This is what I get when I run the command.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SimplyCity:
DEX is working just fine, no single issue. Hades rom v4.

Thanks for the kernel by the way. Good job.

;)

Echoe[emoji769] team member / N8 Pie
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] blinkt88:
Is this kernel better than deluxe kernel v6 which is included in rom?

Poslano z mojega SM-N950F z uporabo Tapatalk
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] turtletocks:
Review

I've been using this kernel with N950F hades v5 since maybe 5/6 days ago and so far it has been great experience. Before this i was using ****tom kernel and then i tried this kernel, reverting all kernel tweaks and MTweaks settings, reflashed hades to get stock kernel for precaution, and then flashed this kernel. So far i get better battery than previous kernel. My 1% drain time was longer than with previous kernel (although by longer i mean it was maybe only 3-4 minutes longer but still). My method to calculate it was displaying a youtube video and calculate the time for the battery to drain 1% using stopwatch. I tried to keep all the parameters the same (wifi, background process, brightness, speaker volume, notification that get in, etc). And on both "experiments" i waited for the battery to drop by 1% before i start the stopwatch and start the video, to eliminate discrepancies between displayed battery percentage state. And thats the result i got. Longer by 3 to 4 minutes. For standby time it is pretty much the same, about two days with light to moderate use. (atleast with my usage: kiwi browsing, instagram, whatsapp and LINE chatting. I rarely use my phone for more than 10 minutes in 1 go)

For average cpu frequency yes this kernel tends to prefer higher frequency than the other kernel, but difference is not really extreme and it seems this kernel implements race to idle better, well i don't know for sure if thats the reason battery life is slightly better or its just placebo. One thing to note is I used L-Speed battery profile on both kernel, so basically all the kernel tweaks are the same, same io scheduler, same entropy settings etc. But ofcourse the only thing different is the cpu scheduler (schedutil vs blu_activ) and HMP.

One more thing this kernel feels smoother. With my previous kernel and L-Speed battery profile i felt app loading was slower and sometimes i can really notice some stuttering. Well i didnt use any benchmark app to confirm my results, but in my opinion benchmark scores doesnt represent real world usage especially with custom kernel and ROM and battery oriented settings. It all depends on overall feel and usage experience.

So TL : DR this kernel has slightly better battery life (if not the same) with ****tom and definitely better than stock, it also feels smoother with less hiccups.

Thank you dev for your great work! Any update soon?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Waw.... the first time I saw such a long usage review. Thanks for reporting btw

And yeah, soon there will have another update. I can't say the expected day but that'll be around this month
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] turtletocks:
well i guess thats the least thing someone can do for a developer:good:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ettelaP:
it s the best kernel i have ever seen. PUBG Mobile(Chinese version) running great! no too heat no lag no drop too much frames. battery control well no battery drain. thank you for your great work and looking forward to new release!!!?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] drumbeater79:
My phone is unusually heating up after I installed this kernel. I already cleared dalvik cache and cache partition. Any thoughts or solutions? TIA
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Revert to Magisk 18.1 if you're using 19.0
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] drumbeater79:
Yeah, I'm using the latest Magisk version. Do you think that's the issue? TIA
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
That's the common issue of most custom kernels out there
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] zmasterwork:
Does this kernel need Root? Or can be used at all. Because I need not root to use some app
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Today's build is up! Changes:

Upgraded to Linux 4.4.179

Adapted devfreq boost driver from qcom msm8998 for Exynos (original credit goes to Sultanxda)

Reworked cpuset configuration for battery saving

Re-adapted dynamic stune to CPU input boost driver, significantly improve both performance & battery usage

Reworked gaming control driver (please read Q&A section for more information)

New thermal throttling configuration adapted for VR users

Various tweaks for performance stability

Files are uploaded to Drive. Please check OP for download link!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] zmasterwork:
First, your Kernel is great and I like it very much.

but when Once installed, find some apps warning that there is a Root. How do I fix it?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Umm I couldn't understand what you mean, but once the kernel package itself doesn't include root. If you have root installed, installing the kernel will still have root access and vice versa
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] zmasterwork:
I'm sorry about my English. I'm use HadesRom is not have root itself. my bank app not notice with root but when i install your kennel my bank app notice about root and cannot use it.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ricardo2511:
Do you ever had magisk installed?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] sound2005:
Hi

Just wondering where you stand on incorporating Drivedroid in your kernel?

There seems to be only a couple of kernels here that have remained active.

Would love for you to add this great app in to your kernel.

I know this has been asked before but this would be a really good addition and the only kernel to have this feature!!!!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Whatta.... I absolutely forgot to add support for DriveDroid :(

It'll be added in the next few days or weeks.... Thanks for reminding
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] sound2005:
That's brilliant news.

Many, many thanks!!!!!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
Wanted to report some issues with Magisk and adb.

Which magisk version works for the new version? I tried 18.1 and 18.2 and both versions do not initiate modules with busybox, i also tried 19.0 versions 1 to 5 and Magisk Manager says Magisk is not Installed.

Also USB debugging seems to be disabled/not functioning as when I plug the phone to a PC, the PC doesnt detect adb.

Both issues are resolved when using another kernel.

Thanks in advance for looking into this!

[MENTION=7969495]remilia15[/MENTION]
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ~M☆tis~:
So i flashed the updated version of the kernel but now i cant install magisk. It installs successfully in recovery but when booting up it says not installed. Any ideas?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] zmasterwork:
No i don't. Hardes Rom not have magisk.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] fenrir_ac:
You might want to flash magisk uninstaller, boot into system wait for a while, reboot back into recovery and flash magisk again. I've had that issue few weeks back before I started to use magisk v19.1 canary build, which has yet to fail me ever since.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
Only version that worked for me successfully now is version 19.0(19000).

Im unable to attach it here. Lol
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] JeKaSBaLTo:
Please add new magisk support
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ~M☆tis~:
V19.0 works, thanks!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
You are welcome.

Terminal su doesnt work though, ive tried all versions of busybox plus other kernels and it doesnt work on version 19.0 magisk.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Today's new build is up! Changes:

Fixes Magisk 19.1 issue

Adapted WireGuard and DriveDroid support

Configurable touch boost frequencies, top-app and foreground boost via sysfs node (/sys/module/cpu_input_boost/parameters)

Fixed adb issue from previous builds

SMALL NOTE: About ADB issue, currently I have no idea what's happening, at least with my current ramdisk and libraries that I'm using at the moment. If you want to use adb, please switch to other kernels

If somebody find out what's the issue of this kernel, I'll be really appreciated

EDIT: New 20190503 build uploaded with fixed adb

Files are uploaded to Drive. Please check OP for download link!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
You, are amazing!!!!!

Everything works. The way I installed it is -> reboot to twrp, wiped dalvik and cache, installed rz kernel, installed magisk 19.1.

All magisk modules, busybox and adb worked perfectly!

Thanks!!!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] turtletocks:
So far there's not much different between march's, april's and newest release except the added features. And one thing i noticed when flashing the latest build i forgot to flash magisk but after reboot root is still present. Is it one of the "feature" you included? Now i'm using deluxerom v13 with magisk v19 btw
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Say thanks to [MENTION=4658360]corsicanu[/MENTION], who gave me the hint about adb fixes
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] cogelindo:
Has someone installed magisk 19.1 and installed the kernel? Magisk remains installed?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] i23u8:
Yes confirming that 19.1 works.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Radamantys-N7000:
Some bugs with magisk 19.1 but Work fine if update App. Testing now, thanks.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rizen422:
Can i ask a nub question??can this be flash led on my note 8 stock rom n950n?TIA :)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
The long awaiting is over. Here comes the most stabilized and performant RZ build ever released, along with treble support

CHANGELOG:

Upgraded to Linux 4.4.186

Adapted hadesTreble build (found in treble Pie path in download link)

Adapted Samsung's new 4.14 (or IOW, S10's) EAS with better performance and stability

Adapted new RMM lock bypass method for One UI (thanks to [MENTION=4658360]corsicanu[/MENTION])

Adapted Exynos code optimization for kernel

Ditched gaming mode. It was way too unstable to use, though it will be back when an app is made for it

Fixes most of the crashes and performance/battery issues from previous builds

Killed unuseful features

Reconfigured thermal for performance and stability

Removed pwrutilx governor, in replace of new schedutil tuneables (can be found using EXKM or FKM)

Download link is updated in OP! Please check it out everyone
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
New build is up! Changes:

Updated to Linux 4.4.190

Small performance fixes

Adapted LineageOS support

SMALL NOTE: Every report related to this kernel will be posted on this thread. Please don't post on other threads to avoid trashing up. Thanks

Download link is updated in OP! Please check it out everyone
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] dron985:
Thank you very much! Installed on LineageOS! It works perfect! You are MASTER!!!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ductran2110:
Thanks

How about if me flash treble for my note 8 android pie custom rom.

Thanks.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Just select the treble kernel zip. The zips have their own naming perspectives, and they're very clear, so there should have no confusion while selecting compatible variant for the ROM you're using
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ductran2110:
Can't boot after flash treble

Thanks for your information but I try flash treble kernel my note 8 stuck at logo Samsung and not boot.

Please fix this issue.

Thanks.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] hussein995:
Hi

I had this issue, all what u need to do is to delete all data
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] remilia15:
Nobody having trouble flashing treble build. Are you flashing on non-treble ROM?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] darkieeyow:
I had the same problem i have to do hard reboot
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] JeKaSBaLTo:
Which one should I flash on regular costumes pie? Tried treble doesnt work
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] joluke:
One UI version? from google drive? :eek: