[ZenFone 2 Android Development] TheSSJ:
Hi guys,

It was a cool journey with all the support I got from you, this community is really the best! Unfortunately this will be the last version I will release. See the changelog for more details!

Please note that I do my testing on a ZE551ML 4GB 2,3GHz. For ZE550ML look here (thanks to cieffe54)

Note: This kernel works ONLY on stock based versions!

​

I can only support, if you don't have any speed tweaks or similar flashed as I can not differ if the issues come from the kernel or from installed tweaks!​

Features:

Based on Zenfone 2.20.40 kernel source (completely from scratch)

Built with Hyper_linaro4.9 toolchain (all credits to @fraps123!!!)

STABLE: UC to 333MHz for all models

Power efficient work queues for fbcon and PHYDEV

Battery Life eXtender (BLX) (manipulate via init.d script 10BLX==>Downloads tab or Kernel adiutor==>Battery menu)

Touchboost input event handler (can be switched on and off via init.d, see Downloads-tab)

Greatly

improved memory management

Added the following CPU governors:

- Ondemand with hotplugging event handlers when screen is off

- Lionheart

- Bioshock

- ConservativeX

- Yankactive

- TheSSJactive (Yankactive with hotplugging)

Added IO schedulers:

- sio

- zen

- vr

- fifo

- sioplus (credits to @boype, fixed afterwards for zf2 by me) {DEFAULT}

- fiops

Added TCP congestion algorithms:

-BIC

-CUBIC

-WESTWOOD

-HSTCP

-HYBLA

-HTCP

-VEGAS

-VENO

-SCALABLE

-LP

-YEAH

-ILLINOIS

Tweaked GPU governor to scale up more quickly

Set minimum brightness to 2 instead of 15 percent (changeable by init.d script)

Set readahead of int./ext. sd card partitions to 512kB by default

Selinux permissive

init.d support (creates directory if it doesn't exist!)

exfat support (no fuse, all credits to @dorimanx, automounting of devices fixed by @sorg)

GPU clock

unlocked

(not overclocked) - runs between 200 and 533MHz

ZRAM implemented (see below for details)

Sweep2Sleep (all credits to Lord Boeffla)

frandom RNG

F2FS support

Deprecated: KVM support (only up to version 51)

Some words about the currently implemented features:

F2FS

all credits to @mb300sd81 for modifying the fstab accordingly: http://xdaforums.com/zenfone2/development/project-t-custom-kernel-zenfone-2-t3150822/post64366155

Battery Life eXtender BLX

Use the init.d script in the downloads section (10BLX) or see Kernel adiutor in the battery menu.

Sweep2Sleep and/or Touchboost

To activate simply check Kernel Adiutor for a new entry in the menu :)

Alternatively you can use an init.d script I have uploaded in the downloads section: 90S2S.txt/91touchboost.txt

KVM

Please note, that I stopped supporting KVM functionality from v52 onwards. If you want a tweaked kernel with KVM support, you can download v51.

You need to insmod all modules with an init.d script or manually (see download section for an according script). Please note that I won't add the feature set as @ycavan is doing, as I am lacking the knowledge and also I don't want to overbloat the kernel, even if KVM is triggered via insmodding modules. If you need special features which this kernel might be missing, feel free to request it/them, but I won't guarantee that it will be implemented at all

init.d

The way I implemented init.d is sweet, simple and won't be recognized by ANY third party app which implements init.d!

I use the my own script which is already located on the ramdisk of the boot partition and added just a few lines, which check if init.d already exists and creates it if not (and will execute the scripts in there otherwise of course). So please don't install any more init.d enabler as you will have every script executed twice then!

ZRAM

You need to activate ZRAM via init.d script (see download section) as it is turned off by default, to make it more universal for the ZF2 users with 4GB as they really don't need to compress data before storing it into RAM as for the 2GB users. Of course Kernel Adiutor also offers the possibility to turn on ZRAM.

Dev Roadmap:

Fix ROW scheduler

What's useful

What most likely won't be implemented (missing knowledge, no testing tools):

Undervolting

Sound tweak directly on chip side (no documentation found about our RT5647 sound chips :( ) - you will need to deal with Viper4Android

Caution:

Do everything at your own risk!​

How to install:

1st pre-requisite: Unlock your Bootloader

2nd pre-requisite: BACKUP!!!

Method 1:

BACKUP!!!

Download the zip from the DL link below and extract the img file

Place the img file on your internal SD

Flash it through TWRPs "Install zip" function, by clicking on "Images..." on bottom right and then selecting "Boot" as destination

Reboot and you're done!

Method 2:

BACKUP!!!

Download the image file and place it in the directory of your adb binary

adb push <nameofimg>.img /sdcard/
adb shell
su
cd sdcard
dd if=./<nameofimg>.img of=/dev/block/by-name/boot
reboot

Method 3:

BACKUP!!!

Download the image file and place it in the directory of your fastboot binary

Boot into Bootloader mode

Issue the following commands:

fastboot flash boot <nameofimg>.img
fastboot reboot

Method 4 (thanks to @taylor.fowler )

BACKUP!!!

Download the zip and flash it via TWRP

Attention: when reporting bugs, please provide a log or a way to reproduce the error.​

Download Link:

Gone

Credits:

@jrior001, @crpalmer, @Jamison904, @Tectas, @dorimanx, @Lord Boeflla
​

Special thanks to:

@Drew442

Amir J.

@aziz07
​

XDA:DevDB Information

[KERNEL][LINARO][UC][F2FS] Project T - Custom Kernel for ZenFone 2[THE END], Kernel for the Asus ZenFone 2

Contributors

TheSSJ

Source Code: https://github.com/TheSSJ/android_kernel_asus_moorefield

Kernel Special Features: CPU governors, read-ahead, init.d support, exfat, async fsync, BLX, OC, UC

Version Information

Status: Stable

Current Stable Version: Final

Created 2015-07-05

Last Updated 2015-12-29