Based on samsung sources and android common tree. Supported devices: G970F, G973F, G975F, G977B, N970F, N975F, N976B. All sources are open on GitHub.
Continuous integration with GitHub Actions set up. This means you can customize the kernel from browser and build the version suitable for you without leaving the browser (see сustomization section).
- Customizable build with config presets
- Only part of samsung security features disabled (DEFEX, Process Authentification, root restrictions)
- Switchable SELinux (by default it's locked in "always enforcing" mode in samsung sources)
- Built-in in Magisk v20.4
- Wireguard for VPN
- CIFS for SMB
- Iptables TTL and HL editing modules for bypassing tethering restrictions
- NTFS module for OTG usb drives
- Moro sound module
- Boeffla WakeLock Blocker
- sdfat driver for vfat and exfat filesystems
Build commands (configuration presets) used for V3.2 kernel:
$ ./build mkimg model=<MODEL> name=CRUEL-V3.2 +magisk +nohardening +ttl +wireguard +cifs +sdfat +ntfs +tcp_cubic +morosound +boeffla_wl_blocker
First of all, TWRP Recovery + multidisabler should be installed in all cases. This is a preliminary step. Backup your existing kernel. You will be able to restore it in TWRP Recovery in case of any problems.
Download an *.img file and
- With TWRP: Reboot to recovery. Install > Install Image > CruelKernel.img > BOOT.
- With Heimdall: Reboot to Dowload mode. Code:
heimdall flash --BOOT CruelKernel.img
- With FK Kernel Manager: Flasher > Manual Flasher.
- V3 - Support for G970F, G975F, G977B, N970F, N975F, N976B models.
- V3.1 - Boeffla wl blocker, BTB5 sources for N10 models.
- V3.2 - Magisk update v20.4, wireguard update, sdfat for VFAT, exFAT, ntfs module, tcp cubic by default.
OS Patch Level: 2020-03
How to customize the kernel build
It's possible to customize the kernel and build it from the browser. First of all, create and account on GitHub. Next, fork this repository. Switch to the "Actions" tab and activate GitHub Actions. At this step you've got your own copy of the sources and you can build it with GitHub Actions. You need to open github actions configuration file (.github/workflows/main.yml) and edit it from the browser. For example, to alter the kernel configuration you need to edit lines:
- name: Kernel Configure run: | ./build config model=G973F name=CRUEL-V3.2 +magisk +nohardening +ttl +wireguard +cifs +sdfat +ntfs +tcp_cibuc +morosound +boeffla_wl_blocker
You can change the name of the kernel by replacing name=CRUEL-V3 with, for example, name=my_own_kernel. You can remove wireguard from the kernel if you don't need it by changing "+" to "-" or by removing the "+wireguard" line and "" on the previous line. OS patch date can be changed with os_patch_level=2020-02 argument, the default current date is in build.mkbootimg.G973F file.
Available configuration presets can be found at kernel/configs folder. Only the *.conf files prefixed with "cruel" are meaningful. For example:
- +magisk - integrates magisk into the kernel. This allows to have root without booting from recovery. Enabled by default.
- magisk+canary - integrates canary magisk into the kernel.
- bfq - enable bfq I/O scheduler in the kernel.
- sched_... - enable various (conservative, ondemand, powersave, userspace, performance) CPU schedulers in the kernel.
- ttl - adds iptables filters for altering ttl values of network packets. This helps to bypass tethering blocking in mobile networks.
- wireguard - adds wireguard VPN module to the kernel.
- cifs - adds CIFS (SMB) support.
- tcp_cubic - use CUBIC as default TCP congestion control.
- tcp_westwood - use WestWood as default TCP congestion control.
- sdfat - use sdfat for exFAT and VFAT filesystems.
- ntfs - enable ntfs filesystem support (read only).
- boeffla_wl_blocker - enable boeffla wakelock blocker module.
- morosound - enable moro sound control module.
- +nohardening - removes Samsung kernel self-protection mechanisms. Potentially can increase the kernel performance. Enabled by default. Disable this if you want to make your system more secure.
- nohardening2 - removes Android kernel self-protection mechanisms. Potentially can increase the kernel performance. Don't use it if you don't know what you are doing. Almost completely disables kernel self-protection. Very insecure.
- nodebug - remove debugging information from the kernel.
- noksm - disable Kernel Samepage Merging (KSM).
- nomodules - disable loadable modules support.
- noaudit - disable kernel auditing subsystem.
- 300hz - increases kernel clock rate from 250hz to 300hz. Potentially can improve ui responsiveness.
- 1000hz - increases kernel clock rate from 250hz to 1000hz. Potentially can improve ui responsiveness.
- name: Kernel Configure run: | ./build config os_patch_level=2020-12 model=G975F name=OwnKernel +magisk+canary +wireguard +nohardening +1000hz
To keep your version of the sources in sync with main tree, please look at one of these tutorials:
- How can I keep my fork in sync without adding a separate remote?
- How do I update a GitHub forked repository?
- This thread. Feature requests accepted.
- Telegram (testing and intermediate releases).
- GitHub Pull Requests if you want to contribute.
Samsung for kernel sources
Nico (@NicoMax2012) for porting moro sound module
bamsbamx for porting boeffla_wakelock_blocker
thehacker911 for general improvements and advices
geiti94 for his advices
topjohnwu for Magisk
franciscofranco for FK Kernel Manager
I'm sorry if I missed someone, just write me and I will update the list.
[KERNEL] CRUEL KERNEL S10/Note10, Kernel for the Samsung Galaxy S10
Source Code: https://github.com/CruelKernel/samsung-exynos9820
Kernel Special Features:
Current Stable Version: v3.2
Stable Release Date: 2020-03-25
Last Updated 2020-03-25