Development [Kernel][5.4.144] WETA Kernel R5.19 (snapdragon) G998 [p3q] - Samsung Galaxy S21 Ultra

WETA Kernel SM-G998U/U1/0 Snapdragon only
*** This will only work on Snapdragon devices with an unlocked bootloader..
SM-G998U/U1 - SM-G9980
Telegram thread at bottom of this post
See post #2 for install steps
Changelog...
R5.02
Telegram thread merged into N20.S20 group, check new links.
Upstreamed to 5.4.127
all modules now inlined, no need for magisk helper module.
added wireguard
Power usage tweaks
More
R4.04
Upstreamed to 5.4.123
R4.03
Upstreamed to 5.4.122
R4.02
Upstreamed to 5.4.121
R4.01
Upstreamed to 5.4.120
R4
Testing phase complete
Upstreamed to 5.4.119
R3
Rebased off UAG source code
R2
Upstreamed to 5.4.118
Fixed Torch/Flash
R1
built using CU8 kernel source
Upstreamed to 5.4.117
Fully permissive
KNOX disabled
Wireguard
Misc debugging disabled
Kernel Downloads
Telegram thread
--------------------->
Beer fund
XDA:DevDB Information
Kernel for the Samsung Galaxy S21 Ultra
Contributors
Mentalmuso, mentalmuso
Source Code: - Kernel Source
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: R1
Created 2021-05-10
Last Updated 2020-05-10

*** Be aware, there may be a need to wipe data if you desire to go back to stock kernel, my suggestion is to backup your stock BOOT partition and DATA before flashing. This way you can return to your original setup easily. It is unknown at this stage what data is causing an issue going back to stock. If you find it, be sure to share.
* You must have bootloader unlocked and rooted your device with Magisk before flashing this kernel. Magisk is essential for camera and wacom.
* Boot times are approx 60-75sec at the moment, itll sit on the yellow triangle splash for approx 60sec and the bootanimation for 5sec.
* When flashing this kernel, an AnyKernel helper module is installed. This is a Magisk Module that is essential for the operation of Camera and Wacom. Removal of this module while running this kernel will break camera and spen.
* Kernel zip labels have either a P or E in them, P=Fully Permissive, E=Enforcing (switchable)
To install
download and flash the kernel installer zip in TWRP or any custom recovery
--->

mine 2

Amazing to see some development, i thought this phone thread was gonna be dev dead

I am a little surprised myself.

Status update
I have found a couple of bugs I'm working on, #1 camera module only loads on permissive version of kernel, #2 the flash doesn't work, #3 random reboots maybe 4-5 times a day.
Working on having a stable R2 this week.
Edit: so it seems the hourly bootloop happens on stock kernel for me also. So it isn't an issue with this kernel. Though I do need to fix the flash

WETA Kernel R2
Upstreamed to 5.4.118
Fixed Torch/Flash
--->

WETA Kernel R3
Starting from scratch with different source code. It seemed there were problems booting for most. The new test kernels have been successful.
This is a basic start, with the intention of upstreaming and testing along the way.
--->

WETA Kernel R4
Upstreamed to 5.4.119
* Testing was successful with the different source code kernel
* Remember you MUST have magisk installed Pryor to flashing this kernel, this kernel needs it's ak3-helper magisk module for camera operation.
--->

I have used your Kernels in the past for other devices, really loved them. Was wondering if you plan to make a custom kernel for the s21 ultra Exynos in the future ?

Excuse my ignorance but please elaborate on "knox disabled"? I have unlocked bootloader/magisk and knox is already disabled as far as I know. Would this mod to the kernel allow me to use knox locked features that have been lost, eg biometric security for some apps? Thank you for your work, look forward to trying it out

dsdavis6 said:
Excuse my ignorance but please elaborate on "knox disabled"? I have unlocked bootloader/magisk and knox is already disabled as far as I know. Would this mod to the kernel allow me to use knox locked features that have been lost, eg biometric security for some apps? Thank you for your work, look forward to trying it out
Click to expand...
Click to collapse
Kernel based Knox ncm is disabled, it has nothing to do with your "Knox fuse" which is blown when your bootloader is unlocked.

paul_cherma said:
I have used your Kernels in the past for other devices, really loved them. Was wondering if you plan to make a custom kernel for the s21 ultra Exynos in the future ?
Click to expand...
Click to collapse
I don't plan on building anything for devices I don't hold in my hand. Reliable testing is hard otherwise

WETA Kernel 4.02
Upstreamed to 5.4.121
--->

Just a note regarding boot times, I can achieve a 35sec boot time, though in doing so it breaks double tap to wake, and fingerprints. I won't release a version with those broken items.

WETA Kernel 4.03
Upstreamed to 5.4.122
--->

WETA Kernel 4.04
Upstreamed to 5.4.123
--->

Related

[EOL] Stock-Kernel GCC-7.x/8.x builds for LOS-14.1/15.1 [v10]-[kltexxx]

