Remove All Ads from XDA

 View Poll Results: What is your maximum stable(no reboots) CPU undervolting at 1GHz?

12.5 uV
11 Vote(s)
25.0 uV
14 Vote(s)
37.5 uV
14 Vote(s)
50.0 uV (this should be the 2nd most common)
17 Vote(s)
62.5 uV (this should be the most common)
29 Vote(s)
75.0 uV
5 Vote(s)
87.5 uV
4 Vote(s)
100.0 uV
3 Vote(s)

[KERNEL][AOSP] zwliew_Kernel - r1

771 posts
Thanks Meter: 2,807
Post Reply Email Thread
I'm not very good at OPs so let's cut to the chase. The general idea is performance, battery efficiency and stability.

zK Tweaker makes your life better:




@S.AMU for FTP server

XDA:DevDB Information
zwliew_Kernel, Kernel for the Samsung Galaxy Ace II

Source Code:

Kernel Special Features: Performance, Power Saving, Periodic updates

Version Information
Status: Stable
Current Stable Version: r1
Stable Release Date: 2014-07-06

Created 2014-04-20
Last Updated 2015-11-12
The Following 91 Users Say Thank You to zwliew For This Useful Post: [ View ] Gift zwliew Ad-Free
20th April 2014, 04:46 PM |#2  
zwliew's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 2,807
Recommended Settings
Recommended settings are built into kernel either by ramdisk or init.d script.

Enjoy optimised settings every build :]
The Following 20 Users Say Thank You to zwliew For This Useful Post: [ View ] Gift zwliew Ad-Free
20th April 2014, 04:46 PM |#3  
zwliew's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 2,807
Compatible ROMs
This is a list a compatible ROMs based on users' feedback. This kernel should be compatible with almost all Android 4.4 ROMs, but this is just to give a sense of assurance to users.

Android 4.4 Kitkat
TeamCanjica CyanogenMod 11.0
NovaFusion CyanogenMod 11.0
Ressurection Remix

Any more ROMs to add to the list? ;]
The Following 34 Users Say Thank You to zwliew For This Useful Post: [ View ] Gift zwliew Ad-Free
20th April 2014, 04:48 PM |#4  
zwliew's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 2,807
New changelogs can be found in the zK Tweaker app

Old Changelogs:


Latest commit: 4948f9435c4c47f768e3ed8c1b33612f33409d41

-- New --
Android 4.3+ TRIM support
Added UHID bluetooth support

