Remove "Four-sample Crespo hack" from LightSensor
* No evidence seen of bad samples on sensor startup with SGS4G
* Revisit if aggressive power control of light sensor done in kernel

Change-Id: Id384660cc3184dc4660c6e9b5ca1c1078ec8af1c
Revert table-based lookup of lux (light level) from ADC counts
* Light level didn't change within a band of ADC levels implied events not sent
* Even called once a second, the cost of doing the exponential shouldn't be high
* This version not calibrated -- formula is "not quite right" re: Ev vs. lux
* Can be optimized -- should use e^(a*ADC + b), not powf and the divides

Change-Id: I9614b1fcbc7bbfd0ec943b59b1df524e10d64d6c
Better calibration factor for LightSensor

Seems to agree with LunaPro within 1/3-stop in most cases.

Change-Id: Ib0ed96f5dc65c5542aa6c46623c78bbad9f47ae1
Change the auto-brightness bands to better work with LightSensor returning values in lux (as it is supposed to do).

These may be a bit low for some users' tastes, but can be changed in the System Settings, at least under CM9.

Change-Id: I132474edbd7398e3b5669885d8bba43e7f924270

Conflicts:
	overlay/frameworks/base/core/res/res/values/config.xml
Changes to config_autoBrightness arrays matching "new" light sensor output levels

Change-Id: I95a08ec26365e12235e1845aa09cb54b7dd1017a
Use cleaner exp() over powf() and a bunch of divides to compute lux from ADC counts for LightSensor

Change-Id: I3f7df342ca4e4127790b90c4f5ed46bcddbd7652
    Add another step in the auto-brightness light levels.
    It was just too dim in morning overcast conditions.
    * 1750 lux now shifts to 180 from 128 (previously straight to 255 at 5000 lux)
    * Resisted based on battery concerns, but makes a big usability difference

Change-Id: I452e9386ddd89c53f449dd4233c6c8dec352e320
Missed increasing size of the keyboard backlight array, causing custom backlight values not to save and generate a "sanity check" log message.

Change-Id: I2c02588ede9b4dde6651872dfd2d6946949e7500

Conflicts:
	overlay/frameworks/base/core/res/res/values/config.xml
We shouldn't be wiping /efs until we verify that the backup is good

Signed-off-by: Fernando Barillas <fbis251@gmail.com>
Add SGH-T959W to TARGET_OTA_ASSERT_DEVICE
Add beginning TWRP support to updater.sh

Fix a possible reboot loop by removing the cwm/twrp script files

Signed-off-by: Fernando Barillas <fbis251@gmail.com>

Conflicts:
	updater.sh

Change-Id: If3d2caa809ad65f12f9d3d0ea0bbfa900a351bdd
A better solution for BML flash

Change-Id: I9e55a09119990f9c1aeeba63218cd00a3a07bc50
Signed-off-by: Fernando Barillas <fbis251@gmail.com>

Conflicts:
	galaxys4gmtd.mk
Fix makefile derp in galaxys4gmtd.mk

:= should have been +=
Update kernel and wifi module to with all changes from teamacid/android_kernel_galaxys4gmtd@3170091ebf00458cf9b3aaa98ef1db8c27440699

Signed-off-by: Max Fierke <max@maxfierke.com>