u8800: Allow audio to access /dev/diag.

Needed for libaudcal.
camera: Remove usage of libgenlock.

This is not used anymore & has been no-op.
camera: Include proper media headers.

CM uses different media HALs, and since we are using CAF HAL, the path must be
updated.
ril: Fix app index when not provided by libril.

App index was always 0, which means that aeroplane mode does not actually
disable subscription at all. It also caused a series of restarts from rild
when no SIM card was inserted.
ril: Update processSolicited from superclass.
sensors: Adjust proximity sensor thresholds. Fix proximity reporting problem.

Proximity sensor only worked upon the "close" threshold.
Adjust the proximity sensor thresholds to work with 50mA.
ril: Checkout kitkat-mr1-release.
ril: Add guard checks.
ril: Reintroduce support for Qualcomm Gingerbread RIL (v4).

Add ril_v4.h header for V4 compat RIL entries.
Modify ril_request function to only send request if entry is non-zero.
ril: Rework Java RIL library.

Based on the newer libril.

Changes:
 * Removed overrides where possible.
 * Code consistency fixes.
 * Removed dead code.
u8800: Remove not used adreno library & add S3D.
u8800: Support UICC hotswap.

Although this is almost impossible in hardware, the software supports it. It's
currently needed because before radio power on, SIM is reported as absent.
camera: Reimplement Camera HAL wrapper.

Changes:
 * Properly indent to tab (8 width).
 * Remove unnecessary bloat.
 * Keep logs at minimum level.
 * Switch to standard C++ dynamic allocation.
 * Remove dead logic.
 * Renamed some functions for better match.
camera: Remove abandoned MemoryHeapBase.
lights: Update blink status before brightness.

Need to update the brightness afterwards or only the last led (blue) is enabled
properly.
bt-vendor: Add support for BT RF power class.

Default value as 1. Possible values include 0, 1 & 2.
Set via [persist.service.bt.power].
u8800: Introduce IDEOSX5Settings.

Version 2 of the DeviceSettings.
u8800: Remove DeviceSettings.

Deprecated, replaced with IDEOSX5Settings.
u8800: Add support for FM Radio.
u8800: Use standard OMX MP3 decoder.

This was used to get LPA working as it was on JB 4.1 (CAF). However, the
regular Google OMX decoder works well, and recent changes break non-omx
decoders.