[KERNEL] UniKernel v8-0002 COH9 [G920 /925] - Galaxy S6 / S6 Edge Unified Development

~~~~S6 UniKernel~~~~​
For Galaxy S6 920 F / I / S / K / L / T / W8 ​For Galaxy S6 925 F / I / S / K / L / T / W8 ​
For Lollipop 5.1.1 only! ​
UniKernel Features
- Supports F / I / S / K / L / T / W8 variants of 920 AND 925 devices
- Supports 920FS, ID and SD Dual SIM devices
- All edge screen special functions on Edge devices working
- Built from official Samsung Sources
- Full init.d scripting support
- SE Linux set to permissive (will prevent private mode from working)
- Stock Clocks
- Fully working Auto-Root for all 5.1.1 roms
- BusyBox injection if not detected in ROM
- DriveDroid support
- CIFS / FUSE
Kernel Configuration
The TWRP flashable kernel now comes with an Aroma installer, allowing you to choose a configuration you prefer. It also comes with 3 preset options - Stock, Performance, and Battery.
The Stock preset will make the kernel behave exactly as a stock kernel - no turbo mode, CFQ scheduler, stock interactive
If no pre-existing configuration file is found on the phone, (ie - New ROM flash) the ODIN flashable kernel will also have stock behaviour.
Every Aroma option is clearly labelled with an accurate description of what the setting will change. You are free to reflash to change configurations or manually edit the /system/unikernel.prop file that is generated by the installer (and then reboot). If you choose either the performance or custom options and enable Turbo mode, do not post in this thread about poor battery life. Turbo mode costs battery. deal with it
Download
UniKernel v8-0002 TWRP FLASHABLE >>> https://www.androidfilehost.com/?fid=24052804347808102
UniKernel v8-0002 ODIN FLASHABLE >>> https://www.androidfilehost.com/?fid=24052804347808101
If you get any FCs after flashing this kernel, wipe cache and dalvik cache in TWRP and reboot.​
Changelog
UniKernel v8-0001
- Updated to COH9 Sources (New WiFi Driver and sensorhub firmware amongst other things)
- Fixed CIFS support
- Slight modification to ramdisk tweaks when a non-stock configuration is used
UniKernel v8-0001
- Updated to COH2 Sources
- Rewritten unification code
- Aroma Installer with preset and configurable options (Stock, Performance, Battery, Custom)
- ALL 5.1.1 ROMs are supported, even early versions, ie - BOFj / COF6
Sources
UniKernel >>> https://github.com/glewarne/S6-UniKernel
Credits
Source contributors
@ktoonsez - Major contributor to universal patch set
@edgarf28 - Relentless Testing testing testing, help and suggestions
@Xileforce - Help, encouragement and some code bits
@mikeyinid - Help, DHA tweaks
AndreiLux - Permissive mode patch and some other bits
Awesome Testers
@-Mr. X- for relentless and speedy testing
@sswagonman - Primary 925 feedback
Kyle - For not sucking any more
Robert - Primary 925 feedback
Steve - Primary 925 feedback
Other Credits
@Chainfire - For SuperSU included in the kernel
Disclaimer
You, the User, Accept full responsibilty for anything you choose to flash to your own device. I cannot be held responsible for any loss of data, income, revenue, software or hardware damage that may occur due to the use, or attempted use of this kernel.

reserved

Okay tried on the Canadian 920W8 and no call audio and Network Settings gets replaced with Sim Card Manager. LTE icon doesn't show anymore but data works!

Elisha said:
Okay tried on the Canadian 920W8 and no call audio and Network Settings gets replaced with Sim Card Manager. LTE icon doesn't show anymore but data works!
Click to expand...
Click to collapse
Yeah, to be expected. the defconfig in the kernel sources I used was specific to the international versions only. I will need to download the sources for the T variant (and maybe W8) and examine them for file differences and defconfig differences. gonna take some time. However, i I can build a working one its easy to build 2 simultanoeusly for upload in the future. only takes 5 mins per kernel.
thanks for testing though!

No problem.

If I flash back the stock kernel, will there be any leftovers from your kernel in the system?

So far no problem at all. Good work. I hope that some talented dev could port to our galaxy savoca color calibration... Thanks.

mcreego said:
So far no problem at all. Good work. I hope that some talented dev could port to our galaxy savoca color calibration... Thanks.
Click to expand...
Click to collapse
great to hear! thankyou

Hi , what about performance ? is it really more fluid than the stock one ?
thanks

Works like it should. Thank you for your work and time spent!

I don't see ktoonsez in your credits. Since you copied his voltage control.

jordan.elliott said:
I don't see ktoonsez in your credits. Since you copied his voltage control.
Click to expand...
Click to collapse
1) not released yet
2) originator is on the github commit
3) is actually made by Andrei lux
There is no need to credit every kernel contributor in existence especially if those commits are tagged

Um. ktoonsez spent hours trying to get the voltage control to actually apply. It was being overridden by touchjizz rom on every boot. I was one of his testers. It took about 4 hours. It wasnt just a copy paste.

jordan.elliott said:
Um. ktoonsez spent hours trying to get the voltage control to actually apply. It was being overridden by touchjizz rom on every boot. I was one of his testers. It took about 4 hours. It wasnt just a copy paste.
Click to expand...
Click to collapse
that may well be the case. however, as I said previously, the commits on my github from today are on code that has not been released yet. You can see the released kernel with the defconfig v01a commit and comment (last one pushed yesterday)
perhaps im using voltage control sysfs for some internal testing? maybe ill remove it before release? maybe i am going to release it in the future? maybe i would have given credit, as I have everyone else on the *curerntly released* code.
I will not enter into any further discussions with you on this matter. If you wish to report my thread please do go ahead. as it stands right now, i am 100% in compliance with both the stickies at the top of this very thread and XDAs very clear GPL rules.

The OP has not violated the GPL or xda rules by using kernel code from other developers. First because he hasn't released that code as a binary yet, and second he has not squashed the original authorship out of his sources. This satisfies the GPL and xda's rules on giving credit.
It is simply not possible to list all the kernel contributors in the OP...the list is way way way way too long.
If there are any more issues about the GPL, credit, sharing, etc. Please PM me about them.
Thanks!

OK everyone
After a bit of a delay due to computer issues, i have a new kernel ready for beta testing. Anyone interested?
Built in OC to 1.6GHz on .LITTLE and 2.3GHz on .big cores
lots of fixes and boosts
very very smooooooth

Bring it on. I would love to overclock 53 but tone down the 57 ones, it's possible with a tuner I belive?
Sent from a mobile gadget...

g.lewarne said:
OK everyone
After a bit of a delay due to computer issues, i have a new kernel ready for beta testing. Anyone interested?
Built in OC to 1.6GHz on .LITTLE and 2.3GHz on .big cores
lots of fixes and boosts
very very smooooooth
Click to expand...
Click to collapse
Can I test ? ?

sure ill have a beta up for you guys later tonight

ok, beta kernel time!
download here: https://www.androidfilehost.com/?fid=23991606952601582
some changelog:
BFQ scheduler default
increased bus frequency on apollo and atlas cores
enabled Mali 772Mhz GPU maximum
lots of kernel patches
framework for fixed overclock implementd (though not enabled in this build)
reduced readahead (is actually faster)
tweaked interactive and ondemand governors - interactive is now default again
please test for general stability and performance, I will released a overclocked version soon maybe
sources: https://github.com/glewarne/Galaxy_S6_920F_Kernel_v2

Related

[Kernel][CM13/AOSP]3.4.113_mm_x_kernel_v1.5 (27/10/2016)

