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