[Kernel][GPL][K-N][Thea][UBER TC]ZER0 Byte Kernel[Nightlys][CM/AOSP] - Moto G 2014 LTE Android Development

READ ALL BEFORE ANYTHING!
ATTENTION
Code:
/*
I'm not (yet) a developer , I'm taking effort to put more choices of kernel for our great community.
This kernel is tweaked for best balance possible, if you want a feature quote me and i will see what i can do,
I will build this kernel when possible on my free time and because of it is a nightly and I will use this thread as a worklog too.
Thank you for using this kernel.
*/
Disclaimer
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Adapt, improve and evolve!​
Info:
Guys I created this kernel to Moto G 2013 (Falcon/Peregrine) and Moto G 2014 (Titan/Thea) in other words MSM8226 Motorola SoC baseds to learn, adapt some "unstable and unsafe" things as well to give a new life to my device, the plan is to support all Android versions avaliable for our device, I plan to do a better kernel with time and help of the comunity. This kernel is a nightly I will do it when I have a freetime or LineageOS update their sources or I add new features, it aims to be a rich feature kernel and a "perfection balance" between battery life and performance, this can be a UNSTABLE kernel, my routine will be build,upload and test, so stay tuned! I am open to suggestions. This is a kernel that don't work out-of-the-box the objetive of this kernel is give power to the user.
This kernel DO NOT WORK WITH STOCK MOTOROLA/GOOGLE PLAY EDITION ROM or IDCRISIS or AOSPARADOX.
On post 1:
#1 - Features and installation instructions
#2 - Downloads and kernel Source
#3 - Buglist and to do's
On post 2:
#1 - Changelog
​
Features (By now and latest one):
Based on 3.4.113 LTS Linux kernel and latest LOS/AOSP/CM/Motorola sources
Kexec hardboot patch (MultiROM support)
Governors: Interactive,Ondemand,Performance,Userspace,Conservative,Powersave
Hotplugs: AutoSMP and Alucard Hotplug
Overclocks and Underclocks (Attention this can be dangerous to your device! you have been warned!):
Overclocked CPU (up to 1.6Ghz),Overclocked GPU (up to 600Mhz) Overclocked RAM and Overclocked Slimbus for better audio
Intellithermal v2 to protect our device from heating
Sound: High performance Headset,Low latency playback Support,24 bits Playback Support,Enabled additional Moto G Exclusive Audio Channels TPA-a6165a2
Screen: DT2W and S2W/S2S, KCAL
GPU:Simple GPU Algorithm and AdrenoIdler
Misc: Init.d support, Fsync on/off, ARCH_Power, Gentle Fair Sleepers, Toggle for some wakelocks, Stereo Call Recording Support, Reclaim RAM from loggers, Powersuspend, State Notifier .
For full features list check my github.
Compiled with Arch Linux up-to-date and UBER Toolchain 4.9 and optimize flags[/COLOR]
Bootlogos
PREVIEWS ONLY CHECK DOWNLOADS SECTION FOR LINKS
Created by me and the others two by @Mattwmaster58:
Silver
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Blue
Red
Downloads
(Folder on AFH) (Please DO NOT MIRROR, if one is down just post in the thread or pm me and i will repair!):
Cyanogenmod/AOSP for Falcon:
CM14.1 (UNIFIED WITH CM13 BY NOW) - CM14.1
CM12.1 - CM12.1
CM11 - NOT YET
Cyanogenmod/AOSP for Peregrine:
CM14.1 (UNIFIED WITH CM13 BY NOW) - CM14.1
CM12.1 - CM12.1
CM11 - NOT YET
Cyanogenmod/AOSP for Titan/Thean (Same defconfig):
CM14.1 (UNIFIED WITH CM13 BY NOW) - CM14.1
CM12.1 - CM12.1
CM11 - NOT YET
NOTE:ALWAYS CHECK LAST PAGES TO SEE WHAT IS GOING ON!!!
LSpeed Profiles (OLD! LSpeed envolved too fast!) - Balance
Bootlogos: ZER0 Byte Bootlogo
Old releases of ZER0 and ZER0 Byte (Reborn) Kernel : AFH
Mirror: Github mirror and how to download
​
How to install
If you're on other kernel please at least DIRTY FLASH you ROM, thanks.
The kernel:
By recovery:
Using TWRP (Please use the latest one)
1. Put the zip at /sdcard > Reboot to recovery > Install > Chose the kernel zip > Confirm to flash > (optional) Wipe caches > Reboot.
or
By app:
2. Flash it using Flashify or similar app from Playstore.
The kernel scripts backup your current boot.img so if you want to restore just use Flashify or TWRP.
The Bootlogo:
Using TWRP (Please use the latest one)
1. Reboot to recovery > Install > Chose the bootlogo zip > Confirm to flash > Reboot and enjoy.
2. Flash it using Flashify or similar app from Playstore.
3. Extract the zip and on mfastboot (or just fastboot) enter this command: fastboot flash logo logo.bin
Recommendations/Tweaking
Gov Tuner a mod to tune govs based on profiles for better battery life, better performance, or a balance., I have added a lot of sound patchs but A.R.I.S.E. will blow your mind! so if you want a better sound on your Moto G I suggest you A.R.I.S.E the best one in my opinion or just Viper+Dolby. And the best of the best tweaks app LSpeed just download and select a profile from main screen and fell it! or tune it by yourself!
To tweak use Kernel Adiutor from Playstore (or XDA Link), the Kernel Adiutor-Mod (fork with more experimental features) at XDA or Synapse You will need this zip and download Synapse app from Playstore.
Info about tweaking kernel The best guide to it!
Better RAM management for FALCON/PEREGRINE/TITAN/THEA thanks to @Pupet_Master
-Download "Kernel Auditor" from the "Play Store" and open it
-Once inside, Swipe from left to right to show the side menu.
-Tap on "Low Memory Killer"
-Change to these custom settings:
Code:
Foreground Applications: 29mb
Visible applications: 61mb
Secondary Server: 157mb
Hidden Applications 227mb
Content Providers: 87mb
Empty Applications 191mb
-Swipe from left to right again and tap at the option "Virtual Memory"
-Change those settings from there:
Code:
dirty_ratio: 20
dirty_background_ratio: 5
dirty_expire_centisecs: 100
dirty_writeback_centisecs: 300
min_free_kbytes: 4096
oom_kill_allocating_task: 1
overcommit_ratio: 100
swappiness: 100
vsf_cache_pressure: 53
laptop_mode: 0
extra_free_kbytes: 24576
Z-RAM Disksize: 470mb
-Swipe from left to right again and tap at the "Profile" section
-Click at the "+" button and save the current settings on a new profile
-Holdon the new profile and choose the option "apply on boot"[/QUOTE]
This kernel does not ships with a default config, so here it is how to config (an example) a profile for battery/balance/performance:
Battery
Code:
On CPU
CPU Gov - Interactive
Max freq. - 1190Mhz or 1094Mhz
Multicore power save - Aggressive
Alucard Hotplug - ON
On GPU
GPU max freq. - 450Mhz or 320Mhz (if dont play use 320Mhz)
GPU Gov - simple_ondemand or msm_adreno_tz with tweaked adreno idler
On I/O Scheduler
Scheduler - ROW or SIO
-
Balance
Code:
On CPU
CPU Gov - Interactive
Max freq. - 1190Mhz
Multicore power save - Enabled
AutoSMP - ON
On GPU
GPU max freq. - 450Mhz
GPU Gov - msm-adreno-tz
On I/O Scheduler
Scheduler - ROW or ZEN
-
Performance
Code:
On CPU
CPU Gov - Interactive
Max freq. - 1593Mhz
Multicore power save - Disabled
AutoSMP - ON
On GPU
GPU max freq. - 600Mhz
GPU Gov - msm-adreno-tz
On I/O Scheduler
Scheduler - ZEN
Note about some features
Display types WORKING with DT2W/S2S/S2W:
mdss_dsi_mot_inx_720p_video_v0 (TITAN/THEA)
mdss_dsi_mot_cmi_720p_video_v2 (FALCON/PEREGRINE)
Display types NOT WORKING with DT2W/S2S/S2W:
mdss_dsi_mot_jdi_720p_video_v1 (TITAN/THEA)
mdss_dsi_mot_jdi_720p_video_v0 (TITAN/THEA)
mdss_dsi_mot_lgd_720p_video_v0 (FALCON/PEREGRINE)
If you don't have a working DT2W/S2S/S2W or don't like it you can disable it and/or use AcDisplay app or Anbient Display of your ROM instead.
To check which display type you have by going into terminal and type:
su
cat /proc/cmdline
Bugs
None by now, if you encounter one please make a post in this thread with steps to reproduce and if possible a LOGCAT and DMESG. A simple how to help me debug.
To do
Undervolt and Userspace Voltage Controller
OC of 1.8Ghz
More Hotplugs
More Govs
More I/O's (SIOplus,FIFO)
Added all features to all variants
Vibrator Intensity Control
Ram Underclock
Sched & Mutex Tweaks
Stock and GPE variants
WQ_POWER_EFFICIENT
LZO Compression image (Fast boot)
DOLBY_DAP dependency fix
Frandom
Filesystems support:
NTFS Support / EXT 2/3/4 support / F2FS (Most roms only support it at /data)
Optimized ARM RWSEM algorithm
Silence some logs
NEON in kernel mode
Misc Crypt tweaks
LMK tweaks and adaptive
More Security Patchs
Yankactive (Cause reboot at the moment),Yankdemand,Smartmax,Lionhert,Impulse,DanceDance,Bioshock
I/O's: ROW,NOOP,Deadline,CFQ,FIOPS,BFQ,SIO,VR,ZEN
All avaliable TCPs congestions on Android
How to git and build
Setting up and building
Basics of GIT
- How to build my kernel:
Code:
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=/path/to/toolchain/bin/arm-eabi-
make mrproper (cleans config files)
make clean (cleans already builded files)
make falcon_defconfig (or you device_defconfig)
make menuconfig (if you want to tweak the config)
make (I use this too -o2 -j4 CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_NO_ERROR_ON_MISMATCH=y)
How to cherry pick commits
Basically to cherry pick a commit you have to have it source and branch, this is a simple how to do it
First of all you need to set your upstream since it is a fork of CM/LOS or STOCK source:
Code:
git remote add upstream linkingithub.git
For example
Code:
git remote add upstream https://github.com/CyanogenMod/android_kernel_motorola_msm8226.git
so if you want to cherry pick a commit from me
Code:
git remote add bryanbytez mysourcelink.git
and after that you need to have my source locally but stay calm this wont mess you source
Code:
git fetch -all
To merge upstream changes (From CM/LOS or Motorola)
Code:
git merge upstream/cm-13.0
This will merge upstream cm branch cm-13.0 in your source code.
Misc help:
http://forum.xda-developers.com/showthread.php?t=2319018 (about boot.img, ramdisk and others)
https://stackoverflow.com/questions/2816715/branch-from-a-previous-commit-using-git (Unlike me you can just revert or create another branch based on the commit and not delete the whole source code )
https://stackoverflow.com/questions/4410091/github-import-upstream-branch-into-fork (Import a upstream branch on your fork)
And to revert a git: git revert sha1, example git revert eab5c8fef098548f0f00085196bbf40f41bf8ba1
​
Source/Credits
If you want to post this on your site or other forum it's okay just post a link to this thread too and the correct credits and if you can, pm me with link so i can see it too, thanks.
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The GPL permits use, share, study and modify.
But this does not mean you should not give the deserved credit to the previous author.
So if you use my source code under GPL you must share with GPL too and quote me in the credits.
CM/LOS/AOSP Based Source
Stock/GPE Based Source
Thanks to:
GOD
The Real Dev's:
Motorola/Lenovo
LineageOS/CyanogenMod/AOSP/CAF Teams
A special thank you to @Kamin4ri to be answering questions from a noob
@hurtsky @pinkflozd @zakee94 @TeamMex (not a team ) @RenderBroken @alin.p @Flashhhh @Shivam Kuchhal @RolanDroid @attack11 @DC07 @frap129 @-decipher- @bedalus @MetalPhoenix45 @srisurya95 @para94 @chijure @Aayushya @neonkat and @faux123 for inspiration and commits (i guess that everyone that i pick a single commit is here... since i don't know yet to pick commits (picking commits automatically add the credits) a big thanks to all !)
@kwoktopus, for the tutorial how to build
And you the user!
If I forget someone please contact me and I will add here! [/FONT]​
XDA:DevDB Information
[Kernel][GPL][K-N][Thea][UBER TC]ZER0 Byte Kernel[Nightlys][CM/AOSP], Kernel for the Moto G 2014 LTE
Contributors
BryanByteZ
Source Code: https://github.com/BryanByteZero/android_kernel_motorola_msm8226
Kernel Special Features: OC/UC/DT2W/S2W/S2S/Sound Patchs and a lot more, check it!
Version Information
Status: Nightly
Current Stable Version: R3
Stable Release Date: 2017-02-22
Current Beta Version: R4
Beta Release Date: 2017-04-29
Created 2017-04-30
Last Updated 2017-05-01

Changelogs for CM/LOS/AOSP K/L/M/N
Changelogs for CM/AOSP K/L/M/N:
For Falcon and Peregrine
19/11/2016
No more MPDecision and CM PowerHAL
DT2W and S2W/S2S
Optimization Flags
Overclock and Underclock
Alucard Hotplug
AutoSMP Hotplug
Faux Sound 3.5
KCAL v2
High performance and low latency audio headset
KEXEC Hardboot patch
04/02/2017
Up-to-date with LOS source and Linux (now it's 3.4.113 the LTS version)
Intelliplug, AutoSMP and Alucard Hotplugs
Intellithermal
MSM-Limiter (you will need KernelAdiutor-MOD to use this feature)
Toggles for some wakelocks
ARCH_power
Gentle fair sleepers
Stereo call recording support
Reclaim RAM from loggers
Dynamic management of dirty page writebacks, expire and cache pressure
Some GPU patchs
SIO,VR,ZEN and Tripndroid I/O's
Powersuspend, LCD notify and state notifier
Dynamic FSYNC
CPU, GPU and RAM overclock
Simple GPU algorithm and AdrenoIdler
Enhanced audio with Faux Sound and low latency drivers and high performance mode
KCAL
KEXEC Hardboot patch
DT2W/S2S/S2W
Make optimizations
Powered by UBER STOCK Toolchain 4
22/04/2017
LATEST SOURCES
CPU OC/UC
GPU OC/UC
CPU boost
KCAL
faux Sound
High perf headset mode
OC RAM and slimbus
Intellithermal
Simple GPU Algorithm and AdrenoIdler
State notifier and Powersuspend
Alucard and AutoSMP hotplugs
Stereo call recording
Custom I/O's
Stock GOVS
KEXEC Hardboot patch
wakelock blocks
Fsync on/off
Power efficient workqueue
29/4/2017
DT2W/S2S/S2W
Bugs:
None by now,if you encounter one please make a post in this thread with steps to reproduce and if possible a LOGCAT and DMESG.

Reserved
Reserved

Interesting, Ill check it out later. Btw, is there any difference between Thea and Titan kernels at all?

Arcline said:
Interesting, Ill check it out later. Btw, is there any difference between Thea and Titan kernels at all?
Click to expand...
Click to collapse
Well since Thea doesnt have a defconfig I used the same of Titan, should work fine. They all are MSM8226 SoC's.

Better RAM management for FALCON/PEREGRINE/TITAN/THEA big thanks to @Pupet_Master
-Download "Kernel Auditor" from the "Play Store" and open it
-Once inside, Swipe from left to right to show the side menu.
-Tap on "Low Memory Killer"
-Change to these custom settings:
Code:
Foreground Applications: 29mb
Visible applications: 61mb
Secondary Server: 157mb
Hidden Applications 227mb
Content Providers: 87mb
Empty Applications 191mb
-Swipe from left to right again and tap at the option "Virtual Memory"
-Change those settings from there:
Code:
dirty_ratio: 20
dirty_background_ratio: 5
dirty_expire_centisecs: 100
dirty_writeback_centisecs: 300
min_free_kbytes: 4096
oom_kill_allocating_task: 1
overcommit_ratio: 100
swappiness: 100
vsf_cache_pressure: 53
laptop_mode: 0
extra_free_kbytes: 24576
Z-RAM Disksize: 470mb
-Swipe from left to right again and tap at the "Profile" section
-Click at the "+" button and save the current settings on a new profile
-Holdon the new profile and choose the option "apply on boot"[/QUOTE]

Just flashed the kernel on thea running the latest nightly of LOS. How to enable DT2W ? Tried with Synapse, but everytime I enable the option and lock the screen, the device just reboots. The display type of my XT1072 is mdss_dsi_mot_inx_720p_video_v0.

danielbraileanu said:
Just flashed the kernel on thea running the latest nightly of LOS. How to enable DT2W ? Tried with Synapse, but everytime I enable the option and lock the screen, the device just reboots. The display type of my XT1072 is mdss_dsi_mot_inx_720p_video_v0.
Click to expand...
Click to collapse
Yep I aware of this, is happening on Titan too when I have time I will look. Can you grab me some logs?
Thanks!
Sent from my Xiaomi Redmi 4A using XDA Labs

Can't make Synapse to work again, will provide logs if I figure out Synapse...also Google keyboard seems to have a problem launching after flashing the kernel
L.E: Got it working... here's the logcat. zipped it because txt exceeded max allowed size

danielbraileanu said:
Can't make Synapse to work again, will provide logs if I figure out Synapse...also Google keyboard seems to have a problem launching after flashing the kernel
L.E: Got it working... here's the logcat. zipped it because txt exceeded max allowed size
Click to expand...
Click to collapse
Thanks I will analyze on free time. You can use unified synapse the link is on OP.
Sent from my Xiaomi Redmi 4A using XDA Labs

Hi, i don't speak english, sorry for the language/grammar mistakes
I flash this kernel (R4 for cm12.1) on the last build of official Cyanogenmod 12.1 in thea model (cm12-20151129-nightly) and the camera doesn't work. I don't know how make a logcat, but if reflashing with stock kernel of this cm12.1 build, the camera works again.
any solution?
Thanks for this great kernel Bryan

Thea0152 said:
Hi, i don't speak english, sorry for the language/grammar mistakes
I flash this kernel (R4 for cm12.1) on the last build of official Cyanogenmod 12.1 in thea model (cm12-20151129-nightly) and the camera doesn't work. I don't know how make a logcat, but if reflashing with stock kernel of this cm12.1 build, the camera works again.
any solution?
Thanks for this great kernel Bryan
Click to expand...
Click to collapse
Use this tutorial to make a logcat:
https://forum.xda-developers.com/showthread.php?t=1726238

this logcat is of AOSP 5.1.1 of LuK1337
https://basketbuild.com/filedl/devs.../F-AOSP/thea/AOSP-5.1.1-20150916-thea-luk.zip
The kernel works fine, but have the same problem of cm12.1 , the camera not works
Sorry for the bad english
The log is generated with App Logcat extreme

Thea0152 said:
Hi, i don't speak english, sorry for the language/grammar mistakes
I flash this kernel (R4 for cm12.1) on the last build of official Cyanogenmod 12.1 in thea model (cm12-20151129-nightly) and the camera doesn't work. I don't know how make a logcat, but if reflashing with stock kernel of this cm12.1 build, the camera works again.
any solution?
Thanks for this great kernel Bryan
Click to expand...
Click to collapse
danielbraileanu said:
Use this tutorial to make a logcat:
https://forum.xda-developers.com/showthread.php?t=1726238
Click to expand...
Click to collapse
Thea0152 said:
this logcat is of AOSP 5.1.1 of LuK1337
https://basketbuild.com/filedl/devs.../F-AOSP/thea/AOSP-5.1.1-20150916-thea-luk.zip
The kernel works fine, but have the same problem of cm12.1 , the camera not works
Sorry for the bad english
The log is generated with App Logcat extreme
Click to expand...
Click to collapse
Logcat is not the log that I expected (kernel log is dmesg and last_kmsg) andi didn't messed with camera (KSM in kk days always bug camera LoL) in anyway but I've added to my analyzes to do and flr curiosity in stock/others kernel or other custom ROMs is working?
And thanks for the feedback!
PS: Did you have tried other camera app?
Sent from my Motorola Moto G using XDA Labs

BryanByteZ said:
Logcat is not the log that I expected (kernel log is dmesg and last_kmsg) andi didn't messed with camera (KSM in kk days always bug camera LoL) in anyway but I've added to my analyzes to do and flr curiosity in stock/others kernel or other custom ROMs is working?
And thanks for the feedback!
PS: Did you have tried other camera app?
Click to expand...
Click to collapse
I only test this kernel in cm12 and aosp 5.1.1. I try with others camera app (google cardboard and open source camera, both are of the play store) and don't work on aosp.
in the night i try make a kernel log
Thanks for this fantastic kernel.

Good Work Man, thanks for saving our device!!!
Bom trabalho mano, obrigado por salvar nossos celulares!!!

Does this work on 7.1.2? I don't think there is another kernel for it for this phone anymore.

FlappyFalcon said:
Does this work on 7.1.2? I don't think there is another kernel for it for this phone anymore.
Click to expand...
Click to collapse
It should, in case of not the script makes a backup of old boot.img but for sure make a backup first.
Feedback is appreciated.
Sent from my Xiaomi Redmi 4A using XDA Labs

fail to boot
In the rom darkness redefined (7.1.2) after i flash the kernel, when i try to boot, return to bootloader screen with the message "fail to boot". What i have to do?

lucasecto said:
In the rom darkness redefined (7.1.2) after i flash the kernel, when i try to boot, return to bootloader screen with the message "fail to boot". What i have to do?
Click to expand...
Click to collapse
Probably old kernel. Restore your backup or flash with TWRP the old kernel img that my script backup.
Sent from my Xiaomi Redmi 4A using XDA Labs

Related

[KERNEL][3.4.11] ZTE v970 / v970m (MT6577) | OC | UV | Performance | [21-06-2014]

Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
* DO NOT LEECH MY DOWNLOADS, PLEASE RE-DIRECT YOUR FORUM /PAGE
* TO THIS THREAD, IF YOU LIKE MY WORK, YOU CAN SAY THANKS,
* AND MAYBE BUY ME SOME BEERS
*/
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open Sourcing Mediatek - ZTE v970 ; SoC MT6577​
Being owner of an Mediatek device, means (most of the times) not having the sourcecode published by the Official vendor.
ZTE never published full ICS sources (they only gave us incompleted, and unbuildable sources).
Furthermore, we never had JB 3.4.x Kernel sources.
Well this is xda after all, meaning we can accomplish pretty much everything
This is an fully Custom Kernel Source.​
​
### For JellyBean 4.1 / JellyBean 4.2 Roms ONLY ###
--> For the new KitKat Build The Kernel is already included on the Rom, and Kernel Updates will be on that thread​
Hello Guys !
In this thread you will find my custom Kernel for the ZTE v970 / v970m / Smart a18 (Portuguese Single-SIM version)
Please be sure to read (and re-read) to avoid unnecessary questions.
Changelogs
Changelog v1.4 (June 21 2014)
Kernel Upstream to Linux 3.4.11
(check my github for the fully commit history, don't want an long Changelog here)
Now Compiled with the Latest Linaro-Cross ToolChain 4.9.1 Cortex A9
Compiled with optimized -O2 Flags with MODFLAGS
Dynamic management of dirty page writebacks (fully controled on Performace Control app)
Completely Fair Scheduler: Responsiveness Tweeks
CPU Governors: Added SmartAssV2
Default Governor is now set as: HotPlug (This is great as an daily Driver)
Default IO Sheduler is now set as: SIO
Battery: Improved Battery voltage table; increase battery charging voltage (will charge an bit faster now); Precise Tunning.
Fixed init.d on all Kernel Variants
JB 4.1: Fixed Freezing caused by 3rd party apps notifications, like the FB app (.blob)
For Overclocking / IO Schedulers and Governors check FAQ on post #3
Older ChangeLogs:
Changelog v1.3 (May 22 2014)
ToolChain: Now compiled with Linaro Toolchain 4.6.4 (Optimized Cortex a9 - Better Performance )
Battery: NTC Enabled (Fixs Temperature reading)
Battery: Reverted to v1.1 Battery configs + NTC Enabling (this is the best combo)
Battery: Improved WIFI Draining (Battery will last longer now when WIFI is ON)
Kernel Modules: Striped from useless code (now they are 1 / 4 of their old size )
Changelog v1.2 (May 12 2014)
Fixed USB Storage Vendor ID
New Battery Driver Configs
Notification LEDs FIX for JB4.1.x
Now also supporting MIUI v4 and LeWa v5 ROMs (JB4.1.x)
Changelog v1.1 (April 24 2014)
Well this is an HUGE Update ...
Kernel Sources Upstream from 3.4.0 -> 3.4.5 (common)
Ported and Merge the following ThunderZap 2.0 Kernel features:
Cortex A9 optimizations
Neon optimizations
Increased the kernel timer from 100==>300
Removed old SHA1 routines
Dynamic Filesync Control 2.0
Dynamic Management of Dirty page writeback
Undervolted complete chipset by 66.66mV[Milli-Volts]
Lock initial TCP window size to 64k (Improves network ping and output)
Faster NOATIME and NODIRATIME mounting flags
Disabled Gentle Fair Sleepers
Enabled ARCH_POWER
Asynchronous I/O latency to a solid-state disk greatly increased
Patches to prevent depleting Entropies
Reduced Android Logger size
Optimized AES and SHA1 routines
Lowered Log Buffer shift
Various EXT4 Filesystem patches from android_kernel_common
Plugged memory leaks to cpufreq driver from upstream
Optimizations to SLUB memory allocator
Decreased CPU transition latency
Removed all debugging shi**
Proportional Rate Reduction for TCP - Google
Optimized swahb32() byteswap helpers
Compiled vfp with neon
Tuned CFS parameters
Reduced vfs cache pressure size
Optimized VM dirty ratios
Optimizations to Android Low Memory Killer
Optimized CFQ scheduler
Ported and Merge the following BindassBoost Kernelfeatures:
Governors: Sakuractive ; Nightmare; Interactivex; Zzmoove; Hotplug; Lulzactiveq; SmartassH3; Hybrid; Ondemand; Userspace; Powersave; Pegasusq; Performance
IO Schedulers: Noop; Deadline; Cfq; Sio; Fifo; Fiops; Row; Vr; Zen; SioPlus
Updated kernel with MeM Overclocking Feature - Thanks to bindassdost For MTK SmartOC and benoitm974 for his work on adding OC feature to an MTK device
Other Features :
(JB 4.2.2) Fixed Auto-Brightness, fully working now
(JB 4.2.2) Improved GPS
hrtimer: Introduce effective timer slack
mm: pmd_read_atomic: fix 32bit PAE pmd walk vs pmd_populate SMP race
raid5: delayed stripe fix
Optimized ARM RWSEM algorithm - Thanks to faux123
fs: switch do_fsync() to fget_light()
jbd2: optimize jbd2_journal
ext4: speed up truncate/unlink by not using bforget() unless needed
af_unix: speedup /proc/net/unix
binder.c Patch for (future) Android KitKat support
entropy tweaks
Changelog Stable v1.0 (April 06 2014)
Fix whrong Battery Percentage being displayed ( % )
Fix whrong Battery sensor temperatures being displayed
VM_MAX_READAHEAD is now set to 1024kbytes
Tweak vm dirty ratios (thanks to varun.chitre15)
Compile vfp with neon (thanks to varun.chitre15)
Changelog Beta v2 (March 30 2014)
Re-work battery related issues
Changelog Beta v1 (March 29 2014)
Compiled Today
Insecured
Persistent ADB
Compiled using GCC 4.6 ToolChain
zImage Compression changed from GZIP to LZMA
VM MAX READAHEAD changed from 128 to 512 Kb
Removed debug Sh##
​
Bugs
- You tell me​
Some Features of the Custom Kernel (Check ChangeLogs for all features...)
Kernel Sources Upstream from 3.4.0 -> 3.4.11 (common)
Insecured
Persistent ADB
Compiled using GCC 4.9.1 LINARO-Cross Optimized Cortex a9 ToolChain
zImage Compression changed from GZIP to LZMA
Ported and Merge the following ThunderZap 2.0 Kernel features:
Cortex A9 optimizations
Neon optimizations
Increased the kernel timer from 100==>300
Removed old SHA1 routines
Dynamic Filesync Control 2.0
Dynamic Management of Dirty page writeback
Undervolted complete chipset by 66.66mV[Milli-Volts]
Lock initial TCP window size to 64k (Improves network ping and output)
Faster NOATIME and NODIRATIME mounting flags
Disabled Gentle Fair Sleepers
Enabled ARCH_POWER
Asynchronous I/O latency to a solid-state disk greatly increased
Patches to prevent depleting Entropies
Reduced Android Logger size
Optimized AES and SHA1 routines
Lowered Log Buffer shift
Various EXT4 Filesystem patches from android_kernel_common
Plugged memory leaks to cpufreq driver from upstream
Optimizations to SLUB memory allocator
Decreased CPU transition latency
Removed all debugging shi**
Proportional Rate Reduction for TCP - Google
Optimized swahb32() byteswap helpers
Compiled vfp with neon
Tuned CFS parameters
Reduced vfs cache pressure size
Optimized VM dirty ratios
Optimizations to Android Low Memory Killer
Optimized CFQ scheduler
Ported and Merge the following Unified BindassBoost Kernel features:
Governors: Sakuractive ; Nightmare; Interactivex; Zzmoove; Hotplug; Lulzactiveq; SmartassH3; Hybrid; Ondemand; Userspace; Powersave; Pegasusq; Performance
IO Schedulers: Noop; Deadline; Cfq; Sio; Fifo; Fiops; Row; Vr; Zen; SioPlus
Updated kernel with Overclocking Feature - Thanks to bindassdost For MTK SmartOC and benoitm974 for his work on adding OC feature to an MTK device
Other Features :
(JB 4.2.2) Fixed Auto-Brightness, fully working now
(JB 4.2.2) Improved GPS
hrtimer: Introduce effective timer slack
mm: pmd_read_atomic: fix 32bit PAE pmd walk vs pmd_populate SMP race
raid5: delayed stripe fix
Optimized ARM RWSEM algorithm - Thanks to faux123
fs: switch do_fsync() to fget_light()
jbd2: optimize jbd2_journal
ext4: speed up truncate/unlink by not using bforget() unless needed
af_unix: speedup /proc/net/unix
binder.c Patch for (future) Android KitKat support
entropy tweaks
​
GPL Compliance:
Kernel 3.4.11
GitHub Repo
I do respect the GPL, but using someone else's work without proper credits is just LACK OF RESPECT.
The inclusion of this kernel in your ROMS is NOT allowed.
Instead add a link to my kernel thread as a recommendation on your thread.
I Don't support KANGS!
So please Show some respect, when using my commits, as well as the commits i added from other Dev's (with proper credits/ git authorization)
Fail to comply and i will drop this project
​
Credits:
superdragonpt
lingfude For dumping and fixing the GT818B TouchScreen Driver / other commits
varun.chitre15 For his Awesome work on ThunderZAP kernel (ported his features)
bindassdost For his Awesome work on Unified BindassBoost kernel (ported his Patched IO / Govs)
benoitm974 For discovering the MeM PLL's Overclock on MTK 6577
Christopher83 For his awesome ToolChains
All (common) kernel contributors | www.kernel.org for keeping Linux / Android alive
I would also like to thank:
Dr-Shadow, for always being available to clear my doubts.
bgcngm, for the MTK unpack / repack kernel scripts
XDA:DevDB Information
[KERNEL] ZTE v970 / v970m (MT6577), Kernel for the Android General
Contributors
superdragonpt
Source Code: https://github.com/dragonpt/Kernel_3.4.11_JB_ZTE_v970
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: 1.4
Stable Release Date: 2014-06-21
Beta Release Date: 2014-03-30
Created 2014-03-29
Last Updated 2014-11-28
How to Flash
On recovery: (No need to wipe anything)
Just Flash the desired Kernel version.
It wont afect the rom, or your userdata.
But Just in case, make an full backup before flash
Download
Kernel Download is now available in the XDA: DEVDB "Download" Section.
F.A.Q. :
How can I change I/O Schedulers and Governors?
You can use the No-frills CPU Control APP from the PlayStore to switch bettwen then.
What's the Best Governor / I/O Scheduler?
Depends on your needs (Performance; Powersaving; etc)
An good resource, check this This Thread or Just Google it ...
How to Overclock my Device?
Download the attached app (THANKS bindassdost):
1: Add BBoost Game Mode widget to homescreen
2: The app widget behaves as toggle button to switch between stock and overclock (Overclock don't survive reboot)
Don't open the BBoostManager app, what you will be using its his WIDGET.
reserved
Thank you! so much!!
Flashing and testing!
Thanks for the work! What possibilities does the new kernel?
Regards.
---------- Post added at 08:23 PM ---------- Previous post was at 07:28 PM ----------
Problems when the charger is connected, does not recognize that is charging me and I do not know, if indeed it is doing.
Regards.
etijer said:
Problems when the charger is connected, does not recognize that is charging me and I do not know, if indeed it is doing.
Regards.
Click to expand...
Click to collapse
Hi there
Thanks for the feedback, please refer (and the others, when replying) what JB version are you using?
The JB 4.1.1 or JB 4.2.2.
Im using the 4.2.2, and yes it doesn't display that its charging sometimes, but he IS charging.
If you powered off your device you'll see that it is charging.
Also you should see the RED Led, that indicates that's charging
Also sometimes the battery percentage may display wrong values.
Regards, and thanks for testing
superdragonpt said:
Hi there
Thanks for the feedback, please refer (and the others, when replying) what JB version are you using?
The JB 4.1.1 or JB 4.2.2.
Im using the 4.2.2, and yes it doesn't display that its charging sometimes, but he IS charging.
If you powered off your device you'll see that it is charging.
Also you should see the RED Led, that indicates that's charging
Also sometimes the battery percentage may display wrong values.
Regards, and thanks for testing
Click to expand...
Click to collapse
Kernel should fix the "clash of clans" problem on Jb 4.1.2?
I use 4.2.2 and sure enough, the battery is charging. Having trouble to correctly display the battery percentage. There is possibility to add governors to kernel? Keep it up.
Regards.
etijer said:
I use 4.2.2 and sure enough, the battery is charging. Having trouble to correctly display the battery percentage. There is possibility to add governors to kernel? Keep it up.
Regards.
Click to expand...
Click to collapse
I may add governors and IO schedulers in the future.
But first lets fix these last issues.
Thanks
Beta 2 is Uploaded
EDIT: I've repack the kernel, for JB 4.1.1 users also
Just choose the correct version
Make an full backup on Recovery
Flash The kernel
Reboot
Please test it, and later you can revert back your stock kernel/data by restoring CWM Backup
If your battery Percentage (%) is frozen, reboot to recovery and wipe cache and dalvik again.
Regards
Fixed problems with loading and show battery percentage. I will continue testing stability and others. Good job. Thank you.
Regards.
etijer said:
Fixed problems with loading and show battery percentage. I will continue testing stability and others. Good job. Thank you.
Regards.
Click to expand...
Click to collapse
Thanks for The feedback.
EDIT: New instructions on OP
Hi.
Progress bar from stock browser looks fuzzy. (tested with beta1, JB 4.2.2)
rj2k said:
Hi.
Progress bar from stock browser looks fuzzy. (tested with beta1)
Click to expand...
Click to collapse
Hi
Thanks for The Report.
Follow The instructions, and test beta2.if you can.
Regards
superdragonpt said:
Hi
Thanks for The Report.
Follow The instructions, and test beta2.if you can.
Regards
Click to expand...
Click to collapse
<JB version 4.2.2>
Stock browser bar OK with beta2.
Charger still not recognized. Battery widget shows charging animation but battery app show not charging.
I'll full charge with phone off then flash kernel and report later.
just to add more test info:
GPS OK
Bluetooth OK
Wifi OK
3G OK
Keep up the great work, superdragonpt!
Can someone with the internacional Dual-SIM version confirm what's your battery values?
Check if they are exactly like this:
1600 mAh (6.0Wh)
3.7v
4.2v
Regards
will this fix Pink Tint in Camera in 4.2 JB Based ROMs?
battery
superdragonpt said:
Can someone with the internacional Dual-SIM version confirm what's your battery values?
Check if they are exactly like this:
1600 mAh (6.0Wh)
3.7v
4.2v
Regards
Click to expand...
Click to collapse
I have one:
1600mAh
6.0 Wh
nominal 3.7V
charge up 4.2V
Vipuldj said:
will this fix Pink Tint in Camera in 4.2 JB Based ROMs?
Click to expand...
Click to collapse
Hopefully yes... If no one else will test it, I'll try to do complex tests on Saturday/Sunday. My camera is currently not working anyway because of my failed kernel builds that didn't even boot.
superdragonpt said:
Can someone with the internacional Dual-SIM version confirm what's your battery values?
Check if they are exactly like this:
1600 mAh (6.0Wh)
3.7v
4.2v
Regards
Click to expand...
Click to collapse
I've ordeder my phone from HK (so it's most probably the "international" version) and the values are the same.
Also please check my old repo against adding governors - it's very easy but important, current governor (mtk's hybrid) uses too much battery. If you want, I can create a push request
Conny said:
I have one:
1600mAh
6.0 Wh
nominal 3.7V
charge up 4.2V
Click to expand...
Click to collapse
Thanks, seems the battery is the same on both variants (single and dual SIM)
akkenoth said:
I've ordeder my phone from HK (so it's most probably the "international" version) and the values are the same.
Also please check my old repo against adding governors - it's very easy but important, current governor (mtk's hybrid) uses too much battery. If you want, I can create a push request
Click to expand...
Click to collapse
Adding Govs and IO isn't hard at all, i have alot of goodies to release into the kernel, i just dont want to add too much "junk" right now, before i get this last issues fixed
Then i can start with the addicional goodies, after that AND if all goes well, i can start working on an second kernel variant to fix the camera on 4.2 roms.
The priority was to have an kernel (and working sources) for this device
And of course, you are always welcome to help/test.
Thanks

