g2: bring in aosp sepolicy

g2 doesn't boot because apps can't access the graphics device

Bug: 9877470
g2: kitkat 4.4 bringup
Add USE_SET_METADATA tag (temp fix until new recovery)
On some of the older devices the recovery doesn't support
metadata when setting permissions.  This allows to use
set_perm vs set_metadata you will need to set
USE_SET_METADATA := false inside your boardconfig.mk
original author: flintman
g2: add NEEDS_VECTORIMPL_SYMBOLS needed for the cam.
Fixes camera after Dhackers core merge.
g2: recovery: HACK: Disable secure discard

 * Secure discard is causing wipes to take insane amounts of time.
 * Enable this workaround until the problem is sorted.

credits: Koush
g2: move gsm & cdma permissions over to common
g2: bringin overlays common for all variants & add n5 hh default wallpaper
g2: disable carrier settings overlay
g2: remove logwrapper for irsc_util
Bug: 11116723
g2: update TCP buffer sizes
Updated ReadMax and WriteMax TCP buffer sizes for HSPA data.
Bug: 10587546
g2: add ECC database
Bug: 10154455
g2: Update 1x signal strength after 2 sec
Update 1x signal strength after 2s (snapshot_timer)
when the UE initiate a voice call.

Bug : 10958351
g2: TARGET_PROVIDES_LIBLIGHT
g2: Read value of network mode from NV
In case of 1xCSFB, when LTE is disabled, modem sends GSM/WCDMA/CDMA
except LTE. And then, device does not recovery LTE mode during 12
minutes. To fix it, this patch reads value of network mode from NV.

Bug: 10788525
g2: request modem to send PLMN name always
1) reverts the property change to prefer SPN over PLMN name
2) requests modem to send PLMN name always
g2: Add noresample sysprop
Disable touch resampling on g2 devices. This eliminates 5ms
of latency we introduce in order to minimize resampling error. On g2,
because it uses an in-cell solution, resampling isn't as important
and thus we can disable it altogether.
g2: bring in bdAddrLoader..read bluetooth address using bdAddrLoader
Add bluetooth address loader to support some arguments:
-f : file path to be read (default, /persist/bluetooth/.bdaddr)
-h : data type to be read is hex
-s : data type to be read is ascii
-x : if it is set, bd address is printed through standard output
g2: bdAddrLoader: Don't call property_get with too small buffer

It's an error to call property_get with too small of a buffer.
Pass a large enough buffer, and do checks to make sure the returned
value isn't too big.
g2: add g2 hardware tunables frameworks
g2: volume rocker wake