arter97 kernel for Razer Phone 2 with TWRP and exFAT support
/* Details */
Latest CAF msm-4.9 kernel fully merged
This kernel contains more cutting-edge changes from Qualcomm than the regular sdm845 tag
Latest Linux 4.9 subversion merged
Use CONFIG_HZ = 300
- This changes context switching interval from 10ms to 3.33ms
- Pixel used this for years and Google recommends other vendors to do the same for fewer jitters
Memory management improved(from Pixel 2 & 3)
Pixel's lowmemorykiller used
DM-verity fully disabled (you can remount /vendor to R/W properly)
Scheduler commits cherry-picked from Pixel 3
Timer optimizations
RTL8152/8153 USB LAN adapter support
TWRP support with proper f2fs support (see below)
Permissive SELinux
Passes SafetyNet
Built with -O3 speed optimizations
Built with latest GCC
Westwood as default TCP network congestion control
UFS optimizations
Entropy hook on storage removed
Latest mainline f2fs support with GC fixes
CFQ I/O scheduler backported from mainline
Systemless installation (the kernel itself doesn't touch /system or /vendor)
Modules support disabled for lighter kernel
WireGuard support
Additional exFAT support with modified vold
Removed RTB(interrupt) logging entirely
/* f2fs */
This kernel fully supports f2fs for /data and I encourage everyone to use f2fs with my kernel for better performance.
See here as to why you might want f2fs.
Use the integrated TWRP to format /data to f2fs.
It is crucial to use my kernel's TWRP as it includes an older version of mkfs.f2fs and passes an incorrect parameter to mkfs.f2fs.
1. Boot to the integrated TWRP and flash f2fs_fstab.zip
2. Reboot to recovery again
3. Wipe /data by entering Wipe > Format data > "yes"
After formatting, or flashing a new ROM or an OTA, /vendor’s fstab needs to be changed.
Flash f2fs_fstab.zip to convert fstab to f2fs again. f2fs_fstab.zip won’t format your /data partition.
/* exFAT support */
This kernel fully supports exFAT via sdfat drivers from Samsung.
You must use the provided vold to use exFAT as the stock vold doesn't support exFAT.
You must decrypt your phone before using this vold mod as it doesn't support FDE implementation with Razer Phone 2.
Following the f2fs guide above is the easiest method.
Flash vold_mod_arter97.zip from TWRP and you're done.
Screenshot
/* Disclaimer */
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. Hard. A lot.
/* Warning */
Redistribution, modifying files used within this project's file or integrating with other projects are prohibited with no exceptions other than my projects.
Making mirrors, re-uploading to another servers are also prohibited with no exceptions.
/* Thanks to */
TheCrazyLex
xboxfanj
Tim Murray
RenderZenith
nathanchance - for android-linux-stable
/* Instructions */
You can use the zip file to flash the kernel from your existing TWRP recovery.
If you don't have TWRP installed already, you can use the img file to flash the kernel directly from your PC via fastboot.
Both methods will install both kernel and modified TWRP recovery.
You can check if the modified TWRP is installed by looking at TWRP's version name.
It should say "arter97".
/* Downloads and links */
arter97.com
Kernel source
XDA:DevDB Information
arter97 kernel for Razer Phone 2, Kernel for the Razer Phone 2
Contributors
arter97
Kernel Special Features:
Version Information
Status: Stable
Created 2019-03-25
Last Updated 2020-04-27