Camera HAL: workaround for QCOM legacy camera parameters on KitKat

On Qualcomm legacy devices, the following camera parameters exist:
contrast-max, saturation-max, sharpness-max. However, newer camera
libraries name these parameters differently (max is the prefix,
not suffix).

This is patched in cameraservice, but in
frameworks/base/core/java/android/hardware/Camera.java,
the parameters are still hardcoded to max-contrast, max-saturation
and max-sharpness.

Workaround this by copying values in the camera HAL (or if
they don't exist, set to -1 so that the camera will still function).

Change-Id: I8e3e4e1b7a669e060e08018f02c9083dd3fffce8
Switch init to (working) mount_all

Create symlink to real fstab so that init binary can find it.

Change-Id: I72fddfa56f2f4af0e5969e80b2b15a37831da8f5
Cleanup init scripts & fix fstab mount

* Use makefile to fix the fstab bootloader name, and dynamically
  adjust service details for device-specific quirks.
* Remove dead vold.fstab
* Move Bluetooth services to dedicated init scripts

Change-Id: Id9e28f722e05bf32df2315ff1477da74b57656bf
GalaxyParts: add option for highend graphics

* Property is persist.sys.force_highendgfx
* Set to enabled in build.prop by default

Change-Id: Ia7609717a419d37db60c398b4321ee44c4337d4a
Set default recording to 480p profile

Needed for KitKat.

Change-Id: I357b59710743bd1187f79ae033c0002ea58add76
Merge "Set default recording to 480p profile" into cm-11.0
releasetools-extras: add more unnecessary files

Needed to give us some space on the /system partition, especially
on galaxy5.

Change-Id: I04fc6c20405c5a37191a46456fdc08d4dc705537
Adjust lowmemorykiller tunables for Samsung devices

* Set config_lowMemoryKillerMinFreeKbytesAdjust to 8192
* Force all Samsung devices to set 3072 for extra_free_kbytes.
  Default calculation is width * height * 4 * 3 / 1024. This would be 900KB
  for ldpi or 4500KB for hdpi. Let's use 3MB for all devices.

Change-Id: Ib60e478ddd1a64fc2c4abfcdc721041d77615a8d
Enable KitKat-style zRAM support by default

* Enable 48MB (Gingerbread) / 32MB (Froyo) zRAM allocation
* Modify GalaxyParts to allow zRAM & regular swap coexistence
* Set swap priorities: 0 for regular swap, 1 for zRAM

Change-Id: I3df810ec4abb4146b907cf9ae1231e75e111684a
Remove lowmemorykiller minfree tunable

Change-Id: Ib0f473423d5c29efca2b80a25ed064fc21b03850
GalaxyParts: remove dynamic lmk & background process limit options

These options are unnecessary on KitKat

Change-Id: I16df9e4767d242d7cafd56b8ac2defa110faa01b
Fix ath6kl-compat wpa private library for KitKat

Resolves problems with wifi (missing MAC address, no resume from
sleep).

* Remove outdated driver_nl80211.h header, and point to the version
  in hardware_legacy includes
* Add WLS_BATCHING to list of ignored commands
* Disable p2p support in driver for STA mode

Change-Id: I3f9a5f7d5228c9eb02885d629dc7356e6df9e725
Fix g5sensord never sleeping & adjust init layout

* Service needs use to system:misc permissions so that libsensors can
  send USR signals to sleep/resume correctly.
* Reorganize init.rc so that post-fs-data is created in correct order, to
  prevent crash of g5sensord service on fresh boot (no /data/misc/sensors)

Change-Id: Ib3b3af8729a8e1e910683de9ae03e63756da4ef6
Merge "Fix ath6kl-compat wpa private library for KitKat" into cm-11.0
KSM: override values upon boot completion

Needed to override values in init.cm.rc that are too aggressive
on our devices.

Change-Id: I4f8c847d24e4dbafd9dc07d2368d745f86d223c2
Add local healthd

Fixes battery info with new 4.4 health daemon

Change-Id: I26cfd2952053dfa74bede9598ad128574bc59f0c
GalaxyParts: add SD swap high priority support

Allows users to set SD swap priority higher than zRAM, therefore
causing SD swap to be preferred over internal memory swap via zRAM.

Change-Id: I90157f74775602f94da75d409440f1d2349e14ef
Recovery updates

* Set default recovery pixel format to RGBX_8888
* Define backlight brightness path
* Enable "swipe" feature

Change-Id: I20614907f17bc70c471ab93838da4534c109507b
Update camera HAL & implement libcamera2

* camera HAL adapted from Evervolv:
  https://github.com/Evervolv/android_hardware_qcom_camera/tree/jellybean-4.1.2

* Set TARGET_PREBUILT_LIBCAMERA := true to build only the camera HAL.

* Implements TARGET_CAMERA_SENSOR_MP_SIZE to specify default preview
  size. Defaults to 2 if unset.

* Set the 480p media profile to 320x240 size; kernel doesn't allocate enough adsp
  memory and it's not worth the trouble.

Note: libcamera source requires Froyo version of liboemcamera.so.

Change-Id: I3220c7c101af09eea242c24911d4dbf3d5e636ad
Bootanimation updates for Samsung devices

* Enable bootanim preload
* Enable bootanim texture cache
* Use half-res bootanim (to save disk space)

Change-Id: I77b87d2d68f36c580dcaf6daa72d7469f3dd22a7