G2: Fix BCM4335 chip crashes caused by BT/WiFI concurrency

 * The stock B+ driver works around chip crash that occurs when WiFi is
   on and BT is enabled/disabled by sending a magic patch to the
   hardware.
 * This patch was not in an external file, so some reverse engineering
   was required to extract it and put it in the correct format.
 * Enable the prepatch and enjoy crash-free Bluetooth :)

Change-Id: I1ec8ec345c459ce97cc389d270b025ef61363018

Signed-off-by: Jackpot Clavin <jonclavin@gmail.com>
init: Start rmt_storage in charger mode

This is required to prevent mdm watchdog bites

Change-Id: I0479bf550075d2158cc37f02f897732de693f47e
Merge branch 'CM-Staging' into cm-11.0-4.4.2Kernel
Make wpa_supplicant oneshot.

Should fix tethering.

framework/base 0685af39ebaa5f1666007f86b5941037363116b6 broke it initially.

Change-Id: Ida0c54459debe412114bc2ce3d45833f7607866b
Merge branch 'CM-Staging' into cm-11.0-4.4.2Kernel
Add coordinates for smartwindow cover

Change-Id: I6a86c32a5fa8c2a780ebd57218f0084db4bc40f2
Add proximity wake flag

Use frameworks opt-in functionality.

Depends on http://review.cyanogenmod.org/#/c/69169/

Change-Id: Ib078b65252bd5ca4da3d71d8d73f66ba7e8bf333
Merge branch 'CM-Staging' into cm-11.0-4.4.2Kernel
g2: set volume last to avoid pops on speaker

this fixes the occasional pops on my d802...

Change-Id: I275c7e4ac02d1f388978c543a281f066c42a9e68
ril: Remove redundant check in message interception

This isn't necessary anymore, the request can be fetched directly

Change-Id: Id5d632136476e43f17bbd65c9157ddc318b8ce9b
Revert "g2: set volume last to avoid pops on speaker"

This reverts commit 93e897cde47389abbfe885c5d9e17ff55709b75b.
Merge branch 'CM-Staging' into cm-11.0-4.4.2Kernel
VS98024A -> VS98026A.

Change-Id: Ifa0089490639758a06876b21c042aae535d695df
Re-add this as we have to go with VS98012B files.

Change-Id: I1acff1d4067c66ee1832a7ae643e665a29cce8b6