[Galaxy Ace II Android Development] hafidzduddin:
Hello everybody, here is my first Custom Kernel for Galaxy Ace 2.

Features

TWRP Recovery

22 Governor

5 I/O Scheduler

Init.d Script Supported

Custom Bootanimation

CIFS Supported

zRAM Supported

SWAP Supported

NTFS Supported

Mali Tweak

Readahead Limit

LZMA Compression

Use SLQB Memory Allocator

Use JRCU

Fsync Controler

LMK Tweak

Governor:

wheatley, lazy, intellindemand, sakuractive, scary, interactive, smartassV2,
ondemandx, conservative, ondemand, userspace, powersave, pegasusq, lionheart,
performance, interactivex, hotplug, brazilianwax, minmax, lagfree, savagezen,
and smartass

I/O Scheduler

noop, deadline, cfq, vr, and sio

Init.d Script:

*requirement : busybox

*recommended : lastest busybox

Custom Bootanimation:

* Put the bootanimation.zip in /system/media with right permissions.

* If there isn't any custom bootanimation, kernel will load Samsung official bootanimation.

CIFS support

i put cifs.ko in "/lib/modules/2.6.35.7/fs/cifs"

not be loaded by default for power saving

zRam:

* zRAM must be enabled by script/command.

* put this script in init.d

#!/system/bin/sh
# enable zRAM script

# zRAM Swap Disk Size: 64MB(64*1024*1024)
disksize=67108864;

# Set Size to system
echo $disksize > /sys/block/zram0/disksize;

# Enable Swap (Need BusyBox installed)
busybox mkswap /dev/block/zram0;
busybox swapon /dev/block/zram0;

SWAP:

*SWAP must use with a SWAP partition in sdcard.

mkswap /dev/block/mmcblk1p2
swapon /dev/block/mmcblk1p2

NTFS:

* Need a binary file "ntfs-3g". download here

* I put it in the flashable zip already.

Mali Tweak:

* Increased L2 cache max reads ( 28k -> 48k )

* Increased OS memory for buffer. ( 6m -> 10m )

* Decreased Job runtime (5000)

* Increased Mali Mem (32M@128M -> 64M@128M)

Readahead Limit

Limit default readahead size for small devices.
disk size readahead size
1M 8k
4M 16k
16M 32k
64M 64k
256M 128k
1G 256k
4G 512k
16G 1024k
64G 2048k
256G 4096k

Fsync Controler

Enable/disable single file/filesystem sync.

/sys/class/misc/fsynccontrol/fsync_enabled

enable = 1, disable = 0 (default enabled)

example init.d script :

#!/system/bin/sh
echo "0" > /sys/class/misc/fsynccontrol/fsync_enabled

Disabling single file/filesystem sync increases the risk of a data loss on a crash/freeze and potentially can lead to other side-effects.

Download

EX Kernel v1.7

eX-Kernel_v1.7 Download And Changelog

EX Kernel v1.2

eX-Kernel_v1.2 enable fsync

eX-Kernel_v1.2 disable fsync

EX Kernel v1

eX_Kernel_v1.tar.md5

if you need Odin Flasher : Odin3-v3.04.zip

but i recommend to use dd cmd (dd if=/sdcard/kernel.bin.md5 of=/dev/block/mmcblk0p15)

Changelog :

[LIST]

[B]EX Kernel v1.2[/B]
[*]upgrade TWRP to 2.3.1.1
[*]remove cifs modules
[*]add bfq and anticipatory iosched
[*]remove some governor and add "skywalker, abyssplug, lulzactive, gallimaufry, gallimaufryx, aggressive, and aggressivex"
[*]remove fsync control
[*]add some tweak
[*]bootanim fix (need test)

[B]EX Kernel v1[/B]
[*]inital release
[/LIST]

BUG :

[LIST]
[*]need test[/LIST]

Thanks :

Thanks to everyone who helped and support me :):)

Special Thanks:

diego-ch

cocafe

adipat

oschmidt

amarullz

Older Kernel :

http://d-h.st/users/hafidzduddin/

Source : https://github.com/hafidzduddin/GT-I8160_HD-Kernel

Sorry i just update flashable zip :)

If there are any issues, please report. :)

and if you like my work, Press THANKS Button Please. :)