x_mm_kernel for CM13 & AOSP marshmallow roms
Disclaimer: You're installing this at your own risk. Please, make nandroid backups before installing any of these kernels. I take no responsibility for damaging your phone.
Same features as seen in the x_kernel for CM12.1. Original Thread: http://forum.xda-developers.com/moto-x/development/kernel-xkernelv1-15-12-2015-t3271780
Main Features
- build with gcc4.9
- Linux Kernel 3.4.113 updates -> "Dirty Cow" fix
- Codeaurora LA.AF.1.1_rb1.18 branch updates
- IoScheduler: Fiops, Sio, Vr, Zen
- Smartmax Governor and the changes by @tdhite
- IntelliActive Governor -> changed frequencies to match msm8960dt
- Intellidemand Governor-> changed frequencies to match msm8960dt
- Interactive Governor -> updates from the razrqcom-dev-team git and much more
- Faux's simple GPU governor
- Faux's IntelliPlug, IntelliThermal, Soundcontrol and USB Fastcharge adaption
- Vibration Strength Control
- Userspace LUT tuning & Colour Calibration, thx to @Gustavo_s
- Zram, Zsmallox, Zcache, Frontswap -> complete Linux Kernel 3.17 backport, a lot of credits goes to the razrqcom-dev-team
- Lz4 compression/decompression
- Kernel Mode Neon + Crypto SHA512 support
- complete lowmemorykiller backport with adaption to vmpressure and many other tweaks
- Rewritten overclocking capabilities up to 1890Mhz, thx to @faux123 fot his initial coding
- Kernel underclocking with a lower frequency of 189 Mhz, thx to @zwliew
- Customizable voltage table / Voltage regulator
- Kernel Samepage Merging tweaks
- disabled sparsemem
- WQ_POWER_EFFICIENT for power oriented workqueues
- LoUIS API for cache maintenance ops
- Scheduler updates
- RCU_FAST_NO_HZ enabled
- massive update regarding kernel's memory managment
- many many more stuff
- init.d script tweaks, see second post
- sweeptosleep
- dt2w & d s2w do not work
DOWNLOAD: download tab Downloads
Credits and Thanks to:
CyanogenMod, Kernel.org, Code Aurora Forum, Google, razrqcom-dev-team and everyone who is involved in developing for the moto x. Check out the commits author in my git.
XDA:DevDB Information
x_kernel, Kernel for the Moto X
Contributors
tycoo
Source Code: https://github.com/tycoo/moto_x_kernel/tree/mm_x_kernel_v1.5
Kernel Special Features:
Version Information
Status: Beta
Current Beta Version: v1.5
Beta Release Date: 2016-09-06
Created 2016-09-06
Last Updated 2016-10-28
Reserved
Changelog:
(27/10/2016)
- updates of Linux Kernel 3.4.113
-> Fix of the "Dirty Cow" vulnerability: http://www.xda-developers.com/9-year-old-linux-kernel-bug-dubbed-dirty-cow-can-root-every-version-of-android/
-> commits: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/?id=refs/tags/v3.4.113
Reserved
please download link
Unusualfire said:
please download link
Click to expand...
Click to collapse
In the download tab you can find it
you did it! Thank you so much!
UrielGT-X said:
In the download tab you can find it
Click to expand...
Click to collapse
N/A
omy4069 said:
have wake control and work??
Click to expand...
Click to collapse
argh, you are asking again , it is not announced, so no changes regarding this feature
whenever i ask you something bother, and you answer me with disgust, best left to support the forum and will be best for you ok understood, thanks for all and good luck. i will never ask you again or bother you.
omy4069 said:
whenever i ask you something bother, and you answer me with disgust, best left to support the forum and will be best for you ok understood, thanks for all and good luck. i will never ask you again or bother you.
Click to expand...
Click to collapse
calm down bro, as far as i can see, beside some useful posts in the past, you are asking a lot, which often sounds demanding, for stuff, features, roms ; instead of doing a little research for already given answers, instead of carefully reading the threads and instead of testing the things own your own and sharing your experiences afterwards. This just leads to many unnecessary posts, which dilutes the important contents for everyone more and more (similar i explained to you before already). . and again the last 4 posts, including mine, would not have been necessary. That's my point and i dont like.
Thanks for new kernel. I just installed it.
@tycoo sorry for the question, but I didn't find something related to that, is there the color calibration script included? Thanks in advance for the kernel.
Works well.
Thanks.
Working great! Thanks a lot tycoo.
For those wondering, yes, this has colour calibration script.
Im going to try it with the latest build. Thanks.
Sent from my Moto X using Tapatalk
Fast charge
i have a little bug whe i active the fast charge, i think not work :/ cuz the phone charge the same ime active or not actived the optin
Nice work @tycoo thanks for all ^_^ i can be your teter if you want i have a lot of freee time
ømâr31 said:
i have a little bug whe i active the fast charge, i think not work :/ cuz the phone charge the same ime active or not actived the optin
Nice work @tycoo thanks for all ^_^ i can be your teter if you want i have a lot of freee time
Click to expand...
Click to collapse
Fast charge option is for charging your phone via usb cable connected to your pc as fast as with your power supply.
regards
Boot ok using Ressurrection Remix 5.7.3.
Let the tests begin.
Thanks to bring life to X1.
Cleiton COUT said:
Boot ok using Ressurrection Remix 5.7.3.
Let the tests begin.
Thanks to bring life to X1.
Click to expand...
Click to collapse
work really nice with RR 5.7.3
What is the advantage of this kernel over stock cm13 kernel?

[DISCONTINUED][kernel][J Series 2015][TW-MM] hadesKernel v2.5R [06.06.2017]

