[Galaxy S Plus I9001 Android Development] educk:
Hey everyone!

Long time no see :D

I hope this update will make up for the quietness from the last weeks.

Here we go:

Changelog:

[B]v6.0 [16.10.2013][/B]
*Switch to 3.4.66
*New ADC Team Style Bootsplash
*Built with Linaro GCC 4.8.2 from Christopher83
*SELinux Support
*Update zRAM to latest upstream version
*Added and enabled zRAM for Android (credits to Faux123)
*LZ4 Compression for zRAM (credits Faxu123)
*zram: add Crypto API support
*Enabled Memory Compaction
*msm: display: Prevent fb suspend in charging mode for ancora only (credits to Christopher83)
* binder: use freezable blocking calls (credits to Colin Cross)
* epoll: use freezable blocking call (credits to Colin Cross)
* select: use freezable blocking call (credits to Colin Cross)
* af_unix: use freezable blocking calls in read (credits to Colin Cross)
* usb: gadget: mass_storage: added sysfs entry for cdrom to LUNs (credits to FrozenCow)
* Resolved problems of magnetic, proximity and orientation sensor (credits to CastagnaIT)
[URL=" http://xdaforums.com/showthread.php?p=45400844"] (Check this post for details on sensor calibration)[/URL]

*Revert "block: Add URGENT request notification support to CFQ scheduler" (credits to Tatyana Brokhman)
* mm: remove compressed copy from zram in-memory (credits to Minchan Kim)
* lib/lzo: Rename lzo1x_decompress.c to lzo1x_decompress_safe.c (credits to Markus F.X.J. Oberhumer)
* lib/lzo: Update LZO compression to current upstream version (credits to Markus F.X.J. Oberhumer)
* lib/lzo: huge LZO decompression speedup on ARM by using unaligned access (credits to Markus F.X.J. Oberhumer)
* ARM: 7668/1: fix memset-related crashes caused by recent GCC (4.7.2) optimizations (credits to Ivan Djelic)
* ARM: 7670/1: fix the memset fix (credits to Nicolas Pitre)
* msm: vidc: return error in case of init failure (credits to Pushkaraj Patil)
* fs/sync: Make sync() satisfy many requests with one invocation (credits to Paul E. McKenney)
* ARM: add SCHED_HRTICK config option (credits to Russell King)
* HACK: ARM: disable sleeping while atomic warning in do_signal (credits to Colin Cross)
* alarmtimer: Use hrtimer per-alarm instead of per-base (credits to John Stultz)
* freezer: define try_to_freeze_nowarn if CONFIG_FREEZER=n (credits to Ben Jones)
* lockdep: remove task argument from debug_check_no_locks_held (credits to Colin Cross)
* freezer: shorten freezer sleep time using exponential backoff (credits to Arve Hjønnevåg)
* freezer: skip waking up tasks with PF_FREEZER_SKIP set (credits to Colin Cross)
* futex: use freezable blocking call (credits to Colin Cross)
* nanosleep: use freezable blocking call (credits to Colin Cross)
* sigtimedwait: use freezable blocking call (credits to Colin Cross)
* freezer: add unsafe versions of freezable helpers for NFS (credits to Colin Cross)
* freezer: add unsafe versions of freezable helpers for CIFS (credits to Colin Cross)
* lockdep: check that no locks held at freeze time (credits to Mandeep Singh Baines)
* freezer: convert freezable helpers to freezer_do_not_count() (credits to Colin Cross)
* freezer: convert freezable helpers to static inline where possible (credits to Colin Cross)
*freezer: add new freezable helpers using freezer_do_not_count() (credits to Colin Cross)
*msm: display: Prevent fb suspend in charging mode for all (credits to Arco68

Info on zRAM

Quote from Wiki: "zRAM increases performance by avoiding paging on disk and instead uses a compressed block device in RAM in which paging takes place until it is necessary to use the swap space on the hard disk drive. Since using RAM is faster than using disks, zram allows Linux to make more use of RAM when swapping/paging is required, especially on older computers with less RAM installed"

In other words, it's like increasing the RAM memory by disk swapping.

This procedure is ideal for low memory devices, such as the S Plus.

How to activate zRAM

By executing these commands in Terminal Emulator or ADB Shell:

su
echo 104857600 > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

To check if zRAM is active:

free

To deactivate zRAM:

swapoff /dev/block/zram0

Note: In the above example, 100MB was used as zRAM swap.

The values are lost after a reboot, I'll provide an init.d script later.

V6.0 only works on 4.3.1 ROM's with new libsensors by CastagnaIT.

CM10.1 (4.2.2) version will be delayed due to additional testing period.

Enjoy!