Development EOL - [KERNEL] [OOS] Omega Kernel OOS11 [September 18, 2021] - OnePlus 9 Pro

Development has stopped - see my last post HERE.
Introduction
Hello everyone, this is my personal kernel for the OnePlus 9 Pro.
My philosophy on the kernel is pretty simple, intended to replace the stock kernel, but with a lot of under-the-hood tweaks.
Hopefully you will all enjoy!
Important thread information!
I refuse to acknowledge/respond to bug reports that do not include clear steps to reproduce, a logcat, and a console ramoops (if random rebooting) or a dmesg (any other issues). Follow this guide to do this.
Keep things civil, no flaming in the forums!
Features
Up to date with OxygenOS 11 source
Compiled with Google's Clang toolchain for maximum stability, with all warnings and errors fixed
Compiled with Clang's cortex-a55 optimizations
Many tweaks under the hood for smoother UX, lower battery drain, etc.
Westwood as the default congestion algorithm (BBR is also available)
Available to flash with AnyKernel3
Latest kernel release on GitHub
LINK
Source
Omega GitHub: https://github.com/kristofpetho/kernel_oneplus_sm8350
Omega originally sourced from: OnePlusOSS
Thanks where it's due
@pyry666 for all his help getting me logs after logs after logs. Without him this wouldn't have been possible!
@Burt Squirtz and @crashazz3 and @TheKnux for helping to test
Kerneltoast for his extreme patience and guidance
osm0sis (for AnyKernel3)
@eng.stk for finding a way to have proper hardware detection working

