s4-common: remap capacitive keys in CWM

Back = Back (unchanged)
Home = Down
App Switch = Select

Change-Id: I708b352eeed87e826dd7af0958356e09e1283b44
s4-common: Move custom recovery font to device trees

Change-Id: I52b036ba728c4a4c39e1621db76c681ee3c6fee4
s4-common: set the bootloader msg offset

HTC offsets the bootloader message to 0x800 (2048) in /misc. This
prevents overwriting other stored variables in misc, such as the most
recently installed stock OS version.

Change-Id: I8499c9a3786820d105cc79968f010e16466124b3
s4-common: Enable separate VOIP use cases

Change-Id: I065437a231eca581be28093b32e0c6bfd12296bd
s4-common: Fix permissions on CPU parameter nodes

Change-Id: I9b4775ff1e279c769ba7696191dd708cb71787b7
s4-common: Use hw_get_module_by_class for camera wrapper

Change-Id: I20c123333f70ade2606a80a8f6d7145e3406e6d7
perf.profiles: cores online when setting

If cores are not online when setting freqs or governors, the
settings will not work because the files in /sys/... do not
exit when offline.

Change-Id: I6273bcc8f648d7694de86a4c1857d0b6715eb668
s4-common: Restrict square preview resolutions from VGA front camera

* The VGA front camera found in fireball and ville appears to be
  incapable of actually using a square preview resolution. Restrict it.
* Addresses failures in certain apps such as Snapchat.
* Resolves INSTALLER-89

Change-Id: I5f65942cdbebc66c3f0d43095e10f3b451bae9b3
s4-common: update wcnss config from mint 9.2.A.0.295

Change-Id: Idce33c90da49e372574604aed04fceffdb2d0e99
s4: increase ramdisk_offset

Change-Id: I3e7c856c2e8804f273abc859794d46ca2530d967
s4-common: add WiFi Direct support

* Add permissions: android.hardware.wifi.direct.xml
* Disable p2p in wpa_supplicant.conf so that p2p_supplicant.conf is used
  instead; this prevents network settings from being wiped out when WiFi
  Direct is used.
* Remove tdls_external_control=1; it was ripped from mako a while ago
  without any real justification.

Change-Id: I961de77b7e7c60a2e98d21f4acb72122c0f97613
s4-common: releasetools: Allow baseband asserts

Change-Id: I5a9b900007f72b8669dd1e6b8b443e6e9658b39b
s4-common: start chargeled service in recovery

Change-Id: I5e0d221fcbd61930774932dfe50a687e3c284599
s4-common: use offmode charging blobs from m7

* Use offmode charging blobs from m7 (m7wlv OTA 5.28.605.2) to enable
  charging images support
* Shrink charging images from m7:
  - fireball/ville: 50% reduction (1080px --> 540px screen width)
  - evita/jewel: 66.67% reduction (1080px --> 720px screen width)

Change-Id: Ida40ad57ceb0fb5669f2adb840f31c7b0e242cca
Merge remote-tracking branch 'upstream/cm-11.0' into cm-11.0