Revert "This adds all newer commits for the camera wrapper"
.. All the camera wrapper will be added properly now

This reverts commit ad8cfc11321df9c995596a80460ba5a64946014a.
msm8660: remove duplicate SELinux rules

Change-Id: I1ba6ed8dde4a2194bf33f2072643c5274f6689a4
msm8660: add memtrack HAL

Change-Id: Iedd4575ee084650b2faf885eff8ed315f8e737bd
msm8660: enable QCOM_BSP

  * needed to fix video corruption in Netflix
  * as a result of this change, use custom graphics.c for recovery
      - using a 3.0 kernel and QCOM_BSP causes recovery build errors.
      - workaround this by using a custom graphics.c.

Adapted from: https://github.com/CyanogenMod/android_device_motorola_msm8960-common/commit/ad5112f3d4dea443ed421b9f8947d81076c3f060

Squashed commits:
https://github.com/AOSPA-legacy/android_device_samsung_msm8660-common/commit/b8ab448ef6e1e1f6a2c207482414a74f57265142
https://github.com/AOSPA-legacy/android_device_samsung_msm8660-common/commit/1d354f9aaecdbc7785c499d21de596eb4c619735

Change-Id: Ida248ac260c79d6324fdfe0b95fb332c253e6e1f
msm8660: disable LPA since it breaks Bluetooth streaming

  * We need to come back to this and do further debug

Change-Id: Ife486cf6b799255d5a862088326de4381656644e
msm8660: grant Bluetooth LE permissions

Change-Id: Ic01ffa0ee8d53509a56f9f04d838d2b6917ae05b
msm8660: Enable kernel samepage merging (ksm)

  * parameters taken from http://source.android.com/devices/low-ram.html

Change-Id: Id08a1510bfae4c774669ee529618de7515e2ac8c
msm8660: device-specific camera wrapper

  * modeled after CameraWrapper in msm8960-common and m7-common
  * allows us to rely less on overlay hacks to packages/apps/Camera2
  * since these overlays are still supported in cm-11, use them:
    - needsSamsungCamMode=true
    - ignorePreferredPreviewSizeForVideo=true
  * old overlays from cm-10.2 that this replaces:
    - useInfinityFocus=false
  * old overlays from cm-10.2 that we are ignoring as they no longer apply:
    - usePreferredPreviewSizeForEffects=true (effects are not supported anymore)
    - needsEarlyVideoSize=true (done in Camera2 by default)
  * to use: rename vendor/samsung/<device>/proprietary/lib/hw/camera.msm8660.so
    to camera.vendor.msm8660.so and fix the vendor .mk files accordingly.
  * use with media-caf to avoid 5 second delay when starting record
  * known remaining issues:
    1. Back cam: Switching from 1080p to 720p and from 720p to 1080p result in
       corrupt videos. To work around, you must change to 480p and then to 720p
       or 1080p. The extra step to 480p seems to clear out whatever is left over
       from the previous mode. (Note: this is seen on CM's Camera2 and does not
       happen with Google Camera.)
    2. Front cam: Selecting CIF quality works but then you can't actually start
       a recording.

Includes squashed patches from Dave Antoine <bryan2894@gmail.com>:

  * rotation fix for upside down and corrupted videos

  * add CIF profile fix crash when entering settings in Google Camera app
https://github.com/AOSPA-legacy/android_device_samsung_msm8660-common/commit/7fa38357d1f7e7fe5712138420ddc88de138f5d8

  * fix switching from 480p video to picture mode
https://github.com/AOSPA-legacy/android_device_samsung_msm8660-common/commit/6d59d0eb23d841b20bc1ccfef82414a438915139

  * fix low-res preview on front cam by forcing the preview size
https://github.com/AOSPA-legacy/android_device_samsung_msm8660-common/commit/a002f81077dba7ac4154373ce3cae48846a98129

Change-Id: Iab6c400b89c6743e890755c01ad97dc39bde17c6
msm8660: remove linux includes

  * We shouldn't be calling for these kernel includes from the device tree.

Change-Id: Idae0ff246df2a2e917d1ae52a337309d875f0ad1
msm8660: enable three buffers at all times

Change-Id: I58b8268030c9101a8b54ff52116e5edfe8c99914
Camera Wrapper Updates
msm8660: Enable media-caf

 * Kernel has been updated with proper support for features in media-caf

Change-Id: Id8d4c8c7829f3271db34c24e728e0a9adf06f9e7
Merge pull request #1 from Kiltnar/cm-11.0