Releases
September 18 - download HERE
- Pulled in patch from Google to make cpufreq stat collection less CPU-hungry (smoothness)
- Pulled in 3 Clang/LLVM stability fixes from upstream Linux
- Pulled in a patch for better power consumption when vibrations are enabled (from arter's source)
August 14 - download HERE
- Merged in OOS 11.2.8.8 sources
August 7 - download HERE
- Build with Google's Clang 13.0.1, updated Binutils to 2.37
- Pulled in 5 code fixes from CAF for display driver
- Pulled in 2 logic fixes from CAF for display driver
- Pulled in 3 various CAF stability fixes
- Fixed a dmesg error message with a commit from upstream Linux
- Removed all android_fs tracing from the ext4 and f2fs filesystem drivers
July 30 - download HERE
- Various coding fixes
- 5 code fixes from CAF
- A codefix from upstream Linux
- Enabled support for TTL spoofing
July 12 - download HERE
- Using Clang to compile (stability reasons)
- Tweaked Clang's LTO for better performance
- Re-enabled Oneplus's TPD module (stability reasons)
- Pulled in 3 stability fixes from CAF
- Re-enabled watermark boosting - now that a fix for it is available in upstream
July 7 - download HERE
- Further tweaks to GCC's O3 optimization level
- Pulled in a number of stability fixes from CAF
- Pulled in a UFS system fix from CrDroid kernel
- Removed even more logging from the kernel when the phone is not connected to WiFi
- Reverted to Westwood as default TCP congestion - BBR is still there and can be enabled
- Disabled OnePlus's TPD module - this was responsible for limiting apps' CPU placement, as reported by multiple news outlets
June 24 - download HERE
- Using stable GCC toolchain again - with newest patches it simply performs better than any Clang build
- Added a few stability fixes from upstream
- Added a few compiler tweaks for better overall performance
June 13 - download HERE
- Fixed major network error where userspace was trying to modify network settings but the kernel wasn't allowing it
- Pulled in a fix from CAF to improve/lower battery drain
- Updated Wireguard module to latest version
- Built using Google's latest Clang (12.0.6)
- Enabled all Clang internal optimizations (reverted a crazy CAF patch disabling them), and fixed all subsequent code errors
- Fixed an IRQ saving issue found via lockdep (upstream)
June 2 - download HERE
- Disable watermark boosting for significantly lower CPU usage during day-to-day use
- Further tweaks to memory management
- Removed USB webcam drivers
- Updated with OOS 11.2.6.6 kernel sources
- Fixed hardware detection algorhythm (kernel should now work on both the 9 and 9 Pro)
May 29 - download HERE
- Compiled again with GCC, without LTO
- O3 optimization enabled for all warnings/errors fixed
- Fixed charge throttling as well as thermal throttling during charging
May 25 - download HERE
- Built using Google's Clang
- O3 optimization, ThinLTO, SCS, CFI all enabled (like stock)
- Uses modules from userspace for maximum stability
- Fixed thermal throttling issues
- Fixed Warp Wireless charging issues
May 18 - download HERE
- Reverted to using Clang + ThinLTO (this seems to fix camera issues people were seeing)
- Fixed a scheduler regression that was introduced in the 5/12 build
May 16 - download HERE
- GCC LTO implemented
- GCC O3 optimization (together with LTO results in significant improvement of hackbench scores)
- Wireguard added
- Anykernel 3 updated
- Critical and stability fixes from CAF
- More code fixes based on GCC's diagnostics
- Significant improvement to ZRAM speed
May 12 - download HERE
- Updated to latest OOS sources for 11.2.5.5
- Updated GCC toolchain to 11.1.0, and fixes all new code warnings
- Disabled some unnecessary tools in the kernel that are not needed for Android
- Remove all debugging from the WLAN driver
- Remove all debugging from the Camera driver
- Pull in 2 scheduler fixes from CAF for load balancing
- Disable hardware intergrity checking driver that polled the hardware every 5 seconds for errors
May 5 - download HERE
- Now built with GCC 10.3.0, since it's better. No other reason. Linux is also built with GCC, so there you have it.
- Fixed all code warnings and errors that GCC found (it found a LOT)
- Switched to BBR congenstion control. Much better throughput on bad quality networks.
- Removed a ton more debugging
May 2 - download HERE
- Initial release with Clang 12.0.5 from Google, all code warnings and errors fixed
- Tons of debugging removed from the kernel for a smoother experience

First custom kernel is ready for the 9 Pro!
IMPORTANT - this will NOT work on a standard Oneplus 9, only the 9 Pro!!!
Changelog:
- Initial release with Clang 12.0.5 from Google, all code warnings and errors fixed
- Tons of debugging removed from the kernel for a smoother experience
Enjoy!

Hi! Thanks for your contribution and kicking off custom development of the 9 pro!
I am very much new to the OnePlus device platform and I have no clue how to install this. Can you please provide some steps or guide as to how can I install this ?

oddlyspaced said:
Hi! Thanks for your contribution and kicking off custom development of the 9 pro!
I am very much new to the OnePlus device platform and I have no clue how to install this. Can you please provide some steps or guide as to how can I install this ?
Click to expand...
Click to collapse
Once you are bootloader unlocked and rooted on your 9 Pro, the easiest way to install is to flash the zip through a kernel manager, such as exkm/franco kernel manager. Take a backup of your stock boot.img as well.
Once flashed, reboot, profit!
Running 11.2.4.4 with Omega on my 9 Pro
Thanks Kristof!

Awesomely Smooth experience.... as usual.
Thanks Kristof!
LE2120 running 11.2.4.4 DA and OMEGA!

avid_droid said:
TCP congestion is on cubic.
Click to expand...
Click to collapse
Thanks. Fixed in next build.

Thanks.just flashed on le2123 with 11.2.2.4 ba.
Cheers dev

Flashed and all good on 9 pro 1.1.4.4 eu

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just use a flasher, right?

Thanks...
Flashing your kernel in my New op9 pro

Awesome, thank you; device is suppose to arrive this week. Thank you for sharing

Reddit3321 said:
Once you are bootloader unlocked and rooted on your 9 Pro, the easiest way to install is to flash the zip through a kernel manager, such as exkm/franco kernel manager. Take a backup of your stock boot.img as well.
Once flashed, reboot, profit!
Running 11.2.4.4 with Omega on my 9 Pro
Thanks Kristof!
Click to expand...
Click to collapse
Just to ad this few steps. Kernel is SAFE but take EFS and PERSIST back up also..Still have nightmares with oneplus 8 pro.. LoL

pyry666 said:
Just to ad this few steps. Kernel is SAFE but take EFS and PERSIST back up also..Still have nightmares with oneplus 8 pro.. LoL
Click to expand...
Click to collapse
How to safe persist and EFS?

Sconny said:
How to safe persist and EFS?
Click to expand...
Click to collapse
Not want to be rude or anything but just use search. You can do those back ups easilly. And please dont do things that can potentially brick your device. No pun intended. Read read read. You cant never be too smart. Sorry about the rant

Flashed, running smooth all day. Thanks for sharing your work.

And it will not work for the regular 9? for the 8 and 8pro they were unified

mattie_49 said:
And it will not work for the regular 9? for the 8 and 8pro they were unified
Click to expand...
Click to collapse
It will not. I had to hard code some hw info detection specific to the 9 Pro's display.

Great

kristofpetho said:
It will not. I had to hard code some hw info detection specific to the 9 Pro's display.
Click to expand...
Click to collapse
And this took a lot swet and tiers. Many reboots and cursing. LOL

Related

[ROM] [5.1.1] Cyanogenmod 12.1 for HTC One V

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1, which is designed to increase performance and reliability over stock Android for your device.
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 ROM
* 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.
*/
About CyanogenMod:
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
Not working:
- Using device microphone instead of headset mic in calls
You need the newest version of TWRP to flash this rom!
Downloads:
20160826
Google Apps (not required)
Installing guide (thanks to @Amish and @bloodsaw):
Windows users: Download and install this tool. Mac OS X users: Download Android SDK and get the platform tools. Linux users: Get adb and fastboot using your package manager.
Download the rom and copy it to sd card
Boot into bootloader and flash this recovery
Boot into recovery
Wipe data/factory reset
Wipe cache partition
Select install zip from sd card.
Install the rom-zip.
Extract boot.img inside the roms zip-file.
Boot into bootloader and flash the kernel:
Code:
fastboot flash boot boot.img
Reboot your device, it will take about 10 to 20 min to boot.
Russian installing guide (thanks to @VFox777):
XDA:DevDB Information
CyanogenMod 12.1, ROM for the HTC One V
Contributors
jonas2790, rastomanchik
Source Code: https://github.com/AndroidPrimou/android_device_htc_primou/tree/cm-12.1
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.0.x
Based On: CyanogenMod
Version Information
Status: Stable
Stable Release Date: 2016-08-26
Created 2015-04-03
Last Updated 2016-08-26
Changelog:
20160826:
- Reverted some wifi changes
- Security fixes
20160703:
- Fixes from June Security Bulletin
- Kernel security fixes
- Disabled Multi user support
- Removed some unneeded binaries
- Increased wifi voltage and other wifi changes
20160507:
- Fixes from May security bulletin
- Kernel security fixes
20160411:
- Fixes from April security bulletin
- Added a workaround to use handset microphone when calling with headset
20160313:
- Upstream bugfixes
20160311:
- Includes the fixes of the march android security bulletin
- Kernel memory management updates
- Enabled dex2oat watchdog again
- Fixed boostpulse of interactive
- Fixed the rmt_storage daemon
20160203:
- Includes the fixes of the february android security bulletin
- Activated vdd sysfs interface for CPU voltage control
- Disabled the dex2oat watchdog, should fix gapps problems
- Updated zram kernel driver and enabled lz4 compression for zram
- Cleaned up cpu governors
20160106:
- Includes the fixes of the newest android security bulletin
- Set the default IO scheduler to bfq again
- Updated the interactive governor
- Increased the size of the SF heap
20151221:
- Fixed some audio bugs
- Default IO Scheduler set to FIOPS for better performance
20151212:
- Fixed screen unblanking problems
20151204:
- Updated display HAL and framebuffer to CAF versions
- Updated adreno blobs and kgsl to jb_2.5.5
- Fixed the webview crashes
- Changed system memory allocations
- Enabled systrace and function tracer
- Much smaller updates
20151105:
- Fixed camera bugs
- Changed default governor to interactive
- Lowered lowmemorykiller aggressiveness
- Some changes in power HAL
20151006:
- Fixed the new stagefright vulnerabilities
- Other important security fixes
- Changed IO-Scheduler to updated version of BFQ
- Enabled support for IPv6 tethering
- Removed internal storage support
- Enabled adaptive LowMemoryKiller
20150916:
- Fixed the fiops scheduler
- Some F2FS improvements
20150902:
- Changed the default scheduler to fiops
- Added some NAND tweaks
20150825:
- Security fixes for new Mediaserver vulnerability
- OTA server optimizations
20150816:
- New fixes for stagefright vulnerability
- Other security fixes
- No dexpreopt
20150731:
- Increased available ram
20150711:
- Standalone power collapse enabled for power saving
- Video codec improvements
20150616:
- Usb charging fixed
- Wifi disconnecting bug fixed
- Flashlight works when screen is off now
- Panel initialization time improved
20150609:
- Music bug fixed
- Build has dexpreopt
- Wifi direct support added
- USB-Otg support added
- dex2oat mode changed to balanced
- Kernel compiled with ubertc 5.1 toolchain
20150529:
- Fixed screen flickering bug
20150525:
- Performance improvements
- Internal storage support (Micro-sd still is the default storage)
- Added DeviceSettings control for doubletap2wake tapping-height
- Low-end video codecs added
- Camera improvements
20150523:
- Fixed some OTA bugs
- Improved dalvik vm heap sizes
20150521:
- Wifi issues fixed (upstream bugs)
- Decreased zram to 128mb again
- Earpiece sound quality improvements
- Added OTA server (YOUR DEVICE HAS TO BE S-OFF TO USE IT, otherwise flashing the kernel won't work)
- Using app switching button for app switcher now
20150511:
- Much performance improvements
- New bcmdhd wifi driver and firmware
- Wifi hotspot fixed
- Fixed WhatsApp voice calls
- lz4 algorithm for zram
- Increased earpiece volume, maybe incoming calls are louder now
- Enabled noise cancellation, speakerphone should work now
- Disabled dex2oat watchdog, maybe gapps will work better
20150503:
- Fixed wifi issues
- Fixed wrong system partition size (flash TWRP 2.8.6.0_2)
20150502:
- Performance improvements
- New default CPU-Governor: Intelliactive
- Bluetooth-Sleep support
- Much better memory allocation: 371mb of ram now
- New adreno drivers
20150428:
- F2FS support (you need TWRP 2.8.6.1: Format data and cache partition with f2fs)
- System partition size fixed
- Low brightness fixed
- Bluetooth bugs should be fixed
- Using NuPlayer by default now
- Dialer lookup enabled
- No dexpreopt
20150427:
- Updated to Android 5.1.1
- Much bugs fixed
- Most things are working
- Performance improvements
- ADB security enabled
- With dexpreopt (first boot will be fast)
20150403:
- First build
Reserved
gonna try this tomorrow. good job dude
Is rastomanchik also working on this ROM?
Shoaib05 said:
Is rastomanchik also working on this ROM?
Click to expand...
Click to collapse
I think he will work on it (maybe after kitkat is totally completed)
Nice to see that HTC One V is not dead! Great job mate!
Amazing work on this! I never thought my One V would even run KitKat, honestly.
Anyone notice a speed difference with and without Gapps? The ROM seems to be excruciatingly slow if I use Gapps, but if I don't, it's as fast as CM11.
Can you?
Can anyone tell me whole installation process please. Do i need latest recovery? How to install latest recovery through mobile?
sultan1419 said:
Can anyone tell me whole installation process please. Do i need latest recovery? How to install latest recovery through mobile?
Click to expand...
Click to collapse
Yes you need the latest recovery: http://forum.xda-developers.com/htc-one-v/orig-development/recovery-twrp-2-8-5-0-primou-t3040186
Cm12.1 successfully booted with the new kernel, everything works except gps at the moment!!!
Wow
jonas2790 said:
Cm12.1 successfully booted with the new kernel, everything works except gps at the moment!!!
Click to expand...
Click to collapse
Awesome. I am very excited to try it. :cyclops: I can't believe that HTC One V will run Android 5.1.
I want to know to install this rom on one v using phone. As now i have cwm recovery so tell me how to install twrp on it through mobile. And after installation what to do in detail please.
When is the next build?
hehaichi said:
When is the next build?
Click to expand...
Click to collapse
please respect the developer. And no ETAs.
AuliaYF said:
please respect the developer. And no ETAs.
Click to expand...
Click to collapse
I am in NO WAY disrespecting the developer. He/She may choose not to reply to my query.
hehaichi said:
I am in NO WAY disrespecting the developer. He/She may choose not to reply to my query. I dont need a third person poking his nose.
Click to expand...
Click to collapse
no need to be like this, but asking for ETAs is breaking the xda rules.
jonas2790 said:
Cm12.1 successfully booted with the new kernel, everything works except gps at the moment!!!
Click to expand...
Click to collapse
no mute in calls and no bass bug no?
Amish. said:
no mute in calls and no bass bug no?
Click to expand...
Click to collapse
I didn't test the calls but bass is working

[KERNEL][LOS][v3.18.87] The Soda Kernel [15 DECEMBER] + firmware flashables

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introduction
Buying Mi 5 gave me opportunity to spread wings and maintain a (hopefully) better version of Linux kernel for this device.
The idea is to provide two levels of modification, one - the most up-to-date kernel upstreamed with official Linux changes (also Android) repo to provide bug-free and stable experience, second - tweaks and additional features placed in top of upstreamed version to give blazing efficiency and battery friendly experience.
I came with the idea while looking onto linux repo - there are so many fixes and optimizations done to the code which gonna never come up to any Android device. So why not to try and pick some of these changes?
Android device is one of many for which Linux kernel is developed. Adding hardware specific changes will give extra performance and battery backup as it's going to use the phone architecture better instead of generic implementation.
Click to expand...
Click to collapse
Compatibility
It is LOS forked repo so any LOS-based ROM should be compatible (not MIUI compatible).
Do not use it with any custom ROM or additional modifications as I'm not supporting them (and will not).
Of course, you can try flashing, if it works - enjoy.
Downloads
You can use 'Download' tab in the top or download from AFH .
Installation:
- download kernel zip and necessarily check MD5!
- boot into recovery
- flash the zip (always flash on clean ROM!!)
- (optionally you can wipe cache/dalvik)
- reboot to the system and taste the madnesss
Soda-Upstream - stock kernel upstreamed with official repos as much as it is possible.
Features of Soda-Upstream:
- Almost fully updated to v3.18.87
- Compiled with fresh Google's prebuild GCC 4.9
- A lot of official fixes and optimizations
- Updated crypto parts
- Updated lib parts (lots of performance improvements)
- Updated cpuidle
- Updated devfreq
- Updated Android drivers
- Updated pseudo file systems & JBD2
- Updated fs (up to 10% faster I/o)
- Updated arm64 deps
- Updated parts in net
- Miscellaneous scrpits update
- Stock frequency on 32gb model
- Own fix for mitigation task not initialized (testing)
- Other minor updates
Soda Kernel - upstreamed kernel compiled with fresh GCC, arch dependent flags, awesome tweaks and without any useless crap!
Features of Soda:
- All from Soda-Upstream
- Compiled with UBER TC 5.x (can't go higher due to s***ty drivers)
- Added arch optimization flags
- Changes in config
- Enabled by default net governor Westwood
- New IO scheds: ZEN, FIFO, FIOPS, Maple
- New CPU govs: ElementalX, ZZmove, Blu_Active
- Adreno Idler
- Adreno boost
- Disabled CRC
- Mi5 Lite has standard CPU frequency
- Added Frandom
- Backlight Dimmer
- Kcal v2
- Compiled with -O2
- Passing SafetyNet: GREEN
- Optimized functions
- Charge Control
- Boeffla Wakelock Blocker with predefined stuff
- Disabled FG wakelocks: update_sram, update_temp, memaccess, soc_work
- Default noatime mount flag
- Sound Control
- FingerPrint boost (it's not taking a lot of battery, but makes a difference at screen wakeup)
- Higher Slimbus frequencies to provide better sound quality (and truly it's working)
- Gentle Fair Sleepers, Arch Capacity interface
- Dynamic Sync Control 2.0
- USB OTG
- Alucard Hotplug
- IntelliThermal
- PowerSuspend
- Updated CPU boost
- Memory Compaction mechanism
Before you exit:
Don't get dishearten because of 'poor' features list. Main advantage of this kernel is upstream of many parts. Changes in Soda are chosen wisely, I implement thinks that are supposed to benefit. You don't need XYZ, you need Soda
Known issues:
Upstream:
None
Soda:
- Battery idle drain (investigation in progress)
- Speaker gain is broken
FAQ:
Could you add XYZ feature?
I will not add features I personally think are useless or unneeded. I can only promise I'll take it into consideration. If you're so single-minded about that just fork repo and pull request - I'll pick it gladly.
Could you upstream XYZ?
Ok, upstreaming is nice unless you fall into conflicts or totally new code structure. Don't expect me to update the kernel up to 4.13, haha! I'll keep in mind what you're asking me for, but if you're so desperate about this I'm waiting for pull request .
Why should I choose yours upstreamed version?
Don't expect it to change your Mi 5 into S7 edge =)
Think about like that - some time ago Google forked Linux kernel at version 3.18.31 and added their changes, then Qualcomm forked it and added their changes, then Xiaomi forked and added their changes. There are a lot of bugs, memory leaks and other bad stuff in here and probably nobody will take care about it... Oooch, except me! My aim is to keep the code as most up-to-date as possible - so without rewriting a half of proprietary drivers.
Does it make any sense?
In my opinion - yes.
Our phone will be more stable, not vulnerable to newest 0-days and hopefully a bit faster and battery friendlier. The key is bug-free optimized code; magical tweaks do not always take the first place in making a kernel better. As of my experience using upstreamed version gives more battery and smoothness!
"My phone freezees help meeee!!!!!!!11oneoneone..."
Description, logcat, kmesg or GTFO.
Could your changes damage my device?
I don't take any responsibility for broken devices, firing from work or nuclear wars. It's a hobby project maintained in my free time. I carefully pick up changes not to mess up anything and add features that are checked and provided to work correctly. There is a small range of cases when you can loose your phone completely, typically it will just freeze and reboot.
Where is version for MIUI and EAS?
MIUI won't be supported because Xiaomi haven't updated their repo for a long time. Building for MIUI would bring more problems than advantages.
EAS is in testing stage and will be released soon.
Remember to hit like button if you like my work as it motivates me a lot!
Play with it and post your experience please
Firmware:
Now I'm also providing updated firmware flashables.
You can easily download firmware packages from AFH .
Happy flashing!
Telegram:
I created Telegram Group where we talk about everything concerned with Android and kernels. Everyone is welcome!
--- Invite Link ---
Nightlies:
If you want to taste unreleased versions of Soda make sure to join my --- Telegram Channel --- where I post release candidates.
Donation:
I have spent lots of hours on debugging and feature adding. I'm developing this project in my free time but I put my heart and soul into it. I'll be glad to see you appreciate my work!
Buy me a coffee
Thanks to:
All LineageOS team @Lord Boeffla (aka andip71) @ZaneZam @bgcngm @frap129 #engstk @arter97 @jollaman999 @franciscofranco @TheCrazyLex
Special thanks to:
@mlira1 @SkiesOfAzel
XDA:DevDB Information
The Soda Kernel, Kernel for the Xiaomi Mi 5
Contributors
xNombre
Source Code: https://github.com/xNombre/android_kernel_xiaomi_msm8996
Kernel Special Features:
Version Information
Status: Stable
Created 2017-08-20
Last Updated 2017-12-15
The Soda-Upstream Kernel Changelog:
Code:
beta 1.0:
- initial release!
- upstreamed to v3.18.60
- upstreamed crypto section
version 1.1 (no beta anymore):
- upstreamed lib section (it includes a lot of optimizations done to the code)
- minor init fixes
- few block fixes
- updated ZRAM driver (with new LZ4 it's way much faster)
version 1.2:
- updated GCC from google's repo
- updated to linux 3.18.70
- updated cpuidle
- updated a bit in cpufreq
- updated devfreq
- [STRIKE]updated pseudofilesystems (like sysfs, proc etc.)[/STRIKE]
- updated Android drivers (a lot of changes)
- useless Adaptive LMK is removed
- updated sdcardfs
- merged LOS branch
version 1.2.1:
- BIG filesystems update (mainly pseudofilesystems)
version 1.2.2: --IT'S A HOTFIX---
- reverted a lot of crap
- fixed zram issues (need to be updated more carefully)
- minor updates in video, gpu
- minor updates in amba
- merged LOS tree
version 1.3:
- upstreamed to v3.18.84
- upstreamed with base
- updated android drivers (this time it's truly better)
- updated arm64 section
- own fix for broken mitigation task
- now you have stock freqs on 32gb model :)
- updated fs (up to 10% performance spike based on benchmarks)
- updated Linux scripts
- updates in net section (incomplete)
- kernel is now named soda :D
- updated GCC
- minor changes
version 1.3.1:
- fixed problems with F2FS
- fixed problem with kernel name unavailable
version 1.3.2:
- upstreamed with base (fixes potential touchscreen issues)
- upstreamed linux to 3.18.87
- updated AnyKernel2 (smaller package size)
The Soda Kernel Changelog:
Code:
beta 1.0:
- initial release!
- changes in config
- disabled CPU Boost
- disabled useless things
beta 1.1:
- added backlight dimmer
- added Kcal
- added Adreno Idler
- hard disabled CRC
- added frandom
- stock freqs on Mi5 Lite
- added blu active
- deleted LZO
- config changes
- based on newest Soda Upstream
beta 1.2:
- improved square root algo
- added FP boost
- SafetyNet: green
- improved imageblit func
- added parameter to change QC Fast Charge current
- added parameter to change charging current (900mA mod)
- added wakelock blocker
- added Sound Control
- added BL limits parameter
- default to noatime flag
- added Adreno Boost
- merged latest soda-upstream (with LOS changes)
- temporary fix for backlight dimmer (need more investigation)
- passing new flags to compiler
- updated toolchain
- disabled useless stuff in config
- less debugging more power
- higher freqs on slimbus
beta 1.2.1:
- FIXED high ram usage
- enabled bfq and cfq due to requests
- disabled useless wakelocks from FG
- updated blu_active
beta 1.3 (not released yet):
- rebased on top of upstream
added:
- Memory Compaction Mechanism
- Sound control ported to Xiaomi devices
- PowerSuspend
- Alucard Hotplug
- IntelliThermal
- Dynamic Sync Control
- updated and reenabled CPU boost
- removed log spamming
- changes in config (disabled useless things, added OTG support, enabled ondemand, wakelocks garbaging)
- fixed not working AudioFX!!
- tweaks to provide better battery life
- enabled arch capacity
- added knob to manipulate Gentle Fair Sleepers and Arch Capacity
- changed GPU initial power level
- fixed problems with temperature sensor
- introducing own Charging Control module
- minor changes
beta 1.3.1: (not released yet)
- fixed problems with battery drain (finally)
- changed toolchain to ?Linaro? 7.x
- refreshed compiler flags
- updated BFQ to v8r12
- disabled crap from compiling
- frandom is now utilized
- overall random api performance improvement
- c-state aware scheduler
- CFQ and BFQ compiled with hierarchical scheduling
- more silence
Reserved
How to tweak my kernel:
1. Charge control:
Path of all tunables is
Code:
/sys/kernel/fast_charge
You have 3 tunables as follows:
maximum_qc_current (DEFAULT: 2800) - it's very important one, its value controls QC3.0 charging current. Recently there are commons problems with screens and the assumption is that too high current causes that problem. Lowering the value would also make your battery's life longer!
force_fast_charge (DEFAULT: 0) - it's common known knob to force 900mA charging on unknown sources. I tweaked it a bit and now, if it's possible, driver will choose higher values depending on the source.
charge_limit (DEFAULT: 100) - it's very interesting one, its value controls maximum percentage of which your battery will be charged. After given limit charging will be stopped. Lowering this value could benefit in prolonged battery life as capacity wouldn't decrease that fast. Scientific researches recommend charging your battery to 80%.
3.Sound control:
You can tweak it using Kernel Adiutor.
4.Sched features:
I would like to resolve doubts connected with Arch Power. On kernel v3.18 there isn't such a feature. Cherry-picking old interface doesn't change anything in fair scheduler, the only thing you see is magic switch which does... nothing. Our kernel has feature named Arch Capacity which is *let's say* correspondent to previous one so I created two tunables - arch_capacity and arch_power. These are mirrored values so now you can enable/disable it in KA as known Arch Power but please remember that you're changing arch_capacity in fact.
My recommendation is to disable Gentle Fair Sleepers because you can save battery a bit.
You can also tweak it using Kernel Adiutor.
miui support please...
Aosp support ?
Did you add somes cpu governor ? And for you which its the best to have a better battery
Envoyé de mon MI 5 en utilisant Tapatalk
Aleluya! Not much kernel variety on our mi 5, pretty thanks I will test it early dev
cheers
Download link (I've found it, but it would be better in the description)? Governors? SOT?
Great news Sir,
I hope soon we could have good costum kernel with great stability and compability with newer rom.
I wish you could support AOSP based rom too
radnou974 said:
Did you add somes cpu governor ? And for you which its the best to have a better battery
Envoyé de mon MI 5 en utilisant Tapatalk
Click to expand...
Click to collapse
I just started Soda developing so you have to wait sometime for custom tweaks.
According to governors I think the most important thing is to configure it nicely, sth like AKT or GovTuner does. Stock interactive is good.
hans william said:
Great news Sir,
I hope soon we could have good costum kernel with great stability and compability with newer rom.
I wish you could support AOSP based rom too
Click to expand...
Click to collapse
AFAIK AOSP is based on LOS sources, it should work correctly
But some time it doesn't work properly on AOSP based rom, I used DragonXia as default kernel on every rom I flashed, but lately with latest release rom it's doesn't stable.
I hope you could made manually setting on/off the CPU core for better battery life, as hotplugging not save much battery life.
Overclocking was great too
I will test yours beta kernel right now Sir
CPU 0 and CPU 1 are stuck at 1593MHz.
Edit:
It seems like a restart solved it.
Edit2:
setting io scheduler to noop causes freeze.
abyssq said:
Edit2:
setting io scheduler to noop causes freeze.
Click to expand...
Click to collapse
On my phone everything works correctly.
Try typing in terminal/adb:
su
echo noop > /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler
If it says noop it's working...
xNombre said:
On my phone everything works correctly.
Try typing in terminal/adb:
su
echo noop > /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler
If it says noop it's working...
Click to expand...
Click to collapse
Yes it's working now. The test-iosched scheduler caused the problem.
will you add miui 9 support? miui lack of custom kernel support. thanks for dev gemini kernel.
which features does it have? quick charge? eas ?
"disabled CPU Boost" this is real great, i guess you know what i want. waitinng for a more stable realese and then give it a try
I pushed a first beta of Soda kernel. I added a few useful features, but battery usage reduction should be significant. Try it on your own
Thanks for your work! I will try and report back when possible.
Poor scores

[KERNEL]New Kernel 1.29-O/2.12-O [OOS-5.0.x/OOS-5.1.x][4.4.131]

Hello everyone. After some time for building Roms and kernels for the OnePlus One, now I am here for the OnePlus 5.
Some of you already know me for what I focus on my builds.
Functionality
Speed
Smoothness
Battery
Features:
Compiled by a custom toolchain from Google to ensure the best experience.
Schedulers available:
SIO
BFQ
ZEN
CFQ - Default
Deadline
NOOP
MAPLE
Extra TCP advanced algorithm:
Westwood - set as default
Reno
Cubic
Highspeed
HTCP
Vegas
Veno
lp
illinois
yeah
Sound Control - Sound and Microphone control
KCAL - Control colours on your display
Adreno Idler - (Battery saver without compromising performance)
Notification LED control
Sweep2sleep
To control features use kernel adiutor.
Patches from Google Kernel for 4.4 devices
Latest CAF patches LA.UM.6.4.r1-07600-8x98.0
Latest Linux patches 4.4.126
Optimized libraries
Crypto patches
Wakelock blocker to reduce battery drain due to the modules (does not affect functionality)
Upstream code for F2FS
Using noatime
Patches to improve battery life
Passes Safetynet
WireGuard
Upstream code android binder
Screen flickering fixes
Version to use:
2.xx-O - Oreo 8.1 - Recommended to use OB6
1.xx-O - Oreo 8.0
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download New Kernel ​
There are two branches:
Stable - which has all proven and tested development
Beta - new features introductions. Remember if your chip fries... It was done with good intentions, intended only for brave people.
To build this kernel I give a huge thank you to great dev @savoca has had a lot of patience and shared his knowledge to build a kernel with a step by step guide, as also explaining how each stuff works.
@andi79 for the introduction of the 64bit model kernel compilation.
All credits go to the OnePlus team.
Disclaimer: With the use of this kernel I am not responsible for any damage to the phone. It is at your own risk in case happens something wrong. I use this kernel daily and test it before release.
Source code
XDA:DevDB Information
[KERNEL]New Kernel for the OnePlus 5
Contributors
jgcaap
ROM OS Version: 8.0.0 oreo/8.1.0 oreo
Version Information
Status: Stable
Created 2017-12-10
Last Updated 2018-03-23
XDA:DevDB Information
New Kernel, Kernel for the OnePlus 5
Contributors
jgcaap
Source Code: [url]https://github.com/NewRom/android_kernel_oneplus_msm8998[/URL]
Kernel Special Features:
Version Information
Status: Stable
Created 2018-04-01
Last Updated 2018-04-01
Instructions:
1) If you come from another kernel (which is not stock) flash the boot.img of the stock version.
2) Flash the zip file.
Changelog:
v2.05-O
Updated toolchain compilation environment
v2.04-O
SELinux: removed switch option.
updated to Linux 4.4.125
adjusted swap kernel to 10%. It will be very hard to use this.
Added patches from Google related to
Merged new Oneplus patches
Upgraded to wifi LA.UM.6.4.r1-07400-8x98.0
ensure the kernel is compiled for LP64
Added patch to prevent regressions in the compressed kernel image.
Removed some debug options and unnecessary features.
v.2.03-O
Merged LA.UM.6.4.r1-07400-8x98.0
v.2.02-O
Merged linux v4.4.123 patches
v.2.01-O
Reverted some of the code from the last rebase.
v2.00-O
Rebase kernel from oneplus 8.1 sources.
There was added alot of patches for cfq.
Removed some schedulers.
Added wireguard.
Applied changed which use less cpu.
Added display options to provide power savings.
Added display dimmer option.
Added kcal back.
Removed fifo, so, vr schedulers.
v.1.29-O
Rebased current kernel commits as it is with 8.1 sources.
v.1.28-O
More upstream fixes by Google.
v.1.27-O
Screen flickering fixes (was finding this really annoying)
CPU jumping randomly fixed ( more battery)
Upstream code for android binder with loads of fixes from Google
v.1.26-O
Merged CAF patches LA.UM.6.4.r1-06900-8x98.0
v.1.25-O
Merged Linux patches 4.4.120
v.1.24-O
Merged Linux patches 4.4.119
v.1.23-O
Synced with Oneplus changes.
v.1.22-O
Added wireguard back.
v.1.21-O
Merged Linux patches 4.4.118.
Disabled wireguard
v.1.20-O
Merged Linux patches 4.4.117.
v.1.19-O
Updated toolchain
v.1.18-O
Rebased and merged Linux patches 4.4.116.
Ext4 fixes
CPU interactive fixes
Merge tag 'LA.UM.6.4.r1-06500-8x98.0'
Changed some configurations for WiFi.
Lowered min frequency to 300mhz (less heat).
v.1.17-O
Merged Linux patches 4.4.115.
v1.16-O
Merged Linux patches 4.4.114.
v1.15-O
Synced with new oreo beta
Added cpu patch
Added crypto
v1.14-O
Merged Linux. Patches 4.4.113
Updated WiFi from caf drivers
Merge caf LA.UM.6.4.r1-06100-8x98.0
v1.13-O
Compiled with custom toolchain
v1.12-O
Merged Linux patches 4.4.112
v1.11-O
Synced with beta 2 for op5t
v1.10-O
Added Linux patches until 4.4.111
Disabled some debug
Changed binary Wi-Fi to a custom one built by caf
Compiled with google toolchain
Troubleshooting :
No wifi or broken hotspot.
Solution: You probably come from another kernel, please reflash rom, then flash kernel.
Battery drain:
This rom has a bug in the wifi. Please go to advanced settings and turn off scanning always available.
On status appears kernel 4.4.21
Since there is a requirement to the kernel say that is version 4.4.21-perf+ for wifi to work then I named the kernel 4.4.21-perf+. This until I check wifi driver source.
Thanks for making the dedicated thread
Veliion said:
Thanks for making the dedicated thread
Click to expand...
Click to collapse
Welcome, and enjoy.
I'm on OOS 5.0.4 which is on android version 8.0.0. Is newKernel-OOS-1.29-O.zip the latest version that i should use? Or some other. Please help
wow. new kernel . gonna try .
sleepwalking0593 said:
I'm on OOS 5.0.4 which is on android version 8.0.0. Is newKernel-OOS-1.29-O.zip the latest version that i should use? Or some other. Please help
Click to expand...
Click to collapse
Correct.
Can you add tripndroid and Alucard?
Download and ready to flash. Thx for your work.
Thanks for op5 thread
Does it support for RR?
Glad to see you in op5 forum, I'm following you since the good old bacon times
h.castle said:
Does it support for RR?
Click to expand...
Click to collapse
Only on OOS ROMs. It doesn't support custom ROMs currently
New kernel online with latest Linux patches 4.4.127
I have installed this version newKernel-OOS-2.07-O.zip on open beta 8 on my Oneplus 5 but during flash it shows oneplus 5t .Is it good to go or i should wipe my phone ???
Aarju said:
I have installed this version newKernel-OOS-2.07-O.zip on open beta 8 on my Oneplus 5 but during flash it shows oneplus 5t .Is it good to go or i should wipe my phone ???
Click to expand...
Click to collapse
It is fine.. Just a message kernel are unified.
jgcaap said:
It is fine.. Just a message kernel are unified.
Click to expand...
Click to collapse
Thanks developer
2.07 work veey well. Thx dev.
How to update kernel??

[12/09/19][kernel] FENIX [4.4.191][HMP][EAS][Pie/10][CLANG][OC ]

FENIX
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Disclaimer:
use this kernel at your own risk. Flashing it may brick your device. I'm not responsible for any software/hardware and any kind of damages/losses.
I make this kernel for my own, and decided to share with community.
The goal of this kernel is to maintain stability over performance, and extend for what possible the battery backup. Enjoy.
What's in it:
Code:
-Cpu little cluster overclock to 1.8ghz
-Cpu big cluster overclock to 2.2ghz
-Gpu Underclock to 160mhz
-Latest Caf Tag
-Latest wlan drivers
-Kcal, display color full control
-Sound Control
-PowerEfficientWq
-F2fs
-Vibration Control
-Compiler Optimizations
-Battery Tweaks
- Sultan Drivers
-EAS
-Performance tweaks
-Refer to changelog or to git to all the tons of features
-Some other patches, check github
Download this file, reboot to bootloader and do:
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
Flash Twrp
Then Reboot to Twrp
Changelog-HMP-:
Code:
12/09/2019--LoveEdition--
- Android 10 ready
- Drg: Overclocked big cores too, like sdm660: 2.2ghz
- rebased again to new cleaned sources with latest nikki merges
- upstreamed to 4.4.191 + LA-UM-0074 wlan drivers, built inline
- Sultan's Ion, Iommu, ashman drivers, for improved performances
- Goodboi governor: an impulsed tweaked by me for battery
- kgsl: dispatch commands by using a master ktrhead: to reduce jitter by alot
- pl2: set gpu idle timeout to 64ms (like b2n\drg)
- ddrbus: changed governor to avoid 100% freq stuck
- allowed deeper idle cores\cluster
- source cleaned, keeped only the useful commits
- and alot, alot more. Check git.
13-07-2019-1644:
- rebased all to drg lastest sources to avoid any kind of source corruption
- camera drivers fully reverted to stock source to avoid any kind of problems (i will not touch nothing there in future)
- builded with gcc9 with alot of fixes
- upstreamed to 4.4.185 + LA.UM-0072 wlan drivers, built inside the kernel
- we are module free
- sdm636 have now only little cpu freqs like sdm660: we cant afford 2.2ghz on 3000mah battery
- sdm630 fully supported
- nokia b2n fixed rotation bug
- cpu input boost
- disabled debugfs, tracing, loggings, debugs, i mean, not all of them but TONS OF THEM
- deleted most of unused drivers, like dvd players, cassette drivers (wtf nikki)
- disabled nikki usless drivers
- alot of workloads on power efficient workqueques
- vibration control (maybe not in b2n)
- sound control , with no metallic sound
- 160mhz initial gpu freq to save power + -50v undervolt for better power consumption
- sdFat driver, lastest version
- KCAL fixed, updated and optimized for sdm660 family processors
- zram lz4 compression for better perf
- disabled crc check
- blocked ipa and other wakeloks (but no boeffla wkl blocker for now)
- gpu will wake up only if there is a ioctl rather then a touch input, to save power
- reduced the max voltage allowed for the panel
- lowered cpu\gpu thermals to avoid device damage
- new fenix banner for recovery
- console framebuffer optimizations for 70% better perf
- 3 x faster integer than stock
- interactive optimizations
- idle lite changes
- don't need to flash magisk after flash
- and other tons of optimizations, but carefully cherry picked from the best devs around here
-refer to build date as build number
Changelog-EAS-:
Code:
-basically, all the feats of Fenix HMP
-EAS energy model by @nysadev (fantastic)
-some governors, blu_schedtuil, schedutil,
-dont let gcam and settings waste power on background
-removed some other logspams\debugs
-cpuidle lpm prediction tuning, for better idle battery saving
-removed dsboost\dynamicstune boost, to save power
-builded with Ofast
-alot of tasks uses interrutible w8s , for better idle
-100hz otpimizations
-backported PELT from 4.14 , for better power consumption/performance
-alot of sched patches
-alot of gpu performance improvements
-enabled ram ECC for faster reboots (this is awesome)
-aligned strcmp to 64kb cache line
-alot of cache optimizations by Sultan
- rewrited iommu/Ashman from sultan
- optimized for armv8
- increased kgsl priority: more smoothness
-boot speed optimizations
-cpu idle further optimizations
- PELT optimizations
- Foxed snapdragon 630 EAS bootloop
- updated my energy model for 630 by porting nysadev capacity based one for sdm660: this will give more battery and smoothness
- suppress debug verbose and disabled exp rcu like in sdm660
- removed the usless tz_log, that was spamming and yelling in the background (tx to bielfiboi to discover this)
- builded with gcc 9.1 -ofast
- very good battery backup, performance
DOWNLOAD-HMP-
DOWNLOAD-EAS-
ALWAYS wipe dalvik cache after flashing the kernel, or you will encounter bugs.
Enjoy,
feedback is appreciated.
Thanks to:
@madpausa, without him I would never have approached a linux distro
@hmd
@xda
and all the other authors of the hundreds of commits in github !
XDA: DevDB Information
Fenix kernel for NokiaDRG\B2N\PL2
Compiler: GCC-9.1
Branch: Android 9.0
Kernel Version: 4.4
defconfig: nokia_defconfig
Source Code:
FENIX
Image source:
http://i.imgur.com/R2xjrZ7.jpg
reserved
reserved
hi, first need bootloader unlocked ?
blademetal said:
hi, first need bootloader unlocked ?
Click to expand...
Click to collapse
Of course
As I think you're may a GSI fan, is this kernel compatible with GSIs too?
X1111 said:
As I think you're may a GSI fan, is this kernel compatible with GSIs too?
Click to expand...
Click to collapse
Yes, of course. Currently running the oc version with pixel dust GSI.
Btw this kernel is for android 9.0.
Feels good to see Nokia Dev community getting started.
Does this root method work on stock pie, December patch, even without flashing the kernel?
And also do you have gapps on your gsi? If so, how did you flash them? I was trying to install aex gsi, but it's a bit unstable and also no gapps
bbcastro said:
Does this root method work on stock pie, December patch, even without flashing the kernel?
And also do you have gapps on your gsi? If so, how did you flash them? I was trying to install aex gsi, but it's a bit unstable and also no gapps
Click to expand...
Click to collapse
Yes. For Gsi you need to resize system partition after installing it, so you can install gapps.
Or just flash pixeldust gsi.
paul89rulez said:
Of course, check your pm.
Click to expand...
Click to collapse
Can I get one of those PM's regarding unlock? Thanks
Is it posible to overclock the GPU to snapgradon 660 level? AS far as I know, the SD636 is exactely the same chip, only underclocked.
_joaocampos said:
can i get one of those pm's regarding unlock? Thanks
Click to expand...
Click to collapse
need your pm for unlock stuff too
bbighouse said:
Is it posible to overclock the GPU to snapgradon 660 level? AS far as I know, the SD636 is exactely the same chip, only underclocked.
Click to expand...
Click to collapse
dunno, i don't really care about this, as i don't play with my phone. Anyway, if you want to play, disable adreno idler.
But, i will check it.
majenun123 said:
need your pm for unlock stuff too
Click to expand...
Click to collapse
Pls don't make post like this!
KEEP THE TRHEAD CLEAN!!!
Search internet or telegram for bt unlock , but STOP searching it here.
paul89rulez said:
dunno, i don't really care about this, as i don't play with my phone. Anyway, if you want to play, disable adreno idler.
But, i will check it.
Click to expand...
Click to collapse
Thanks in advance!
I have found this kernel for the Redmi 4x (snapgradon 435) in which the GPU was successfully overclocked. Maybe this can help?
https://forum.xda-developers.com/xi...kernel-redmi-4x-simplekernel-santoni-t3743975
bbighouse said:
Thanks in advance!
I have found this kernel for the Redmi 4x (snapgradon 435) in which the GPU was successfully overclocked. Maybe this can help?
https://forum.xda-developers.com/xi...kernel-redmi-4x-simplekernel-santoni-t3743975
Click to expand...
Click to collapse
New build 0.6 rebased on caf is up. Gpu oc for now is not stable for our phone, i ve tryed. I will include it when it will be stable.
1.3 relase update:
-removed sound control (will re-add it when i have time)
-re enabled Bcl (for better battery backup)
-upstreamed to LA.UM.7.2.r1-06500-sdm660.0
Could Be Anyone said:
Tested and working great.
Just wondering, is there a mod to increase the speaker volume?
Click to expand...
Click to collapse
Not for now kernel side. I ve removed Mic gain and Headphone gain for now. I will re add it later (had some problem with mic, but it wasn't the commits). Install ainur audio from Magisk if you want better audio (installation takes time).
Who want to test -80mv Gpu Uv can flash this:
https://mega.nz/#!VhFVFYpZ!QBOan6WuHJMzRr0N5uI9MZJAkbhTZMyjgcKGqXppqrk
In this relase there are also other battery saver tweaks. Let me know if the uv its stable. Thanks.

[r71] arter97 kernel for OnePlus 7 series

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
arter97 kernel for OnePlus 7 series running OxygenOS​
/* Features */
Supports OnePlus 7, OnePlus 7 Pro, OnePlus 7T and OnePlus 7T Pro
Fully rebased kernel without unnecessary OnePlus' code
Latest CAF msm-4.14 kernel fully merged
Using zswap + vnswap to replace zram
- Ditched conventional zram swap approach for more efficient memory operations
- Backported zsmalloc memory allocator from mainline
- Backported zswap compressed page cache from mainline
- Samsung's Galaxy S9 memory modifications merged for better swapping efficiency tuned for Android
Use CONFIG_HZ = 300
Optimized power configuration
BBR as the default TCP network congestion control
vDSO 32 patches to improve 32-bit performance
vmalloc backported from mainline to improve memory allocation performance
Latest Linux 4.14 subversion merged
DM-verity fully disabled (you can remount /vendor to R/W properly)
Timer optimizations
Additional power savings applied to the display panel
RTL8152/8153 USB LAN adapter support
Passes SafetyNet
Built with -O3 speed optimizations
Built with latest GCC
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 doesn't touch /system or /vendor)
Modules support disabled for lighter kernel
WireGuard support
Removed RTB(interrupt) logging entirely
No VLAs(info)
A whole lot more...
/* Details */
- Fully rebased kernel without unnecessary OnePlus' code -
This kernel is not based on stock OxygenOS kernel source provided by OnePlus. Instead, it’s based on the latest and greatest Qualcomm has to offer. Only the necessary parts from the OnePlus kernel has been cherry-picked, such as OnePlus 7 specific device drivers.
This brings 2 major changes: less debugging code and an overall lighter kernel.
There are miscellaneous changes made by OnePlus that are supposed to maximize utilization of system memory. But seeing how it’s implemented(heavily relying on zram and a physical writeback swapfile), I decided to remove it entirely.
Users are recommended to disable the “RAM Boost” feature from Settings > System > RAM Boost.
Due to the completely different base, the memory management with this kernel will be drastically different from other kernels.
- Latest CAF msm-4.14 kernel fully merged -
This kernel is also constantly merging the latest Qualcomm Android 4.14 kernel. This tag contains more up-to-date changes from Qualcomm than the regular Snapdragon 855 tag(sm8150).
- Use CONFIG_HZ = 300 -
This changes the context switching interval from 10ms to 3.33ms. Pixel used this for years and Google recommends other vendors to do the same for less jitter.
This is even more important on displays with higher refresh rates.
- Optimized power configuration -
Stock OnePlus configuration forces display-related processes to use the Gold cluster(formerly known as big cores) exclusively.
This configuration brings a huge power regression since it makes every frame dispatch to wake up and use Gold cores.
This kernel resets this profile to use the configuration Google recommends, which is to use the Silver cluster(formerly known as LITTLE cores) exclusively instead. No performance penalty was noticed with this change while massively improving battery life.
- BBR as the default TCP network congestion control -
BBR is a (relatively)new TCP congestion control developed by Google, and it’s regarded as one of the best things you could do to your network configuration. You can find its benefits easily just by Googling BBR. I’ve been personally running BBR for months on various Linux machines including the server running arter97.com and it’s been great.
Now that our Android kernel is running v4.14, I’ve enabled BBR and backported other BBR changes from mainline.
/* Notice */
5G variant is unsupported.
Only OxygenOS is supported, but it is likely that the kernel will work with other ROMs. Though you may encounter minor issues.
Feel free to tip me which commits are needed to fix other ROMs.
/* f2fs */
OnePlus 7T and OnePlus 7T Pro users cannot use f2fs without involving heavy and risky repartitioning operations due to Dynamic Partitions.
r61+ allows using f2fs on OnePlus 7T and OnePlus 7T Pro.
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.
The process differs with T and non-T series.
/* T variants */
The kernel now detects whether the userdata is in f2fs format and patches fstab on boot for OnePlus 7T and 7T Pro users during boot.
This is done in a volatile manner, which means your system files are not modified and using other kernels will revert the effect.
This is half of the puzzle.
The other half of the puzzle is to getting userdata partition into the f2fs format.
Due to lack of a proper recovery for the OnePlus 7T, I patched up f2fs-tools to support formatting while the Android is up and running.
You can use Franco Kernel Manager's flasher to flash the live-formatter.
This obviously removes all data on the device.
Please make sure your data is fully backed-up.
f2fs live-formatter:
https://arter97.com/browse/f2fs/liveformat
Existing f2fs users won't be affected by any of these changes.
Note that the OnePlus 7T and 7T Pro's OxygenOS has an issue handling FBE(File-Based Encryption) with f2fs(which is presumably why they left it out while the OnePlus 7 Pro had it), and encryption will be disabled when you use my kernel's f2fs live-patching feature.
Without encryption, your entire data will be in danger if you lose your device.
Please use f2fs if you understand this trade-off.
(Non-T series users can safely use f2fs with encryption.)
f2fs installation steps:
1. Download and install my kernel.
2. Download and install f2fs live-formatter.
OxygenOS OTA steps:
1. Install OTA and DO NOT reboot.
2. Download and install my kernel using Franco Kernel Manager.
3. Reboot.
Re-format into ext4 steps:
1. Use stock recovery and perform a factory reset.
Re-format into f2fs steps:
1. Use stock recovery and perform a factory reset and turn the userdata back to ext4.
2. Reboot to Android.
3. Download and install f2fs live-formatter using Franco Kernel Manager.
/* Non-T variants */
TWRP is not integrated to the kernel.
Please use a TWRP installer to install TWRP on top of my kernel.
To use f2fs, simply format /data to f2fs with TWRP.
Afterwards, flash f2fs-optimize.zip from http://arter97.com/browse/f2fs/optimize
There’s no need to flash separate zip files for replacing f2fs-tools or fstab.
/* 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.
/* Thanks to */
TheCrazyLex
xboxfanj
kdrag0n
nathanchance - for android-linux-stable
/* Instructions */
1. Read the above. Please.
2. Flash the zip file from your existing TWRP recovery.
2.1. FK Kernel Manager also works for installation. EXKM is unsupported and reported to brick the device due to installation failures.
/* Downloads and links */
r30 and up only supports Android 10
arter97.com
Kernel source
XDA:DevDB Information
arter97 kernel for OnePlus 7, Kernel for the OnePlus 7 Pro
Contributors
arter97
Source Code: https://github.com/arter97/android_kernel_oneplus_sm8150
Kernel Special Features:
Version Information
Status: Stable
Created 2019-07-28
Last Updated 2020-10-18
/* Changelog */
r71
Merged f2fs fixes from mainline (fixes quota inode corruptions)
Linux v4.14.233 merged
Wi-Fi drivers updated to 5.2.03.32J
Sultan's Simple LMK updated
r70
zswap + vbswap replaced with zram
Commits backported from mainline to improve lz4 performance (better memory performance)
LA.UM.8.1.r1-17100-sm8150.0 merged
Linux v4.14.231 merged
Wi-Fi drivers updated to 5.2.03.32G
2021-04-05 security patch merged
RTL8152/8153 drivers updated
Merged optimizations from Sultan
r65
Enabled SECCOMP to address recent security vulnerability issue
LA.UM.8.1.r1-16900-sm8150.0 merged
Linux v4.14.226 merged
Wi-Fi drivers updated to 5.2.03.32E
2021-03-05 security patch merged
WireGuard updated to v1.0.20210219
Merged mainline f2fs fixes
Merged optimizations from Sultan
r64
Merged mmap/mremap fixes from upstream to fix some Chinese apps causing reboots
Merged mremap optimization from upstream (~19x speed up)
r63
mmap/mremap, TLB invalidation, mmu_gather backported from mainline for a major performance boost
(Including https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.10-Mremap-Optimization )
Disabled PG table mapping for swap memory allocator (increased performance for 64-bit)
Saved 48 MB of RAM by removing unused reserved regions
Applied MAC fall-through patch for Chinese users
LA.UM.8.1.r1-16300-sm8150.0 merged
Linux v4.14.212 merged
Wi-Fi drivers reverted to 5.2.03.31L to fix compatibility issues
2020-12-05 security patch merged
WireGuard updated to v1.0.20201112
Merged OnePlus kernel changes
r62
A major memory management issue fixed for 6GB variants
A scheduler patch from Pixel merged to improve power consumption
Reverted drm changes from July to fix intermittent frame drops (mostly noticeable from app open/close animations)
Linux v4.14.202 merged (includes a fix for critical Bluetooth vulnerability "BleedingTooth")
Thanks to @idkwhoiam322 and @NTLinhHaHa for this release
r61
SELinux is now set to enforcing
f2fs fstab live-patching implemented to allow f2fs on OnePlus 7T and 7T Pro users
Memory swap's aggressiveness tuned to reflect the device's RAM size
Wi-Fi driver backported from LA.UM.9.12.r1-08400-SMxx50.0
(The version jumped from 5.2.03.31A to 5.2.022.4J)
Merged LE.UM.3.3.2-09000-SDX55 tag
OnePlus brain service is disabled in a cleaner manner
Disabled f2fs' background GC
r60
Applied a fix for rare random reboots since r57
The entire SELinux subsystem backported from mainline Linux for better performance and efficiency
(Magisk users must use Magisk v21.0 or the kernel will not boot)
LA.UM.8.1.r1-16000-sm8150.0 merged
Linux v4.14.200 merged
Wi-Fi drivers updated to 5.2.03.31A
Now built with GCC 10.2
2020-09-05 security patch merged
WireGuard updated to v1.0.20200908
Sultan's Simple LMK updated
Merged optimizations from kdrag0n
Latest f2fs-stable merged
r58
LA.UM.8.1.r1-15400-sm8150.0 merged
Linux v4.14.188 merged
Wi-Fi drivers updated to 5.2.03.27R
Minor trivial optimizations
r57
Linux v4.14.186 merged
Wi-Fi drivers updated to 5.2.03.27K
LE.UM.4.3.3.r1-00500-SDX55 tag merged
Minor memory optimization to the graphics drivers (by Yaro330)
r56
Merged OnePlus kernel changes to support optimized charging
Bunch of memory allocations from various subsystems were reworked to perform much better
Now built with GCC 10.1
2020-06-05 security patch merged
Linux v4.14.183 merged
Latest Qualcomm's Android 4.14 kernel merged
Wi-Fi drivers updated to 5.2.03.26Q
WireGuard updated to v1.0.20200520
Sultan's Simple LMK updated
Merged optimizations from kdrag0n
Latest f2fs-stable merged
r54
Switched to Sultan's Simple LMK to fix lags and stalls on memory-pressured scenarios
Disabled scheduler debug for better performance
Reduced memory allocations on network sockets
Reworked and optimized vnswap (renamed to vbswap)
Reworked Wi-Fi configuration
USB UASP enabled
Minor fixes to previous memory optimization commits
LV.AU.0.2.0-01800-gen3meta.0 merged
2020-03-05 security patch merged
Linux v4.14.173 merged
Latest Qualcomm's Android 4.14 kernel merged
Wi-Fi drivers updated to 5.2.03.22Q
r52
Fixed slow boot issue on OnePlus 7T series
r51
Fixed Wi-Fi not working on some devices due to MAC address loading failures
Backported Android ion driver from Snapdragon 865 kernel
Latest f2fs-stable merged
Linux v4.14.170 merged
Latest Qualcomm's Android 4.14 kernel merged
Wi-Fi drivers updated to 5.2.03.19P
r50
Beta details
Cleanly rebased version
OnePlus performance boost hacks removed
Random reboots with WireGuard fixed
Random reboots with f2fs encryption fixed
Added vibration level control (by flar2)
Few patches from LE.UM.4.1.1-02910-sa515m merged including scheduler improvements
LV.AU.0.2.0-00810-gen3meta.0 merged
Latest OnePlus changes merged
Latest f2fs-stable merged
Linux v4.14.163 merged
Latest Qualcomm's Android 4.14 kernel merged
Wi-Fi drivers updated to 5.2.03.18B
r40
OnePlus 7T and OnePlus 7T Pro support added
Added support for flashing via FK Kernel Manager
Major optimizations to touch panel drivers for lower overheads
Merged a zswap patch for faster lookups - better memory swap performance
Disabled unnecessary kernel log writeback debug feature
Linux v4.14.156 merged
Latest Qualcomm's Android 4.14 kernel merged
(LA.UM.8.1.r1-12200-sm8150.0, LA.UM.8.11.r1-01800-NICOBAR.0, LA.UM.8.9.r1-06500-SM6xx.0)
Wi-Fi drivers updated to 5.2.03.15T
exFAT drivers added
WireGuard updated to 20191127
r33
LA.UM.8.1.r1-10700-sm8150.0 merged
r32
Ported patches from Razer Phone 2 to improve touchboost and general performance (by TheCrazyLex)
Linux v4.14.151 merged
Ported patches from LA.UM.8.9.r1-05300-SM6xx.0
Wi-Fi drivers updated to 5.2.03.14L
Memory management patches applied from kdrag0n kernel
r31
Integrated Google Camera AUX mod
(No need to use a separate Magisk Module)
LA.UM.8.1.r1-10300-sm8150.0 merged
Linux v4.14.150 merged
WireGuard updated to 20191012
Backported patches from LA.AU.0.0.2.c1-07610-gen3meta.0
r30
Rebased the kernel for Android 10 (based on LA.UM.8.1.r1-09500-sm8150.0)
Applied zswap + vnswap for replacing zram
Wi-Fi drivers updated to 5.2.03.13O
Linux v4.14.148 merged
Latest OnePlus changes merged
Latest f2fs-stable merged
Backported BBR TCP congestion control patches (by kdrag0n)
Switched to AnyKernel3
r30 won't work with the OnePlus 7T
r25
Linux v4.14.141 merged
Merged additional f2fs bug-fixes
Kernel download size reduced
LA.AU.0.0.1-15710-gen3meta.0 merged as an extension of SDX55 merge (contains various patches including scheduler enhancements)
GPU runtime overhead reduced
Garbled sound with type-C wired headphones fixed
General stability improvements
r24
Fixed a display-related patch introduced in r20 that may cause severe memory leakage and freezes
r23
Fixed yet another recent f2fs rapid GC changes that caused an indefinite wakelock
Reverted TCP backports and cherry-picked relevant BBR commits to fix rare random reboots
r22
Fixed a recent f2fs rapid GC commit that caused an indefinite wakelock
5G support removed due to improper radio support
Linux v4.14.138 merged
Switched to GCC 9.2.0
r21
Merged some performance improvement patches from kdrag0n
r20
Random reboots due to improper TCP backports fixed (thanks to freak07)
Random reboots due to f2fs rapid GC fixed (thanks to ab123321)
Nightscape fixed
Booting issues with OnePlus 7 non-Pro fixed
Support for OnePlus 7 Pro 5G added
Linux v4.14.137 merged
LA.UM.7.1.r1-15800-sm8150.0 merged
Wi-Fi drivers updated to 5.2.03.11J
Latest OnePlus changes merged
Latest f2fs-stable merged with correct encryption patch
Properly disabled userspace lmkd
Qualcomm RmNet extensions added
Enabled power efficient workqueues
Bunch of memory allocations from various subsystems were reworked to perform much better (thanks to Sultan)
r1
Initial release
/* Known issues */
None
/* Telegram */
Join our Telegram group:
https://t.me/joinchat/FW_6TBAlmu0DeMzUDyLkIw
Reserved 4
Reserved 5
I'll be the first. Just formatted my device and rooted it, first kernel im going to test!
Wow, very interesting changelog, will be interesting to see how it performs and what others think!
Conflicting decisions between kernel devs it seems on some features, like ZRAM for example.
Looking forward to flashing
Looking forward to flash, there's no klapse support right?
Edit: Damn this kernel is snappy AF ?
Congrats on this release!
Finally arrived! waiting for it since I know you are about to build one for op7pro.
RazorBlade123 said:
Looking forward to flash, there's no klapse support right?
Edit: Damn this kernel is snappy AF ?
Click to expand...
Click to collapse
You came from stock or something else?
NateDev said:
You came from stock or something else?
Click to expand...
Click to collapse
I came from kirisakura, first went to stock and then this kernel
RazorBlade123 said:
I came from kirisakura, first went to stock and then this kernel
Click to expand...
Click to collapse
Did you still flash the f2fs-optimise zip in the OP?
storytellerz said:
Did you still flash the f2fs-optimise zip in the OP?
Click to expand...
Click to collapse
I'm not using F2FS.
Asop or OOS only kernel?
kenbrownstone said:
Asop or OOS only kernel?
Click to expand...
Click to collapse
/* Notice */
Both OnePlus 7 and 7 Pro is supported.
Only OxygenOS is supported, but it is likely that the kernel will work with other ROMs. Though you may encounter minor issues.
Feel free to tip me which commits are needed to fix other ROMs.
Android Q beta is not supported and I’ll not spend my time adding support for it.
Do not ask for premature Android Q beta support.
Click to expand...
Click to collapse
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
thank you @arter97 ... finally ... its been too long... thank you! :good: kamsahamnida
Nice to see here! Kudos
I know it says not supported on Q, but I will still give a try
RazorBlade123 said:
I came from kirisakura, first went to stock and then this kernel
Click to expand...
Click to collapse
Do you have a link to the stock 9.5.10 kernel is zip, flashable form? Thanks

Categories

Resources