[Zenfone 5 General] tank0412:
Disclaimer: I am not responsible for your broken phone , broken memory card, etc. All my kernels I test first on my own phones , and then upload here

If you like my works please do not forget donate to me(PayPal account you may find in my profile)

Very often people not read full description(then write me to email "device not start, help me" even in the middle of the night) therefore write here with giant words:

UNLOCKED BOOTLOADER REQUIRED OTHERWISE DEVICE CAN'T START WITH CUSTOM KERNEL (YOU GET USB LOGO PICTURE OR TO YOU THROW INTO RECOVERY OR BOOTLOADER)

I never add fake overclock and overclock, because for now(or forever) no method for real overclock and underclock

Random reboots for most users probably fixed in 16.04.2016 and higher

For max stability I recommend to use Interactive governor

Kernel features:

1) USB Mass Storage Support

2)

3) DT2W support (to activate it, you should install Zenmotion)

4) KVM support (Kernel Virtual machine for Intel)

5) Added support of init.d. scripts

6) Added support of exFAT file system for external sd card.

7) ZRAM is disabled for old versions, on version of December 6 and higher- ENABLED.

8) Added CD emulating feature

9) Added SWAP support(need create swap partition on sdcard)

10)

12) Add more governors and I/O schedulers

13) USB-HID mouse & keyboard function(required USB Keyboard app from GPhttps://play.google.com/store/apps/details?id=remote.hid.keyboard.client&hl=en)

14) Support joysticks (DragonRise, Inc ang others)

15) Add more TCP IPv4 congestion algorithms (May change via TricksterMod or Kernel Auditor apps)

16) Reduce min display backlight for autobrightness. For use min backlight level you should to use autobrightness and set it to the left

Deprecated features:

1. Overclock to 2000 Mhz (for A501CG only) and Overclock to 2400 Mhz (for A500CG only). Idea and work by [MENTION=2388665]TheSSJ[/MENTION] (it have been removed since 26.12.2015)

2. Based on Asus Zenfone 2 ZE551ML 2.20.40.44(more than 50%) + Asus Zenfone 6 3.24.40 sources

3. Underclock to 667 Mhz. Idea and work by [MENTION=2388665]TheSSJ[/MENTION]

4.Hotplug for all governors

5. Frandom Linux kernel generator

Note: This kernel will work on stock Lollipop firmware only like 3.24.40.87, 3.24.40.78 or 3.23.40.60 or 3.23.40.52

This kernel was created by BORETS24 So if you need more information you can pm to him.

How to flash this kernel:​

Method 1(via PC)​

Step 0:

Bootloader unlock is required for every custom rom. You can use this tool for unlock:

https://drive.google.com/file/d/0B-Fin8UxrD6PRU9MM1lQZkV0SG8/view

Step 1:

You should download files for flashing:

ADB v1.0.32: Download from Google Drive

Step2:

You should reboot your phone in the droidboot mode. (turn off you gadget then press Turn off button and volume + button)

Then go to the ADB folder and hold Shift + Right Mouse button and write this command:

fastboot flash boot new_bootXX.XX.img

,where XX.XX- numbers after words "new_boot"

Step3:

Reboot to Android.

Method 2(through CWM/TWRP, without PC)​

1. Download Flashable ZIP archive on phone

2. Go to recovery mode

3. Click Install ZIP and choose this archive

4. Then reboot

Archieves You make take from this post http://xdaforums.com/showpost.php?p=64640638&postcount=364(Thanks to [MENTION=5046402]Don No 1[/MENTION])

How to install Zenmotion:​

(it needed for DT2W)​

1) Download this file (asus.hardware.touchgesture.double_tap.xml) :

https://drive.google.com/file/d/0B-Fin8UxrD6PWWRBT1gwak16Tnc/view?usp=sharing

2) Put this file into system/etc/permissions

Set file permissions. It is a 0644 rw- r-- r--

3) Reboot the phone

4) Find Zenmotion in the Settings and activate it.

(It will work if you flash this kernel)

Changelog:

25.10.2016

I not remember that I removed, let's start that I changed and added

USB Mass Storage mode

Removed few unstable governors

I started to compile with use Zenfone 2 source code for Marshmallow

Existed governors from 6.0.1 source

Removed lz4- caused bugs, drain battery, very slow interface

Added bootboost feature into ramdisk such as Zenfone 2

Now drain battery less and interface speed is high

12.06.2016

Reduce min display backlight brightness to 5(no need to set to 2, no difference between 5 and 2- I checked).For use min backlight level you should to use autobrightness and set it to the left

ZRAM now turn on automatically only for 1 Gb RAM devices, for 2 Gb it disabled by default

Return to "1 core per modules" CPU mode

Return Interactive Pro and Intel governors

Remove InteractiveX and Hotplug governors(sometime caused problems)

Replace WI-FI from module into kernel

03.06.2016

Full NTFS support for SD card

NTFS OTG full support by sibling Asus File Manager(read/write), from others file managers you can to see OTG NTFS devices, may see OTG NTFS devices from file chooser but you can't edit data. But you can edit platform.xml via NextAPP SDfix and can write on NTFS OTG devices with any apps

14.05.2016

Full ExFAT SDcard support such as stock kernel(Now you can see ExFAT sdcard in file chooser, can modified data even without Next APP SDfix)

