galaxys2-common: Omni bringup

Includes:
galaxys2-common: TWRP-ify

Device resolutions are not here since n7000 is the odd one out

Change-Id: I41a48aa4fb6d758100ad355338712ce39cbf6ea2
common: Disable SELinux and GL preload
common: Remove bluetooth LE config for now
init: Update wpa_supplicant service parameters

Change-Id: I98ff95fb4617c9f45382ecaabdcb833cd604d144
Merge "init: Update wpa_supplicant service parameters" into android-4.4
common: Move preload GL to the right prop

Change-Id: I65be0e41354ebd8878bc7713a94144be7b5d76b9
galaxys2-common: Update storage configuration for 4.4

See: http://source.android.com/devices/tech/storage/config-example.html

Credits to Steven Luo (steven676), Andrew Jiang (jiangyi), and
Hernan Castañon Álvarez for this.

Change-Id: I30644e476d971f694bf6a9a37f9b180d3b951c13
config: Remove outdated flag

Instead of doing a fugly hack, just add the keylayout file where it
belongs. Boom, works properly.

Change-Id: I434df8b1828d42b68c27b8ff256cacd709c70844
galaxys2-common: Treat all screenshots as going to a CPU consumer

This fixes the speckles seen in certain situations such as
the screen-off animation.

Originally done on smdk4412-common

Change-Id: If1bafa1000a6217110fc4ed7f4b2c0a1133d5778
 Fix reading/writing errors with storages

Change-Id: I4229a4a68ba9813eb7a1fe794d402ff76127725f
Renamed Gallery2 to Camera2 and updated camera overlays

Change-Id: I7988dc1e7771cc84acc0f01d2331f2b5608f1459
[media_codecs] google vpx decoder 4.4 compatible

Change-Id: I26632fcbbdd0c320e332d85c6e5e12201cbd416f
Make SELinux policies more 4.4 compatible

Change-Id: I8494f924f1d979fe88eae60ffc118cf34a90184c
Set SElinux permissive

Change-Id: I2d180043a7894277c5b29749221f394b459bf2b4
Delete SElinux permissive from BoardConfigCommon.mk

Due to some error I will set up SElinux permissive on kernel defconfig.

SElinux set permissive with that commit on kernel.

For N7000: https://gerrit.omnirom.org/#/c/2865/

For I9100: https://gerrit.omnirom.org/#/c/2866/

Change-Id: I9b57c2e694e18da5124adf85eebab8cb7a284e85
Enable Bluetooth LE

It enables Bluetooth LE for Galaxy Note and s2.

Change-Id: I7afe3782b12fee3a3b79a0a7a51c1477e8b0d763
galaxys2: fix whitespace in the makefile

Change-Id: Id0df274879bdae9008e3f9f1aa909e73a9d3ddc7
Disable Bluetooth LE

Change-Id: I3e60e69a424e317ec2389611f66b426c44da9dae
[libhealthd] Proper battery paths

* 4.4 introduces a new daemon, healthd, that handles battery status
    - resides in: /system/core/healthd
    - BatteryMonitor.cpp iterates through all the *directories* under
      /sys/class/power_supply looking for a file called 'type'
    - if the type == Battery, it assumes this is the location for the
      battery stats for the device. Only the first directory that matches
      this criteria is used.
    - on msm8660/d2/jf/s2 kernels, this search results in:
      /sys/class/power_supply/fuelgauge.
    - To determine capacity, healthd looks at the contents of the
      'capacity' file under this discovered base path. This results
      in /sys/class/power_supply/fuelgauge/capacity on msm8660/d2/jf/s2
      kernels.
    - Unfortunately, this is the wrong path. The capacity file at this
      location returns a large negative number.
    - Other paths like status, voltage_now, and present are also
      incorrectly determined.
  * For comparison, in 4.3 battery statistics gathering was handled by
    frameworks/base/services/jni/com_android_server_BatteryService.cpp
    - BatteryService does a similar search for a file called 'type' with
      the contents of 'Battery'
    - But the search logic is different here: it takes the *last* path that
      matches the criteria.
    - This results in the correct /sys/class/power_supply/battery
  * This patch overrides the discovery mechanism for battery status completely.

Change-Id: I4579c92bba5596eef4dac67b8c0687be50a1d2f5
galaxys2-common: Disable Screenrecord Chord

Screen recording doesn't work on these devices - likely due to
missing stuff in hwcomposer (one of a number of reasons Miracast fails)

Disable it until it can be fixed

Change-Id: I08abac861ed617970deb09d12f7eba692b7586a6