KERNEL | CM13 / AOSP | 24th July | HalogenKernel R29 | UBER TC 6.0 | AROMA | 3.4.42

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
EXPERIENCE HALOGEN | EXPERIENCE AWESOMENESS​
For Changelogs please see POST #2.
For Recommended Settings please SEE HERE.
DISCLAIMER :-​
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will simply laugh at you.
*/
NOTE :-​This kernel is ONLY meant for AOSP/CM ROMs.
This IS NOT MEANT for STOCK ROMs.
Upto R14 Kernel supports Lollipop.
From R15 onwards Kernel supports ONLY Marshmallow.
From R18 onwards Kernel supports Doze + Marshmallow.
If you don't know what Doze is, google it.
WHAT IS THIS KERNEL ?​This kernel is built especially for these 3 things :- 1. Audio, 2. Performance, 3. Battery Life.
I will try to bring in as many features as possible, and at the same time ensure that there are no conflicts / incompatibility issues.
FEATURES :-​(features of ONLY the latest version is mentioned)​
Based on Linux Kernel 3.4.42
AROMA installer v3.0
Updated with the latest CM13 sources
Built with UBER Toolchain GCC-6.0
Any Kernel script used
Kexc Hardboot patched
Built with -O3 & -graphite flags for enhanced performance
GPU OC to 533 MHz & UC to 100 MHz
Disabled PowerHal log spam (thanks to @attack11)
Implemented LoUIS cache
Audio :-
Faux Sound Control v3.2
Headset in high performance profile
24 bit audio support
Low latency audio playback
Slimbus overclocking for superior audio quality
DOLBY dap dependency fix
Ultrasound & ASoC : qdspv2 tweaks
Battery Saving/ Performance :-
Readahead set to 512
Set sched_mc_power_savings to 2
Enabled CPU boost
NVIDEA Power efficient patches
Optimized slub memory allocator
Optimize Sfck Compression
Sched Tweaks (see GitHub)
Add Frandom
Power effecient work queues enabled by default
Reclaim RAM from loggers, increasing default ram to 886 Mb
Disable gentle_fair_sleepers for increased I/O
Enable advanced unaligned_access
Enable arch_power
Use power efficient workqueues for bam_dmux
Optimize square root algorithm
Many tick, clockevents & timer tweaks (see GitHub)
Lower swappiness
msm:kgsl tweaks(see GitHub)
CPU Governors :-
intelimm, intellidemand, intelliactive, smartmax, conservative, ondemand, userspace, powersave, performance, interactive, impulse, yankactive, zzmoove
CPU Hotplugs :-
Intelliplug, MSM Hotplug, mp-decision, Bricked Hotplug
GPU Governors :-
msm-cpuferq, msm-adreno-tz, userspace, powersave, performance, simple_ondemand, conservative.
I/O Schedulers :-
fiops, vr, zen, sio, bfq, cfq, row, deadline, noop, fifo, tripndroid
TCP Congestions :-
westwood, cubic, reno, hstcp, hybla, vegas, veno, scalable, lp, yeah, illinois, hctp, advanced, highspeed.
Others :-
Ability to use your device as USB Keyboard / Mouse (use this apphttps://play.google.com/store/apps/details?id=remote.hid.keyboard.client&hl=en)
Stereo call record support
Increase torch power by 20mA
psx2usb
KCAL v2 by Savoca
Added Adreno Idler
GPU tweaks (see GitHub)
Dynamic FSync
Intellithermal v2
Added optimized square root algorithm
Added optimized ARM_RWSEM algorithm
Added state notifier driver
Enabled quick wakeup
NOATIME and NODIRATIME as default
NEON kernel mode
Ex-FAT support
SE Linux tweaks
SE Linux set to permissive
Random / Frandom / Prandom tweaks
Entropy tweaks
Mutex & futex tweaks
LONG TERM SUPPORT :-​
This kernel will be supported for a long time with updates directly streamed from CM kernel sources i . e . as long as CM keeps publishing updates to Motrola's Kernel, this kernel will also be updated.
Further, I will also be personally adding features to this kernel along with tweaks and optimizations as and when needed.
DOWNLOADS :-​(do not mirror my links)​[ Latest Version ]​[ Older Versions ]​
TEST BUILDS with OC & UV :-​These builds contain the following extra features ( when compared to normal /stable builds ) :-
CPU OC to 1593.6 MHz
CPU UC to 96 MHz
CPU UV hardcoded and can't be changed
Associated RamDisk changes
Since OC will not work without associated ramdisk changes, hence test builds are available as boot images rather than anykernel zips.
Now there had been reports of bootloop with blisspop & rr roms and certain other roms. I looked into this and found out that even though they are based on cm kernel, their ramdisk sizes are different, hence bootloop on using boot.img but no bootloop on using anykernel zip ( since, anykernel works irrespective of ramdisk size).
Now it is highly unfeasible to build a boot.img for every different rom and upload them separately. Hence, I have decided NOT to include OC/UC in the stable builds.
Hence these images will only work on aosp and cm13 roms.[/I] Any rom having ramdisk size different than that of official cm13 or official slim(aosp), will not be supported. Hence no support for OC in rr/bliss.
INSTALLATION INSTRUCTIONS :-​
Reboot into recovery.
Make a nandroid BackUp.
Select Install zip from SD Card.
Select the Downloaded zip (different builds are present as an option in AROMA).
Then Reboot to System.
RECOMMENDED APPS FOR KERNEL TWEAKING :-​
Kernel Adiutor
Faux123 Kernel Enhancement Pro
I do not support any other apps.
CREDITS:-​~~Google
~~Motorola for kernel sources
~~Flashhhh
~~hurtsky
~~Luk & Luca -for various fixes
~~Thecrazyskull, DC07 -for cherry-picks
~~Faux123
~~Savoca
~~YoshiShaPow
~~attack11
~~many more.......
Please don't start a war here if I forgot to mention someone. PM me and I will add him.
XDA:DevDB Information
HalogenKernel, Kernel for the Moto G 2014 LTE
Contributors
zakee94
Source Code: https://github.com/zakee94/halogen_kernel/
Kernel Special Features: Ultra High SOUND, Kexec, KCAL, Intellithermal, MSM Hotplug
Version Information
Status: Alpha
Current Stable Version: R29
Stable Release Date: 2016-07-24
Created 2016-02-02
Last Updated 2016-07-24
Changelog
CHANGELOG​(simplified changelog, for full changelog please look at my GitHub commits.)​​​
R29 --> 24/07/2016​
Merged CM Updates
For older changelogs :-​
R28 --> 08/06/2016​
Merged CM Updates
AROMA installer
Added tripndroid IO Scheduler
CPU optimizations
ARM tweaks and updates
R27 --> 12/05/2016​
Merged CM Updates
R26 --> 10/04/2016​
Merged CM Updates
R25 --> 16/03/2016​
Merged CM Updates
R24 --> 18/02/2016​
Reverted the following :-
CPU OC/UC - 1593/96 MHz
CPU UV
LMK tweaks + Agressive LMK mode
Following CPU govs --> lionheart, dancedance, bioshock, alucard
Following Hotplugs --> Mako, Auto-smp
Added the following -->
Merged CM Updates
Built with UBER Toolchain GCC-6.0
R23 --> 19/01/2016​
Initial Release
Reserved
... flashed this kernel - and works like a charm!
Thanx!
As a POSITIVE side effect after flashing this kernel, my LTE connection stays as stable, as I had it never before:good:
bitstra said:
... flashed this kernel - and works like a charm!
Thanx!
Click to expand...
Click to collapse
Thanks for the positive review !
bitstra said:
As a POSITIVE side effect after flashing this kernel, my LTE connection stays as stable, as I had it never before:good:
Click to expand...
Click to collapse
There are certain commits which improves and stabilizes cellular connectivity.
It works very well!
The overclocking is overvolting the CPU? Or it just changes the frequencies?
LuuchoRocha said:
It works very well!
The overclocking is overvolting the CPU? Or it just changes the frequencies?
Click to expand...
Click to collapse
It's using more voltage. Look here.
Speed and stability are amazing but Camera app can't find the camera anymore. Any advice?
---------- Post added at 02:34 PM ---------- Previous post was at 02:13 PM ----------
Also any suggestions on best TCP settings for speed?
t-pip said:
Speed and stability are amazing but Camera app can't find the camera anymore. Any advice?
---------- Post added at 02:34 PM ---------- Previous post was at 02:13 PM ----------
Also any suggestions on best TCP settings for speed?
Click to expand...
Click to collapse
You shouldn't face any issues with camera, which ROM are you on ??
For TCP try Westwood.
Hello,
Will be possible to make it for CM12, if I install, the camera stops to work, the rest work perfectly.
Thanks,
Sent from my Moto G 2014 LTE using XDA Free mobile app
zakee94 said:
You shouldn't face any issues with camera, which ROM are you on ??
For TCP try Westwood.
Click to expand...
Click to collapse
Thanks for the reply.
I'm running AOSP 5.1.1
todobarato said:
Hello,
Will be possible to make it for CM12, if I install, the camera stops to work, the rest work perfectly.
Thanks,
Sent from my Moto G 2014 LTE using XDA Free mobile app
Click to expand...
Click to collapse
t-pip said:
Thanks for the reply.
I'm running AOSP 5.1.1
Click to expand...
Click to collapse
This kernel is strictly for marshmallow based roms only.
However if you want to use it on lollipop based roms try an older version.
You can download it HERE.
zakee94 said:
This kernel is strictly for marshmallow based roms only.
However if you want to use it on lollipop based roms try an older version.
You can download it HERE.
Click to expand...
Click to collapse
Will give that a go. From what I could see yesterday this version worked fine with Lollypop apart from the camera.
Edit
Seems that kernel won't run the processor any faster than 787.
Is there any chance of updating to include over clock or modding current version to work with Lollypop camera?
t-pip said:
Will give that a go. From what I could see yesterday this version worked fine with Lollypop apart from the camera.
Edit
Seems that kernel won't run the processor any faster than 787.
Is there any chance of updating to include over clock or modding current version to work with Lollypop camera?
Click to expand...
Click to collapse
No.
I'm kinda curious, the title says Moto G, but will this work for Note 1 running CM13?
roimarco said:
I'm kinda curious, the title says Moto G, but will this work for Note 1 running CM13?
Click to expand...
Click to collapse
Are u serious? Of course it won't.
Hello,
The kernel is broken, with last nighty.
In cm13 was updated the Wi-Fi , now if I install the kernel Wi-Fi is inoperative.
Best regards,
Sent from my Moto G 2014 LTE using XDA Free mobile app
Kernel Updated​[ DOWNLOAD ]​
For details CLICK HERE.​
Thanks a lot, Wifi is fixed now. Your kernel is really awesome. A few tweaks and battery life is stellar, such as performance. Thanks

[KERNEL][AOSP/CM][~5.0+|cm-12.0+][N7100] Void Kernel (1.9.1)

As always:
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Hi to all i'm here to share with you (and with the community) my kernel based on haxynox/ivan_meler arter97 sources(instead of cm sources)!
this is not a super kernel with a lot of features... the main goal of this project is to have a stable kernel with some a lot of features
This is a kernel based on stock sources for AOSP/CM roms!
However bug reports (with logs), rewiews, ... are always welcome!
Features:
based on arter97 kernel
builded on archlinux debian sid
LZMA compressed kernel
AnyKernel2 (should support all CM roms)
A lot of optimizations, backports, improvements, ... (check the github gitlab repo!)
Led control
Changer control
Taskstats (iotop support)
I/O Schedulers: noop deadline [cfq] bfq sio vr fifo zen
Governors: intelliactive smartassV2 interactive zzmoove conservative powersave [pegasusq] performance
Tcp Congestion Controls: [westwood] reno bic cubic highspeed hybla htcp vegas ven scalable lp yeah illinois
NTFS support
USB OTG support
Full F2FS support (backported from Linux 4.2+) (kernel side + fstab)
Improved colors and mdnie control
Boeffla sound
Tap2wake and Doubletap2wake
Synapse support (install the app)
CPU overclock up to 2160 MHz and underclock down to 100 MHz
CPU undervolt interface
GPU overclock/underclock
GPU undervolt
ARM CPU Topology (sched_mc)
Enable/Disable speaker when camera app is open
Click to expand...
Click to collapse
Changelog:
v1.9.1
bring back mdnie control and improved colors
install busybox (without symlinks) if not already installed
force to use busybox for everything related to synapse and use /system/bin/sh as shell
misc fixes for synapse
Installing busybox manually is not required anymore for synapse, this build is also an attempt to fix the various issues with synapse reported by some users
Click to expand...
Click to collapse
v1.9.0
first public build compiled on debian sid
update everything for the gitlab switch
use LZMA compression
support for the new hwc (tilak rom)
remove old settings for vibrator intensity and use the lineageos one
remove mdnie settings and use lineageos one (currently broken)
v4l2 and fb updates for the new hwc
misc updates from https://github.com/fourkbomb/android_kernel_samsung_smdk4412/commits/cm-14.1-rebase
full build system and template (install zip) revamp
import latest AnyKernel2 updates
the kernel now installs a custom fstab
the original branches and the -new ones are now merged as the build system detects when the modules support is needed
pegasusq boost support
reboot to recovery when a kernel panic happens (if the kernel crashes it will go to recovery automatically)
v1.8.6
misc updates
wifi hotspot fix for android 7.0
v1.8.5
misc kernel updates
now kernel releases without modules are built separately, check for the -new flag in the zip name (for android 7.0 and up)
second attempt to fix wifi on android 7.0
v1.8.4
wifi should work on nougat now
v1.8.3
android 7.0 support (experimental, untested use at your own risk)
security updates
misc bug fixes
v1.8.2
from now when you are using aosp this zip will install only synapse (aosp has already this kernel)
v1.8.1
Candysix issues fixed
updates from cyanogenmod kernel
v1.8.0
overclock support up to 2160 MHz
debug reduced (a lot!!)
re-added synapse governor tab
re-added frandom
updates from CyanogenMod kernel
finally fixed usb otg (now works always not only the first time after boot)
option to enable swap and zram (only for advanced users)
removed adaptive body bias
other changes
from the old arter97 kernel (before 5.0):
removed memory throttling
cpu unaligned accesses
AIO changes
v1.7.3
Synced with dev branch
Switched back to google gcc 4.8 (the android default one)
Removed samsung changes to ondemand governor
Enabled ondemand
And take a look at this
v1.7.2
Fix synapse freeze when changing governor
Removed negative mode toggle
v1.7.0
Rebased on arter97 kernel (full and proper upstream to 3.0.101, including dma_cma) (big thanks to arter97)
Builded with GCC 5.3
New governors: smartassV2 interactive conservative
New I/O schedulers: sio vr fifo zen
Enabled dma_cma (better memory management)
Enabled embedded exfat driver (i won't provide support for this, if you are still using exfat it's time to switch to something new!)
Minor fixes (like touchkeys remaining active sometimes)
Synapse now supports zzmoove profiles
Synapse minor changes
Other misc changes
1.6.4-4806461
Updates from cyanogenmod kernel
Revert busfreq changes
Misc changes
1.6.3-22afe8b
New option for touchwake by me (charging_mode, enable touchwake only on charging)
Synapse minor changes (frequency monitor added)
1.6.2-68fa049
New led control (supports led brightness!)
New f2fs! (Backported from Linux 4.2+, thanks to arter97)
Removed logger and logger mode (logcat driver in the kernel is not needed anymore on android 5.0+)
Enabled NFS client and CIFS (experimental, an arter97 user reported a sunrpc kernel panic)
Other minor changes
1.6.1-294f21d
Enabled Asynchronous I/O
1.6.0-2ff4fd9
CPU clock: 1600 - 200 -> 1800 - 100
CPU undervolt interface
GPU overclock and undervolt
ABB (adaptive body bias)
ARM architecture updates
A lot of other optimizations
ARM CPU topology (sched_mc readded)
toggle negative mode with 4 taps on home button (tap fast!)
Camera shutter sound control (disable speaker when camera app is open)
Intelliactive from arter97 kernel
Cleaned up MIF/INT (busfreq) code
synapse updated (too many changes to list check by your self)
A lot of other changes
release5-7096c91
update synapse
misc changes
release5-eb6898c
synapse support boeffla sound
release5-ee27b5f
synapse support (beta) (for boeffla use his app!)
removed sched_mc
pre-release5-7d34ddc
wait this is a pre-release because it doesn't have synapse support, this will be added in the release5
enabled deadline and bfq io schedulers (deadline as default)
enabled all tcp congestion controls (westwood as default)
sched_mc (multicore power saving)
some tweaks from boeffla kernel (thaks to andip71!)
release4-f240f37
revert to f2fs from cyanogenmod
f2fs support (fstab) now you don't need anymore a rom that support f2fs natively
misc updates
release4-dcd9a36
fixed touchkeys always on
release4-d1728a6
rebased kernel oon new Nameless one (changes are a lot!)
logger-interface
new f2fs! (imported from here)
release3-3dda06e
tap2wake and doubletap2wake
ZZMoove 1.0 beta8
release2-e21b17d
updates from cyanogenmod kernel
disabled samsung_extdisp driver (source of bugs, more info: https://github.com/NamelessRom/android_kernel_samsung_smdk4412/commit/3597c6bf57e82df92fdaa3db215ab3640f00c888)
boeffla sound 1.6.7
mdnie control and master sequence
f2fs (kernel side support)
some debug removed
release1-d1a9259
initial release
Click to expand...
Click to collapse
Coming features:
you tell me
Click to expand...
Click to collapse
Bugs:
none so far (for touchwake read this: http://forum.xda-developers.com/showpost.php?p=66179198&postcount=46)
Click to expand...
Click to collapse
Obviously you can use the sources of this kernel but i won't provide support if you want to build it on windows (cygwin) or on mac
You must use LZMA compression if you want to use this kernel for building a recovery otherwise the image won't fit the ~8 MB partition of our device
WARNING #1
if you want to flash phh's superuser (i use this) then flash first the superuser zip and after the kernel otherwise the rom won't boot
if you use SuperSU the order of flash doesn't matter
WARNING #2
Don't flash this kernel over an another custom kernel
Before flash make sure to have a way back (backups, dump, ...) and if you want to revert back to default kernel of your rom simply reflash the rom zip
WARNING #3
Remember that the some features can ruin/break some parts of your phone here are some examples:
changing voltages supplied to the battery
overclock/undervolt of cpu/gpu
too high volume in boeffla sound
too high vibration strenght
as the disclaimer says is at your own risk!
Downloads:
https://gitlab.com/ParanoidNote/void-kernel/tags (click on a tag to see the full release notes)
old downloads: https://github.com/ParanoidNote/void-kernel/releases
Click to expand...
Click to collapse
Credits:
Linus Torvalds
arter97
JustArchi
andip71 (LordBoeffla)
AndreiLux
yank555-lu
faux123
MarcKe
Ivan Meler
Evisceration
dhiru1602
fourkbomb
and all people here
Click to expand...
Click to collapse
XDA:DevDB Information
[KERNEL][AOSP/CM][5.0+|cm-12.0+][N7100] Void Kernel, Kernel for the Samsung Galaxy Note II
Contributors
ParanoidNote
Source Code: https://gitlab.com/ParanoidNote/void-kernel/commits/master
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: 1.9.1
Stable Release Date: 2017-04-27
Created 2016-03-22
Last Updated 2017-04-27
ParanoidNote said:
As always:
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Hi to all i'm here to share with you (and with the community) my kernel based on haxynox/ivan_meler sources!
this is not a super kernel with a lot of features... the main goal of this project is to have a stable kernel with some features
However feature requests, bug reports (with logs), rewiews, ... are always welcome!
but THESE won't be added:
governors (pegasusq has tunables use them)
undervolt and overclock (unstable)
adaptive body bias (ABB)
gpu controls
io schedulers
F2FS (for now)
so the features are:
builded on archlinux
toolchain: https://launchpad.net/gcc-arm-embedded (gcc-arm-none-eabi-4_9-2015q3)
LZO compressed kernel
AnyKernel2 (should support all AOSP roms)
led control and led fading as default (thanks arter97)
changer control
taskstats (iotop support)
io schedulers: [noop] cfq
governors: [pegasusq] performance
tcp congestion controls: [cubic] reno
NTFS support
USB ethernet support
Joystick support (xpad, tablet, ...)
USB OTG support
coming features:
mdnie control
boeffla sound
you tell me
bugs:
none so far
Configuration app? i use terminal but if want you can use Kernel Adiutor of Trickster MOD apps however these won't cover all the features provided by this kernel
Obviously you can use the sources of this kernel but i won't provide support if you want to build it on windows (cygwin) or on mac, this is a linux kernel
You must use LZMA compression if you want to use this kernel for building a recovery otherwise the image won't fit the ~8 MB partition of our device
WARNING
if you want to flash phh's superuser (i use this) then flash first the superuser zip and after the kernel otherwise the rom won't boot
if you use SuperSU the order of flash doesn't matter
Downloads: https://github.com/4rch0x0/android_kernel_samsung_smdk4412/releases
Credits: all people here
XDA:DevDB Information
[KERNEL][~5.0+][N7100]Modded Stock Kernel, Kernel for the Samsung Galaxy Note II
Contributors
ParanoidNote
Source Code: https://github.com/4rch0x0/android_kernel_samsung_smdk4412/commits/master
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: release1-d1a9259
Stable Release Date: 2016-03-22
Created 2016-03-22
Last Updated 2016-03-22
Click to expand...
Click to collapse
For that Rom you need this kernel and can be installed?
Piombo71 said:
For that Rom you need this kernel and can be installed?
Click to expand...
Click to collapse
you can install this kernel on all aosp roms (cyanogenmod, temasek, resurrection remix,...)
it's means this kernal is available for the porting of TW 5.1.1 of N7100?
Leric said:
it's means this kernal is available for the porting of TW 5.1.1 of N7100?
Click to expand...
Click to collapse
Really????
Leric said:
it's means this kernal is available for the porting of TW 5.1.1 of N7100?
Click to expand...
Click to collapse
No this is a kernel for aosp roms (it is based on stock sources) sorry this kernel for now doesn't have a real name
ParanoidNote said:
No this is a kernel for aosp roms (it is based on stock sources) sorry this kernel for now doesn't have a real name
Click to expand...
Click to collapse
all right... thank you
WOW! a new kernel for our note 2 thank you dev! keep it up
P.S. :3 is there any possibility to get dt2wake?
Download link death
zeratull said:
Download link death
Click to expand...
Click to collapse
works now thanks
Stavrosfil said:
WOW! a new kernel for our note 2 thank you dev! keep it up
P.S. :3 is there any possibility to get dt2wake?
Click to expand...
Click to collapse
ok i will try but i remember that was causing issues in some older builds so i don't know if it will be added...
edit: got it working will be live in the next build!
Firstly great kernel and great thanks for implementing dt2wake.
BTW can I know how to disable single tap 2 wake and only use dt2wake. Thanks
maq06 said:
Firstly great kernel and great thanks for implementing dt2wake.
BTW can I know how to disable single tap 2 wake and only use dt2wake. Thanks
Click to expand...
Click to collapse
enable doubletap2wake (knockon) and tap2wake will be disabled automatically
first enable tap2wake (echo 1 > /sys/class/misc/touchwake/enabled) and after enable knockon (echo 1 > /sys/class/misc/touchwake/knockon)
@ParanoidNote I'm using your kernel in the latest crDroid build, but I'm not sure how to use the dt2wake feature. How can I enable it?
andrewKode said:
@ParanoidNote I'm using your kernel in the latest crDroid build, but I'm not sure how to use the dt2wake feature. How can I enable it?
Click to expand...
Click to collapse
read the posts above
ParanoidNote said:
read the posts above
Click to expand...
Click to collapse
Sorry but I'm not blind. I did read the post above and tried that but it still doesn't work.
Trimis de pe al meu GT-N7100 folosind Tapatalk
andrewKode said:
Sorry but I'm not blind. I did read the post above and tried that but it still doesn't work.
Trimis de pe al meu GT-N7100 folosind Tapatalk
Click to expand...
Click to collapse
ok open a terminal, and type:
su
echo 1 > /sys/class/misc/touchwake/enabled
echo 1 > /sys/class/misc/touchwake/knockon
echo 60 > /sys/class/misc/touchwake/delay (delay after the screen goes off)(optional)
if this doesn't work try to reflash the kernel and repeat the procedure above
however i will post in the main thread a sample init for configure the kernel at boot (enable dt2wake, boeffla, zzmoove,...)
ParanoidNote said:
enable doubletap2wake (knockon) and tap2wake will be disabled automatically
first enable tap2wake (echo 1 > /sys/class/misc/touchwake/enabled) and after enable knockon (echo 1 > /sys/class/misc/touchwake/knockon)[/QUOTE
I followed your instructions but
It doesn't seem to work.
I can't able to disable tap 2 wake and only use d2wake.
Click to expand...
Click to collapse
Thank you very much for supporting this device

[Kernel][GPL][K-N][Falcon][UBER TC]ZER0 Byte Kernel[Nightlys][CM/AOSP]

READ ALL BEFORE ANYTHING!
ATTENTION
Code:
/*
I'm not (yet) a developer , I'm taking effort to put more choices of kernel for our great community.
This kernel is tweaked for best balance possible, if you want a feature quote me and i will see what i can do,
I will build this kernel when possible on my free time and because of it is a nightly and I will use this thread as a worklog too.
Thank you for using this kernel.
*/
Disclaimer
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Adapt, improve and evolve!​
Info:
Guys I created this kernel to Moto G 2013 (Falcon/Peregrine) and Moto G 2014 (Titan/Thea) in other words MSM8226 Motorola SoC baseds to learn, adapt some "unstable and unsafe" things as well to give a new life to my device, the plan is to support all Android versions avaliable for our device, I plan to do a better kernel with time and help of the comunity. This kernel is a nightly I will do it when I have a freetime or LineageOS update their sources or I add new features, it aims to be a rich feature kernel and a "perfection balance" between battery life and performance, this can be a UNSTABLE kernel, my routine will be build,upload and test, so stay tuned! I am open to suggestions. This is a kernel that don't work out-of-the-box the objetive of this kernel is give power to the user.
This kernel DO NOT WORK WITH STOCK MOTOROLA/GOOGLE PLAY EDITION ROM or IDCRISIS or AOSPARADOX.
On post 1:
#1 - Features and installation instructions
#2 - Downloads and kernel Source
#3 - Buglist and to do's
On post 2:
#1 - Changelog
​
Features (By now and latest one):
Based on 3.4.113 LTS Linux kernel and latest LOS/AOSP/CM/Motorola sources
Kexec hardboot patch (MultiROM support)
Governors: Interactive,Ondemand,Performance,Userspace,Conservative,Powersave
Hotplugs: AutoSMP and Alucard Hotplug
Overclocks and Underclocks (Attention this can be dangerous to your device! you have been warned!):
Overclocked CPU (up to 1.6Ghz),Overclocked GPU (up to 600Mhz) Overclocked RAM and Overclocked Slimbus for better audio
Intellithermal v2 to protect our device from heating
Sound: High performance Headset,Low latency playback Support,24 bits Playback Support,Enabled additional Moto G Exclusive Audio Channels TPA-a6165a2
Screen: DT2W and S2W/S2S, KCAL
GPU:Simple GPU Algorithm and AdrenoIdler
Misc: Init.d support, Fsync on/off, ARCH_Power, Gentle Fair Sleepers, Toggle for some wakelocks, Stereo Call Recording Support, Reclaim RAM from loggers, Powersuspend, State Notifier .
For full features list check my github.
Compiled with Arch Linux up-to-date and UBER Toolchain 4.9 and optimize flags[/COLOR]
Bootlogos
PREVIEWS ONLY CHECK DOWNLOADS SECTION FOR LINKS
Created by me and the others two by @Mattwmaster58:
Silver
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Blue
Red
Downloads
(Folder on AFH) (Please DO NOT MIRROR, if one is down just post in the thread or pm me and i will repair!):
Cyanogenmod/AOSP for Falcon:
CM14.1 (UNIFIED WITH CM13 BY NOW) - CM14.1
CM12.1 - CM12.1
CM11 - NOT YET
Cyanogenmod/AOSP for Peregrine:
CM14.1 (UNIFIED WITH CM13 BY NOW) - CM14.1
CM12.1 - CM12.1
CM11 - NOT YET
Cyanogenmod/AOSP for Titan/Thean (Same defconfig):
CM14.1 (UNIFIED WITH CM13 BY NOW) - CM14.1
CM12.1 - CM12.1
CM11 - NOT YET
NOTE:ALWAYS CHECK LAST PAGES TO SEE WHAT IS GOING ON!!!
LSpeed Profiles (OLD! LSpeed envolved too fast!) - Balance
Bootlogos: ZER0 Byte Bootlogo
Old releases of ZER0 and ZER0 Byte (Reborn) Kernel : AFH
Mirror: Github mirror and how to download
​
How to install
If you're on other kernel please at least DIRTY FLASH you ROM, thanks.
The kernel:
By recovery:
Using TWRP (Please use the latest one)
1. Put the zip at /sdcard > Reboot to recovery > Install > Chose the kernel zip > Confirm to flash > (optional) Wipe caches > Reboot.
or
By app:
2. Flash it using Flashify or similar app from Playstore.
The kernel scripts backup your current boot.img so if you want to restore just use Flashify or TWRP.
The Bootlogo:
Using TWRP (Please use the latest one)
1. Reboot to recovery > Install > Chose the bootlogo zip > Confirm to flash > Reboot and enjoy.
2. Flash it using Flashify or similar app from Playstore.
3. Extract the zip and on mfastboot (or just fastboot) enter this command: fastboot flash logo logo.bin
Recommendations/Tweaking
Gov Tuner a mod to tune govs based on profiles for better battery life, better performance, or a balance., I have added a lot of sound patchs but A.R.I.S.E. will blow your mind! so if you want a better sound on your Moto G I suggest you A.R.I.S.E the best one in my opinion or just Viper+Dolby. And the best of the best tweaks app LSpeed just download and select a profile from main screen and fell it! or tune it by yourself!
To tweak use Kernel Adiutor from Playstore (or XDA Link), the Kernel Adiutor-Mod (fork with more experimental features) at XDA or Synapse You will need this zip and download Synapse app from Playstore.
Info about tweaking kernel The best guide to it!
Better RAM management for FALCON/PEREGRINE/TITAN/THEA thanks to @Pupet_Master
-Download "Kernel Auditor" from the "Play Store" and open it
-Once inside, Swipe from left to right to show the side menu.
-Tap on "Low Memory Killer"
-Change to these custom settings:
Code:
Foreground Applications: 29mb
Visible applications: 61mb
Secondary Server: 157mb
Hidden Applications 227mb
Content Providers: 87mb
Empty Applications 191mb
-Swipe from left to right again and tap at the option "Virtual Memory"
-Change those settings from there:
Code:
dirty_ratio: 20
dirty_background_ratio: 5
dirty_expire_centisecs: 100
dirty_writeback_centisecs: 300
min_free_kbytes: 4096
oom_kill_allocating_task: 1
overcommit_ratio: 100
swappiness: 100
vsf_cache_pressure: 53
laptop_mode: 0
extra_free_kbytes: 24576
Z-RAM Disksize: 470mb
-Swipe from left to right again and tap at the "Profile" section
-Click at the "+" button and save the current settings on a new profile
-Holdon the new profile and choose the option "apply on boot"[/QUOTE]
This kernel does not ships with a default config, so here it is how to config (an example) a profile for battery/balance/performance:
Battery
Code:
On CPU
CPU Gov - Interactive
Max freq. - 1190Mhz or 1094Mhz
Multicore power save - Aggressive
Alucard Hotplug - ON
On GPU
GPU max freq. - 450Mhz or 320Mhz (if dont play use 320Mhz)
GPU Gov - simple_ondemand or msm_adreno_tz with tweaked adreno idler
On I/O Scheduler
Scheduler - ROW or SIO
-
Balance
Code:
On CPU
CPU Gov - Interactive
Max freq. - 1190Mhz
Multicore power save - Enabled
AutoSMP - ON
On GPU
GPU max freq. - 450Mhz
GPU Gov - msm-adreno-tz
On I/O Scheduler
Scheduler - ROW or ZEN
-
Performance
Code:
On CPU
CPU Gov - Interactive
Max freq. - 1593Mhz
Multicore power save - Disabled
AutoSMP - ON
On GPU
GPU max freq. - 600Mhz
GPU Gov - msm-adreno-tz
On I/O Scheduler
Scheduler - ZEN
Note about some features
Display types WORKING with DT2W/S2S/S2W:
mdss_dsi_mot_inx_720p_video_v0 (TITAN/THEA)
mdss_dsi_mot_cmi_720p_video_v2 (FALCON/PEREGRINE)
Display types NOT WORKING with DT2W/S2S/S2W:
mdss_dsi_mot_jdi_720p_video_v1 (TITAN/THEA)
mdss_dsi_mot_jdi_720p_video_v0 (TITAN/THEA)
mdss_dsi_mot_lgd_720p_video_v0 (FALCON/PEREGRINE)
If you don't have a working DT2W/S2S/S2W or don't like it you can disable it and/or use AcDisplay app or Anbient Display of your ROM instead.
To check which display type you have by going into terminal and type:
su
cat /proc/cmdline
Bugs
None by now, if you encounter one please make a post in this thread with steps to reproduce and if possible a LOGCAT and DMESG. A simple how to help me debug.
To do
Undervolt and Userspace Voltage Controller
OC of 1.8Ghz
More Hotplugs
More Govs
More I/O's (SIOplus,FIFO)
Added all features to all variants
Vibrator Intensity Control
Ram Underclock
Sched & Mutex Tweaks
Stock and GPE variants
WQ_POWER_EFFICIENT
LZO Compression image (Fast boot)
DOLBY_DAP dependency fix
Frandom
Filesystems support:
NTFS Support / EXT 2/3/4 support / F2FS (Most roms only support it at /data)
Optimized ARM RWSEM algorithm
Silence some logs
NEON in kernel mode
Misc Crypt tweaks
LMK tweaks and adaptive
More Security Patchs
Yankactive (Cause reboot at the moment),Yankdemand,Smartmax,Lionhert,Impulse,DanceDance,Bioshock
I/O's: ROW,NOOP,Deadline,CFQ,FIOPS,BFQ,SIO,VR,ZEN
All avaliable TCPs congestions on Android
How to git and build
Setting up and building
Basics of GIT
- How to build my kernel:
Code:
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=/path/to/toolchain/bin/arm-eabi-
make mrproper (cleans config files)
make clean (cleans already builded files)
make falcon_defconfig (or you device_defconfig)
make menuconfig (if you want to tweak the config)
make (I use this too -o2 -j4 CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_NO_ERROR_ON_MISMATCH=y)
How to cherry pick commits
Basically to cherry pick a commit you have to have it source and branch, this is a simple how to do it
First of all you need to set your upstream since it is a fork of CM/LOS or STOCK source:
Code:
git remote add upstream linkingithub.git
For example
Code:
git remote add upstream https://github.com/CyanogenMod/android_kernel_motorola_msm8226.git
so if you want to cherry pick a commit from me
Code:
git remote add bryanbytez mysourcelink.git
and after that you need to have my source locally but stay calm this wont mess you source
Code:
git fetch -all
To merge upstream changes (From CM/LOS or Motorola)
Code:
git merge upstream/cm-13.0
This will merge upstream cm branch cm-13.0 in your source code.
Misc help:
http://forum.xda-developers.com/showthread.php?t=2319018 (about boot.img, ramdisk and others)
https://stackoverflow.com/questions/2816715/branch-from-a-previous-commit-using-git (Unlike me you can just revert or create another branch based on the commit and not delete the whole source code )
https://stackoverflow.com/questions/4410091/github-import-upstream-branch-into-fork (Import a upstream branch on your fork)
And to revert a git: git revert sha1, example git revert eab5c8fef098548f0f00085196bbf40f41bf8ba1
​
Source/Credits
If you want to post this on your site or other forum it's okay just post a link to this thread too and the correct credits and if you can, pm me with link so i can see it too, thanks.
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The GPL permits use, share, study and modify.
But this does not mean you should not give the deserved credit to the previous author.
So if you use my source code under GPL you must share with GPL too and quote me in the credits.
CM/LOS/AOSP Based Source
Stock/GPE Based Source
Thanks to:
GOD
The Real Dev's:
Motorola/Lenovo
LineageOS/CyanogenMod/AOSP/CAF Teams
A special thank you to @Kamin4ri to be answering questions from a noob
@hurtsky @pinkflozd @zakee94 @TeamMex (not a team ) @RenderBroken @alin.p @Flashhhh @Shivam Kuchhal @RolanDroid @attack11 @DC07 @frap129 @-decipher- @bedalus @MetalPhoenix45 @srisurya95 @para94 @chijure @Aayushya @neonkat and @faux123 for inspiration and commits (i guess that everyone that i pick a single commit is here... since i don't know yet to pick commits (picking commits automatically add the credits) a big thanks to all !)
@kwoktopus, for the tutorial how to build
And you the user!
If I forget someone please contact me and I will add here! [/FONT]​
XDA:DevDB Information
[Kernel][GPL][K-N][Falcon][UBER TC]ZER0 Byte Kernel[Nightlys][CM/AOSP], Kernel for the Moto G
Contributors
BryanByteZ
Source Code: https://github.com/BryanByteZero/android_kernel_motorola_msm8226
Kernel Special Features: OC/UC/DT2W/S2W/S2S/Sound Patchs and a lot more, check it!
Version Information
Status: Nightly
Current Stable Version: R3
Stable Release Date: 2017-02-22
Current Beta Version: R4
Beta Release Date: 2017-04-29
Created 2016-08-01
Last Updated 2017-05-01
Changelogs for CM/LOS/AOSP K/L/M/N
Changelogs for CM/AOSP K/L/M/N:
For Falcon and Peregrine
19/11/2016
No more MPDecision and CM PowerHAL
DT2W and S2W/S2S
Optimization Flags
Overclock and Underclock
Alucard Hotplug
AutoSMP Hotplug
Faux Sound 3.5
KCAL v2
High performance and low latency audio headset
KEXEC Hardboot patch
04/02/2017
Up-to-date with LOS source and Linux (now it's 3.4.113 the LTS version)
Intelliplug, AutoSMP and Alucard Hotplugs
Intellithermal
MSM-Limiter (you will need KernelAdiutor-MOD to use this feature)
Toggles for some wakelocks
ARCH_power
Gentle fair sleepers
Stereo call recording support
Reclaim RAM from loggers
Dynamic management of dirty page writebacks, expire and cache pressure
Some GPU patchs
SIO,VR,ZEN and Tripndroid I/O's
Powersuspend, LCD notify and state notifier
Dynamic FSYNC
CPU, GPU and RAM overclock
Simple GPU algorithm and AdrenoIdler
Enhanced audio with Faux Sound and low latency drivers and high performance mode
KCAL
KEXEC Hardboot patch
DT2W/S2S/S2W
Make optimizations
Powered by UBER STOCK Toolchain 4
22/04/2017
LATEST SOURCES
CPU OC/UC
GPU OC/UC
CPU boost
KCAL
faux Sound
High perf headset mode
OC RAM and slimbus
Intellithermal
Simple GPU Algorithm and AdrenoIdler
State notifier and Powersuspend
Alucard and AutoSMP hotplugs
Stereo call recording
Custom I/O's
Stock GOVS
KEXEC Hardboot patch
wakelock blocks
Fsync on/off
Power efficient workqueue
29/4/2017
DT2W/S2S/S2W
Bugs:
None by now,if you encounter one please make a post in this thread with steps to reproduce and if possible a LOGCAT and DMESG.
Reserved
Reserved
thanks man trying !
ralp88 said:
thanks man trying !
Click to expand...
Click to collapse
Okay ! Awaiting for you feedback!
I thought @kwoktopus made the tutorial thread..? :silly::silly::silly:
kwoktopus said:
I thought @kwoktopus made the tutorial thread..? :silly::silly::silly:
Click to expand...
Click to collapse
LOL Sorry i will update
REALLY A BIG THANKS TO YOU BRO!
BryanByteZ said:
LOL Sorry i will update
REALLY A BIG THANKS TO YOU BRO!
Click to expand...
Click to collapse
You're welcome! Great to see people taking steps into development!
New kernel, woohoooo:good::good::victory::victory: thanks bro, i test on Dirty Unicorns
willizambrano01 said:
New kernel, woohoooo:good::good::victory::victory: thanks bro, i test on Dirty Unicorns
Click to expand...
Click to collapse
Nice! Awaiting for feedback!
BryanByteZ said:
Nice! Awaiting for feedback!
Click to expand...
Click to collapse
Great kernel! Smooth, fast and stable, autosmp hotplug please ... waiting of good experience battery
willizambrano01 said:
Great kernel! Smooth, fast and stable, autosmp hotplug please ... waiting of good experience battery
Click to expand...
Click to collapse
Thanks! Sure autosmp!
Just a headsup people based on commit of SLATE21&MOTOG i fixed the flicker issue of KK ROMs on Lollipop bootloaders.
I just need to repair WiFi (thanks to my script) and i will upload it soon.
So a bin thank you to @SLATE21&MOTOG.
Sorry double post. Slow net speed here.
lol great xD can you add dynamic fsync, zzmoove and Overclock/underclock.
Chofito said:
lol great xD can you add dynamic fsync, zzmoove and Overclock/underclock.
Click to expand...
Click to collapse
I will look it, currently i trying to fix wifi in cm11 version and kexec and some more govs on cm13 and possible add DT2W since my power button is not that good.
New build on! for cm13 just a minor script optimization.
For cm11
v0 - CM11
Stock CM11 kernel with lastest sources and patched to work WiFi,Bluetooth and NO [email protected]!
New kernel, lol :highfive:
Smooth and fast on Resurrection Remix
+1
Nice work, buddy.
willizambrano01 said:
Great kernel! Smooth, fast and stable, autosmp hotplug please ... waiting of good experience battery
Click to expand...
Click to collapse
Ohhhhh yeaaahhhh,.. simple use with wifi and without mobile data, automatic brightness, very good :good::good::good:

[KERNEL] [N5X] [7.1.1] [3.10.104] [UBER 6.3.1] Flash Kernel - v2.2 - December 25th

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introduction
Hello everyone, this is my kernel for the Nexus 6P ported on over to the Nexus 5X. I won't claim that you will get hours upon hours of battery life (even though optimization really is my focus here) but I will say I have added quite a few options for you guys and the optimization patches should improve your experience with this device. Hopefully you enjoy! Please read this entire post, most of your questions will be answered in here!
Features
Here are the major features of the kernel (feel free to explore Github)
Upstream Linux versions 3.10.74-3.10.104
Updated to the December security patch
Patches for some CVEs
Upstream patches from CAF and Linux
Support for overclocking to 2016 MHz on big and 1632 MHz on little (stock values by default)
Support for underclocking to 302MHz on big and little (stock values by default)
CPU governors: chill, conservative, despair, elementalx, impulse, intelliactive, interactive, ironactive, ondemand, performance, powersave, and zzmoove
Touchboost fully disabled
MSM_Hotplug v2.4
Backlight dimmer
KCAL color control
Adreno Boost
Adreno Idler
Wake gestures (sweep2wake, doubletap2wake, sweep2sleep, and camera launch gesture)
Faux Sound Control with high performance audio
Upstream zram commits (from 3.18)
UKSM support (disabled by default)
Upstream zswap commits (up to 4.7)
I/O schedulers: bfq, cfq, deadline, fiops, maple, noop, row, sioplus, and zen
Wakelock controls
TCP algorithms: bic, cubic, highspeed, htcp, hybia, illinois, lp, reno, scalable, vegas, veno, westwood (default)
Kexec patch for MultiROM support
F2FS support
Compiled with an Uber-based 6.3.1 toolchain located here
Makefile optimizations
Forced encryption and dm-verity disabled
Hides bootloader unlock from SafetyNet (can still fail through other means)
Built with AnyKernel2 thanks to @osm0sis
Downloads
7.1.1 (2.x): Main
7.0 (1.x): Main
Installation
If you are on stock:
If you are on the stock kernel: flash the kernel zip and reboot
If you are on a custom kernel: flash the stock boot image matching your build number, flash the kernel zip, and reboot
If you are on a custom ROM:
If you are on the kernel that came with your ROM: flash the kernel zip and reboot
If you are on a custom kernel: dirty flash your ROM zip, flash the kernel zip, and reboot
Upgrading from one Flash version to the other:
Just flash the kernel zip and reboot
Changelog
Nougat 7.1.1
Code:
[B]2.2[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=70246171]release post[/URL])
[LIST]
[*]Adaptive low memory killer (disabled by default)
[*]Process reclaim
[*]Other low memory killer improvements
[*]Binder improvements
[*]Improved Adreno Idler (thanks to [user=5051294]@frap129[/user])
[*]Improved Makefile flags (thanks to [user=5284595]@kwoktopus[/user])
[*][URL="https://lwn.net/Articles/621046/"]Lazytime[/URL] for EXT4 and F2FS
[*]Toolchain bumped to 6.3.1
[/LIST]
[B]2.1[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=70112916]release post[/URL])
[LIST]
[*]Upstream F2FS commits
[*]Upstream sdcardfs commits
[*]Upstream blu_active commits (thanks to [user=5996255]@jollaman999[/user])
[*]Remove ironactive (we already have all of the upstream CAF commits that make it special in interactive)
[*]Improvements to cpuidle
[*]Improvements to locking
[*]Double tap to wake now works when either halfscreen or fullscreen is selected in KA
[*]Improvements to Live Display (work with KCAL thanks to [user=4684315]@flar2[/user])
[*]Improvements to wakelocks (disable a few by default to improve battery)
[*]Attempt to fix 2% battery drop issue
[*]Security patches here and there
[/LIST]
[B]2.0[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=69964903]release post[/URL])
[LIST]
[*]Updated for the December security patch
[*]Merged some Pixel security patches
[*]Updated AnyKernel
[*]New toolchain (Uber 6.2.1 with some Linaro opts)
[/LIST]
[B]2.0-rc1[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=69859710]release post[/URL])
[LIST]
[*]Same as 1.5 but with DP source as a base
[/LIST]
Nougat 7.0/7.1
Code:
[B]1.5[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=69859703]release post[/URL])
[LIST]
[*]Fixes for sdcardfs on certain ROMs like CM 14.1
[*]Upstream patches from CAF and Linux
[*]Allow big cluster to be boosted without a task on it
[*]UKSM improvements
[*]Add exFAT driver
[*]Detect when kernel is flashed on an unsupported Android version
[*]Add support for FK Updater's performance profiles
[/LIST]
[B]1.4[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=69513015]release post[/URL])
[LIST]
[*]Chill governor updates (thanks to [user=5051294]@frap129[/user])
[*]Upstream CAF and Linux patches
[*]Fixed some compiler warnings (thanks to [user=4231562]@Yoinx[/user])
[/LIST]
[B]1.3[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=69264478]release post[/URL])
[LIST]
[*]Upstream Linux patches for vmstat and libgcc
[*]Backported MDSS and GPU patches from Marlin (thanks to [user=3292224]@franciscofranco[/user])
[*]Low memory killer improvements
[/LIST]
[B]1.2[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=69247027]release post[/URL])
[LIST]
[*]Linux version 3.10.104
[*]Move back to a constant tickrate of 300HZ
[*]Add a patch to hide bootloader unlock from SafetyNet
[/LIST]
[B]1.1[/B] ([URL=http://forum.xda-developers.com/showthread.php?p=69183236]release post[/URL])
[LIST]
[*]Add ironactive governor
[*]msm_hotplug
[*]Underclocking to 302 MHz
[/LIST]
[B]1.0[/B]
[LIST]
[*]Initial release
[*]List of features above
[*]Compiled with latest Linaro 6.2 from Uber repo
[/LIST]
Customization
Since the whole point of installing a custom kernel is to have more options available to you, here is some information regarding the tweaks available in the kernel.
Default settings: the phone will boot with the following settings (the ones I recommend sticking with if you are not into tweaking):
Governors: interactive on both clusters
Frequencies: 384-1440MHz on little and 633-1824MHz on big
Input boost: 1248MHz on little and 768MHz on big for 40ms
core_control on, msm_thermal off
Wake gestures and backlight dimmer disabled
Adreno Idler enabled
Sound controls set at 0
ZRAM enabled and UKSM disabled
zen at 128kb
Governor profiles: If you want to try and squeeze a little bit more battery life out of your phone or increase performance, you may consider exploring governor profiles. Below are some links to various posts containing links/descriptions of these profiles:
From @soniCron - HawkTail, GlassFish, and FairPark
From @Alcolawl - list of profiles
Virtual memory: I have implemented ZRAM and UKSM in the kernel and there are many ways to tweak these. I would only recommend messing with vm_swappiness but you can read about ZRAM tunables here and UKSM tunables here. To make the kernel use more or less ZRAM, type this in a terminal emulator (or change it in EX Kernel Manager under the Memory section):
Code:
echo # > /proc/sys/vm/swappiness
This number can be between 0 and 100. 0 will make the kernel swap to ZRAM only if there is an out of memory error, 100 will make the kernel swap to ZRAM as much as it can. I set it at 15 by default, I would set it to 1 if you don't want to use it as much as 1 will use the minimum amount possible (basically when the phone is super under load). Highest I would go is 60 (which is the stock/default value in the Linux kernel). Read more about swappiness here. Additionally, UKSM is disabled by default. You can either enable it with EXKM or echo 1 to the sys path /sys/kernel/mm/uksm/run
Frequently asked questions
1.1 Q: I am having an issue, can you help me?
1.1 A: I am not a superstar kernel developer but I will certainly try my best. First, start by reading the release posts, as I may make note of a particular issue. Also search the thread to see if I have discussed it before. If you see nothing, please provide me with a dmesg/last_kmsg and logcat, your ROM/kernel version, and a detailed description of the issue. With that, I'll do my best to assist you.
Code:
adb logcat -d > logcat.txt
adb shell dmesg > dmesg.txt
1.2 Q: Can you add xyz feature?
1.2 A: If you link me the commits or tell me what kernel you had the feature in, I can take a look at them. I will not go digging super hard for commits and I will ignore requests that don't include this information. I won't promise that I will merge every request but I will always take it into consideration.
1.3 Q: How do I control the kernel?
1.3 A: I'd recommend using either @flar2's EX Kernel Manager or @Yoinx's Kernel Adiutor-Mod; both are extremely solid and have given me no issues.
Thanks to:
@REV3NT3CH for showing me what a good developer and kernel looks like
The various developers for their patches (@ak, @Buckmarble, @flar2, @franciscofranco, @frap129, @imoseyon, @jollaman999, and @Yank555 to name a few)
@osm0sis for AnyKernel2
@mdalexca for helping me with some kernel compilation issues and the prebuilt toolchain I use
@kwoktopus for giving me good advice on Makefile flags and other patches
@malybru for my nifty new signature and thread banner!
All of you guys for viewing the thread
A note about donations
Quite a few people have asked to donate to me in the past and I have turned them down. I am not in this for the money, this is my hobby, something I truly enjoy. If you truly want to donate to something (it is not expected in the slightest), I recommend an entity like the Open Source Initiative, the Free Software Foundation, XDA, or any one of the people I have thanked in the OP. Additionally, you are free to copy any and all of my work; the only thing I request is that you not ask for donations as well (though I can't really enforce this lol). Thank you.
Kernel source links
7.0: https://github.com/nathanchance/bullhead
DISCLAIMER: I openly welcome off topic in my threads. Mods, please do not clean off topic discussion and users, do not complain about off topic discussion here. I may direct you to another thread if it is so suited but I won't have the discussion cleaned. Thank you.
XDA:DevDB Information
Flash Kernel, Kernel for the LG Nexus 5X
Contributors
The Flash
Source Code: https://github.com/nathanchance/bullhead
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: 2.2 - Nougat 7.1.1
Stable Release Date: 2016-12-25
Created 2016-10-15
Last Updated 2019-07-02
I wanted to dedicate this post to my devoted testers:
@SM210
@Mrcactuseater
@vampire36
@ulxerker
@Psychofrantics
@Char_G
Without them, this project would not have been possible as I do not own this device. On that note, I will need a testing group for future builds, as there will be no guarantee the builds works properly without in-depth testing. If you would like to participate, join my Hangouts group through this link.
Reserved
First
Are you THE FLASH ?? Barry it's you ???
Thank you so much gentleman for your work
It's good to see good devs contributing to our N5X.
So welcome
This is one awesome kernel! And I don't just say that!!! The audio is what amazes me on exterior speaker and all ways. Fast, smooth and snappy it is! My phone isn't even close to what it was like before!! Amazing work!!!! Thanks for bringing us your great kernel even know you don't have a Bullhead! Appreciate all you do bud! It was an honor to be one of the testers. Running like a dream!! :good:
Sent from my Nexus 5X using XDA Labs
SM210 said:
This is one awesome kernel! And I don't just say that!!! The audio is what amazes me on exterior speaker and all ways. Fast, smooth and snappy it is! My phone isn't even close to what it was like before!! Amazing work!!!! Thanks for bringing us your great kernel even know you don't have a Bullhead! Appreciate all you do bud! It was an honor to test. Running like a dream!! :good:
Click to expand...
Click to collapse
How many Kernels are you using at the same?
crian said:
How many Kernels are you using at the same?
Click to expand...
Click to collapse
Just this. And will be staying here.
Sent from my Nexus 5X using XDA Labs
Thanks a lot for this, really. I have been waiting for kernel like this! Everything works beyond expectations. ?
bootloop on Pure Nexus nougat.
keaheng said:
bootloop on Pure Nexus nougat.
Click to expand...
Click to collapse
Can you give some more info?
TW1ST3D1NS4N3 said:
Can you give some more info?
Click to expand...
Click to collapse
i reflashed the rom and then kernel, phone bootloop
and I boot into the recovery agian and flash this one http://forum.xda-developers.com/and...-fed-patcher-v8-forceencrypt-disable-t3234422
it's working now.
keaheng said:
i reflashed the rom and then kernel, phone bootloop
and I boot into the recovery agian and flash this one http://forum.xda-developers.com/and...-fed-patcher-v8-forceencrypt-disable-t3234422
it's working now.
Click to expand...
Click to collapse
Did you wipe anything at all?
For me everything runs well, I am on PN
Nougat, thank mod
Sent from my Nexus 5X using XDA-Developers mobile app
TW1ST3D1NS4N3 said:
Did you wipe anything at all?
Click to expand...
Click to collapse
No bro
keaheng said:
No bro
Click to expand...
Click to collapse
Try a clean flash then.
Namautoenx said:
For me everything runs well, I am on PN
Nougat, thank mod
Sent from my Nexus 5X using XDA-Developers mobile app
Click to expand...
Click to collapse
Same here, no loops, runs well. Thx dev !
Sent from my Pixel XL using XDA-Developers mobile app
I'm on PureNexus nougat too and it works fine. No bootloop.
@The Flash thanks for making this kernel :laugh:

Categories

Resources