Elite Kernel
Unleash the beast
for Xperia Z2/Z2a
First of all, I have spent a lot of hours on this project, trying to obtain the true power of this great device.
This Kernel is designed for optimize battery life and give more performance than stock kernel.
Features
Based on lastest sources, 23.5.A.1.291
DRM injection inside the Zip, you don't need flash DRM Fix, just kernel
OC up to 2,7Ghz
UC for better battery life
Optimized voltage tables and voltage control
Thunderplug v5.4, a load based hotplug and optimized for multi-core devices and it is very battery friendly with a great performance
IntelliThermal v2, a custom thermal control better than stock one
GPU overclock up to 657Mhz
Kcal control
More I/O schedulers like FIOPS, Zen, VR, BFQ...
init.d support
Power suspend driver v1.5
Build with UBERTC 4.9 and some optimizations
More stuff that I don't remember
ToDo
Add more governors
Share interactive governor tuned settings for battery and performance
More GPU optimizations
F2FS support
More battery life optimizations
Maybe Quick Chargue 2.0 support.
Maybe sound optimizations
Installation
Install my lastest TWRP (go here)
Make a backup of the partition System (MUST DO, because the kernel change some modules on system)
Select a version according to your needs. (See below)
If you have a TA partition backup:
Download EliteKernelZ2-(current version).zip and extract the boot.img on your pc.
Use the ta_poc tool by munjeni with your TA partition backup.
Rename the new_boot.img to boot.img and replace it on the EliteKernelZ2-(current version).zip
Boot on FOTAKernel recovery, with the phone power off, press at the same time power key and vol- until the phone vibrates.
Flash your EliteKernelZ2-(current version).zip with the boot.img patched.
Enjoy!
Click to expand...
Click to collapse
If you don't have a TA partition backup (so you need DRM FIX):
Boot on FOTAKernel recovery, with the phone power off, press at the same time power key and vol- until the phone vibrates.
Flash EliteKernelZ2_D-(current version).zip
Enjoy!
Click to expand...
Click to collapse
Usage with eXistenZ 5.6.5 and Magisk
eXistenZ 5.6.5 includes a TWRP recovery inside the rom, and we don't need it since we have some options for recovery here, so for remove it download this file and flash it on recovery.
eXistenZ 5.6.5 also includes SuperSU on the rom and for correclty install magisk we need to remove it, so first of all update the SuperSU app on the Play Store, after go to the app and on settings there is an option for uninstall SuperSU and unroot the System, so tap it (Sometimes if it takes more of 3 mins, close the app and do it again), after that reboot the phone and done, SuperSU uninstalled.
Now the installation/upgrade of magisk using my kernel.
Download the lastest magisk zip and magisk uninstaller zip here, put they on SD card.
Reboot on recovery, uninstall magisk with the uninstaller zip if you have it, flash the kernel zip, flash magisk and reboot to system, and done, enjoy magisk.
Download
Z2
Z2a (Comming... NO ETA)
Credits
@AndroPlus
@Myself5
@DooMLoRD
@pec0ra
@dorimanx
@faux123
@Doom Slayer a lot of thanks to this great dev
@dontbelive great dev and my Z3 tester
@BlackSoulxxx
@savoca
Source
https://github.com/ShadowElite117/Xperia-Z2-Z3
Changelog
v1
First release
Click to expand...
Click to collapse
v2
Based on new 23.5.A.1.291 sources
Click to expand...
Click to collapse
v3
Added missing conservative GPU Governor
Added Simple GPU algorithm
Added Adreno idler for battery saving
Added Fauxsound v3.6
More optimizations
Maybe Z3 boot screen, I can't confirm
Click to expand...
Click to collapse
v3.4.13
Kernel made from scratch, so no special features for now (Sorry guys I do this for a better kernel).
Implemented last_kmsg for a correct bug report.
Updated linux kernel version from 3.4.0 to 3.4.13 (Correclty done and free of strange bugs).
QC 2.0 enabled (don't expect miracles, it is limited on Z2 so it works with some QC 2.0 chargers)
Full compatibility with Magisk, eXistenZ and ta_poc tool.
Click to expand...
Click to collapse
v3.4.33
Updated linux kernel version from 3.4.13 to 3.4.33.
Enabled a kernel flag for try to enable Assertive Display on Z2 (It just give me logs that help me to know what is happening).
Dropped TWRP inside the kernel, since I have build newest TWRP for Sirus, for FOTAKernel partition. It has more features and it is more bug free than recovery inside the kernel.
Click to expand...
Click to collapse
v3.4.113
Updated linux kernel version from 3.4.33 to 3.4.113 (Finally, this took a lot of time and effort).
Improved init.d support implementation. (maybe impoved boot time)
No exfat support (not tested)
Click to expand...
Click to collapse
FAQs
How to report a bug?
Give me a last_kmsg, current version of the kernel and your rom.
Can I flash over Abricot v8.1?
It seems that flash over Abricot creates bugs and bootloops so make a clean install and enjoy my work
Note:I'm not going to support any user that don't make a clean installation
Now you can contact me at Telegram: #ShadowElite117, easy way to find me fast.
I will try this kernel with the quick charging patch. I hope it works
Post: http://forum.xda-developers.com/xperia-z2/development/sony-secret-revealed-qc-2-0-t3163490
This kernel has potential! will wait for further updates.
All working good,I have a really nice uv for 268mhz - 635 mv stable after 30min of stability test
Btw fiops is set as scheduler after reboot,is it because of your preference or bug in kernel adiutor?
Flashed
d22ad2 said:
All working good,I have a really nice uv for 268mhz - 635 mv stable after 30min of stability test
Btw fiops is set as scheduler after reboot,is it because of your preference or bug in kernel adiutor?
Click to expand...
Click to collapse
It is my personal preference, sony set ROW as default but sometimes has performance drops, fiops is more optimized and better for performance.
Nice! Testing right now, i'll report later
Just look at it
d22ad2 said:
Just look at it
Click to expand...
Click to collapse
My existenz 4.7 and abricot kernel v8.1 has 59k-60k score points. I have not tried this kernel yet. Really good for you
btw do i have to reset my kernel adiutor before flash new kernel?
Great work, I'll try it asap with @Debuffer's Gov-Tuner Project, which I'm using actually with the stock kernel and works flawlessly.
I'll report the results
Thanks!!
yenero said:
My existenz 4.7 and abricot kernel v8.1 has 59k-60k score points. I have not tried this kernel yet. Really good for you
Click to expand...
Click to collapse
I wonder why mine was so laggy at gpu test,your had the same problem? I think its not kernel related anyway,probably adreno 330 just gets old. ^^
My worked without any reset in kernel adiutor,I only wiped cache and dalvik but I think its not necessary. All previous settings worked without problems.
d22ad2 said:
I wonder why mine was so laggy at gpu test,your had the same problem? I think its not kernel related anyway,probably adreno 330 just gets old. ^^
My worked without any reset in kernel adiutor,I only wiped cache and dalvik but I think its not necessary. All previous settings worked without problems.
Click to expand...
Click to collapse
Yes i had same problem. GPU test was very laggy. Thank you for info, i'll try this kernel.
I would really try your kernel, but I dont have unlocked bootloader yet. Is there any disadvantages by unlocking bootloader? I hear that camera didn't have enhacements like noise cancelling, but I made copy of TA partition. Did your kernel will fix that if I unlock it?
Fuilares said:
I would really try your kernel, but I dont have unlocked bootloader yet. Is there any disadvantages by unlocking bootloader? I hear that camera didn't have enhacements like noise cancelling, but I made copy of TA partition. Did your kernel will fix that if I unlock it?
Click to expand...
Click to collapse
It is stated in title that DRM fix is included so no need to worry about disadvantages. But remember to keep your TA partition copy somewhere safe in case you will want to lock the bootloader someday.
Fuilares said:
I would really try your kernel, but I dont have unlocked bootloader yet. Is there any disadvantages by unlocking bootloader? I hear that camera didn't have enhacements like noise cancelling, but I made copy of TA partition. Did your kernel will fix that if I unlock it?
Click to expand...
Click to collapse
Yes you need to unlock your bootloader, and you should make a TA partition backup, also my Kernel restore the lost functions with DRM injection and if you want your original DRM keys working, also I will put the method, for now I'm on University and I make the post tonight so give me some time for all stuff that I have.
ShadowElite said:
Yes you need to unlock your bootloader, and you should make a TA partition backup, also my Kernel restore the lost functions with DRM injection and if you want your original DRM keys working, also I will put the method, for now I'm on University and I make the post tonight so give me some time for all stuff that I have.
Click to expand...
Click to collapse
Thanks, I will try your kernel and I will give you feedback
yenero said:
Yes i had same problem. GPU test was very laggy. Thank you for info, i'll try this kernel.
Click to expand...
Click to collapse
Don't worry about lag on test it is because it is a really heavy test so GPU is fine
Thank you for good job
Is this a big kernel bugs?
It is suitable for everyday use?
Do you have specific parameters that you use to enable all of the features within the kernel, for example, the hotplugs and the flops scheduler...
Do you have a kernel management app that you could recommend to me, for example Kernel Auditor?
Thanks for your contribution toward the Z2 line, I really appreciate it and look forward to more from you !
Regards,
Mohamed
Related
Introduction
Hello dear developers and android hackers,
On this thread, I will share with you a project I am developing as I am learning kernel programming / hacking. This kernel is based on Sony kernel sources with some enhancements for battery saving and performance.
Click to expand...
Click to collapse
Features
Based on Sony 23.5.A.0.570 kernel sources
Compiled with linaro GCC 4.9.1 toolchain, -O3
Governors : interactive, ondemand, performance, conservative, smartassV2, intellidemand2 and intelliactive.
Fast hotplug
CPU overclock up to 2.8 GHz Thank's to Faux123 and DooMLoRD
Changed GPU frequency table to 27 - 657 MHz Thank's to Myself5
Sony RIC disabled
Undervolt
TWRP recovery included, fota partition support
Breathing notification light thank's to glocklee
Force Fast Charge
KCAL Advanced color control Thank's to savoca
Click to expand...
Click to collapse
Installation instructions
Code:
Use this kernel at you own risk !
I am not responsible for any damage or problem.
Flash the zip via recovery
Reboot
Click to expand...
Click to collapse
Download
Please read FAQ and second post if you have any issue
Recovery flashable zip :
Abricot kernel v8.1.zip
mirror
Kernel Source :
Kernel
Ramdisk
Click to expand...
Click to collapse
Changelog
Abricot kernel v8.1 : 12.05.16
Disable RIC at kernel level (Fixes partition mounting in recovery)
Add KCAL Advanced color control Thank's to savoca
Abricot kernel v8 : 10.05.16
Based on Sony sources 23.5.A.0.570
Updated TWRP to version 3.0.2-0
Abricot kernel v7 : 01.04.15
Updated to Lollipop kernel sources 23.1.A.0.690
Update TWRP to 2.8.5.0
Add Force Fast Charge
Removed splash screen
Abricot kernel v6 : 24.12.14
Fix default freq not applying for all cores at boot
Fix -O3 compiler optimization
Fast hotplug : plug in cores in descending order
Abricot kernel v5 : 15.12.14
Increase voltage of higher frequency for better stability
Add support for displaying the number of tasks running
Add VR, SIO and FIFO schedulers
Add lagfree governor
Update TWRP to 2.8.1.0
Fix scaling_max_freq permissions
Set default frequency to 2.3GHz
Abricot kernel v4 : 11.12.14
Add CPU overclock up to 2.8 GHz (Thank's to Faux123 and DooMLoRD)
Change GPU frequency table to 27 - 657 MHz (Thank's to Myself5)
Disable Sony RIC
Remove msm_mpdecision
Set qcom mpdecision as default
Abricot kernel v3 : 07.12.14
First public release
Check my github to see all the changes.
Click to expand...
Click to collapse
FAQ
Q : With what ROM can I use this kernel ?
A : With any ROM based on Sony stock Marshmallow
Q : Your kernel isn't working / My phone isn't booting anymore
A : Read this whole post once more, search for your problem in thread and report it if you haven't found a solution.
Q : Can I install this kernel on locked bootloader ?
A : No ! This kernel is only for unlocked bootloader.
Q : Does this kernel include recovery ?
A : Yes ! You can access by pressing buttons when the led is lighting. Volume down to go to TWRP and Volume up to load recovery from FOTA..
Q : What are mpdecision and fast hotplug ?
A : This is what manage your cpu cores and decide which core will be online. Fast hotplug is a brand new hotplug that I wrote. See next post for more information
Click to expand...
Click to collapse
Thanks To/Credits
* Sony for their sources and device
* @DooMLoRD
* @thewadegeek for his Tutorial
* @show-p1984 for his mpdecision
* @glocklee for his breating notification mod
* @Envious_Data for his help and links
* @dssmex
* @Androguide.fr for Pimp my Z1
* bbedward
* Erasmux
* faux123
* The xda community for making me discover android and for answering so many of my questions
* Google for kernel sources and its search engine
* Apple for making expensive phone so that I never bought one of theirs
Click to expand...
Click to collapse
Please let me know per pm if there is any mistake or misspelled word in this thread. Automatic correction does a great job but since english isn't my mother thongue I'm pretty sure I made mistakes.
XDA:DevDB Information
Abricot kernel, Kernel for the Sony Xperia Z2
Contributors
pec0ra
Source Code: https://github.com/pec0ra/abricot
Kernel Special Features:
Version Information
Status: Testing
Created 2014-12-07
Last Updated 2016-05-20
About Fast hotplug
Motivation
I wasn't convinced by show-p's msm_mpdecision nor faux123's intelli_plug ( I don't even talk about qcom mpdecision ). I also wanted to start working on a bigger programming project to learn more about kernel developing so I decided to write my own hotplug.
Main features
I tried to make fast hotplug the lightest possible, so that it consumes the less resources possible when it is not needed (mainly at idle). One of the second goals was to make it customizable.
How to use
Deactivate qcom mpdecision (Pimp my Z1 will do this automatically when you choose fast hotplug)
Activate fast_hotplug
Code:
adb shell "echo 1 > /sys/module/fast_hotplug/parameters/fast_hotplug_enabled"
Tune it to your liking
How to configure
Unfortunately, there isn't yet any user friendly application to configure fast hotplug. The only way to configure it is to manually edit the module files with adb or a file editor.
I modified Pimp my Z1 to be compatible with fast hotplug. You can find the modified version at post 12
You can also find all the parameters at
Code:
/sys/module/fast_hotplug/parameters/
and edit them with adb command
Code:
adb shell "echo [COLOR="Navy"]<value>[/COLOR] > /sys/module/fast_hotplug/parameters/[COLOR="Navy"]<variable_name>[/COLOR]"
You can configure the following parameters :
fast_hotplug_enabled : 0 for disabled, 1 for enabled
boost_duration : Duration of boost in ms when screen is touched
threshold_to_boost : Instead of automatically pluging in cores on touch, fast hotplug checks that the load is above this threshold. This avoid cores coming online when reading file or website.
max_cpu_on : Maximum number of online cpu when screen is on
min_cpu_on : Minimum number of online cpu when screen is on
idle_threshold : Threshold under which fast_hotplug will remain almost idle and won't perform any check. This applies when only 1 core is online
plug_in_core_X_threshold : with X between 1 and 3. This is the threshold to plug in coreX.
plug_in_core_X_delay : This is the number of fast_hotplug cycles (see refresh_rate) to skip before pluging in coreX.
plug_out_core_X_threshold : Like plug_in_core_X_threshold but to plug out.
plug_out_core_X_delay
refresh_rate : Time in ms between fast hotplugs checks
screen_off_singlecore : 1 for activated, 0 for deactivated; Allows only one core to be online when screen is off.
If you are using linux, you can easily change the configuration with this small program : https://github.com/pec0ra/fast_hotplug_controller
You will probably want to create init.d script to make your configuration stay after reboot. If enough users want it, I can create an example of script.
Bugs / stability
Due to some conflicts with qcom mpdecision, it is possible that you encounter some bugs / reboots when both are enabled.
Configuration doesn't stick after reboots
Help needed
If you are a java developer (or want to learn ) and want to help in developing an app (or editing an already existing one) to control the hotplug, please send me a pm
Please tell me your impression, your custom configuration and / or your recommendation so that I can make it better in future releases.
Good luck.
Will try as soon as I can. :good:
Welcome! :good:
pec0ra said:
Help needed
If you are a java developer (or want to learn ) and want to help in developing an app (or editing an already existing one) to control the hotplug, please send me a pm
Click to expand...
Click to collapse
Regarding this, there is already an app out there that is FOSS, licensed under the GPLv2 license, looks sexy and should be easy to modify. It's called Pimp My Z1, I think it offers pretty much everything you want.
Other than that, cool that you're developing something new, I'll give it a shot!
Edit:
You may want to disable Sony's RIC it prevents you from writing to /system. This should help you.
I can't seen to get notification breath effect,i didn't do the mpdecision step,so could this make the diference?
Is this kernel compatible with franco kernel apps?
Sent from my D6503 using XDA Free mobile app
B1nny said:
Regarding this, there is already an app out there that is FOSS, licensed under the GPLv2 license, looks sexy and should be easy to modify. It's called Pimp My Z1, I think it offers pretty much everything you want.
Other than that, cool that you're developing something new, I'll give it a shot!
Edit:
You may want to disable Sony's RIC it prevents you from writing to /system. This should help you.
Click to expand...
Click to collapse
Thank you for the link
I'll see if I can do something with this app when I have more time (I've never made any android app).
Disabling ric is a good idea I'll do this for next version.
FrosteezBR said:
I can't seen to get notification breath effect,i didn't do the mpdecision step,so could this make the diference?
Click to expand...
Click to collapse
No, mpdecision won't affect it. Have you tried it on YadliKernel ? Did it work for all the notifications ? It seems like on abricot kernel they work for most of the notifications but not for sms.
vendetta718 said:
Is this kernel compatible with franco kernel apps?
Sent from my D6503 using XDA Free mobile app
Click to expand...
Click to collapse
It is probably compatible (I didn't tried it) but you will probably not be able to change most of the configurations since they are not implemented in my kernel. Some configuration from my kernel (like fast hotplug) are also not implemented in the app so you can't change them from there.
pec0ra said:
Thank you for the link
I'll see if I can do something with this app when I have more time (I've never made any android app).
Disabling ric is a good idea I'll do this for next version.
No, mpdecision won't affect it. Have you tried it on YadliKernel ? Did it work for all the notifications ? It seems like on abricot kernel they work for most of the notifications but not for sms.
It is probably compatible (I didn't tried it) but you will probably not be able to change most of the configurations since they are not implemented in my kernel. Some configuration from my kernel (like fast hotplug) are also not implemented in the app so you can't change them from there.
Click to expand...
Click to collapse
i try with facebook,whatsapp,messaging and gmail
with a led tester its the same blink as stock
would i send you a dsmeg or anything?
FrosteezBR said:
i try with facebook,whatsapp,messaging and gmail
with a led tester its the same blink as stock
would i send you a dsmeg or anything?
Click to expand...
Click to collapse
There's no printing in the mod I think so dmesg would be useless. I'll try again with WhatsApp. Have you tried it on other kernels? Was it working ?
Edit : ok, maybe there is an error... In this case dmesg could be useful. If you have time you can send it, yes.
And I reconfirm that it works for telegram
Hey, can someone show us the notification mod?
Pimp my Z1
As @B1nny suggested, I tried editing Pimp my Z1 to add fast hotplug support. Everything seems to work and I even added some tweaks for a better support for our Z2 ( some default values were not really compatible with our device ). There are probably bugs for configurations other than fast hotplug. If I have time, I will fix them but for now, please use another app to set your frequencies / governors / voltage or live with the bugs. If you have questions about the app, you could also take a look at the official thread to see if it is already there or maybe just to give the dev a thanks.
I'll probably make a pull request to @Androguide.fr with the changes but until then you can use my own build linked to this post. If you already have the app installed, you will have to uninstall it first because signature is different.
You can see the full source and the changes on my github : https://github.com/pec0ra/Pimp_my_Z1
Special thanks to @Androguide.fr for his great app and to @B1nny for his link
@pec0ra
Good news to have a new kernel dev for our beloved Z2 !
However, I've tried to flash your kernel, the flashing process seems to work correctly but actually I stay stuck to the last doomlord advanced stock kernel. Any suggestion ?
nreuge said:
@pec0ra
Good news to have a new kernel dev for our beloved Z2 !
However, I've tried to flash your kernel, the flashing process seems to work correctly but actually I stay stuck to the last doomlord advanced stock kernel. Any suggestion ?
Click to expand...
Click to collapse
You should try to extract the .elf from the zip and flash it via fastboot
Code:
fastboot flash boot <name>.elf
Anyone else experiencing the same issue ? Maybe I did something wrong in my zip.
pec0ra said:
You should try to extract the .elf from the zip and flash it via fastboot
Code:
fastboot flash boot <name>.elf
Anyone else experiencing the same issue ? Maybe I did something wrong in my zip.
Click to expand...
Click to collapse
I think you mean the .img file instead of .elf.
Other than that, the kernel works fine for me. I did manually flash it via fastboot. (because I prefer to flash it via fastboot)
I took a quick look at your updater-script and compared it to Doomlord's updater-script and this is what I found:
Your script tries to write the kernel to this partition:
Code:
/dev/block/platform/msm_sdcc.1/by-name/Kernel
While Doomlord's script writes the kernel to this partition:
Code:
/dev/block/platform/msm_sdcc.1/by-name/boot
Maybe that's the culprit?
B1nny said:
I took a quick look at your updater-script and compared it to Doomlord's updater-script and this is what I found:
Your script tries to write the kernel to this partition:
Code:
/dev/block/platform/msm_sdcc.1/by-name/Kernel
While Doomlord's script writes the kernel to this partition:
Code:
/dev/block/platform/msm_sdcc.1/by-name/boot
Maybe that's the culprit?
Click to expand...
Click to collapse
I was going to post the same thing
Waiting for confirmation...
B1nny said:
I think you mean the .img file instead of .elf.
Other than that, the kernel works fine for me. I did manually flash it via fastboot. (because I prefer to flash it via fastboot)
I took a quick look at your updater-script and compared it to Doomlord's updater-script and this is what I found:
Your script tries to write the kernel to this partition:
Code:
/dev/block/platform/msm_sdcc.1/by-name/Kernel
While Doomlord's script writes the kernel to this partition:
Code:
/dev/block/platform/msm_sdcc.1/by-name/boot
Maybe that's the culprit?
Click to expand...
Click to collapse
Thank you
Yes, I meant .img. It seems like it'll take some time to get used to this new device. The kernel destination you pointed out is probably the issue, yes. And that's probably the notification problem too. Seems like the kernel never got flashed so it's logical that notification mod doesn't work...
I'll change this tomorrow morning
Maybe someone can test it until then.
pec0ra said:
Thank you
Yes, I meant .img. It seems like it'll take some time to get used to this new device. The kernel destination you pointed out is probably the issue, yes. And that's probably the notification problem too. Seems like the kernel never got flashed so it's logical that notification mod doesn't work...
I'll change this tomorrow morning
Maybe someone can test it until then.
Click to expand...
Click to collapse
Yes, this was indeed the issue, I've just succesfully flashed your kernel changing "Kernel" to "boot" in the script.
Now testing
I can't rename mpdecision.. I tried with root explorer and root browser
sh4d1t0 said:
I can't rename mpdecision.. I tried with root explorer and root browser
Click to expand...
Click to collapse
That's due to Sony's RIC being enabled by default. If you look at my previous post where I mention it there is a command you can run in ADB to temporarily disable it, not ideal but it will help you rename the file.
I AM NOT TO BE HELD RESPONSIBLE IF U DAMAGE UR PHONE / SPILL UR COFFEE / MISS UR ALARMS / ANY OTHER CALAMITY/MISHAP
DO NOT CROSS FLASH! THIS IS MENT ONLY FOR Xperia Z5.
ITS HIGHLY RECOMMENDED TO TAKE A TA BACKUP BEFORE BOOTLOADER UNLOCK!
Click to expand...
Click to collapse
Features list:
Kernel is patched by tobias.waldvogel repack tool, include dm-verity/Sony RIC off, drmfix & busybox
CPUQuiet Hotplug: rqbalance (default), runnable
CPU Governor: interactive (*), ondemand, performance (default)
IO Scheduler: noop, deadline, row, cfq, vr, zen, fiops, tripndroid (default)
TCP Congestion: westwood (default), reno, cubic
(*)will be set after boot, depends on init.qcom.post_boot.sh, stock default is interactive
Build with GCC 4.9.4 toolchain
Stability, power and performance enhancement
Unified kernel, one image for both models
CPUQuiet Framework, base for RQBalance hotplug governor, tune for more efficient on kitakami
interactive governor enhancement (backport from 3.18 kernel)
Power efficient from NVIDIA
Cyan LED on fully charged
LED blinking
Extra IO schedulers
Overcharged current from 1500mA to 1800mA
frandom - 10 to 50 faster than u/random
Lower backlight at boot, save inefficient power a bit
Disable add_random for better performance on solid state drive
Enable High Performance Mode for WCD9330
Improve suspend and idle state
Download link:
Stock:
Mediafire | Androidfilehost
LineageOS:
Mediafire | Androidfilehost
How to install
Fastboot method:
Download zip file, extract and put img file together fastboot binary, open cmd and type
Code:
fastboot flash boot boot.img
Recovery method:
Put the zip file in your device's storage, reboot to recovery and flash.
TWRP thread: https://forum.xda-developers.com/crossdevice-dev/sony/twrp-3-1-0-z5-z5c-z5p-t3571050
Firmware version:
32.3.A.2.33 - latest stock kernel
Source: https://github.com/RyTekk/sony_kernel_kitakami_8994
Credits:
@RyTekk - a fantastic guy who made this kernel :laugh:
@zacharias.maladroit - for helping me a lot, really much, countless
@Tommy-Geenexus - same as Zach and commits for kernel improvement
@tobias.waldvogel - for amazing ramdisk repack tool
@flar2 for enhancement commits
@BlackSoulxxx for charging hack
@Myself5
@LineageKitakamiTeam
@codeaurora
@Linaro
@NVIDIA
@Sony
Let me know if I miss you
Click to expand...
Click to collapse
Hey is this for stock or cyanogenmod?
HaoZeke said:
Hey is this for stock or cyanogenmod?
Click to expand...
Click to collapse
Stock 32.2.A.0.253, sorry for forgetting that.
Seems pretty nice , no lags , maybe slightly smoother ?
Battery -1% during night ( 7hours)
I had a small problem with seeder app (entropy generator) keeps asking for Root and never can turn it on, I'd same problem with stock .253 kernel but Androplus V36 don't have this problem , using latest supersu 2.76
korom42 said:
Seems pretty nice , no lags , maybe slightly smoother ?
Battery -1% during night ( 7hours)
I had a small problem with seeder app (entropy generator) keeps asking for Root and never can turn it on, I'd same problem with stock .253 kernel but Androplus V36 don't have this problem , using latest supersu 2.76
Click to expand...
Click to collapse
I don't recommend you to use Seeder or apps/tweaks like this (e.g CrossBreeder), your entropy will be forced to keep a highest value as possible, yah maybe there's a little smoother in UI but some tasks may be done slower (I got worse time loading of Asphalt 8 due to this). Btw, frandom is good enough to you don't need those high entropy value
Does it work on MWA and X ROM?
RyTekk said:
NOTE 3: This kernel has been hard testing on E6683, it should work on other DSDS variant (E6633), single devices got sd card not detected and it's out of reach for me atm
Click to expand...
Click to collapse
As for SDCard detection: It depends on the appended DTB used. Appended DTB is specified in the defconfig. Basically the dtb itself is the only difference between Z5 DSDS and Z5 ROW. Appending both to the same kernel _should_ work in theory (This approach was tested on the AOSP 1.2.2 Kernel), however this doesnt work on the Z5 Devices, as both DSDS and ROW share the same msm-id in the defconfig, that way the Bootloader itself can't determine which is the correct dtb, and uses the one which is appended first. This means you need seperate Kernel images for ROW and DSDS.
Took me a while to figure out for OM5Z, though I'd share it so you can save up that research time
Can any developers make an AndroPlus V36 for E6683/33 (with full SD CARD support)?
Is recovery include in kernal
Myself5 said:
As for SDCard detection: It depends on the appended DTB used. Appended DTB is specified in the defconfig. Basically the dtb itself is the only difference between Z5 DSDS and Z5 ROW. Appending both to the same kernel _should_ work in theory (This approach was tested on the AOSP 1.2.2 Kernel), however this doesnt work on the Z5 Devices, as both DSDS and ROW share the same msm-id in the defconfig, that way the Bootloader itself can't determine which is the correct dtb, and uses the one which is appended first. This means you need seperate Kernel images for ROW and DSDS.
Took me a while to figure out for OM5Z, though I'd share it so you can save up that research time
Click to expand...
Click to collapse
I tried to build a kernel with diffconfig sumire but the sd card wasn't recognized, so I decided to not support devices that I don't own for now if there's no one who's interested in it. I will ask you later
rajdeep312 said:
Is recovery include in kernal
Click to expand...
Click to collapse
It does, with TWRP from tobias's tool.
ROM_For_Z5 said:
Does it work on MWA and X ROM?
Click to expand...
Click to collapse
As long as it's stock based.
Plz make patch for reducing heat or downclock big cores
rajdeep312 said:
Plz make patch for reducing heat or downclock big cores
Click to expand...
Click to collapse
Use kernel manager apps (e.g Kernel Adiutor) instead to adjust it, I kept it due to boosting the bootup time.
ROM_For_Z5 said:
Does it work on MWA and X ROM?
Click to expand...
Click to collapse
Yes
Sent from MWA Pro-Spect V1.0.0 On My Z5
@RyTekk
Xposed is not working for me , I tried diffrent version from v85 to v86.2 all didn't work
korom42 said:
@RyTekk
Xposed is not working for me , I tried diffrent version from v85 to v86.2 all didn't work
Click to expand...
Click to collapse
I have no idea, I don't use Xposed, could you take a try to use xposed systemless by tobias's repack tool?
Can you make a build for Z3+ ? by using zach kernel ideas.
Thanks
The kernel seems not working on custom ROM, like X ROM and MWA. Everytime I flash your kernel, it can boot normally but the SystemUi always get force closed. However, it seems work quite good on my friend's Z5 E6633 running stock firmware.
Thanks for your work.
Hello, thanks for the contribution. Have you got any plan for adding z5c support?
sirdoha said:
The kernel seems not working on custom ROM, like X ROM and MWA. Everytime I flash your kernel, it can boot normally but the SystemUi always get force closed. However, it seems work quite good on my friend's Z5 E6633 running stock firmware.
Thanks for your work.
Click to expand...
Click to collapse
I have tested on purely stock so I can't adapt for other custom ROMs, it's not my failure :laugh:
ninestarkoko said:
Hello, thanks for the contribution. Have you got any plan for adding z5c support?
Click to expand...
Click to collapse
I mainly focus to make the kernel to be stable before bring it to other devices, and I have to finish my assignments first.
New version - V2 is up
changelog said:
Add darkness governor
Fix kernel panic on boot when another governor which is different from interactive is set
A lot of memory enhancement and leakage fixes
Battery usage optimization
Bug fixes, security and performance enhancement
ASoC: gapless mode actived and fixed, more enhancement
Click to expand...
Click to collapse
Download:
Androidfilehost | Mediafire
Hey, it's been a while since my last (and failed) release, so let's see if you can help me on this one.
As you might have guessed, I have compiled our latest kernel, and this is my own version!
Right now, people have reported battery life improvements, I'd love to hear what you think!
Changelog
Code:
V2.0
* Enabled some CPU governors.
V2.1
* Updated KSM with uKSM.
* Added Thunderplug hotplugging driver.
* Added PMC and Smartmax CPU governors.
* Added Init.d support. (Make sure the file has the proper permissions)
V2.2
* Updated GPU drivers to be compatible with EMUI 4.1.
* Added Intelliplug hotplugging driver.
* Improved GPU performance.
Downloads
V2.2 (New): https://github.com/XePeleato/ALE-L21_ESAL/releases/tag/v2.2
Instructions
Download the .zip
Flash from recovery
Done!
You can get the source here: https://github.com/XePeleato/ALE-L21_ESAL/tree/v2?files=1 (v2 branch)
Guide
I am going to try to help you to decide what settings you should apply
First of all, I recommend to install Kernel Adiutor.
If you prefer battery life:
Start Kernel Adiutor:
Go to CPU in the drop-down menu and set as governors PMC or SmartmaxThen go to CPU hotplug and don't enable many cores, since more online cores means more power used. You can also set the Endurance level to Quad-core
If you prefer performance:
Start Kernel Adiutor:
Go to CPU in the drop-down menu and set as governors performance (will set the CPUs to their max frequency)/ondemand/interactiveThen go to CPU hotplug and make sure to lower the load threshold, having a low load threshold will make your phone use more cores (if you experience lag while playing, maybe it's set too low, so use a wise value, do your testing.)
To conclude, I just mentioned where the settings are and some example values, if you love to play games you won't use the same settings as someone that just likes to read emails and use Google Chrome, find the settings you are comfortable with, and don't forget to set Apply on boot!
Now some screenshots of AnTuTu and 3DMark with Performance governor and Esalv2.1:
http://imgur.com/a/iRDpD
As you can see, even 3DMark detects that my score is higher than the average, try to beat that with stock kernel!
I hope you enjoy it, and please, I'd love to hear your suggestions!
just a quick question if you dont mind : any way to flash it via twrp ? so in case that something goes wrong i can easily restore the old one with a backup .
Firicel69 said:
just a quick question if you dont mind : any way to flash it via twrp ? so in case that something goes wrong i can easily restore the old one with a backup .
Click to expand...
Click to collapse
I'll upload a flashable zip, but it shouldn't be a problem, if you take a backup of your Boot partition and restore it, it will overwrite the kernel.
thanks! i will try it and see how it goes.
Sim gets detected but stucks at the point of unlocking it.
waiting for comments on the kernel
VenityZ said:
Sim gets detected but stucks at the point of unlocking it.
Click to expand...
Click to collapse
I've noticed it too, it finally unlocks in my end, can you please check if it gets unlocked?
XePeleato
Tnx bro)
Great job.
Finally , I have the full root, before either he could not edit the folder systems
XePeleato said:
I've noticed it too, it finally unlocks in my end, can you please check if it gets unlocked?
Click to expand...
Click to collapse
I kept the screen active and it worked after 40s
Basic stuff works , so god for daily usage I guess. Is rep on github up to date of this kernel because I compiled it myself and nothing worked. I either think my toolchain is the problem.
---------- Post added at 03:18 PM ---------- Previous post was at 03:00 PM ----------
Also the governors do work , I don't know if all do but theres a noticeable performance change when chaging it. Over/Undercloking still doesnt work , but its not the kernels problem. The power genie of emui controls it.
VenityZ said:
I kept the screen active and it worked after 40s
Basic stuff works , so god for daily usage I guess. Is rep on github up to date of this kernel because I compiled it myself and nothing worked. I either think my toolchain is the problem.
Click to expand...
Click to collapse
Yes it is, the v2 branch, you'll need to edit build.sh to point it to your toolchain.
XePeleato said:
Yes it is, the v2 branch, you'll need to edit build.sh to point it to your toolchain.
Click to expand...
Click to collapse
Thanks I compiled the "v1" branche....
Wi-Fi, Bluetooth, NFC works.
I will test mobile data, GPS tomorrow.
"Bug": SIM unlock takes a lot more time than stock kernel.
Great work! May I ask what features are you going to add into? OTG maybe?
Anyway: Great! Keep it up!
EDIT:
How can I change governor? I'm looking for extra governos (PMC, Smartmax) in Kernel Auditor but I can't find them
LG*L70 said:
Wi-Fi, Bluetooth, NFC works.
I will test mobile data, GPS tomorrow.
"Bug": SIM unlock takes a lot more time than stock kernel.
Great work! May I ask what features are you going to add into? OTG maybe?
Anyway: Great! Keep it up!
EDIT:
How can I change governor? I'm looking for extra governos (PMC, Smartmax) in Kernel Auditor but I can't find them
Click to expand...
Click to collapse
Hi, can you find ondemand, interactive, powersave...? OTG is enabled, the problem is at the rom.
XePeleato said:
Hi, can you find ondemand, interactive, powersave...? OTG is enabled, the problem is at the rom.
Click to expand...
Click to collapse
Hi,
Yes, I can.
Thank you for the heads up about OTG, I didn't know that
XePeleato said:
I'll upload a flashable zip, but it shouldn't be a problem, if you take a backup of your Boot partition and restore it, it will overwrite the kernel.
Click to expand...
Click to collapse
I'd also appreciate flashable zip please
TheATHEiST said:
I'd also appreciate flashable zip please
Click to expand...
Click to collapse
Done! Check the OP, I added the link there.
XePeleato said:
Done! Check the OP, I added the link there.
Click to expand...
Click to collapse
Thanks :good:
Init.d support would be really nice xP
VenityZ said:
Init.d support would be really nice xP
Click to expand...
Click to collapse
It will be added on the next release!
Working fine for me. The Unlocking the SIM takes about 40 seconds. Governor's work. Thanks man, keep up the good work.
I AM NOT TO BE HELD RESPONSIBLE IF U DAMAGE UR PHONE / SPILL UR COFFEE / MISS UR ALARMS / ANY OTHER CALAMITY/MISHAP
DO NOT CROSS FLASH! THIS IS MENT ONLY FOR Xperia XZ.
ITS HIGHLY RECOMMENDED TO TAKE A TA BACKUP BEFORE BOOTLOADER UNLOCK!
Click to expand...
Click to collapse
It's highly recommended to use together with my tweak in this thread
Features list:
Kernel is patched by tobias.waldvogel repack tool, include dm-verity/Sony RIC off, drmfix & busybox
Build with GCC 4.9.4 toolchain
CPUQuiet Framework, base for RQBalance hotplug governor, tune for more efficient on tone
Cyan LED on fully charged
frandom - 10 to 50 faster than u/random
Disable add_random for better performance on solid state drive
Input boost (msm_performance) is optional, disabled by default
Download link:
Mediafire | Androidfilehost
How to install
Fastboot method:
Download zip file, extract and put img file together fastboot binary, open cmd and type
Code:
fastboot flash boot boot.img
Recovery method:
Put the zip file in your device's storage, reboot to recovery and flash.
TWRP thread: https://forum.xda-developers.com/xperia-xz/development/mod-sony-stock-patcher-xperia-xz-t3576493
Firmware version:
41.2.A.7.53 - latest stock kernel
Source: https://github.com/RyTekk/android_kernel_sony_msm8996
Credits:
@RyTekk - a fantastic guy who made this kernel :laugh:
@tobias.waldvogel - for amazing ramdisk repack tool
@kholk
@flar2
@Myself5
@AdrianDC
@sonyxperiadev
Let me know if I miss you
Click to expand...
Click to collapse
Works pretty well @RyTekk
Screenshot of kernel booted
First impressions are it's really smooth and seems to have great battery life compared to the last kernel I was using so I think this is a WIN. I been pretty busy lately so I haven't been doing much to my phone but I'm glad I can hop on XDA for a few mins and flash something to make my phone perform better without me having to use scripts to improve anything. Good job
Great, thanks for sharing.
Compared to androplus kernel, what are the pro/cons?
Not booting my phone with this kernel. I am using eXzistenZ v8 custom rom. Androplus Kernel v29 is OK.
Mazellat said:
Not booting my phone with this kernel. ı AM USİNG eXzistenZ v8. Adroplus Kernel is OK.
Click to expand...
Click to collapse
i can also confirm not working on existenz rom v8.0 but it will work on stock one probably.
I can confirm it working on stock rooted ROM
There might be a slight lag but a fix by turning stamina mode on then off will fix it
Standby time will be reported in a few days
eddieleon7pc said:
I can confirm it working on stock rooted ROM
There might be a slight lag but a fix by turning stamina mode on then off will fix it
Standby time will be reported in a few days
Click to expand...
Click to collapse
It seems like whatever settings we had before we flash kernel is what it uses as config. So in my findings it keeps the scheduler values and Governor values the same. So I had to edit these values as it did cause a issue. I was using duality kernel prior.
Smacksmack206 said:
It seems like whatever settings we had before we flash kernel is what it uses as config. So in my findings it keeps the scheduler values and Governor values the same. So I had to edit these values as it did cause a issue. I was using duality kernel prior.
Click to expand...
Click to collapse
I agree, I suffered noticable lags when I enabled Deez nuts 8 SE and with the kernel at the same time
Holy smokes, works very well on my XZ. I also used your kernel, which is also very fast, thanks!!
Did you will make kernel for Oreo ?
piotr7543 said:
Did you will make kernel for Oreo ?
Click to expand...
Click to collapse
I'm too lazy to upload it and I removed some core features e.g. CPUQuiet, frandom,... because they doesn't work well on stock.
Hello!
I want to introduce my first custom kernel for the Essential PH-1. This is based of several sources, I cherry-picked commits to make improvements to the stock LOS kernel. I'm not a developer, but i really like to port stuff over .
Kernel is suitable for AOSP based ROMS such as RR/AICP/CARBON/LOS etc... If you want to request for specific features, let me know and i'll do my best to bring them over.
Special Features:
Updated to lastest LOS Stock Kernel
Added a few governors like: cultivation / impulse
added a few IO Schedulers: Maple
Kcal Color Control driver
USB Fast Charge - pending will be added in R2
SafetyNet Patch (Bypass bootloader unlocked check)
Dynamic Fsync control
a little Overclock - will be added in R2
Motorola Quickwake - Will be added in R2
and manny other small fixes (you can check the commits in the sources)
Download
Disclaimer: I am not responsible if you use this and brick your device or if your device blows up, implodes, flames start shooting from it or it kills your neighbor's dog. Flash at your own risk. I am not responsible.... It was the other guy... I swear....
Latest Release: SMF-Kernel R2
Known issues:
05.17.2018 - CPU Freq don't always stick, known issue caused by other drivers. Phone will eventually set your frequencies, dont' panic.
Installation:
Obviouly you have a Unlocked Bootloader since you're running a custom rom (make sure to never lock your bootloader in this state)
Boot into Bootloader (adb reboot Bootloader)
If you want to root flash the "Magisk" version of the kernel, it's been prerooted with the latest Magisk Beta available.
Code:
fastboot flash boot SMF-Kernel-R1-Magisk.img
reboot
If you want to manually root, first flash twrp, then from twrp flash the 'non magisk' version and after that flash the magisk zip.
Special Thanks to:
jcadduono
franciscofranco
bedalus
lord_boeffla
flar2
sultanxda
...and many others from whom i cherry pick commits... Sorry if I forgot to mention anyone!
XDA:DevDB Information
SMF-KERNEL, Kernel for the Essential Phone
Contributors
jimbo77
Source Code: https://github.com/Jimbo77/android_kernel_essential_msm8998
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: R1
Stable Release Date: 2018-05-17
Created 2018-05-17
Last Updated 2018-05-17
Changelog 05.23.2018
Enabled Motorola QuickWake Driver - This will enable system to do checks or syncs without fully resuming the device, main objective is battery life.
Enabled Dynamic Sync Control by default
OverClock
USB Fast Charge to up 900ma (Original is 500ma)
Disabled Gentle Fair Sleepers
Enabled Boefla Wakelocks - Check the ammount of wakelocks you can block now!
Enabled Wireguard
Enabled several TCP Options - "Westwood" is enabled by default
Min/Max Brightness options is now configurable as well, to avoid the screen go too dim or to bright.
Somehow camera has been fixed! haha
Changelogs 05.17.218
Updated to lastest LOS Stock Kernel
Added a few governors like: cultivation / impulse
added a few IO Schedulers: Maple
Kcal Color Control driver
SafetyNet Patch (Bypass bootloader unlocked check)
Dynamic Fsync control
and manny other small fixes (you can check the commits in the sources)
Reserved
Looks awesome! I'll give it a try soon!
(For anyone wondering about overclocking the CPU, he committed some changes to the github that would apply this and it should appear in the next revision of the kernel.)
Just installed and so far it's buttery smooth.
WARpig5 said:
Just installed and so far it's buttery smooth.
Click to expand...
Click to collapse
I'm glad is running fine for you!
Good stuff, thanks for this! Could you tell me a little more about cultivation? I can't seem to find much information online about it
Also a request, if possible vibration level control would be super appreciated
pantherking said:
Good stuff, thanks for this! Could you tell me a little more about cultivation? I can't seem to find much information online about it
Also a request, if possible vibration level control would be super appreciated
Click to expand...
Click to collapse
I found Cultivation to be really great in terms of perfornance. It's a little bit agressive with the CPU so you get buttery smooth experience with Screen On but it may cost a few % on battery at the end of the day. The good thing is that it has specific tunables and you can set a low cpu freq for when the screen is off.
Specific details from its developer:
-based off of caf 4.4 commits
-uses per-pcu timers
-use state_notifier for screen off timer
option to set different timer rate when screen off
-improrted fastlane with threshold from blu_active
In regards of vibration control. It should be there. I'm using EX Kernel Manager and i can see the vibration option under "Miscellaneous"
jimbo77 said:
I'm glad is running fine for you!
Click to expand...
Click to collapse
Thanks for this. It's running amazing so far. Performance has been great and I'll see how battery life is, but so far it's great.
I can't wait for further updates. I really wanna see what Moto quickwake is haha
jimbo77 said:
In regards of vibration control. It should be there. I'm using EX Kernel Manager and i can see the vibration option under "Miscellaneous"
Click to expand...
Click to collapse
Thanks for the info on cultivation, I don't mind trading some battery life for butter so I'm using it now
For the vibration control, it doesn't actually work/stick. I've tried kernel auditor and EX Kernel Manager. To be fair, so far it has only worked on LOS and I think invisiblek may have rewritten the stock controller or something so no worries if it isn't a high priority haha
pantherking said:
Thanks for the info on cultivation, I don't mind trading some battery life for butter so I'm using it now
For the vibration control, it doesn't actually work/stick. I've tried kernel auditor and EX Kernel Manager. To be fair, so far it has only worked on LOS and I think invisiblek may have rewritten the stock controller or something so no worries if it isn't a high priority haha
Click to expand...
Click to collapse
I'll take a look at the latest commits but I've used the latest los kernel base so I'm not sure why is not sticking maybe it needs rom support too (not sure honestly) hahaha
I've been testing R2 since yesterday. Will update after y he weekend!
Just out of curiosity, was anything involving the camera done to this kernel? I am now able to record videos without the bug, on any of the affected ROMs, with this kernel.
stompysan said:
Just out of curiosity, was anything involving the camera done to this kernel? I am now able to record videos without the bug, on any of the affected ROMs, with this kernel.
Click to expand...
Click to collapse
Nothing related to camera. Are you sure it works with no issues?
What roms have you tested?
jimbo77 said:
Nothing related to camera. Are you sure it works with no issues?
What roms have you tested?
Click to expand...
Click to collapse
So far, AICP and LOS, both with Essential camera app and GCAM port, HD and 4K, 30 and 60 fps where applicable. Issues presented before flashing very consistently, and so far I have been unable to replicate after flashing this kernel.
stompysan said:
So far, AICP and LOS, both with Essential camera app and GCAM port, HD and 4K, 30 and 60 fps where applicable. Issues presented before flashing very consistently, and so far I have been unable to replicate after flashing this kernel.
Click to expand...
Click to collapse
Sp you were right. Honestly don't know what happened but I installed the latest RR (clean install) put R2 on top of it and bam recording works as you mentioned lol..
I guess it was a lucky strike!
after flashing the kernel with magisk, stuck on "AICP is starting"
is this normal?
update: the phone works but no magisk (pre root) after flashing the kernel.....
sinkoo1979 said:
after flashing the kernel with magisk, stuck on "AICP is starting"
is this normal?
update: the phone works but no magisk (pre root) after flashing the kernel.....
Click to expand...
Click to collapse
Hey!
Have you booted once and setup everything before flashing the prerooted image?
I've had that error but having all set and then flashing the image will get me rooted. Try to see if you can find magisk manager in the apps list from the settings if you do, reboot and there will be magisk
Double post... Sorry
jimbo77 said:
Hey!
Have you booted once and setup everything before flashing the prerooted image?
I've had that error but having all set and then flashing the image will get me rooted. Try to see if you can find magisk manager in the apps list from the settings if you do, reboot and there will be magisk
Click to expand...
Click to collapse
Thank you for the reply.
the phone was running AICP and I wanted root so I flash the kernel. I can't find the magisk manager or in the settings about magisk. I guess you have to clean install from the beginning to get the root. Thank you for the Kernel
sinkoo1979 said:
Thank you for the reply.
the phone was running AICP and I wanted root so I flash the kernel. I can't find the magisk manager or in the settings about magisk. I guess you have to clean install from the beginning to get the root. Thank you for the Kernel
Click to expand...
Click to collapse
Shouldn't. If you flashed the prerooted magisk image try downloading the magisk manager app manually from xda and see if magisk works