camera bringup changes system-core

Change-Id: I1cf98641eca9096bd27645e07ea802646ea1fb96
(cherry picked from commit 3cb7c2da69f582d88b8eebf05f15788c4a13bdbb)
(cherry picked from commit a52870bfcbe7c54a21dbf5607aa2087292b139dc)
(cherry picked from commit 0b752a35a24e5cd8df90aa562a196d310dc5bd36)
M7: add HTCLOG ifdef to fix signal on M7

Change-Id: I7acf89580a2be37fbfd9b9aca22a1dfa2c1a94e7
set /system/etc/init.d/* permissions

ported from CM7

Change-Id: I279d78679f7d779d6cd6bbc6c834d94706937ae8
healthd: who really needs this dmesg spilling by default

Change-Id: I2cf1a013515f8d50c26c80bb810ee1171575395c
Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpc

Change-Id: I2760d7affcc754da4dad1031250307a16466b73b
diag: Remove world read/write permissions from /dev/diag

/dev/diag has world read/write permissions which is considered
a security risk.  Remove these permissions.  Add new qcom_diag
group for access to /dev/diag

CRs-Fixed: 356415
(cherry picked from commit 14c85ec56fd47c5eb143617a3bd5a6e7ee39cb6e)

Change-Id: I536323a97e19a07bbd8eadffa0265d1955590285
init: added missing permissions

Else PerformanceControl will not be able to change them
-scaling_min_freq
-scaling_governor
-I/O scheduler

Change-Id: I55eb68087e991a906d91009b0a9bc43f0b162635
Conditionally Revert "put back the unused virtuals in Vector<>"

These symbols are needed for MR2 camera.tegra and other blobs,
but they conflict with KK blobs so define it for devices that
need it by setting COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS

Change-Id: I59e66074526f013918a29c3afc10e52b9812778c
init: fixup cpufreq permissions

It is safe to have read permissions for everyone
Also required for the CPU info overlay service

PS3:
add cpu0-cpu3

PS4:
mke this work on at least a few devices :)

Change-Id: I1de067f63121a8a19f29d4e994fbc3bf73054556