Code:
Disclaimer
#include
*
* [B]Your warranty is now void.[/B]
*
* 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.
*/
Welcome to hadesKernel
Some personal thoughts:
- this kernel works only on J5 2015 versions. I`m not responsable for what can happen if you flash on other devices.
- v2.3 for J5 already includes all the previous things from A5 releases.
- if you take any of my work without my permission i'll report you, and you'll probably get banned.
- you should read at least install instructions stated in this post - i won`t offer support for any issues regarding installation;
- bug reports without device variant and logs can't be considered bugs - make sure you provide detailed info when reporting bugs;
- press 'Thanks' button instead of saying it - it will keep the thread clean and keep me motivated to do more;
- feel free to donate to me if you want to support my work.
Features:
Aroma Installer with root options
SuperSU 2.79 SR3
Magisk v12.0
OTG support enabled
Private mode (for roms that support that feature)
knox 0x0 - borrowed some things from magisk and from @Bulgaricus
CPU overclock to 1.5Ghz
GPU overclock to 720Mhz
J500HXXU2BPK4 update - December security patches
Adreno Idler
intelli_thermal
nvidia relaxation patch
undervolt
Color calibration
prima wlan driver
fast, stable and cool
Latest ramdisk
Permissive kernel
init.d support
maybe more - will update when remember...
Devices:
J500F
J500FN
J500G
J500M
J500H
Bugs:
None (see FAQ on #3 post for any issues)
Instructions:
make sure you have TWRP from here installed (or any other with Aroma Installer support)
download zip and put it into phone's storage
enter TWRP recovery
flash zip
reboot and enjoy
Downloads
Credits:
*DjSteve
*Lord Boeffla
*psndna88
*Bulgaricus
*SuperR
*Faux123
*duki994
*kernel testers
*if i missed someone PM me and i`ll add
XDA:DevDB Information
hadesKernel v2.5, Kernel for the Samsung Galaxy J5
Contributors
corsicanu
Source Code: https://github.com/corsicanu/hadesKernel
Kernel Special Features:
Version Information
Status: Beta
Current Beta Version: v2.5
Beta Release Date: 2017-04-26
Created 2017-02-21
Last Updated 2017-07-03
Reserved
Changelog:
v2.5R - 06.06.2017
fixed private mode for roms that support this feature
v2.5 - 26.04.2017
fixed heating on A500G
fixed wifi
re-fixed camera for J5 family
added i/o schedulers back
v2.4 - 25.04.2017
kernel built permissive to avoid some issues
updated ramdisk to latest official fw
added root options in Aroma
added Magisk as root option
removed charging limit for some devices
disabled modules unload
reworked modules implementation,
*now you can switch to any other kernel without wifi or FM Radio issues
reworked knox 0x0 script
revert update to linux 3.10.60 for now
revert add more governors for now
revert add hotplugs for now
revert add i/o schedulers for now
v2.3 - 05.04.2017
fixed camera focus for J series
added support for A500W and A500K
updated to linux 3.10.60
added more governors (alucard/lionfish/barry_allen/intelliactive - these can be unstable-use interactive if you have issues)
added hotplugs (intelliplug/bricked hotplug/alucard/msm_hotplug)
added i/o schedulers (vr/fiops/sioplus/zen) and set FIOPS as default
knox 0x0 - borrowed some things from magisk and from @Bulgaricus
updated powersuspend
ramdisk tune-ups
cpufreq tune-ups
memory/cache tune-ups
v2.2 - 20.02.2017
added support for J5 2015 (J500xx)
added usb fast charge
made cubic tcp default for better net speeds
disabled software CRC for better performance
optimized framebuffer for better performance
added regulator for overclock
undervolted for better battery
lowered safe frequency from 400 to 200mhz
A5S deepsleep fix
added nvidia relaxation patch for better battery
enhance power efficiency
implement fast idling of CPU
reduced high-load and average-load for better battery
enabled arch_power
lowered throttle threeshold and enable it by default
v2.1 - 10.02.2017
Fix FM Radio
Fix OTG for all versions
Fix overheating issues for G
Add support for A3FU
Add SuperSU-v2.79-SR3
v2.0 - 25.01.2017
J500HXXU2BPK4 update - December security patches
Add support for A500H/A500S versions
Add builtin wlan module
Add westwood tcp and make cubic default again
Adreno Idler 1.1, fixed msm_adreno_tz
Add powersuspend
More msm-thermal tweaks
kernel: reduce overheat
Enable multi-core power savings
Add SuperSU SR5 back
Fix Deepsleep for F/G/M
Add 50Mhz and 100Mhz frequencies for low consumption when awake (AOD)
Add dynamic sync 2.0
Add lcd notify
xz: Optimize Sfck Compression
Added Aroma Installer
v1.4 - 22.12.2016
Fixed wifi again for each version
Multitask and battery optimisations + permissive mode enabled
Fix for frequencies not sticking at boot
ramdisk cpu / io / battery tune-ups
Add specific ramdisk for each supported variants
Separate SU from ramdisk
Fixed Kcal (color calibration)
V1.3 - 15.12.2016
add KCAL driver
4sysctl: favor filesystem
GPU OC to 720Mhz
Reverted CPU OC to 1.5Ghz
Fixed wifi for A500G
V1.2 - 11.11.2016
A500FU SuperSU SR3 patch + init.d support
SuperSU SR3 patch + init.d support
Experimental wifi fix
A500FU support
Switch to CUBIC TCP congestion control
arch/arm : compile with hardfloat + neon-vfpv4"
Tune-up for Cortex A53/ARMv8 architecture
V1.0 - 08.11.2016 - initial release
A500GXXU1CPH4 update
OTG and permissive enabling
free-mem optimisations
added SU patched ramdisk
2.07Ghz CPU OC
Enable neon and VFPv3
enable xz compression
Reserved
FAQ:
Q: My wifi is broken after flash. What to do?
A: Flash latest modem available for your device.
Q: Can`t connect to wifi network. What to do?
A: Reboot the phone, reboot the wifi router/ap, make sure you don`t have mac filtering enabled on ap/router.
Q: MAC adress has changed. What to do?
A: There is nothing you can do. That happens because of newer wifi module, built along with kernel, from the latest sources. If you can`t connect see Q2 above. I won`t change back to legacy wifi modules, at least not now.
Q: Device appears as "unauthorized" in adb and notification to authorize doesn`t appear. What to do?
A: Enter developer options, disable usb debugging, wait 30 seconds and re-enable it. Now you should see the notification to allow debugging.
Q: loading
A: loading
One more just in case of need
Deleted.
#Henkate said:
It's nice to see you here.
Click to expand...
Click to collapse
Multumesc!
Great .
Fast Kernel, Stable. (First really good kernel for J5)
From the tester to this build your kernel has worked perfectly. (Commenting here your tester)
My new rom with your kernel is amazing.
Cheers! :highfive:
Thanks @corsicanu ..
I'm using this kernel on my Stock 6.0.1 rom & I must say that this is one of the best kernels for J5.. Its very fast & stable..
Thank You So Much..
---------- Post added at 09:04 AM ---------- Previous post was at 08:59 AM ----------
By Zonik said:
Great .
Fast Kernel, Stable. (First really good kernel for J5)
From the tester to this build your kernel has worked perfectly. (Commenting here your tester)
My new rom with your kernel is amazing.
Cheers! :highfive:
Click to expand...
Click to collapse
Hi @By Zonik ..
Waiting for your rom (v2) bro..
Some q's
Fast charge as in fast charge?? Does our present kernels support that, beacause it's pretty slow.
Any plans to follow it up for a non touchwiz based rom??
does it support skies rom beta ??
corsicanu said:
One more just in case of need
Click to expand...
Click to collapse
Does the kernel work well with a single processor at the frequency of 50Mhz?
If you set a different GPU frequency to 720Mhz when the GPU is at 100%, is the Max frequency set or rising to 720 ignoring the set frequency? ?
Finally something interesting for the lands of the J5
For me the link doesnt work i just get this:
YuZaGa said:
Fast charge as in fast charge?? Does our present kernels support that, beacause it's pretty slow.
Any plans to follow it up for a non touchwiz based rom??
Click to expand...
Click to collapse
I will quote my friend @Bulgaricus for this
...we force supporting devices such as laptops and desktops that have fast charge to provide the quick charger to our phone.
I will see what can be done in the future for non touchwiz.
Super.Mody said:
does it support skies rom beta ??
Click to expand...
Click to collapse
From what i know Skies Rom is based on touchwiz so it will work. Test and report.
paulo boë said:
For me the link doesnt work i just get this:
Click to expand...
Click to collapse
Just wait more or refresh the page.
Demicro said:
Does the kernel work well with a single processor at the frequency of 50Mhz?
If you set a different GPU frequency to 720Mhz when the GPU is at 100%, is the Max frequency set or rising to 720 ignoring the set frequency? ?
Finally something interesting for the lands of the J5
Click to expand...
Click to collapse
I added 50Mhz for some certain scenarios, to step down the freq if the load is small - screen on but idle (i have screen timeout set to 10mins), or screen off and awake (for AOD on the roms that have it-my rom for A5). Anyway i have custom script in ramdisk that bypasses stock init.qcom.post_boot.sh and sets custom loads for all the frequencies, so the device can go down even to 50Mhz, but step up if the load is reached, so it doesn't lag at all.
About gpu - from what i saw it sticks to maximum set (i use kernel adiutor).
I mostly cherry-picked features and fixes, even from your j5(6) kernel [emoji16] since all are based on same soc. This project started as personal kernel, permissive with otg enabled (because A series has OTG disabled by Samsung), and after that decided to add more things and make it public.
Cheers!
Sent from my SM-N930F using Tapatalk
OMG ITS SO SMOOOOOOTTHHHHH. I bearly have any lag:laugh::victory:
Demicro said:
Does the kernel work well with a single processor at the frequency of 50Mhz?
If you set a different GPU frequency to 720Mhz when the GPU is at 100%, is the Max frequency set or rising to 720 ignoring the set frequency? ?
Finally something interesting for the lands of the J5
Click to expand...
Click to collapse
corsicanu said:
About gpu - from what i saw it sticks to maximum set (i use kernel adiutor).
Sent from my SM-N930F using Tapatalk
Click to expand...
Click to collapse
You can see the GPU frequency in real time by using these commands in Terminal (PC):
Code:
adb shell
cd /sys/devices/soc.0/1c00000.qcom,kgsl-3d0/devfreq/1c00000.qcom,kgsl-3d0
while true; do cat trans_stat; busybox sleep 0.1; done
1) The path may be different.
2) The current GPU frequency is the one with the asterisk.
3) Total transictions means the total switches between GPU frequencies.
Try these commands to confirm that the GPU frequency is stuck at 720.
We can bring the current fast charging also on custom roms or even improve the fast charging to support custom mAh and stuff like that. But forcing a battery to charge faster than it's limit can demage and reduce the battery life drastically so I think we will leave it just like that. Greetings
corsicanu said:
From what i know Skies Rom is based on touchwiz so it will work. Test and report.
Click to expand...
Click to collapse
Skies Rom beta is a Note 7 Port rom .. so it is Grace UX not touchwiz ..
corsicanu said:
I will quote my friend @Bulgaricus for this
...we force supporting devices such as laptops and desktops that have fast charge to provide the quick charger to our phone.
I will see what can be done in the future for non touchwiz.
From what i know Skies Rom is based on touchwiz so it will work. Test and report.
Just wait more or refresh the page.
I added 50Mhz for some certain scenarios, to step down the freq if the load is small - screen on but idle (i have screen timeout set to 10mins), or screen off and awake (for AOD on the roms that have it-my rom for A5). Anyway i have custom script in ramdisk that bypasses stock init.qcom.post_boot.sh and sets custom loads for all the frequencies, so the device can go down even to 50Mhz, but step up if the load is reached, so it doesn't lag at all.
About gpu - from what i saw it sticks to maximum set (i use kernel adiutor).
I mostly cherry-picked features and fixes, even from your j5(6) kernel [emoji16] since all are based on same soc. This project started as personal kernel, permissive with otg enabled (because A series has OTG disabled by Samsung), and after that decided to add more things and make it public.
Click to expand...
Click to collapse
I know, that you have cherry pick from me?
I also found something interesting in your code
Referring to the intelli thermal, I do not know why faux124 used a different thermal control for the TSEN8974. I found that version 1 gives some errors in the logcat when I boot up the phone
I also started my kernel for personal use, specifically to be able to use viper4 ? I just needed the kernel to be permissive. And now look where the kernel go
Super.Mody said:
Skies Rom beta is a Note 7 Port rom .. so it is Grace UX not touchwiz ..
Click to expand...
Click to collapse
Grace UX is touchwiz based. Non tw roms are lineage, cyanogenmod, or any other that uses AOSP as base.
Sent from my SM-N930F using Tapatalk
Demicro said:
I know, that you have cherry pick from me?
I also found something interesting in your code
Referring to the intelli thermal, I do not know why faux124 used a different thermal control for the TSEN8974. I found that version 1 gives some errors in the logcat when I boot up the phone
I also started my kernel for personal use, specifically to be able to use viper4 ? I just needed the kernel to be permissive. And now look where the kernel go
Click to expand...
Click to collapse
I removed it from features/changelog since isn`t activated yet. I saw too late in msm8916 defconfig the CONFIG_THERMAL_MONITOR=y so the intelli_thermal isn`t there yet. I can`t even finish the build (lots of errors), and you have errors in logcat ?. You are way far than me. For now i didn`t had time to chase those errors. I`ll look more maybe next week. Anything else interesting in my source? ?
Cheers!

Velocity Kernel (3.10.108) v3.0 for M and N ROMs

After a lot of testing and hours of hard-work, I have developed a Kernel based on the Latest Sources. As the name of the Kernel suggests, the primary focus of the Kernel is Speed and Performance. As a result, I have fine-tuned and optimized this Kernel to Perform in the best possible manner. However, I haven't missed to look into the Battery issues of the phone. A lot of effort has been made to Fix unnecessary Consumption of Battery along with regulated CPU usage. Further, I have worked really hard to include almost all Features and Fixes so as to make my Kernel the most feature-packed All-in-One solution.
Main Features---
Display---
Support for kCAL Colour Control v2.0 (enhances Colour Vibrance and Intensity). (available as a Screen TAB in Kernel Adiutor).
Support for Governors---
Interactive
OnDemand
Performance
Support for I/O Schedulers---
BFQ v7r8 with Hierarchical Scheduling
NOOP
CPU---
Support for Power Efficient WorkQueue to reduce Power-Consumption (available in CPU tab of Kernel Adiutor).
GPU---
Support for ADRENO-IDLER algorithm (saves a lot of Battery by reducing GPU Frequency to minimum when there is less load).
Memory---
Support for Swap, FrontSwap, and zSwap Techniques (improve Performance significantly when zRAM is Full).
Support for CleanCache Driver (improves I/O Performance).
Support for zsmAlloc with Page-Table Mapping Technique (improves Memory Performance).
Support for zRAM with LZ4 compression algorithm (improves performance by saving memory).
Sound---
Support for Faux Sound Control (Modified by ME).
Support for 4 Gains---Headphones, Speaker, Microphone and Video Recording Microphone.
Provides ability to Increase or Decrease Volume beyond Default Limits.
Support for Controlling Volumes separately for left and right Headphones.
Note---
As of now, only Headphones Gain and Mic Gain works. You can't use this to Increase the Speaker Volume.
Optimizations and Tweaks---
Based on the Latest Sources available for Lenovo Vibe P1.
Disabled CRC-Check for upto 30% Faster I/O Performance.
Compiled with UberTC 4.9.4 Optimized for 64-BIT (Uber uses the latest of every component as well as increases the Battery-Life too).
Disabled Debug-Info (should reduce the size of the kernel making it lighter).
Notes---
1. This Kernel only works on Official Stock ROM (Marshmallow) and Nougat Custom ROMs.
Installation Instructions---
1. Before Flashing this Kernel, Download Universal init.d App from Play Store and after Granting Root Permission to the App, Enable Emulation option and Exit the App.
2. To Download the Kernel, head over to the ChangeLogs and Downloads post and select the Version of Kernel you want.
3. To install the Kernel, just flash the .zip using TWRP Recovery.
Velocity Kernel's Telegram Group (for Early Access to Test BUILDs and Discussions on Everything related to Velocity Kernel for Lenovo-Devices)---
https://t.me/joinchat/FzUcw0Ru2KVVR7VMpnXLyA
XDA:DevDB Information
Velocity Kernel, Kernel for the Lenovo Vibe P1
Contributors
Shoaib05, FireLord
Source Code: https://github.com/Shoaib0597/Velocity-Lenovo_MSM8916/commits/MN-Passion
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: v3.0
Stable Release Date: 2018-04-17
Created 2017-10-05
Last Updated 2018-04-17
ChangeLogs and Downloads---
v3.0---
For Changelog and Download Link, refer here.
v2.7---
For Changelog and Download Link, refer here.
v2.5---
For Changelog and Download Link, refer here.
v2.0---
For Changelog and Download Link, refer here.
v1.0---
For Changelog and Download Link, refer here.
Recommended Settings---
Coming Soon!
F.A.Q.---
Coming Soon!
Reserved!
Velocity Kernel is now available for Lenovo Vibe P1 !!!
Changelog (v1.0)---
1. All the Features Supported which are mentioned in the First Post.
2. Tons of Optimizations and Improvements to the Default Configuration of the Kernel.
3. A Lot of Unnecessary Drivers have been Removed from the Kernel to make it Clutter-Free (reduces the Size of Kernel and makes it Lighter).
4. A Few Fixes to the Source Code of Lenovo Vibe P1.
5. The Kernel Boots with a Default Set of Optimal Settings (Vibrant Display Settings, Efficient CPU-Settings, etc.).
Notes---
1. I Don't own this Device but my Brother does. Since he was with me for a week, I decided to Build him a Kernel. That's why, I am sharing this Kernel here. The Kernel is Tested to be Stable and works Fine on Nougat Based Custom ROMs.
2. My Primary Devices are Yu Yureka Plus and Yu Yureka Black. I have Developed Kernels and A Few MODs for all Yu-Devices in Yu-Forums and that's where I remain Active.
3. In this Version, I haven't included many Advanced Features (that I have Built for Yu-Devices) because I didn't have the time to Test them on this Device as my Brother went back to his place. So, if you people want Advanced Features such as OverClock, Improvements to Tasks-Scheduling, a Better Thermal System, etc., then you people will need to Test my Builds and Report. If I could find Reliable Testers here, then I'll surely bring many of my Advanced Features here.
Notice---
Before Flashing this Kernel, do READ the Instructions Given in the First Post!
Download Link---
https://www.androidfilehost.com/?fid=817906626617936465
Thanks!
woah! you are here.. bought p1? good to see you
Is this kernel support off charging ?
How to play with sound options (gain etc.) ?
Nice work Dude, will u add any hotplug options in future ?
SimbahJohn said:
Is this kernel support off charging ?
Click to expand...
Click to collapse
No
SimbahJohn said:
Is this kernel support off charging ?
Click to expand...
Click to collapse
This Kernel is Based on Stock Source. So, if it was working on Stock Kernel, then it will work in this too.
7OH said:
How to play with sound options (gain etc.) ?
Click to expand...
Click to collapse
In Kernel Adiutor's Sound TAB, you'll see 4 Gains. Out of them, currently, only three work, Headphones, Mic and CamCorder. So, if you want your Mic to record your voice while Calling at a higher volume, you can increase the Mic Gain. Similarly, you can increase the Gain of the Ear-Piece (to listen while calling, the other person's voice at a higher volume) and Headphones (to listen to music at a higher volume).
Sahib Pandotra said:
Nice work Dude, will u add any hotplug options in future ?
Click to expand...
Click to collapse
Yes, I would like to. I didn't introduce it in this version because I didn't have the Device to test.
So, if you and a few other people are willing to test, then I'll introduce a Few Advanced Features gradually.
Shoaib05 said:
Yes, I would like to. I didn't introduce it in this version because I didn't have the Device to test.
So, if you and a few other people are willing to test, then I'll introduce a Few Advanced Features gradually.
Click to expand...
Click to collapse
I will help u in testing , I'll message u on telegram
Hi İ use this kernel and its use so battery İ think deep sleep is not working
JamaRu said:
Hi İ use this kernel and its use so battery İ think deep sleep is not working
Click to expand...
Click to collapse
Wait for a couple of days , it takes some time for kernel to become stable
JamaRu said:
Hi İ use this kernel and its use so battery İ think deep sleep is not working
Click to expand...
Click to collapse
Just complete a Few more Charge Cycles. It will improve.
Shoaib05 said:
This Kernel is Based on Stock Source. So, if it was working on Stock Kernel, then it will work in this too.
Click to expand...
Click to collapse
I have try but not working....
sansmustar said:
I have try but not working....
Click to expand...
Click to collapse
It works perfectly fine here, probably there is something in your device which is preventing deep sleep. Do a clean flash and then flash Velocity Kernel It may resolve u r issue

[EOL] Boeffla-Kernel (unofficial) for Lineage OS-15.1/16 [kltexxx]

This project is now "End-of-Life" (EOL). Thanks to all of you for the kind support...
Proudly presenting, Boeffla-Kernel (unofficial) for Lineage OS-15.1/16.
/* Introduction */
This is an unofficial port of the well-known Boeffla-Kernel which is developed by the recognized developer @Lord Boeffla. Since the original developer decided to end his support with Nougat, I decided to port his awesome work to Oreo. With the permission of the original developer, here I'm sharing my builds for anyone interested.
/* Warning */
This kernel is no way supported by Lord Boeffla. Please do not bother him with anything related to this Kernel.
/* DISCLAIMER! */
Code:
I am not responsible for any damage to your device. Everything you are doing on your device is at 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.
/* Supported devices */
klte: SM-G900F, SM-G900V, SM-S902L
kltekor: SM-G900K/L/S
kltedv: SM-G900P/I
klteduos: SM-G900FD, SM-G900MD
kltekdi: SCL23​
/* Compatibility */
This kernel is only meant to work on Lineage-OS 15.1/16 and nothing else. However, it may work on other LOS 15.1/16 based Oreo/Pie ROMs (Please try at your own risk).
This kernel will NOT work in Samsung Stock and other TW ROMs.
/* How-to-Install */
i. Download Kernel
ii. Go to recovery (TWRP recommend)
iii. Flash Kernel
iv. Reboot and enjoy
/* Features */
Built from Boeffla-Kernel 14.1 source code.
Merged with latest LineageOS 15.1 source code.
Built using Bleeding edge toolchain (GCC 8.2).
Added blu_active CPU governer.
All the standard features of Lineage-OS 14.1 Boeffla-Kernel
Support of anykernel concept - flash stock kernel before flashing Boeffla
Additional governors: zzmoove (Note: not considered stable at the moment, you might face reboots!!!), intelliactive, intellidemand, wheatley, smartmax, slim, intellimm, nightmare, lionheart, pegasusq Zzmoove supporting native hotplugging profiles
Additional schedulers: fiops, bfq, sio, tripndroid, zen
Many Hotplug tweak profiles (Default, Optimized, 1 core max, 2 cores max, 3 cores max, 2 cores min, 3 cores min, 4 cores min, 2 cores exact, 3 cores exact)
Wake up gestures implemented (double-tap-to-wake, swipe to wake) Removed from beta-v4 onwards.
Boeffla-Sound engine (Headphones and speaker volume configurable)
Configurable vnswap
True dynamic FSync (activated if screen on, deactived if screen off), configurable
Touch boost frequency configurable, touch boost switch
CPU Overclocking up to 2.84 GHz
CPU Voltages interface for undervolting/overvolting
GPU idle frequency 27 Mhz added
GPU governor selection support
Show GPU frequency usage per frequency in Boeffla-Config
Color control to adjust RGB color space + inverted mode
SD card read ahead buffer configurable (default increased to 1024 kB)
Ext4 File system tweaks (default to on, can be disabled)
System Tweaks predefined supported (default is off)
Android logger (logcat) configurable
Kernel logger (dmesg) configurable
Charge rates for AC charger, USB and wireless charging separately configurable (set charge rate to 0 to have stock charge logic back)
Charge information display support via Boeffla-Config V2 app
CIFS support
NFS support (module) Removed from beta-v9 onwards.
NTFS support
XBox support
OTG-Ethernet support
TCP Congestion changed to Westwood
Swap supported (but not recommended, use zRam instead)
init.d support (in /system/etc/init.d - set correct permissions!)
Default entropies increased
Insecure kernel (adb has root privileges)
Automatic EFS backup
Kernel survival mode by Boeffla-Config app to survive CM rom flashes
Full support for mpdecision for best compatibility and smoothness
(Important: use Boeffla-Config to configure min/max CPU frequencies + governors + schedulers only - or explicitely allow other apps/processes to overwrite this in Boeffla-Config settings, but expect weird side effects)
Integrated full busybox 1.23.1 (own compilation)
Auto-Root by kernel possible by request, not recommended for CM however (latest su included)
Kernel initialization log file (with the history of 3 log files)
Emergency reset script automatically placed into /boeffla-kernel-data folder of your internal memory
Presets supported in Boeffla-Config by kernel (Extreme power, power, normal, battery friendly and battery saving)
Always using latest Initramfs
Always based on latest Galaxy S5 sm-g900f kernel sources by CM
Kernel runs with SELinux enforcing by default, just as CM12 stock kernel for S5 - but can be configured to work in permissive mode in Boeffla-Config settings
/* Downloads */
https://smartpack.github.io/downloads/
Mirror
/* Special note to ROM developers */
You are allowed to include my kernel in any ROMs. Giving proper credits to the original developers (including me, if you considered me as one among them) are, however, highly appreciated. Feel free to contact me, if you need any assistance from my side.
/* Donations */
For those who wish to donate to the original developer (Lord Boeffla), here I'm copying his own words.
Code:
If you like my work, feel free to donate: [URL="http://www.boeffla.de/index.php/donation"]Donation-Link[/URL]
If you donate at least 2,49 EUR (to be in line with the donation app prices on Google Play store), you will receive a personal donation code which unlocks some nice little comfort functions in Boeffla-Config V2 on top.
If you like to appreciate my (sunilpaulmathew) work, please consider a donation as it is helpful to continue my projects more active, although it is not at all necessary.
/* Acknowledgements */
@haggertk for LineageOS 15.X for Galaxy S5
@Lord Boeffla for Boeffla-kernel for LOS-14.x
@franciscofranco
@Sultanxda
@arter97
@faux123
@Saber
@nathanchance
@ZaneZam
@osm0sis for AnyKernel project
Many other XDA developers
XDA:DevDB Information
Boeffla-Kernel (unofficial), Kernel for the Samsung Galaxy S5
Contributors
sunilpaulmathew, Lord Boeffla
Source Code: https://github.com/SmartPack
Kernel Special Features:
Version Information
Status: Stable
Created 2018-03-17
Last Updated 2019-01-10
Change-logs
Oreo
Pie
Reserved
So we are in the house
Kernel works fine so far... No probs with undervolting either. But never used this feature for daily use. Because it's not recommended.
Lg msprenger
Yass! Boeffla the legend, the only custom kernel which performance is faster than any other custom kernels and stock kernels combine.
All the best for you @sunilpaulmathew
You`ll wearing great shoes to continue Lord Boeffla`s legacy
Checked first beta ... fine fine
Cool! Let's check it out!
msprenger said:
So we are in the house
Kernel works fine so far... No probs with undervolting either. But never used this feature for daily use. Because it's not recommended.
Lg msprenger
Click to expand...
Click to collapse
Welcome
The_Voice_70 said:
All the best for you @sunilpaulmathew
You`ll wearing great shoes to continue Lord Boeffla`s legacy
Checked first beta ... fine fine
Click to expand...
Click to collapse
Thanks friend....
kvsjxd said:
Cool! Let's check it out!
Click to expand...
Click to collapse
All good?
Hello, my device is kltekor but after I flashed your kernel the second sim signal appears on the status bar, is that a feature or a bug?
Blackburn119 said:
Hello, my device is kltekor but after I flashed your kernel the second sim signal appears on the status bar, is that a feature or a bug?
Click to expand...
Click to collapse
its a bug. unless your device is a dual-sim variant .
KazuDante said:
its a bug. unless your device is a dual-sim variant .
Click to expand...
Click to collapse
I'm sure Kltekor is a Korean device with single sim
Blackburn119 said:
I'm sure Kltekor is a Korean device with single sim
Click to expand...
Click to collapse
so yeah its def a bug and not a feature.
No such issues in my kltekor (SM-G900L):Lineage-OS 15.1 latest build. See screenshot attached. Maybe some other issues on the ROM side?
Blackburn119 said:
I'm sure Kltekor is a Korean device with single sim
Click to expand...
Click to collapse
for @all,
I'm now testing a new version of Kernel, which is built using UBERTC-8.x (latest toolchain). If anyone wants to test for me, plz pm me or contact me at Telegram.
sunilpaulmathew said:
No such issues in my kltekor (SM-G900L):Lineage-OS 15.1 latest build. See screenshot attached. Maybe some other issues on the ROM side?
for @all,
I'm now testing a new version of Kernel, which is built using UBERTC-8.x (latest toolchain). If anyone wants to test for me, plz pm me or contact me at Telegram.
Click to expand...
Click to collapse
what's the difference between ubertc and old boeffla?
sunilpaulmathew said:
Welcome
Thanks friend....
All good?
Click to expand...
Click to collapse
Yeah works fine as expected. Keep up the good work.
sunilpaulmathew said:
No such issues in my kltekor (SM-G900L):Lineage-OS 15.1 latest build. See screenshot attached. Maybe some other issues on the ROM side?
for @all,
I'm now testing a new version of Kernel, which is built using UBERTC-8.x (latest toolchain). If anyone wants to test for me, plz pm me or contact me at Telegram.
Click to expand...
Click to collapse
Runs well, undervolting works in this kernel now, thank you! Havent noticed anything else thus far exept undervolt is working which is really nice!
Edit: Seems like GPU underclock (27mhz) is also added, great job, thanks!
Boeffla-Kernel (unofficial) v2
New kernel version (v2), which is built using UBERTC-8.x (latest) toolchain, is now available to download.
Detailed change-logs are always available here.
Download links can be found here.
Enjoy...
Thank you very much for the New build.. Works perfectly with the boeffla App. The change to the New Toolchain goes without any probs
No malfunctions since Installation
Great job
Lg msprenger
Sorry friends, I made some accidental mistakes while preparing the last build and it makes the modules unaccessible (do anyone noticed?). The download links are now updated with proper builds. If you are not worried about modules, just avoid this message. Otherwise, update to the newly uploaded builds (Please note: there is absolutely no change in the file name).
Sorry for the inconvenience...
Downloads
https://sunilpaulmathew.github.io/downloads/
Did not notice any inaccassebility to any Module. Which Mods do you mean??

Development [Kernel][12.04.2023][Android 13] Kirisakura 3.0.1 for Sony Xperia 1 III aka "Sagami"

Kirisakura-Kernel for the Sony Xperia 1 III
Hello everyone,
To keep it short: Here is Kirisakura - Kernel for the Sony Xperia 1 III aka Sagami. Sagami is the internal codename for this years development platform of Sony Mark III devices. Please note this kernel is made to run only on Xperia 1 III.
I would appreciate if everybody that flashes the kernel, reads at least once through this opening post and the following ones.
Kirisakura - Kernel is designed to bring a handful of beneficial features to the device, while ensuring excellent performance and smoothness to get you safely through the day!
If you expect a custom kernel to magically improve your devices battery life manifold and this is your only priority then this might not be the right place for you.
However the kernel is built to keep battery life close to the same as you would experience the on stock kernel while being tuned to perform better in various UI related benchmarks. The same benches are used by google to verify and ensure UI smoothness on the Pixel devices.
There´s also a cpu-battery saver mode that cuts back the CPU max- freqs, but without the disadvantages like delayed notifications from built into the system user-space power-saving modes.
If that got your curious, I welcome you to continue reading if you´re still interested!
The kernel includes a lot of improvements and contributions from other developers as well. Without this kernel would not exist.
A big part of improvements originate from @arter97´s, @kdrag0n´s and @Sultanxda´s work. Many others contributed in some way or another to this kernel.
A big thanks to all of them at this place!
Now lets continue with a list of features in the next paragraph!
Main Features:
- Based on latest kernel sources from Sony for Android 12 and intended to be used on the latest Stock-Firmware
- compiled with Clang 14.0.7 and built with -O3 speed optimizations
- Linux-Stable-Upstream included to 5.4.202
- upstreamed CAF base for the Snapdragon 888 (qcoms internal codename "lahaina")
- CPU-Battery saver to be able to restrict max cpufreqs on the fly, without enabling powersaving modes that might cause missed notifications (more info here)
- include important fixes/improvements from kernel/common
- reduce power consumption during deep sleep
- remove logging while device is suspended
- add SSG-IO scheduler from samsung (less overhead, better tuned towards android)
- disable various debugging mechanisms for drivers which are not needed on a perf build (e.g. binder)
- disable selinux auditing (we don´t have to adress selinux denials running a stock rom)
- disable unnecessary CPU errata for our specific SoC
- implement LRNG (thanks @arter97, see arter kernel OP for more info )
- Flashing the kernel will keep root!
- Flashable via EXKM, FKM or TWRP (if available) on a rooted system!
EAS related features:
- Implement dynamic WALT-Window size depending on current FPS, collecting information about CPU-Load to provide more precise information for the scheduler
- EAS implementation patched up to latest CAF state
- updates from kernel/common
- scheduler updates from sd888/ 5.4 kernel
CPU related features:
- Power saving workingqueues enabled by default (toggleable in EXKM)
- Change various drivers (WLAN, MM, audio, charger, power, thermal, glink etc) to use power efficient workingqueues. This compliments EAS in general
- improvements to cpufreq/times/stats
- vdso32 patches as found on Google Pixel devices (brief documentation here) (CAF 5.4 default, keep for documentation)
- remove event debug logging
- disable broken irq detection, disable debugmon
- improve suspend/resume from audio driver (caf-upstream for audio-kernel)
- cpuidle: wake only cpus for which qos has changed (this allows cores to keep idle states better)
- disable debugging during sleep states as per qcom recommendation
- remove RTB logging to reduce overhead
- disable trace_printk as it shouldn´t be used on production/perf kernel builds
- enable suspend_skip_sync to save power during suspend/resume
- disable edac and coresight (following google on the pixel kernels)
- disable jtagv8 debugging as recommended by qcom for perf builds to avoid potential power, performance and memory penalty
- disable s2idle in favor of deep idle state -> improves deep sleep drain (google initially used 2idle for improved suspend/resume latency on pixel 3 and pixel 4, but disabled it on pixel 5. qcom followed suit for sd 888, but apparently didn´t see google reverting it on pixel 5. Other OEMs such as Xiaomi or OnePlus already disabled s2idle on their SD888 devices in favor of deep- read more about s2idle vs deep here)
GPU related features:
- GPU driver updated to latest CAF-State
- gpu/kgsl improvements from pixel 4/pixel 5 kernel
- add low_prio_worker thread for gpu driver (Improves performance when tearing down processes (eg, via LMK) and not blocking currently running UI from submitting work to the GPU
File System related features:
- upstream BFQ-MQ to latest state in linux-mainline and default to 128KB readahead
- improve memory allocations in kernfs
- ufs improvements from pixel 4/ pixel 5 kernel
- improve GC as to not interfere while user interaction is happening and prevent possible jitter or latency spikes
Network related features:
- Wireguard Support (Details)
- advanced TCP algorithms enabled
- use bbr as default TCP congestion algorithm (fasted algo according to this excellent research from @kdrag0n found here )
- improved networking drivers from caf-upstream (especially wifi)
- remove unnecessary wakelock from WLAN driver to reduce thousands of very short wakeups during a 7 hour deep sleep period
- improved bluetooth performance (¹, ²)
- Enable support for TTL spoofing
Memory related features:
- Speculative Page Faults left enabled (1. 2) (CAF 5.4 default, keep for documentation)
- Fix various memory leaks in different subsystems
- improved mm with patches from mainline
- patches from kernel/common
- improve memory allocations in various subsystems, video encode/decode, kernfs, cgroup
- Backport to enable CONFIG_HAVE_MOVE_PMD (see here) , thanks @arter97
- Backport to enable CONFIG_HAVE_MOVE_PUD (commit here) , thanks @arter97
- free more RAM by removing unused reserved memory regions
- mm: Micro-optimize PID map reads for arm64 (improves game performance, especially unity based games such as genshin impact)
- MGLRU added (info here and here
Security related features:
- Control-Flow-Integration (CFI) and Link-Time-Optimization (LTO) (CAF 5.4 default, keep for documentation)
- Use ThinLTO which was first used in the Pixel 4 XL Android R-Kernel instead of full LTO (CAF 5.4 default, keep for documentation)
- Shadow Call Stack (SCS) Security-Feature ( 5.4 default, keep for documentation)
- enable init_on_alloc for even more security, more information can be found in the commit message (CAF 5.4 default, keep for documentation)
Misc Features:
Wakelock Blocker:
- advanced wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)
- please read [URL="https://arstechnica.com/gadgets/2018/08/p-is-for-power-how-google-tests-tracks-and-improves-android-battery-life/"]this for further info
- blocking a kernel wakelock should only be done in case of firmware incompatabilities (WiFi network at work (can´t be changed) causes deep sleep to not work on the phone.) That´s the only use case I see for this feature. The kernel does not features this to improve battery life!
Other features:
- clean up asus drivers and fix a few warnings in kernel log
- disable logging and debugging to make the kernel more lightweight in various places (includes binder, mm, vma, gpu, ipa etc)
- fix several coding issues detected by newer Clang-Toolchains
- enlarge dmesg size to ease debugging
Flashing Guide, Download and Changelog
Requirements:
- unlocked Bootloader
- USB-Debugging in developer options enabled
- latest adb and fastboot binaries
- working adb and fastboot environment
- magisk root
- a backup of stock boot.img or your magisk patched boot.img in case you want to go back to stock.
How to flash the Kernel:
1. Download the latest kernel.zip and make sure you have properly updated to the latest matching Firmware (check the feature list for the current firmware the source is based on). When there´s an OTA update for the Sony Xperia 1 III it takes Sony a while to release the source code for the new OS and me a while to build a new kernel. If you don´t want to face any issues, wait until I either release an updated kernel or give green light because there were no kernel changes.
If you want to be sure there are no issues, always make sure to run the firmware the kernel is built for!
If you feel adventurous and try in advance, make sure you have a backup ready!
2. Flash the kernel.zip via latest TWRP (if available), EXKM or FKM app and do a full reboot.
3. Reboot and profit.
DOWNLOAD:
Download is located always in this folder:
https://www.androidfilehost.com/?w=files&flid=331114
Or attached to the release post starting with Android 13 as AFH is currently not working correctly
Important: Read after Download
Please take a look at the second post after flashing the kernel!
Changelog:
Android 11
1.0.0 Initial Release
1.0.1 https://forum.xda-developers.com/t/...xperia-1-iii-aka-sagami.4377449/post-86140929
Android 12
2.0.0
[Kernel][02.07.2022][Android 12] Kirisakura 2.0.0 for Sony Xperia 1 III aka "Sagami"
Kirisakura-Kernel for the Sony Xperia 1 III Hello everyone, To keep it short: Here is Kirisakura - Kernel for the Sony Xperia 1 III aka Sagami. Sagami is the internal codename for this years development platform of Sony Mark III devices. Please...
forum.xda-developers.com
Android 13
3.0.0 https://forum.xda-developers.com/t/...xperia-1-iii-aka-sagami.4377449/post-88048199
3.0.1 https://forum.xda-developers.com/t/...xperia-1-iii-aka-sagami.4377449/post-88404445
Donations:
Donations are not mandatory but very welcome if you want to support development or just buy me a coffee/tea
If you like my work: http://paypal.me/freak07
Credits:
Sony for the development device, giving me the opportunity to create this project!
@osm0sis for all his work, including the ak3 installer!
@tbalden for being the best HTC, Pixel, OnePlus and now Asus wingman!
@LeeDroid and @mwilky for their awesome roms and work I used on multiple devices!
@Captain_Throwback for all the mentoring and guidance!
@Eliminater74 for bringing me into the game and the Inspiration
@nathanchance for his upstream guidance and assistance
@RenderBroken for helping me out
@flar2 for all his work
@joshuous for all the help he provided to me in the past!
@arter97 for giving me advice
@kdrag0n for his help and advices!
@topjohnwu for magisk!
Source Code: https://github.com/freak07/Kirisakura_Sagami
F.A.Q:
Question: Is root preserved when flashing this kernel?
Answer: Yes, the AnyKernel.zip will detect root and keep it.
Question: Safetynet does not pass on my phone since I unlocked the phone, why is this so?
Answer: Google introduced hardware backed attestation recently. Unfortunately the old kernel tricks to still get safetynet passing won´t work. Instead you will have to rely on some magisk modules. Short guide in post #4 below.
Question: How do I return back to stock or another kernel.
Answer: Extract boot.img from the matching firmware you are on (you can do so by using this tool or similar ones found on XDA and when googling around) and flash them via fastboot. If you want to keep root flash back the magisk_patched_boot.img. Or dirty flash your rom and re-root.
Question: Why is having Magisk installed mandatory for this kernel?
Answer: The kernel uses a ramdisk overlay to apply some settings after boot. If you are not rooted these settings will not get applied and you miss some of the optimizations.
Question: How to report bugs properly?
Answer: Have a look at post #3 in the linked thread. The linked guide is a pretty good starting point.
Before reporting any bug make sure you´re running on a stock configuration. That´s means you´re not using any mods, tweaks in kernel managers or other root tweaks , magisk modules, scripts or other modifications that alter various functions like sound mods, data traffic, sleeping behaviour, scheduler, magical battery tweaks etc.
Try to describe the issue as detailed as possible! Give your exact setup, like rom, magisk version, kernel version.
Is the issue reproducible? Does it happen frequently?
Please make sure to meet the points described above, provide logs as detailed in the link above, otherwise debugging is a lot more time consuming and harder. (kernel flashing apps usually support exporting logs of flashes too) If these requirements aren´t met and I don´t find time to either reproduce the issue myself or I´m not able to reproduce the issue myself, reports might just be ignored. If you can already reproduce the issue and provide logs it greatly limits the amount of time I have to spent until I figure out how to reproduce it.
If the device force reboots/randomly reboots (that means you see the bootloader unlocked screen!) provide a .zip of /asdf.
Easiest way is immediately after booting up, with a root explorer navigate to /asdf. Copy the contents to your internal storage, zip it up and send it to me.
If the issue happens while the device is running provide a dmesg plus a logcat that you take while/shortly after the issue happens. This will log what´s running in the current session. Try to be as detailed as possible what´s happening when the issue appears. It will also help me in reading the log!
Feature Documentation:
Here´s a brief documentation about some of the features included in the kernel that can be changed as the user desires.
They can be accessed via either terminal, scripts or for example EXKM manager ( tools -> user settings).
CPU-Frequency Limiting:
Another option is CPU-Freq Limiting. You can now limit the CPU frequency to a few different levels with a sysfs interface. Original implementation is from @tbalden, I only changed it to be accessible via traditional root methods.
Main Switch:
sys/module/cpufreq/parameters/batterysaver
Set this option to "1" to enable the feature
Max-Frequency Selection (Input boosts, such as scrolling boost or app launching boosts will still apply, if touch boost restriction is not set to 1)
sys/module/cpufreq/parameters/batterysaver_level
Set this to "1" to restrict the max CPU-Freqs to 1,7GHZ/2,1GHZ/2,49GHZ (Little Cluster/Big Cluster/Prime Core)
Set this to "2" to restrict the max CPU-Freqs to 1,6GHZ/1,7GHZ/2,0GHZ (Little Cluster/Big Cluster/Prime Core)
Set this to "3" to restrict the max CPU-Freqs to 1,49GHZ/1,4GHZ/1,6GHZ (Little Cluster/Big Cluster/Prime Core)
Touch-Boost Restriction
sys/module/cpufreq/parameters/batterysaver_touch limiting
Set this to "1" to restrict the powerhal from boosting over the limit defined in batterysaver_level
Set this to "0" to allow the powerhal to boost above the values defined in batterysaver_level, but only during interaction with the Phone!
Screenshots:
View attachment 5309899View attachment 5309901View attachment 5309903
This is for example very useful during gaming to prevent additional heat, if not the highest performance from the CPU is required. Check if the game is running fine on level 1 or 2, and you´ll notice much less heat. Powerdraw will be reduced as well.
Another very useful trick while doing video calls or long extended navigation sessions with google maps to preserve battery or keep the phone from heating. Especially during summer if the ambient temperatures are high.
This is a very easy way to preserve battery or reduce heat without toggling the battery save mode in settings as that restricts background data usage, which can lead to delayed notifications.
How to pass Safetynet after unlocking the bootloader
With the introduction of hardware backed safetynet attestation, passing safetynet has become a lot more complicated.
Some probably remember a while ago, flashing a kernel that forced some flags was enough to pass it. However these days are gone.
Below is a short guide how to pass safetynet on phones that are flagged to use HW attestation (such as the ROG 5).
1. Make sure you´re running latest magisk canary.
2. In Magisk Manager enable both zygisk and deny list.
4. Download the latest Universal Safety Net Fix from @kdrag0n ´s github for zygisk cand flash it in Magisk Manager. Reboot.
5. Profit
this one is the last one
Freak07,
Please not this kernel is made to run only on Xperia 1 II
Click to expand...
Click to collapse
I guess it should be "Please note this kernel is made to run only on Xperia 1 III"
By the way, is there any plans to make same kernel for 5 III ?
Source Code: https://github.com/freak07/Kirisakura_Sagami
Click to expand...
Click to collapse
Leads me to nowhere (404).
dron39 said:
Freak07,
I guess it should be "Please note this kernel is made to run only on Xperia 1 III"
By the way, is there any plans to make same kernel for 5 III ?
Leads me to nowhere (404).
Click to expand...
Click to collapse
Fixed the typos and the link.
No, I only have the Xperia 1 III to work on.
Amazing work mate, very meticulous tuning. Would love to have this kernel on the 5 III. I understand the device architectures are quite similar?
treff89 said:
Amazing work mate, very meticulous tuning. Would love to have this kernel on the 5 III. I understand the device architectures are quite similar?
Click to expand...
Click to collapse
I asked the same question above
And unfortunatelly Freak07 do not support 5 III because he doesn't have it. Hope someone else could transfer his patches and things to 5 III.
Thanks for the kernel. However after installing the kernel my SD card gave an error. It says issue with the SD Card tap to fix and then asks me to format it?
BlazingKahn35 said:
Thanks for the kernel. However after installing the kernel my SD card gave an error. It says issue with the SD Card tap to fix and then asks me to format it?
Click to expand...
Click to collapse
I see. Thanks for the report!
I think i know whats up. They use a proprietary driver for exfat formatted sdcards ( I assume yours is formatted as exfat?) so it's not included in the source i build the kernel from.
I don't use a sdcard, that's why I missed it.
treff89 said:
Amazing work mate, very meticulous tuning. Would love to have this kernel on the 5 III. I understand the device architectures are quite similar?
Click to expand...
Click to collapse
dron39 said:
I asked the same question above
And unfortunatelly Freak07 do not support 5 III because he doesn't have it. Hope someone else could transfer his patches and things to 5 III.
Click to expand...
Click to collapse
They are similar, but I can't support a device i don't own. I also lack the time to do any remote debugging.
The phones however are similar as you mentioned, so if somebody is interested in starting to work on it all my work is up on GitHub. That might make it a lot easier than it would be otherwise.
Freak07 said:
I see. Thanks for the report!
I think i know whats up. They use a proprietary driver for exfat formatted sdcards ( I assume yours is formatted as exfat?) so it's not included in the source i build the kernel from.
I don't use a sdcard, that's why I missed it.
Click to expand...
Click to collapse
Yes mine is exfat since it's 256gb but not a big issue. I just transferred all my files to PC formatted the SD and transferred back now it works.
Also I'm using forced 4K all the time. But the only downside is the slowing down of the FP sensor. I think it's a kernel panic can you look in to that also maybe? (It was also slow on stock kernel)
Dear developer, if there is an opportunity, I would like to receive a kernel for PRO-I products!
I promise to donate
Update to 1.0.1
Good morning everybody,
thanks to @BlazingKahn35 ´s report exfat formatted sdcards are now working fine again.
Included an open source driver, that spoofs texfat support (the proprietary exfat driver) once an exfat sdcard is detected.
Download link can be found in the OP.
BlazingKahn35 said:
Also I'm using forced 4K all the time. But the only downside is the slowing down of the FP sensor. I think it's a kernel panic can you look in to that also maybe? (It was also slow on stock kernel)
Click to expand...
Click to collapse
Not sure what you mean. A kernel panic crashes the device so that it reboots.
The fingerprint scanner works fine for me. I place my finger on it, it scans and proceeds to unlock. It's not the fastest around, but it's quick enough for me.
Also used the adb commands to enable 4k and the speed of the fingerprint sensor stayed the same on my end.
I noticed just as I woke up that my phone was charged to 100%. Did you removed battery care from the kernel?
Freak07 said:
Not sure what you mean. A kernel panic crashes the device so that it reboots.
The fingerprint scanner works fine for me. I place my finger on it, it scans and proceeds to unlock. It's not the fastest around, but it's quick enough for me.
Also used the adb commands to enable 4k and the speed of the fingerprint sensor stayed the same on my end.
Click to expand...
Click to collapse
For me there is a big delay sometimes. Do you have AOD enabled?
BlazingKahn35 said:
I noticed just as I woke up that my phone was charged to 100%. Did you removed battery care from the kernel?
Click to expand...
Click to collapse
Not intentionally no. It might be not enabled the way I built the source or i need to see if the drivers is available somewhere else to be able to build it in.
I'll play around with it the next few days, see if I can reproduce the issue and find what's missing or broken. Thanks for the report again.
BlazingKahn35 said:
For me there is a big delay sometimes. Do you have AOD enabled?
Click to expand...
Click to collapse
Not constant AOD. Only waking to AOD screen when lifting the phone is enabled.

Categories

Resources