• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[KERNEL][EAS][EOL][9/10/TREBLE][G95xF/FD/N] RZ Kernel for Samsung Galaxy S8(+)

Search This thread

BadKarma0

New member
Aug 22, 2020
1
0
Thank you

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!


Thank you for you wonderful project. Hope to see you soon. And all the best for your bright future.
 

remilia15

Senior Member
Jan 1, 2017
362
1,624
20
/dev/ram
Could you please write a short instruction how to build the kernel yourself or could you publish the required commands?

1. Set up build environment: source

2. Clone/download all the required stuffs

3. Build:
If you're using my build script, remove the .txt suffix then simply execute it as:
Code:
bash build_gcc.sh
or below if you want to build with clang:
Code:
bash build_clang.sh

I believe the commands are quite self-explanatory so I don't need to explain anything furthermore
 

Attachments

  • req_patches.zip
    66.4 KB · Views: 50
  • build_clang.sh.txt
    6 KB · Views: 37
  • build_gcc.sh.txt
    5.6 KB · Views: 48

Benjamin2557

Senior Member
Oct 6, 2017
128
55
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.
 

remilia15

Senior Member
Jan 1, 2017
362
1,624
20
/dev/ram
Hi.. I cant join the telegram group. Maybe I'm banned by the bot. Here's my username "MMunir02"
Thanks.

Done
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.
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
 
  • Like
Reactions: Benjamin2557
Feb 24, 2021
9
0
Dublin
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
 
May 10, 2019
7
7
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
Join the group. New Kernel Update. You using old version.
 
Last edited:

goodness4411

Member
Feb 21, 2013
20
2
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

Sent from my SM-G955F using XDA Labs
old post... but it did... i think it's because i install hades v12 which named device as Note 8 (greatlte), thus the script send accordingly....

edit: i flash other ROM than flash this
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 67
    Code:
    #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 S8

    Contributors
    remilia15
    Source Code: https://github.com/diepquynh/android_kernel_samsung_universal8895

    Kernel Special Features: Energy Aware Scheduling

    Version Information
    Status: Testing

    Created 2019-01-24
    Last Updated 2020-08-27
    41
    Download link: Drive folder

    CHANGELOG:
    • 20190124 (OREO): Initial release
    • 20190129 (OREO): Post #36
    • 20190201 (OREO): Post #39
    • 20190203 (OREO): Post #47
    • 20190210 (OREO): Post #60
    • 20190213 (OREO): Post #70
    • 20190218 (OREO): Post #81
    • 20190223 (PIE): Post #88
    • 20190225 (PIE): Post #110
    • 20190227 (PIE): Post #125
    • 20190310 (PIE): Post #128
    • 20190321 (PIE): Post #148
    • 20190329 (PIE): Post #158
    • 20190430 (PIE): Post #172
    • 20190503 (PIE): Post #176
    • 20190828 (PIE): Post #220
    • 20190909 (PIE): Post #245
    • 20191014 (PIE): Post #290
    • 20200406 (PIE): Post #307
    • 20200822 (PIE) [FINAL]: Post #339
    26
    Installation instructions

    1. Select proper kernel variant to download (Stock SE/One UI, LineageOS, Treble)
    2. Put the downloaded kernel flashable zip in the internal storage or SD card
    3. 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
    24
    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!
    23
    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)