DO NOT MERGE: g2: changes for major kernel update

goes together with kernel update from LG sources.
switch over to using caf sources, change to new
PM sysfs in the initscript, and other stuff to get
the kernel to boot.

changes:
 ps4 : add dependency on display-caf-new and use it
 ps6 : configs based on stock, appease new thermal blob
 ps7 : update init script, add sound effects config
 ps8 : adapt to new drivers, cleanup, use media-caf-new
 ps9 : fix liblights
 ps10: fix incall audio, update some build props
 ps11: fix media, video
 ps13: cleanups
 ps17: rebase and fix conflicts

Change-Id: I72f07a021987072d4929fea81eb6cc4da22437dc
Updates for CM12

Change-Id: Ib1045b39c5bc88d5081372e6803cfa784e6795d1

Conflicts:
	BoardConfigCommon.mk
	g2.mk
	overlay/frameworks/base/core/res/res/values/config.xml
Remove NFC_HAL_SUFFIX

The new default works now

Change-Id: I07b65e5034d5f246fd39f92fd097b8fcb12c7f3c

Conflicts:
	BoardConfigCommon.mk
camera: Move the focus state set

Doing this on preview isn't enough. Solve the race condition by
cancelling ongoing focus messages if a new one is requested

Change-Id: I0c2268d44f18056fea0263c0a420c67eac106db6
Use the 32bit mmap mask in bionic

Change-Id: I8ce7d9d4e0c5df5ce9a9644c5118ea8383165719
Remove old crud

This hasn't been used in over a year

Change-Id: I8aba92f5c195c3e48753e6e17642e9743257516d

Conflicts:
	configs/snd_soc_msm_Taiko
Revert "msm8974: Enable deep buffer output as primary"

This reverts commit 64f7962e778c40da51197cbb4360ebb328411efa.

Change-Id: Ifb682b98c3124883c55f7860762c4721e1c8a560

Conflicts:
	BoardConfigCommon.mk
	configs/audio_policy.conf
Update audio_policy

USB is now dynamic, AAC got expanded

Change-Id: Id88e81ffa2d68578210a803b95d57294b0734606

Conflicts:
	configs/audio_policy.conf
gps: Fork the GPS HAL

For this device's loc_api_v02, we need a version older than the
one at hw/qcom

Change-Id: I855c626faa5fc7de72e57e56aac5ea3b61cfe042

Conflicts:
	g2.mk
selinux: Redo policies, inherit qcom common rules

Change-Id: I139b78974912aa80c949203a47b329e93efbd9b7

Conflicts:
	BoardConfigCommon.mk
Underp charger service

Add the -c arg to healthd :/
... and trigger fs mounting. We need /system for rmt_storage

Change-Id: I339dce5d5a6ab5ae14fe74680cdd862a1d659192

Conflicts:
	init.g2.rc
selinux: Fix a couple of denials

Change-Id: Ib034dad1640819bc90a400127d6ff234f559d266
Reenable CM features

These are back in place, re-enable them

Change-Id: I91289fa0a3a8d47a66ea7f1f2b39bc6ec2eb1be1

Conflicts:
	overlay/frameworks/base/core/res/res/values/config.xml
selinux: Add missing file

derp...

Change-Id: Ide539688125d4ea3f3a5241aee092f572b004542
Update media_codecs

Change-Id: I2999f79a69197a1f897ab59f642ce284dccddcdb

Conflicts:
	configs/media_codecs.xml
media: Enable ffmpeg decoders

Change-Id: I30eb149a1be00eb312986f7c205a648e788ae0c0
audio: Remove resampler config item

This breaks the current floating-point mixer code

Change-Id: I54ade9b3a7967f3ddf50b618792c8f621a647d90

Conflicts:
	g2.mk
Enable user creation and multi-user UI

Change-Id: I461c844013e09113ac53f9dc4bef1215e03fde6b
selinux: Fix access to the vibrator amplification sysfs

Settings needs access for the VibratorHW class

Change-Id: If4f893474fb11c9b34f016b9b107972f77740ad8
selinux: Cleanup verbose rules with binder macro

Change-Id: I17342bdcf05c407a61c13eec62e1498b35db34ce