This project is now "End-of-Life" (EOL). Thanks to all of you for the kind support...
/* Introduction */
I built all these kernels with an aim to simply experience and compare the advantages (and sometimes the issues) of higher GCC versions (7 and above) with that of stock kernel (typically built using Google’s stock GCC-4.9.x tool-chain) as well as my own SmartPack-Kernel (built using stock as well as various custom tool-chains). All the credits goes to haggertk and all the others developers associated to Lineage-OS (especially the klte team) as I simply build from their source using latest tool-chains (Of-course, it requires significant modifications on the source code. For more details, please visit GitHub source).
/* DISCLAIMER!! */
Code:
I am not responsible for any damage to your device. Everything you are doing on your device is on your own risk.
I only own kltelgt (Korean variant). Hence, kernels under the category 'kltekor' are only tested by myself.
Please note that flashing any custom Kernel including mine will void your warranty.
/* What is Stock-Kernel and how it is different from official LOS Kernel? */
As the name itself says, these are simply stock Kernels build from official Lineage-OS kernel source code, however, using custom tool-chains of higher GCC version such as GCC-7.x/8.x. If you want to know more about Kernel’s in general, I suggest you to read this in-depth guide by @Saber. You may probably use these web-links to know more about Linaro, UBERTC and Bleeding Edge Toolchain.
/* What is included */
Separate GCC-7.x/8.x builds for the supported devices. You guys can freely test, compare and stay with the one you like more.
/* What you can expect */
Much better performance/SOT, and also some bugs in the worst case.
/* Supported devices */
klte: SM-G900F, SM-G900V, SM-S902L
kltekor: SM-G900K/L/S​
/* Compatibility */
This kernel is only meant to work on Lineage-OS 14.1 and nothing else. However, it may work on other LOS-14.1 (and AOSP) based Nougat ROMs (Please try at your own risk).
This kernel will NOT work in Samsung Stock and other TW ROMs.
/* How-to-Install */
1. Download and copy Kernel into your phone
2. Go to recovery (TWRP recommend)
3. Flash Kernel
4. Reboot and Enjoy​
/* What I can offer */
Regular updates with each LOS release.
Try to keep the tool-chains as up-to-date as possible.
/* What I can’t offer */
I may (and mostly will) not add new features. Because, my intention is simply not that for this Kernel. For those who are looking for a more feature rich Kernel, I advised you to try other existing good kernels including my own SmartPack-Kernel.
I never attempt to fix bugs in the LOS kernel source that are really difficult or very much time consuming.
/* Features */
Build from latest Lineage OS source code.
Build using Linaro 7.3 (GCC-7.3.1)/Bleeding Edge Toolchain 8.2 (GCC-8.2) tool-chain.
Anykernel concept for compatibility with maximum devices and ROMs.
Features: All the features available in the stock LOS Kernel (neither removed nor added).
For advanced kernel tweaking, you may use Offical Kernel Auditor.​
/* Downloads */
GitHub release page
/* Acknowledgements */
@haggertk
@nathanchance
@ZaneZam
@Saber
@osm0sis
@Grarak
Many other XDA developers
XDA:DevDB Information
Stock-Kernel, Kernel for the Samsung Galaxy S5
Contributors
sunilpaulmathew
Source Code: https://github.com/SmartPack
Kernel Special Features: Built using GCC-7.x/8.x
Version Information
Status: Nightly
Created 2017-11-18
Last Updated 2018-11-01
Frequently Asked Questions
Q1: Is this kernel compatible with ROM(s) a/b/c?
Ans: I do not know. All of my kernels are based off and tested only on Lineage-OS. However, if your ROM(s) a/b/c are based on Lineage-OS (and uses the same kernel source code), it will most probably work.
Q2: Which version of kernel should I use?
Ans: I recommend to use the latest if you are on the latest Lineage-OS. For other ROMs with an old built dates, you probably need to find an old version of my kernel with a comparable build date (though you are advised to stay with the latest, if possible).
Q3: How about performance/SOT?
Ans: Since SOT, performance etc. are largely based on several factors such as ROM, installed apps etc. No one else can exactly predict the performance/SOT of your mobile. So, you should test and find out that by yourself.
Q4: Can you tell me the best settings for performance/SOT?
Ans:Again, that depends on several factors. I can only say my favorite settings that gives me best results in my favorite ROM.
Q5: Which are the best CPUfreq gov/CPU hotplug/IOScheduler/TCP congestion algorithm for battery life/performance etc?
Ans:Again you need to find out those things yourself. To get more idea, I suggest you to read this awesome guide by @saber.
Q6: Could you add feature x and y to this kernel?
Ans: Mostly No. Because, my intention is simply not that for this Kernel. For those who are looking for a more feature rich Kernel, I advised you to try other existing good kernels including my own "SmartPack-Kernel".
Q7: When will you release a new version of this kernel?
Ans: New updates will arrived with each LOS release with some changes in the kernel source code.
Q8: I found a bug, what do I do?
Ans: Please provide as much information as possible (such as what feature, what didn\'t work, screen-shots or logcat if possible) and post in this thread.
Change-logs
Lineage-OS 14.1
Thank you Sunil.
Your stock kernel (ubertc-8) is working very smoothly on Crdroid 3.8.2...
Nice job.:good:
Drhedphuk said:
Thank you Sunil.
Click to expand...
Click to collapse
itsclarence63 said:
Your stock kernel (ubertc-8) is working very smoothly on Crdroid 3.8.2...
Nice job.:good:
Click to expand...
Click to collapse
Thank you very much guys... Enjoy...
Thanks it's great and stable I flashed linaro
Great stuff bro. I was looking for this. Thanks again!
seprator said:
Thanks it's great and stable I flashed linaro
Click to expand...
Click to collapse
airidosas252 said:
Great stuff bro. I was looking for this. Thanks again!
Click to expand...
Click to collapse
Thank you very much friends for testing as well as for the nice words
I tried both toolchains but ubertc doesn't overheat my device like linaro so I stick with ubertc from now
New builds (v2)
New builds are uploaded and can be found in the GitHub release page...
Enjoy...
For g900d please
I have been running your Kernel Built using Linaro-GCC-7.x/UBERTC-8.x for the last few days on my g900v with resurrection remix 7.1.2 and I have noticed that my battery seems to be lasting longer. I am liking the overall smoothness of this kernel as well. Thanks Buddy, keep up the good work!
joey118 said:
For g900d please
Click to expand...
Click to collapse
Extremely sorry friend. I do not want to add one more device as it requires a lot of time from my side (1 device=2 build). Further, I do not think that many klteduos users will use my Kernel (so it will be ultimately waste of energy and time). However, any one can easily build klteduos or any other variant that are officially supported by Lineage-OS from my fully up-to-date source (sources of both Kernel and toolchain can be found here).
swiftbones74 said:
I have been running your Kernel Built using Linaro-GCC-7.x/UBERTC-8.x for the last few days on my g900v with resurrection remix 7.1.2 and I have noticed that my battery seems to be lasting longer. I am liking the overall smoothness of this kernel as well. Thanks Buddy, keep up the good work!
Click to expand...
Click to collapse
Thanks for the nice words and happy to know that you guys like it... cheers...
New builds (v3)...
New builds are uploaded and can be found in the GitHub release page.
Cheers...
New builds (v4)...
New builds (v4) are uploaded and can be (along with change-logs) found in the GitHub release page.
Enjoy...
sunilpaulmathew said:
New builds (v4) are uploaded and can be (along with change-logs) found in the GitHub release page.
Enjoy...
Click to expand...
Click to collapse
what is the difference between the 2(of each) in your v4 release (first time about to test) one is 6.56mb the other 6.26mb?
EDIT: nvm stupid me i dint see the other ones were kltekor...sry about that.
Good evening, I would like to change my galaxy s5 sm-g900f. I linkageos 14 + g-app stock I uninstall because the autonomy is very reduced and the device heats. I would like to test UBERTC-8.x, I read on the site that the autonomy is better and also the overheating. But how do I have to reinstall the all lineageos + g-app or install only UBERTC-8.x + g-app. Of course by doing everything wipe.
thank you in advance
MaCaLuBi said:
Good evening, I would like to change my galaxy s5 sm-g900f. I linkageos 14 + g-app stock I uninstall because the autonomy is very reduced and the device heats. I would like to test UBERTC-8.x, I read on the site that the autonomy is better and also the overheating. But how do I have to reinstall the all lineageos + g-app or install only UBERTC-8.x + g-app. Of course by doing everything wipe.
thank you in advance
Click to expand...
Click to collapse
If you are already using Lineage-OS, simply go to TWRP and flash this Kernel and all done.
If you are on a stock TW based ROM do the following
1. Go to TWRP
2. Wipe system and data
3. Flash Lineage-OS-14.1
4. Flash Gapps
5. Flash this Kernel (UBERTC or Linaro)
6. Flash magisk/ modules/su-addons, or any other stuff you like
7. Wipe cache/dalvik cache
8. Reboot and enjoy...​
New (v5) builds...
New builds (v5) are uploaded and can be (along with change-logs) found in the GitHub release page.
Enjoy...

[ALL][Kernel][9.0][EAS][AOSP] Tachyon Kernel

What is a Tachyon?
Wikipedia calls it a "hypothetical" particle that most scientists claim doesn't exist.
That is what this kernel is: A kernel for Treble, something Motorola claims they never will release for our device.
Why upstream?
Well, DirtyUnicorns put it best on G+ : https://plus.google.com/+DirtyUnicornsOfficial/posts/2MpHCwKqh5J
This kernel will stay updated to the latest upstream from Linux-stable tree maintained by @nathanchance on git for msm
What is EAS?
Energy Aware Scheduler is a scheduler that knows how much energy is used on each frequency and how much power it uses to give best power/performance ratio. This kernel is slowly getting updated to the latest EAS patches from Linaro.org. For more information, check the below link.
https://www.linaro.org/blog/energy-aware-scheduling-eas-project/
Features:
Upstream kernel from source
Edits to avoid Safetynet/CTS (If you have root, it will fail signature check inherently without SUhide or Magisk hide)
Built With the Latest Clang for Android with Linaro as the cross compiler
OC GPU (changed 710 MHz to 750 MHz)
Same Adrenoboost tweaks as the Pixel 2 ElementalX kernel.
Wakelock fixes by Boeffla
EAS implementation (still work in progress)
Bugs/Issues:
hit and miss on MotoMods
Download:
Google Drive
Instructions:
Download ZIP to phone
Boot to TWRP.
Flash and follow prompts in Aroma
If you need to flash any GSI zips to boot your GSI, flash them again.
Reflash root if you want root.
Version Information
Status: Beta
Current Stable Version:
Stable Release Date:
Created 2019-02-06
Last Updated 2019-02-06
Source: https://github.com/Uzephi/Nash_AOSP
Git Branch: o9x-tachyon
Compiler: Clang 8.x.x
Cross Compiler: Linaro 7.x
Branch: Android 9.0.y
Kernel Version: 4.4.y
defconfig: nash_defconfig
Credits: @joemossjr - for collaborating and getting this working and debugging w/ me to get the best possible experience for our community. @invisiblek for all the work he's done for our device tree @npjohnson for his work on our device tree. @erfanoabdi for his amazing work getting treble running and his other work on our device.
Thanks and Mentions:
@Lord Boeffla for his wakelock code. @nathanchance for the assistance and amazing guides and keeping msm-8998 up to date with linux-stable @jbats for keeping up to date with linux-stable for me to merge into this kernel.
@flar2 for his work on our chipset, msm8998
All other developers shown in commit history.
(Quoted from Nathan Chance)
A note about donations
Quite a few people have asked to donate to me in the past and I have turned them down. I am not in this for the money, this is my hobby, something I truly enjoy. If you truly want to donate to something (it is not expected in the slightest), I recommend an entity like the Open Source Initiative, the Free Software Foundation, XDA, or any one of the people I have thanked in the OP. Additionally, you are free to copy any and all of my work; the only thing I request is that you not ask for donations as well (though I can't really enforce this lol). Thank you.
Changelog:
08/14/2018:
Initial release
02/06/2019:
Rebase for Pie
EAS Progress:
Schedutil is a form of EAS. I am currently working on fixing it to get it more in line with how smooth EAS runs on the Pixel. (yes, that means Energy Aware has always been in the AOSP kernels, we just never talked about it. Now that I am updating it to the lastest from Linaro, I am being open about it).
Known issues: GSIs don't work.
Hey there Uzephi. This is for the latest 8/14 build of lineage, right? Because after flashing, I'm stuck on the lineage splash screen.
fossiltkm said:
Hey there Uzephi. This is for the latest 8/14 build of lineage, right? Because after flashing, I'm stuck on the lineage splash screen.
Click to expand...
Click to collapse
Apparently the Tamien vibrator changes haven't been merged yet and are still in Gerrit. I am reverting and will release the fixed kernel in about half an hour.
Updated. same Download link, will now work with Lineage Official that released today. (old build worked on test-keys on 0808)
Uzephi said:
)
Click to expand...
Click to collapse
hi mate, so basically this kernel is not for stock rom right?
thanks
ilovemeow said:
hi mate, so basically this kernel is not for stock rom right?
thanks
Click to expand...
Click to collapse
It's only for Treble. The kernel mounts vendor, so even DU won't boot it.
4.4.148 updated, pushed, and uploaded to Drive. No other changes
sorry for my stupidity, but which roms are actually compatible with this kernel?
Debuffer said:
sorry for my stupidity, but which roms are actually compatible with this kernel?
Click to expand...
Click to collapse
Any ROM built for the Z2 force that is treble enabled. Currently running into a no boot with GSI images and working on fixing that. Currently I think that's only Lineage officials built after 08/14. I don't know if DU has gone treble yet.
link updated to 4.4.150. added back CRC as well. Still no verification if that fixed GSI boot issues
anyone else have screen flip recovery issues after flashing this? everytime my recov screen does a 180 no matter if its twrp, lineage rec, etc
jasperbastianrain said:
anyone else have screen flip recovery issues after flashing this? everytime my recov screen does a 180 no matter if its twrp, lineage rec, etc
Click to expand...
Click to collapse
Its a known issue. Stock lineage kernel does this as well. Best thing to do is just boot twrp.
Edit: 4.4.152 merged and Gdrive updated.
4.4.153 has no changes for us. I merged just to be in line with linux-stable but not releasing a build.
Uzephi said:
Its a known issue. Stock lineage kernel does this as well. Best thing to do is just boot twrp.
Edit: 4.4.152 merged and Gdrive updated.
Click to expand...
Click to collapse
I've only had this issue with this kernel, every other kernel I've tried stock or custom have all been able to load twrp correctly. For some reason though I haven't been able to flash any ROMs with the newest twrp, I always have to use 3.2.2.1 official or the 3.2.2.1 for treble.
Updated to 4.4.154. If you are having issues with TWRP, try flashing the installer after the kernel, I haven't had an issue doing it this way.
will this work with Lineage Unofficial builds??
blake .l said:
will this work with Lineage Unofficial builds??
Click to expand...
Click to collapse
Yes

[ROM][AOSP][9.0.0][NOT TREBLE][ALPHA] AOSP Pie for Huawei Mate 9 - EARLY ALPHA

WARNING: You'll most probably loose ALL your data, and might break your phone. Please use with extreme caution!
This is a fully custom ROM for the Huawei Mate 9, derived from the AOSP Pie device tree for the HiKey960 development board, with minimal usage of the existing Huawei vendor stack.
This ROM does include Gapps for Pie.
IMPORTANT: See the broken features below. Most importantly: Phone and cellular is currently entirely non-functional, as there is no RIL implemented. If I can get away with it, I'm not importing code from Huawei's existing vendor stack. The graphics stack is fully sourced from the HiKey960 development board sources, as provided by Google on the Driver Binaries page for AOSP; the only blobs which are sourced directly from the Mate 9 system images are the device firmware blobs from /vendor/firmware.
Working features:
Basic graphics hardware acceleration & 3d support.
Wifi
Bluetooth (partial: kernel wakelock permanently held, preventing deep sleep. Generally functional, you will need to bring over your MAC address and configure it yourself.)
Touchscreen
Notification LED
Screen brightness
USB
Fast charging
Vibration
Battery information
Broken or not hooked up yet:
Reboot / shutdown: always cycles to eRecovery. (BFM is disabled, so the loader doesn't know that boot was successful.
Audio via wired headset, earpiece, speaker. (Bluetooth audio works. Over USB-C, untested.)
Cellular. (No RIL yet.)
SD card.
Camera
Fingerprint sensor
NFC
Any and all sensors.
GPS
More that I have yet to list, I'm sure.
Installation Instructions
Make note of your bluetooth hardware address.
Factory reset your device, preferably using stock recovery. TWRP builds will not work once this ROM is installed.
Install the kernel, ramdisk, and system image with fastboot.
Boot the system
Once booted: adb shell setprop persist.service.bdroid.bdaddr <your bluetooth hardware address>
Notes
The image is pre-rooted (it is an AOSP "eng" build). ADB is on by default, running as root, with no authentication.
Even though it is pre-rooted, I still recommend installing Magisk for the time being. Use the ramdisk image provided here with "Patch Boot Image". Magisk 17.1 with Magisk Manager 5.9.1 work. (Installing Magisk also works around a few other issues - for example, Developer Options is completely inaccessible on the default install.)
Changelog
2017-09-03: Initial release.
Download
GitHub release
Thanks
@wirmpolter for the Serenity kernel (which is used as the basis for the kernel image)
@TheHitMan for BiTGApps Pie
Sources
ironydelerium/device_huawei_mha on GitHub
ironydelerium/vendor_huawei_mha on GitHub
ironydelerium/Serenity on GitHub
XDA:DevDB Information
Custom AOSP Pie for Huawei Mate 9, ROM for the Huawei Mate 9
Contributors
irony_delerium, wirmpolter
Source Code: https://github.com/ironydelerium/device_huawei_mha/
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
ROM Firmware Required: EMUI 8.0
Based On: AOSP
Version Information
Status: Alpha
Beta Release Date: 2018-09-03
Created 2018-09-03
Last Updated 2018-09-03
Reserved
Reserved
Wooohoo .. is amazing .. more roms .. thanks .. dev ..?
You are amazing Man. I hope you will do it fully functional as soon as. Thanks bro.
Thank you much.
I tried this ROM. But too much bugs. I had to roll back to original EMUI ROM.
Hope you can fix the bugs in future.
Thank you very much for your efforts anyway.
luyongfeng said:
Thank you much.
I tried this ROM. But too much bugs. I had to roll back to original EMUI ROM.
Hope you can fix the bugs in future.
Thank you very much for your efforts anyway.
Click to expand...
Click to collapse
I'm planning on it.
There's a lot of work to do - cellular, audio, basic sensors, camera - none of those things are even there yet.
What's there works, unfortunately as you can tell, that's not a lot yet.
Are you still working on the rom? Any progress? tried to build lineage?
I am still working on it.
Not even considering Lineage at this point - just trying to get a complete device tree constructed, of which there are a lot of pieces to construct (not the least of which because I'm basically building it up from scratch, instead of using Huawei's vendor image).
Development in Kirin is very difficult. So far only see aosp rom in Honor 8 pro based on 7.1. Which is very similar to Mate 9

[KERNEL][10] Rain Kernel [HMP][11102020]

Disclaimer
Always backup boot.img before flash.
Do with your own risk.
Requirements
AOSP android 10, No support for MIUI rom!
Latest TWRP or any custom recoveries
Now support for new and old camera blobs
ROMs with default HMP kernel, No eas ROMs support.
Features
Using Anykernel3 flashable by osm0sis.
Simple, no weird feature in here.
Compiled by AOSP clang 11.0.4.
Latest CAF and changes from AOSP kernel 4.4 common (Linux version 4.4.238).
Kcal RGB Colours control.
How to use
Flash the zip through twrp
Reboot and done.
Credits and Thanks
LineagesOS for base patch Xiaomi.
osm0sis for Anykernel3.
Anyone in Contributors
Downloads
Again, please make sure you read the Requirements.
Rain kernel latest release downloads with changelogs
XDA:DevDB Information
Rain, Kernel for the Xiaomi Redmi Note 7
Contributors
rainforce279
Source Code: https://github.com/ryan-andri/android_kernel_xiaomi_lavender
Kernel Special Features: See at Features.
Version Information
Status: Stable
Current Stable Version: 11102020
Stable Release Date: 2020-10-11
Created 2020-09-19
Last Updated 2020-10-11
Changelogs
Code:
[B]Build - 11102020[/B]
[LIST][*]Build with AOSP Clang 11.0.4
[*]power: msm-core: Fix mutex not getting unlocked in error path
[*]ARM64: defconfigs: lavender: make savedefconfig for old and new cam
[*]msm: camera: make new camera blobs support optional and not device specific
[*]ARM: dts: xiaomi: turn green led as white node (should fix led issue on some rom)
[*]add toggle for disabling newly added USB devices
[*]Revert "mm: change max readahead size to 512KB" (depend on rom support)
[/LIST]
Note
For more detail changelogs, you can check the source directly.
Report issue with dmesg log please.
Make sure to not using any magisk modules for tweaks (Avoid conflict with kernel).
Thank you and have a nice day.
Reserved
Hi! Great new kernel I just want to report that double tap to wake isn't working when I flash this on PE+ rom (oldcam rom). I know that it is maybe due to the fact that oldcam is not supported but can we expect to atleast get the d2tw working
guntlet213 said:
Hi! Great new kernel I just want to report that double tap to wake isn't working when I flash this on PE+ rom (oldcam rom). I know that it is maybe due to the fact that oldcam is not supported but can we expect to atleast get the d2tw working
Click to expand...
Click to collapse
dt2w work fine for rom with device tree based from los. seem dt2w sysfs might be different, but for sure i'll check it. Thank you.
rainforce279 said:
dt2w work fine for rom with device tree based from los. seem dt2w sysfs might be different, but for sure i'll check it. Thank you.
Click to expand...
Click to collapse
Yeh got it, Thanks
New build is up!
Enjoy and Thank you.
rainforce279 said:
New build is up!
Enjoy and Thank you.
Click to expand...
Click to collapse
Any chance for old cam?
noobSU said:
Any chance for old cam?
Click to expand...
Click to collapse
will try it for next build.
I installed rain kernel on PE+, no issue so far. for oldcam ROMs, just flash newcamblobs.zip.
but when first install the kernel, it's aborting, say there no ramdisk to unpack. need magisk installed before to get kernel installed. thank you.
edit: seems led is not working on ROM that not based on los tree.
fadhlanisatria said:
I installed rain kernel on PE+, no issue so far. for oldcam ROMs, just flash newcamblobs.zip.
but when first install the kernel, it's aborting, say there no ramdisk to unpack. need magisk installed before to get kernel installed. thank you.
edit: seems led is not working on ROM that not based on los tree.
Click to expand...
Click to collapse
Theres no issue in latest twrp for me, about led i'll check it asap. Thank you.
New Build released!
now support for old camera blobs.
drop caf variant, upstreamed stable for daily.
cleanup changelogs since caf variant droped.
Led issue on some rom should be fixed now.
Trying Nov 7 build but I got sdcard needed format notification. Missing exfat support?
1n00bB said:
Trying Nov 7 build but I got sdcard needed format notification. Missing exfat support?
Click to expand...
Click to collapse
can you provide dmesg log ?
rainforce279 said:
can you provide dmesg log ?
Click to expand...
Click to collapse
I'm ROM hopping but now back to LOS to get dmesg aaand it's working now
Sorry, my bad
Is this project discontinued? or just in a hiatus for the moment
guntlet213 said:
Is this project discontinued? or just in a hiatus for the moment
Click to expand...
Click to collapse
no, sorry bit busy with rl for now.
will release new version asap.

[KERNEL]Handelinkernel for OnePlus 8T v3.1 [OOS][11][OP8T][Wireguard]

Introducing Handelinkernel for OnePlus 8T!
My goal was to have a pretty close to stock kernel with only minor optimizations (like reduce logging) and only wireguard support.
I made the kernel pretty much for myself but feel free to download it since I decided to share it with you guys.
Its a kernel without any bling bling or fuss. Just like OnePlus meant it for you.
My time is very limited so my support here for kernel might be delayed.
Kernel features:
CAF wifi driver (broken wifi in oneplus kernel tree)
Latest wireguard
Removed excessive debugging by default to save cpu cycles
Boeffla Wakelock Blocker v1.1.0 with flar2 mods to not block anything by default
Magisk v25 in magisk version (may work with previous 23)
ZEN i/o scheduler
ExFAT support
CIFS support
Changelog:
v3.1
Merged with OnePlus updates
Magisk v25 in magisk version
v3.0
Magisk updated to v24.1
Boeffla Wakelock blocker tunings (thanks to engstk and Denis Efremov!)
v2.6
Wireguard: crypto: curve25519-x86_64: use in/out register constraints more precisely
Merged latest OnePlus kernel updates: Synchronize codes for OnePlus 8T Oxygen OS 11.0.12.12.KB05AA and OnePlus 8 Oxygen OS 11.0.9.9.IN21AA and OnePlus 8 Pro Oxygen OS 11.0.9.9.IN11AA 1.Optimize charge experience. 2.Optimize performance experience.
v2.5
Wireguard updated to v1.0.20211208
ZRAM improvements
LZ4 improvements
Building environment changes
v2.3
Latest OnePlus kernel updates merged
Wireguard updated to v1.0.20210606
v2.2
Stabilized build
Defconfig sanity check
Disabled serial logging (Google tells OEMs explicitly to not enable this for production, but OnePlus is gonna OnePlus.)
Sources and build: Removed rebasing and went back to committing on top of oneplus tree.
v2.1
Reduced even more debug and logging
Compiled more techpacks: audio, data
LZO/LZ4 cryptos updated, LZ4 as zram default
ZSTD crypto added
Optimizations
v2.0
Complete redesign of kernel build and commits
Latest OnePlus kernel updates
Latest wireguard updated
ExFAT support added
CIFS support added
ZEN i/o scheduler support added (not on by default)
Removed audit from kernel
Reduced more kernel debugging
Magisk updated to 23.0 in magisk version of kernel
v1.2
Reduced more kernel debugging (especially with camera)
Stabilized release
v1.1
Force USB-fast charge with all chargers
Lesser haptic feedback
Kernel localversion now indicates handelinkernel
v0.9
Code reorganizing
Prepare for stable release
Wireguard: full commit stack update from upstream
v0.3
Removed excessive debugging
Little optimizations
Built with clang 12.0.2
v0.2
Reverted wireguard
UPSTREAM: cryptos
UPSTREAM: wireguard
v0.1
Initial version
Boots up with QCACLD 3.0 WIFI
Wireguard support
!! Only for OnePlus 8T / OxygenOS / Android 11 !!
(May support OnePlus 8 and 8 pro but never tested.)
Flashing:
Flash like any other kernel image (boot.img) with FKM etc. kernel software or with fastboot.
Download:
https://cloud.drg.fi/s/Pb6WTiqiodKQ8wR
Source:
https://git.drg.fi/drgreen/android_kernel_oneplus_sm8250
Thanks
To all great kernel devs @ github who made this possible!
Reserved.
Welcome and thank you for being willing to share your work with us.
I have two questions.
- 1. if i flash the kernal, am i allowed to update magisk? (I took the kernal "handelinkernel_v12_magisk.img") or after the magisk update I have my normal kernal again?
- 2. can you explain to me what the Wireguard support is about? How can I use Wireguard afterwards?
Ramme said:
Welcome and thank you for being willing to share your work with us.
I have two questions.
- 1. if i flash the kernal, am i allowed to update magisk? (I took the kernal "handelinkernel_v12_magisk.img") or after the magisk update I have my normal kernal again?
- 2. can you explain to me what the Wireguard support is about? How can I use Wireguard afterwards?
Click to expand...
Click to collapse
Thanks!
1. If you flash magisk version you dont need to install magisk anymore, its included in the kernel. No magisk version is pure kernel without magisk.
2. Wireguard is very lightweight but also very strong modern VPN service. Its included in the kernel because then we can run those tunnels within kernel space rather than normal VPN tunnels in user space. It saves battery a LOT.
You can find more information about wireguard from their official website.
tohtorin said:
Thanks!
1. If you flash magisk version you dont need to install magisk anymore, its included in the kernel. No magisk version is pure kernel without magisk.
2. Wireguard is very lightweight but also very strong modern VPN service. Its included in the kernel because then we can run those tunnels within kernel space rather than normal VPN tunnels in user space. It saves battery a LOT.
You can find more information about wireguard from their official website.
Click to expand...
Click to collapse
Does it work with the latest version 11.7.9 global update ?
anooragv said:
Does it work with the latest version 11.7.9 global update ?
Click to expand...
Click to collapse
Yes it does. Oneplus did not change kernel in the update.
Anyone try this kernel with LineageOS 18.1?
I have flashed the Magisk variant, unfortunately Wireguard VPN does not work. I tested bluspark and other Kernal, there is no problem to use Wireguard VPN.
To the nonmagik variant I can not say anything, this I have not tested.
Got the boot from OB1 & OB2, both of them work with latest official OTA but the start is slower than the official OTA Boot.
I am sure in the Beta boot One+ has added plenty of logs to track stuff.
Are you able to look at this and maybe remove all the craps out of them.
I have posted OB1 boot / magisked and OB2 boot/ magisked.
Otherwise those OB boot seem very responsive and make a very good feeling !
boot_OB1.img and 3 more files
4 files sent via WeTransfer, the simplest way to send your files around the world
we.tl
@tohtorin
Steve0007 said:
Got the boot from OB1 & OB2, both of them work with latest official OTA but the start is slower than the official OTA Boot.
I am sure in the Beta boot One+ has added plenty of logs to track stuff.
Are you able to look at this and maybe remove all the craps out of them.
I have posted OB1 boot / magisked and OB2 boot/ magisked.
Otherwise those OB boot seem very responsive and make a very good feeling !
boot_OB1.img and 3 more files
4 files sent via WeTransfer, the simplest way to send your files around the world
we.tl
@tohtorin
Click to expand...
Click to collapse
Weird. OnePlus has not changed the kernel for a long time for OP8T. So latest OTA kernel is exact same kernel than previous ones.
Should I try to boot your images?
Ramme said:
I have flashed the Magisk variant, unfortunately Wireguard VPN does not work. I tested bluspark and other Kernal, there is no problem to use Wireguard VPN.
To the nonmagik variant I can not say anything, this I have not tested.
Click to expand...
Click to collapse
Can you please provide me your kernel dmesg logs? What does wireguard client say? Are you using wireguard kernel space driver?
tohtorin said:
Yes it does. Oneplus did not change kernel in the update.
Click to expand...
Click to collapse
Thank you for the kernel. I was hoping someone would build a stock kernel with minor enhancements. Do you know if the kernel changed in the latest Global 11.0.8.11.KB05AA build? Trying not to have another reboot party like I just did with Clean Kernel. Lol
jal3223 said:
Thank you for the kernel. I was hoping someone would build a stock kernel with minor enhancements. Do you know if the kernel changed in the latest Global 11.0.8.11.KB05AA build? Trying not to have another reboot party like I just did with Clean Kernel. Lol
Click to expand...
Click to collapse
There are no changes yet, I just updated my phone this morning and reinstalled the same kernel I was using before without issue.
Version 2.0 released!
Changelog:
Complete redesign of kernel build and commits
Latest OnePlus kernel updates
Latest wireguard updated
ExFAT support added
CIFS support added
ZEN i/o scheduler support added (not on by default)
Removed audit from kernel
Reduced more kernel debugging
Magisk updated to 23.0 in magisk version of kernel
Download:
Release Handelinkernel for OnePlus 8T v2.0 · drgreenth/android_kernel_oneplus_sm8250
Introducing Handelinkernel for OnePlus 8T! My goal was to have a pretty close to stock kernel with only minor optimizations (like reduce logging) and only wireguard support. I made the kernel prett...
github.com
Flashing:
Flash like any other kernel image (boot.img) with FKM etc. kernel software or with fastboot.
Version 2.1 released!
Changelog:
Reduced even more debug and logging
Compiled more techpacks: audio, data
LZO/LZ4 cryptos updated, LZ4 as zram default
ZSTD crypto added
Optimizations
Download:
https://github.com/drgreenth/android_kernel_oneplus_sm8250/releases/tag/v2.1
Flashing:
Flash like any other kernel image (boot.img) with FKM etc. kernel software or with fastboot.
Added download mirror:
https://cloud.drg.fi/s/Pb6WTiqiodKQ8wR
Latest OOS beta friendly?
hkjr said:
Latest OOS beta friendly?
Click to expand...
Click to collapse
Works with all oxygenos 11 versions. All latest oneplus updates included in the kernel.
Sorry but one more stablized release.
Version 2.2 released!
Changelog:
Stabilized build
Defconfig sanity check
Disabled serial logging (Google tells OEMs explicitly to not enable this for production, but OnePlus is gonna OnePlus.)
Sources and build: Removed rebasing and went back to committing on top of oneplus tree.
Download:
https://github.com/drgreenth/android_kernel_oneplus_sm8250/releases/tag/v2.2
Mirror:
https://cloud.drg.fi/s/Pb6WTiqiodKQ8wR
Flashing:
Flash like any other kernel image (boot.img) with FKM etc. kernel software or with fastboot.
Flash magisk version with fastboot, all works fine on Aicp rom

Categories

Resources