p1-common: overlay: update output light sensor LUX values

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Iac0f1ecc58dfd0e3e6c79ea1fd51689d2ae9908f
p1-common: init: fix missed permissions

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Idd4f865b9f31a2dc0609237c118f6105db62b2c1
p1-common: init: update lowmemorykiller parameters

just getting better for low-memory devices properly

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I36991b2d3073031008c24061ac0e7bbd513427c9
p1-common: ueventd: fix input permissions

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Id24b10a73b309739a3f1a06d286bcbbd94ce0b89
p1-common: ueventd: fix usb accessory and mtp permissions

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ifb3864d3bf3e96390b762d64e0d62888b07f6d3e
p1-common: ueventd: fix power hal permissions

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ifbb6138a6b379914ccb816dbd6724e1a2a8847c9
Merge "p1-common: ueventd: fix usb accessory and mtp permissions" into android-4.4
Merge "p1-common: ueventd: fix input permissions" into android-4.4
Merge "p1-common: init: update lowmemorykiller parameters" into android-4.4
Merge "p1-common: init: fix missed permissions" into android-4.4
Merge "p1-common: overlay: update output light sensor LUX values" into android-4.4
p1-common: memory: enable ksm as default option

Change-Id: I6c2f72e08207e9efcf6ac407f2454bc69d432c2e
p1-common: init: add ksm params

Change-Id: Id442fdb7a9707304428cd1f47e5b3438691dee87
Merge "p1-common: init: add ksm params" into android-4.4
p1-common: enable FRandom

Depends on: https://gerrit.omnirom.org/#/c/3556/ (merged)

Change-Id: I75ebcc7641c70e3911e321acb9dd55906cd964c9
p1-common: disable JIT

System-wide JIT memory usage is dependent on the number of applications running
and the code footprint of those applications. The JIT establishes a maximum
translated code cache size and touches the pages within it as needed.
JIT costs somewhere between 3M and 6M across a typical running system.

http://source.android.com/devices/low-ram.html

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Id1efa0768a0443a986e770739b6e67eb0709d518
p1-common: memory: read only 1 page at a time

By default, the Linux kernel swaps in 8 pages of memory at a time.
When using ZRAM, the incremental cost of reading 1 page at a time is
negligible and may help in case the device is under extreme memory pressure.

http://source.android.com/devices/low-ram.html

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ie63edfaaed4a0e4841c749fd772b4a2cf5669fac
Revert "p1-common: init: add ksm params"

This reverts commit 73216313944b333bc109ebae2022d3aaf4471b68.

Conflicts:
	rootdir/init.p1-common.rc

Change-Id: I36263ae5cf3110d54566f7e8aad45ceb2e4be023
Revert "p1-common: memory: enable ksm as default option"

This reverts commit 7ccfc8500a8dc793671f5cf964d0ad1a25ff1f54.

Conflicts:
	device_base.mk

Change-Id: Ifb25f24cf5d2ad00ccb6e6409d65c85b0f7ae847
p1-common: add button led brightness control to liblight

button led brightness have 3 levels

1. (0.5mA)
2. (1.0mA)
3. (2.0mA)

lcd lib light have 255 as max value

so, 255 / 3 = 85

changed light value  => changed button brightness value

from   0 to  84 => 1 (0.5mA)
from  85 to 169 => 2 (1.0mA)
from 170 to 255 => 3 (2.0mA)

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I2ea0f46cfef3cc4d5474255060c785b604c600f5