[Shield Android TV Android Development] rootfan:
The latest kernel, R1.8, is for Shield experience 9.1. Supported Shield TVs include all 2015 and 2017 models. The 2019 models are not supported. Enjoy the kernel and leave any feedback that you may have :)

Install Instructions:

- Download and extract Kernel_R1_8.zip

- Flash Kernel_R1_8.img in fastboot using fastboot flash boot Kernel_R1_8.img

- You could also fastboot boot the kernel before flashing it to make sure everything is working correctly

- Once your shield has booted up again install the latest magisk app if you haven't already

- Open the magisk app and update / reboot if necessary

- I've seen the shield fail to boot when rebooting right after updating Magisk. If this happens, just unplug your shield tv and plug it back in and everything should work fine

- Install Shield_Tools_V1_4.apk and tune the kernel to your liking. By default, all settings are stock

- If you need exfat / ntfs support, then install the attached Vold9_0 Magisk module

Kernel R1.8 Features:

- Based on the kernel sources for shield experience 9.1

- 2.22 Ghz CPU overclock

- 1.23 GHz GPU overclock

- 1866 Mhz RAM Overclock

- Fully customizable fan settings

- The touchpad on the 2015 controller (blake) is enabled and works correctly

- The blake touchpad cursor speed is adjustable

- One of the the top triggers on the blake controller can be selected to act like a mouse button. This can be used along with the touchpad to scroll fairly conveniently

- The kernel version has been updated from 4.9.141 to 4.9.324 using the upstream android 4.9-q branch. Some changes have also been integrated from Linux for tegra

- Compiled with the latest aosp prebuilt clang, clang-r445002 version 14.0.2

- Compiled with -O3 speed optimizations and link time optimization (LTO)

- CFI is enabled for additional security

Note: The cpu throttles to around 2.0Ghz at 66C. Keep this in mind when setting fan speeds if you're trying to maximize performance. Also, regardless of what you set, the fan will always turn off when the temperature falls below the lowest value. I'll probably change this in a future shield tools release.

Old Changelogs:

R1.1:

Prerooted with magisk

Selinux is permissive by default

R1.2:

GPU Overclock up to 1.23 GHz

Boot frequencies are default and must be adjusted manually (using my app) to overclock

Ondemand and interactive governors added. Interactive is default

(debug feature) Serial console over ttyUSB0

First release of shield tools, an app to help tune this kernel. Shield Tools does not work with earlier releases

R1.3

First release for pie

Fully customizable fan settings

Shield tools updated to V1.1 with fan controls and changes needed for pie

Vendor and system verity are disabled

System as root is removed to support Magisk.

R1.3.1

Use kernel modules again to fix some bugs such as USB issues.

R1.4 / Shield Tools 1.2.1

Kernel updated from 4.9.140 to 4.9.162

1866 MHz RAM Overclock (Improves graphics performance significantly)

Power throttling added by Nvidia in the pie release has been removed

RAM control added to Shield Tools

Shield Tools saves settings and applies them on boot now

Shield Tools 1.2.1 fixes fan settings for 2017 shields.

R1.5 / Shield Tools 1.3

Kernel updated with Nvidia's latest rel-32-r7 sources

Many more selectable RAM frequencies

RAM voltage is slightly increased at frequencies above 1725 MHz

New installation method that doesn't modify the system or vendor partitions

Standby frequency reset issue fixed (actually fixed in Shield Tools 1.2.2)

Kernel version is 4.9.140 again, but the sdcard bootloop issue is gone

R1.6 / Shield Tools 1.4

First release for android 11

Kernel version updated from 4.9.141 to 4.9.309

Touchpad on blake controller is enabled by default and a problem with the cursor jumping on initial touch has been fixed

Blake touchpad speed can be adjusted

Either the top right or top left trigger on the blake controller can be selected to act like a mouse button. This makes scrolling using the touchpad fairly convenient

When setting fan speed values the same speed can now be repeated

The speed and temperature dialogs now automatically scroll together

Fan hysteresis is now set when changing temperatures to fix potential problems with the fan speed not decreasing properly

All security features are left enabled. I'll disable them if there's actually a need for it

Magisk's root directory overlay feature is used to load kernel modules

R1.7

Changes from the 9.0.2 release have been merged

Kernel version updated to 4.9.311

Werrors preventing compilation with clang 14 have been fixed

Several CFI failures have been fixed allowing enforcing CFI to be used (at least on 2015 shields)

Clang is now used to compile the kernel with LTO and CFI enabled

Debug tracing has been disabled to save some memory

In previous releases the voltage was too low on some shield tvs to reach a 2.22 GHz CPU overclock. This has been fixed.

Changelog for the latest release R1.8:

Changes from the 9.1 release have been merged

Kernel version updated to 4.9.324

CFI failure in the realtek ethernet driver that caused the 2017 shield to bootloop should be fixed

Big thanks to Magisk.

Standard Disclaimer: You're responsible for what you do to your devices, so don't blame anyone else if something goes wrong.

Kernel Sources: https://github.com/rootfan/