-- Improvements --
Interactive governor performance improvements
A few more Linaro and Cortex-A9 optimisations and fixes
More responsive CPU frequency switching
Better and faster recovery backup
SELinux updates (we're going to use SELinux soon)
Updates in IPV4 and IPV6
Updated per-application data usage monitoring and tracking

-- Bug Fixes --
Removed BLN blinking until further testing
BLN without blinking works fine without wakelocks now
Fixes in IPV4 and IPV6
SELinux fixes (we're going to use SELinux soon)


Latest commit: 2b7e2903f151f971a237bf4e29ef6e687511b81a

Reverted more CPUFREQ steps commits


Latest commit: 63568d6d8eb2d447f922581792c7dd0eb130c6d2

Rebased everything from scratch
Built with Linaro GCC 4.9 2nd June
Interactive governor and ROW I/O scheduler (defaults)
Project Butter reimplemented
Much faster boot time
More CPU frequencies


Latest commit: b12f7372e0aa4a8a91414c9336866889369d9213

Built with Linaro GCC 4.9
Optimise vfs_cache_pressure and decrease vfs_cache_pressure to 10 on suspend
Reboots should really be fixed now (Revert cocafe's recent LiveOPP commits)
Upstream back to Linux 3.0.101 (Full with Linux 3.0.45)
Re-add and optimise Dynamic FSync
Re-add interactive governor suspend hotplugging
Add Frandom
Backport lowmemorykiller from android-3.4 + CAF
KSM battery saving improvements during idle


Latest commit: a82a4429fd0c6399a7b369de0d4dc485a1c6b7e2

Add FSTRIM support
Update exFAT driver to v1.2.5 + optimisations
Probably fix BLN problems
Probably fix reboots
Revert back to 3.0.31
Increase suspend vfs cache pressure to 50


Latest commit: 01dec50981d60dcb191e0e7bf82cafebe692b088

Add more cpufreq steps (cocafe)
Set default vfs cache pressure to 100 for less stuttering
Upstream to Linux 3.0.101 (no BT bugs)
Disabled hotplugging driver for now (only going to use it for tests until it is fine)


Latest commit: 5c02dcc5fd245b5a7c5d62d3ae13c0878b9a04f1

fs: dynamic management of vfs cache pressure -> better battery life
u8500_hotplug: new algorithm -> almost 100% performance with some hotplugging when not using/suspend
bluetooth_mgmt: upstream to linux 3.0.101


Latest commit: 7e5e277ee220c6bdf9abbea0a526a8e8dd8e157d
Vast improvements in performance both in hotplugging driver and interactive governor :]


Latest commit: 6bac98f4c321b30a6cfea2967d560f1756d8f47d
Compiled with NovaTP GCC 4.9
Various fixes and hotplugging improvements in hotplug driver
Fix bug whereby minimum CPU frequency will be stuck at 200 MHz


Add a very simple CPU load-based hotplugging driver (test)
Re-enabled logger but reduced RAM needed by logger
Reduced WIFI wakelocks
Compiled with Linaro GCC 4.8
Enabled BLN wakelock functionality but disable it by default
(to enable: echo 1 > /sys/class/misc/backlightnotification/wakelock)


More optimisations
Using Google GCC 4.8 in the meantime


enable dynamic page writeback (forgot in previous release)
using arch dependent cpu power functions
interactive: faster wake up from suspend
build with linaro gcc 4.8 and various optimisations


bln: allow configuration of both blink on and off delays
dt2w: decrease press timeout to 250ms
sched: disable gentle fair sleepers
mm: dynamic management of dirty page writebacks -> better performance + battery life
mutex: dynamically disable mutex spinning at high load -> better battery life


interactive: patches to reduce delay and smoothen freq changing
interactive: screen off hotplugging should happen faster now
fsync: replace dynamic fsync with asynchronous fsync
bcmdhd: probably fix a wakelock when using a dynamic ip
backlight: reduce min brightness to 1
fs: asynchronous io latency improvements

20140511 v2

ondemand: backport from android-3.4 branch
dt2w: allow tuning of touch timeout
backlight: lower minimum brightness to 2 (testing)
interactive: more tweaking
bln: configuration of blink delay


interactive: tone down touchboost
lowmemorykiller: revert to lk 3.0 for zram optimised code
slub & fat: update from lk 3.0.101
drivers: updates from cocore (charger, mali, etc.)

[beta] doubletap2wake: added a simple implementation of dt2w and sysfs (needs testing)


interactive: changes to try to reduce time on max freq
interactive: add early suspend hotplugging support


abbamp: add back old fix commit
interactive: fix touchboost and performance improvements


allow bln blinking + customisation of blinking --> novathor settings update for customisation coming soon
interactive: tweaking
interactive: new touchboost
rcu: using jrcu now
block: remove bfq (stuttering)
slim kernel size down a little


sioplus: update from boy peterson
abb-fg: fix laziness on low capacity
abbamp: abbamp 2.5.0
bfq: update to v7r3
ext4: performance improvement
interactive: performance improvement
wifi: revert a commit that probably caused more wakelocks
kernel/timer: optimise apply_slack() for size and speed
binfmt_elf.c: use get_random_int() to fix entropy depleting


Reverted Interactive to stock from android-3.4 branch + commits from CAF (going to redo this)
Changed to LZ4 instead of LZO (faster decompression, albeit a little larger file size)
Faster compression/decompression
Faster boot-up
Update cubic to LK 3.0.101
random entropy tweaks
Reduce wifi wakelocks in suspend
Re-added Interactive touchboost and tuned Interactive
Some misc patches


Improvements to touchboost in Interactive
Performance and battery tweaks in Interactive
Set sched_mc to 0 for better performance (especially in hotplug governors)
fs improvements


Re-enable performance governor
Remove intelliactive governor
Add Interactive touchboost and screen-off hotplugging
Interactive updates from CAF(more sysfs entries and code improvements)
ARM decompressor code optimization
LZO Upstream Update
Updates from previous release
mm performance improvement
TCP throughput improvement


Remove zzMoove and Lagfree governors
General I/O speed improvements
Made ROW default scheduler
ROW updates and improvements
Deadline scheduler latency and read speed improvement
Remove sio scheduler


Actually enable zzMoove governor
Tweak Intelliactive for more performance
Add screen-off hotplugging for Intelliactive (better battery)
Disabled useless governors (Performance, Powersave, Userspace)


Enable governors and schedulers added previously
Added Intelliactive (default)


Backport android-3.4 interactive governor
Add lagfree and zzMove governors
Add row and bfq schedulers
Some readahead patches to improve IO
Compiler -O3 and other optimizations


Cortex-A9 compiler optimizations
Better power management for CPU scheduling
KSM performance improvements
Square root function performance improvements


Based off TeamCanjica CM kernel
Built with Linaro GCC 4.7.4
Enable and set Interactive CPU governor as default

The Following 25 Users Say Thank You to zwliew For This Useful Post: [ View ] Gift zwliew Ad-Free
20th April 2014, 05:19 PM |#5  
Thanks Meter: 16
Testing now, seems smooth, thanks
20th April 2014, 05:28 PM |#6  
Senior Member
Thanks Meter: 46
Can i use this kernel with cm 10.1 or 10.2?
20th April 2014, 05:36 PM |#7  
DEMONVoz's Avatar
Senior Member
Thanks Meter: 77
Can you add more governors and i/o schedulers?
Originally Posted by manthes

Can i use this kernel with cm 10.1 or 10.2?

The Following User Says Thank You to DEMONVoz For This Useful Post: [ View ] Gift DEMONVoz Ad-Free
20th April 2014, 05:59 PM |#8  
str3tch72's Avatar
Senior Member
Flag Lubartów
Thanks Meter: 773
So will it work on Mahdi? It is based on CM11 by TC.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
20th April 2014, 06:06 PM |#9  
hmzh's Avatar
Senior Member
Flag damascus
Thanks Meter: 34
great kernel can you do a kernel for stock rom
The Following 3 Users Say Thank You to hmzh For This Useful Post: [ View ] Gift hmzh Ad-Free
20th April 2014, 11:41 PM |#10  
zwliew's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 2,807
You can use this kernel with Cm 10.2, not sure about cm 10.1 though.

Sent from my GT-I8160 using Tapatalk
The Following 4 Users Say Thank You to zwliew For This Useful Post: [ View ] Gift zwliew Ad-Free
20th April 2014, 11:42 PM |#11  
zwliew's Avatar
OP Senior Member
Flag Singapore
Thanks Meter: 2,807
Originally Posted by DEMONVoz

Can you add more governors and i/o schedulers?


Yes, but I'm not a fan of adding a multitude of governors and I/O schedulers.

Sent from my GT-I8160 using Tapatalk
The Following User Says Thank You to zwliew For This Useful Post: [ View ] Gift zwliew Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes