camera bringup changes system-core

Change-Id: I1cf98641eca9096bd27645e07ea802646ea1fb96
(cherry picked from commit 3cb7c2da69f582d88b8eebf05f15788c4a13bdbb)
(cherry picked from commit a52870bfcbe7c54a21dbf5607aa2087292b139dc)
(cherry picked from commit 0b752a35a24e5cd8df90aa562a196d310dc5bd36)
Initial bringup system-core

Change-Id: Ic61f4b46b3d833b3ce893d9b4dd250a77e8c5ec9
(cherry picked from commit d9ab4aecfd08626c139aeb793502946403977056)
(cherry picked from commit 94c15d07fc6b1b44041325ae2db76855caa2a9c8)
(cherry picked from commit 2d90034e8fa3f9768ad5c3a3c3cbfb260f3bf709)
system/core: Add QCOM specific audio flags

Add QCOM specific audio flags.

Change-Id: I9c66f355a9760c3e96cd2b36157eb0927c48b33f
(cherry picked from commit a15020b24ea48feac9a6f2cca243855bc9fc824a)
(cherry picked from commit 6e135a7933a1b11dee1f347967e7ff2ef758a1c3)
(cherry picked from commit a9ae96521def8c3b38ed21e43313ae04a932db20)
system/core: Add MSM specific formats, devices and channels.

- Add support for MSM formats, devices and channels

Change-Id: I0f613e25ae7e5bafa126ab582551807711ab9db6
(cherry picked from commit 3535a5eafaa700ae58d44c43c4491f3fbb90e060)
(cherry picked from commit d725c0473b0c7f51d157b8722131ed7b45f878d7)
(cherry picked from commit 8d43d24d91e7bcc8daef40c6e9f99fd8dcd23266)
init: Add vendor-specific initialization hooks

Allow optional vendor-specific initializations
within init.  This can be used for runtime
initialization setup that init rc scripts do
not support.

Change-Id: I7623a0d59b18f9ec8e3623958e2f7ccd72b877bf
(cherry picked from commit a36f7998a135a63934465889f089f96deefe7c42)
(cherry picked from commit 2ce27688b13bbc9a2237442ec2d6a554325ef658)
(cherry picked from commit 8e4dc4f79011bf0a8832e8d1251fc17b3e542057)
mkbootimg: Add --dt parameter to specify DT image

New optional --dt parameter to specify a kernel device
tree image.

Change-Id: Ie29a11cbf4138426bfd19ae486d69a5fcbd8f442
(cherry picked from commit 02a31e51c9b60e7c517299ab317af9acc7c5627f)
(cherry picked from commit f3ffe43d2eec1c3f4a9cfe8cf745921c03013896)
(cherry picked from commit 3fa641a1c650ef65379ce86c131a425392910e6f)
system/core: Add command NATIVE_WINDOW_SET_BUFFERS_SIZE

Add native window command to set user defined buffer size.

Change-Id: Id6d1f96daba81e8aba83479b5bda6ce0bfabb6e7
(cherry picked from commit 93ac04e22306001942e822594179e19b830fdbf1)
(cherry picked from commit 7e3881fb71df2b71b9e08138f9fe2cd9c08b6bef)
(cherry picked from commit 1985a4ec6dbb8825dba075b9fad062c8fa1d55f5)
get rid of HAL pixelformats 5551 and 4444

Removes the support for 5551 and 4444 pixel formats.

Change-Id: Id9741b00d166400da83776445228879155b5bb05
(cherry picked from commit f80bff40320628aaf5a3e902d988f972ef527c63)
(cherry picked from commit 5223eba7e159fc2e10f60b5206fb6729c6e60d5f)
(cherry picked from commit 80e596e5a6889f29d5f6d3d892296a63ad8f6ad6)
ueventd.rc: Change owner of graphics drivers to system

iWifi Display service needs permission to open these drivers.

Change-Id: I1d9e4ae372f09ecf4104888a9910d09903d892d1
(cherry picked from commit f087420bf5eada3017e107a3a8da4e74f683da18)
(cherry picked from commit 1b3f9226cd3ad681a0ef08038d874921ca62ee4c)
(cherry picked from commit 5b4becc1b814b0f9e96d4f3aaec380d74f4b0739)
Do not add default route during ifc_configure

Avoid duplicate default routes.
Remove adding of default routes during interface configuration as
route add/remove operation is managed by ConnectivityService via netd.

Change-Id: Ia5b47ed68fac71b444c51d9fa8ee7132bfb851c2
(cherry picked from commit 4a48635c72d91cf8decb7653948fe0c76de46098)
(cherry picked from commit 272f07a0c64b631823252ee4931c47f624b04aaa)
(cherry picked from commit 1a696b349920c06e3fde919e6d6765c86a518787)
(cherry picked from commit 6f6681a083267a552bebb3e52cffc7bc28701479)
system/core: Fix for HAL compilation issues while integrating HAL 1.0

Change-Id: Iead9c1ade279b64c5cbdf4d2de1a8b695939c52a
(cherry picked from commit dc9757a2db4166e1bbebee1819729520f79c4a22)
(cherry picked from commit 7f11efe01e53aa485ed142670b1717463fd9ddf4)
(cherry picked from commit 5932f6963d25a994508556fc150d7b2200bec7a0)
(cherry picked from commit 3e846e14abfc9e8a4e3a80c7db372343d5eedf7b)
init: uevent: Add msm video symbolic link handling

Create meaningful symbolic links for video encode/decode
devices based on link_name sysfs node so that video client
doesn't have to rely on dynamic dev node names like device32,
device33 etc.

Change-Id: Id308a10d3e601616b63ecd1373809c96f0d04435
(cherry picked from commit d26280b5d327994c3c89c573de7738b3f47b8600)
(cherry picked from commit c8f57166fadd26648bd9ee0a979a789c944ccba3)
(cherry picked from commit 72e4c35b308270f44795ebcc196319096397c6c1)
(cherry picked from commit aec73795517e7f49c5ebbea611da612b99ba75fb)
audio: Add diag access permission to mediaserver

- Diag permission is needed to connect QACT tool

Change-Id: I21bf4cce2a948feab3e844aa6872846af7109730
(cherry picked from commit 6588b30f5d52439307c671a4821b44c77421ef07)
(cherry picked from commit 41116f2b37fde7d1890e0293005bee4dfea7e478)
(cherry picked from commit dd8a2ebd3f5c4e1dd9643f482897b4a30bdb2c80)
ueventd: Add bootdevice symlink

Create the /dev/block/bootdevice symlink to point to the
boot device information based on kernel command line.
This decouples references to the boot device from the
actual device nodes (e.g. eMMC, UFS).

Change-Id: I5e5e3e07ff38c8002ac3f188df80284f1f47892b
(cherry picked from commit fbc0f366d99e73cce250822c80ce2141a4b0e287)
(cherry picked from commit fe8101abd3456c32c25ed3f88df7883e84b6a521)
(cherry picked from commit 0940a7460112e0a5024df7d6320e4cd3ac5aaa15)
audio: Fix submix output device check.

-AUDIO_DEVICE_IN_FM_RX is incorrectly matched
 with AUDIO_DEVICE_OUT_REMOTE_SUBMIX because
 method audio_is_remote_submix_device is not
 checking for AUDIO_DEVICE_BIT_IN.

-Fix is to add AUDIO_DEVICE_BIT_IN while doing
 the check for AUDIO_DEVICE_OUT_REMOTE_SUBMIX.

CRs-Fixed: 566837

Change-Id: I47ca3bd151da848a444d4bcf83a56e866f20d4f7
(cherry picked from commit f8573b76d6c03e1a9eff34e093056a810f898509)
(cherry picked from commit ae982a488c68e0cd06622e7ee7a31fddb1f4d131)
adbd: Use sanitized kernel headers for compilation

Build adbd using the headers generated from the kernel directly.
This requires adding re-definitions for __FD_* macros as they
have been removed from the kernel.

Change-Id: Ia511465211463df129ce60738ec6be85025b85a1
adbd: Add USB Super Speed (3.0) support

When using FunctionFS, adbd is required to specify USB
descriptors as well for ADB function. If underlying host
and device support USB3.0 then USB communication works
if all interface drivers provide SS descriptors as well.
Since, ADBD currently doesn't pass SS descriptors to the
function_fs driver, it results in USB enumeration failure
in SuperSpeed mode when ADB is enabled in USB composition.

Change-Id: I1ae44feaba0615db3f341b3d622a3d64922dbad8
system: core: increase the polling time for remount_ro

eMMC4.5 introduces an addition of cache on the device.
We experienced long flush durations in some of the devices,
and therefore the adb reboot resets the target before the flush
completes.

CRs-Fixed: 562350
Change-Id: I3f54901e12ffd232a7696dadfde1edec99ef91c6
Merge "system: core: increase the polling time for remount_ro"
system: core: Add uevent support for dvb devices

Broadcast applications expects dvb devices to exist
in specific location.

Change-Id: I521f2957147428b7812ca1fb8fb6c49f44cdb8d1