Remove UKSM and disable KSM

16.04.2016

Fixed: restore signal after long dissapear

Fixed: random reboots in phone calls

Standart processor mode "2 cpus per module"

Remove Intel, Lagfree governors and FIFO scheduler(caused reboots)

Compile with standart GCC 4.9, remove -O3 optimization(unuseless, placebo effect)

Add idle from Linux 4.6

17.03.2016

LZ4 kernel compress

LZ4 zram compress/decompress

Remove Hotplug(caused reboots, overheats) driver and return Hotplug governor

Speed-up interface

More less battery drain

Compile with SaberMod 4.9.3

Others optimizations

05.03.2016

Added again hotplug driver but modified, cores not jumping, not dancing, strongly CPU0+CPU1 always online

Approximately 90% sibling source 3.24.40

Hybrid ramdisk from 87+60 firmware

Some changes in dt2w code

Fixed CD emulation

14.02.2016

Based on Asus Zenfone 2 ZE551ML 2.20.40(more than 50%) + Asus Zenfone 6 3.24.40 sources, remove hotplug driver, return Hotplug governor

06.02.2016

Hotpluging for all governors via MSM hotplug driver(I set 2 cores always online by default, you may tuning this driver via Kernel Auditor, point CPU Hotplug), possible fix the impossibility of restoring the network signal after a long stay outside the network, remove Hotplug governor(is no longer needed)

31.01.2016

Add Hotplug governor and set it by default, without load on CPU 1,2 or 3 cores will go to offline https://www.youtube.com/watch?v=WBbCBahSgrM&feature=youtu.be

30.01.2016

Remove hotplugging from Interactive governor again, add InteractiveX V2 governor with adaptation for Quad core devices( 1 phisical core= 2 threads CPU go to offline, when screen off)

27.01.2016

Interactive governor from Asus ZenPad S 8.0 with adding hotplugging(2 threads=1 core go to offline, when screen off), underclock to 533 MHz, many code and drivers from source Asus Zenfone 2 ZE500CL, Ofast optimization

19.01.2016

Add and turn on Ultra kernel samepage merging(UKSM) technology a place of KSM, underclock to 450 MHz, may be fixed all random reboots besides during long phone calls, when dt2w is on(or fix? I don't know)

16.01.2016

Use new source code 3.24.40

Tweak Interactive governor: hispeed_freq and touchboost_freq down to 1333 Mhz

09.01.2016

May be, fix all random reboots

04.01.2016

Fixed freezes and reboots on third-party governors, when connection speed faster than 20 Mbit/s, return hotplugging to Interactive governor, return Intel and Yankactive governors, some bug fixes

02.01/2016

Compile without Ofast optimization, removed Hotplugging from Interactive governor, removed Yankactive governor, may be, this actions fix random reboots.

31.12.2015

Compile without Ofast optimization, processor works now in '1 core per modules' mode, now disable 3 core(3 threads), when screen off, on Interactive governors, try at random fix reboots on all version of devices

28.12.2015

Try to fix reboots on 1 Gb RAM modifications(return stock process drivers)

28.12.2015

a)Change toolchan from stock GCC to SaberMod 4.8.5

b) Add Hotpluging to Interactive governor, when screen off

c) Add F2FS support

d) Fix some warnings during compilations

25.12.2015

Attempt to fix screen freeze or reboots during long phone calls: change process.c driver on modifity driver from Zenfone 2. Read about it here https://github.com/kirananto/ZENFONE2/commit/044ad3da5263ba256a59b517e96a272b4e3f19f6, Fix almost all warnings in proximiry/lightsensor driver "ISO C90 forbids mixed declarations and code" during compiling, remove "fake" overclock

23.12.2015

Fix freeze and reboots of device, when chaging governors and/or schedulers, add more TCP IPv4 congestion algorithms and set Westwood by defauls in place of stock Cubic

Add some joysticks support, now may use device as keyboard and mouse for PC, move KVM from kernel to modules

15.12.2015

Underclock to 316 MHz, add Adaptive, Yankactive(with Hotplugging implementation by [MENTION=2388665]TheSSJ[/MENTION]] ) and conservativeX governors

12.12.2015

Add if.bin into kernel, to attempt fix screen freezing, push also if.bin to system/etc/firmware and reboot phone.

if.bin

11.12.2015

1. Add frandom Linux kernel generator

2. Add Bioshock, Lagfree, lionheart, Wheatley governors

3. Add BFQ, SIO, SIOplus, FIFO, FIOPS, VR I/O schedulers

06.12.15

Add ZRam support

10.11.15

1. Add SWAP support

2. Kernel build with Ofast optimization.

Now I will upload new versions on Yandex Disk

https://yadi.sk/d/tBN8eYlVr3mVZ

XDA:DevDB Information

Custom Lollipop kernel for Zenfone 5 & Zenfone 6 by BORETS24(Intel only), Kernel for all devices (see above for details)

Contributors

tank0412, BORETS24

Source Code: https://github.com/BORETS24/Kernel-fo-Zenfone-6-by-BORETS24

Kernel Special Features:

Version Information

Status: Stable

Current Beta Version: 1.0

Created 2015-11-02

Last Updated 2016-10-25