[Nexus 6 Android Development] nathanchance:
​

Introduction

Hello everyone, this is my kernel for the Nexus 6, based on my kernel for the Nexus 6P. I aim to add enough features to matter while keeping it lean and stable. 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.41-3.10.104

Updated to the December security patch

Patches for some CVEs

Upstream patches from CAF

Support for overclocking to 2880 MHz (stock values by default)

CPU governors: barry_allen, blu_active, chill, conservative, darkness, elementalx, impulse, interactive (default), nightmare, ondemand, performance, smartmax, userspace, zzmoove

Hotplugs: blu_plug, mako_hotplug, msm_sleeper, zen_decision (default - mpdecision is disabled)

High brightness mode and backlight dimmer

KCAL color control

Adreno Idler

Wake gestures (sweep2wake, doubletap2wake, sweep2sleep, and camera launch gesture)

Voltage control

Franco sound control and high performance audio

Adaptive low memory killer

UKSM (disabled by default)

I/O schedulers: bfq, cfq, deadline, fiops, maple, noop, sioplus (default), tripndroid, and zen

USB fast charging

Wakelock controls

BCL disabled

TCP algorithms: bic, cubic, highspeed, htcp, hybia, illinois, lp, reno, scalable, vegas, veno, westwood (default)

Kexec patch for MultiROM support

Full F2FS support

Compiled with an Uber-based 6.3.1 toolchain located here

Forced encryption and dm-verity disabled

Built with AnyKernel2 thanks to [MENTION=4544860]osm0sis[/MENTION]

Downloads

7.0/7.1/7.1.1 (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.0

[B]1.8[/B] ([URL=http://xdaforums.com/showthread.php?p=70246281]release post[/URL])
[LIST]
[*]Toolchain bumped to 6.3.1
[/LIST]
[B]1.7[/B] ([URL=http://xdaforums.com/showthread.php?p=70112925]release post[/URL])
[LIST]
[*]December security update
[*]Upstream F2FS commits
[*]Improvements to cpuidle
[*]Double tap to wake now works when either halfscreen or fullscreen is selected in KA
[*]Fix tethering on 7.1.1 ROMs
[*]Add Live Display (work with KCAL thanks to [MENTION=4684315]flar2[/MENTION])
[/LIST]
[B]1.6[/B] ([URL=http://xdaforums.com/showthread.php?p=69873175]release post[/URL])
[LIST]
[*]Revert an interactive governor patch that was introducing lag
[/LIST]
[B]1.5[/B] ([URL=http://xdaforums.com/showthread.php?p=69859780]release post[/URL])
[LIST]
[*]Fixes for sdcardfs on certain ROMs like CM 14.1
[*]Upstream patches from CAF and Linux
[*]Interactive governor improvements
[*]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://xdaforums.com/showthread.php?p=69526781]release post[/URL])
[LIST]
[*]November security update
[*]Chill governor updates (thanks to [MENTION=5051294]frap129[/MENTION])
[*]Fixed Mako Hotplug (thanks to [MENTION=4231562]Yoinx[/MENTION])
[*]Updated BCL commits (thanks to [MENTION=3292224]franciscofranco[/MENTION])
[*]Fixed some compiler warnings (thanks to [MENTION=4231562]Yoinx[/MENTION])
[/LIST]
[B]1.3[/B] ([URL=http://xdaforums.com/showthread.php?p=69264556]release post[/URL])
[LIST]
[*]Upstream Linux patches for vmstat and libgcc
[*]Backported MDSS and GPU patches from Marlin (thanks to [MENTION=3292224]franciscofranco[/MENTION])
[*]Low memory killer improvements
[*]Removed cmdline patch from 1.2
[/LIST]
[B]1.2[/B] ([URL=http://xdaforums.com/showthread.php?p=69247056]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://xdaforums.com/showthread.php?p=69183164]release post[/URL])
[LIST]
[*]Add smartmax governor
[*]Add full F2FS support
[*]Add Motorola quick wakeup driver
[*]Fix simple_ondemand GPU governor
[*]Add [URL="http://kerneldedup.org/en/projects/uksm/introduction/"]UKSM[/URL] (disabled by default)
[*]Set default I/O scheduler to zen and readahead to 128kb
[*]Start kernel at stock frequencies
[/LIST]
[B]1.0[/B]
[LIST]
[*]Initial release
[*]List of features above
[/LIST]

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.

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 [MENTION=4684315]flar2[/MENTION]'s EX Kernel Manager or [MENTION=4231562]Yoinx[/MENTION]'s Kernel Adiutor-Mod; both are extremely solid and have given me no issues.

1.4 Q: I am having Wi-Fi disconnects on a 5GHz network, what's up?

1.4 A: Try increasing the wakelock divider on the following sys paths in a terminal emulator (can also be done in EXKM in the Miscellaneous section):

echo 8 > /sys/module/bcmdhd/parameters/wlrx_divide
echo 8 > /sys/module/bcmdhd/parameters/wlctrl_divide

Thank you to [MENTION=2967322]Buckmarble[/MENTION] for pointing this out!

Thanks to:

[MENTION=5037435]REV3NT3CH[/MENTION] for showing me what a good developer and kernel looks like

The various developers for their patches ([MENTION=3685904]ak[/MENTION], [MENTION=2967322]Buckmarble[/MENTION], [MENTION=4684315]flar2[/MENTION], [MENTION=3292224]franciscofranco[/MENTION], [MENTION=5051294]frap129[/MENTION], [MENTION=3357040]imoseyon[/MENTION], and [MENTION=2033478]Yank555[/MENTION] to name a few)

[MENTION=4544860]osm0sis[/MENTION] for AnyKernel2

[MENTION=5169465]DespairFactor[/MENTION] for helping me with some kernel compilation issues and the Linaro source of the toolchains I use

[MENTION=3306843]kantjer[/MENTION] for pointing me to Linaro in the first place and being a beta tester along the way!

[MENTION=329570]malybru[/MENTION] 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, 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/shamu

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 Nexus 6

Contributors

The Flash

Source Code: https://github.com/nathanchance/shamu

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: 1.8 - Nougat 7.0/7.1

Stable Release Date: 2016-12-25

Created 2016-10-11

Last Updated 2019-07-02