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)

Conflicts:
	ramdisk/init.msm7x27.rc

(cherry picked from commit 1c14e73c84251857016c398f74f8d19b7b4b9373)

Change-Id: I9f9701da31817ff139b966cdc858d9cc83fc764e
Recovery updates

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

(cherry picked from commit 96aad0d211042361680e944b0056291d330190fd)

Change-Id: Ia8d83b88ae9670ad961d976c16e52feb423123a4
Bootanimation updates for Samsung devices

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

(cherry picked from commit 4f57e707170f1e03818fd199042b39c57400098d)

Change-Id: I5fbbba7fb668427e773bdce180edf924f2c7006c
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.

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

Conflicts:
	prebuilt/etc/media_profiles.xml

(cherry picked from commit 92f8ffeb8f855646fdb2ead8bd5aa3f74f3d02e1)

Change-Id: Iec0823de416668e8991d0fdfecd6792a85fbf0bb
cameraHAL: fix sensor size for old HAL

(cherry picked from commit d02f549c9ec6bd8c52bf0999a3be73eafdc2728d)

Change-Id: Ib0cfd414454e112b9ffe2d0ba3f8d2693af45aec
Camera: add BOARD_USE_CAF_LIBCAMERA_GB_REL support

Needed for Samsung GB prebuilt libcamera

Change-Id: I46cd52c3973659e7afeda39c308181832401c77f
Define NEEDS_VECTORIMPL_SYMBOLS to fix libcamera.so loading

E/HAL     (  101): dlopen failed: could not load library "libcamera.so" needed by
 "camera.msm7x27.so"; caused by cannot locate symbol "_ZN7android10VectorImpl19reservedVectorImpl1Ev"
  referenced by "libcamera.so"...

(cherry picked from commit 5088873122d2caeaa4d17a4fe4a807ed4b8d20f3)

Change-Id: Ic872309906e5061d2b9344d290d22ad33490676f
KSM: override values upon boot completion

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

Conflicts:
	ramdisk/init.msm7x27.rc

(cherry picked from commit d9eec7710031c8484b1c635a683e925363e50b0a)

Change-Id: Iddb2df2bbb0a5453cb977a7720c4b6d41e584e25
libaudio: increase extampTmp length

Change-Id: I08709e7cb586407686cc9bc9ac0fd82ffef5182d
Graphics updates

* Remove TARGET_DISABLE_TRIPLE_BUFFERING := true

(cherry picked from commit 4df6e33b43e7c47e7edbe247534e85487fc37059)

Change-Id: I89e4189127f3df735ad1c7434d85b4713509c9a9
releasetools-extras: add more unnecessary files

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

Conflicts:
	releasetools-extras.txt

(cherry picked from commit 286d27ebb6a8bb176014d4bf6115bd185507f760)

Change-Id: Ibfe20ff0cfb0db5ad80bff916894b8ac301ab5b1
Split releasetools into regular/tiny (cm10.2)

* releasetools-extras will no longer exclude basic live wallpapers
* releasetools-extras-tiny added (no changes as of yet)
* For now, only galaxy5 will utilise the tiny config.

Change-Id: Ie9b27a1416d4a427cb95e2842c84c0afa4f6a029