init: Implement exec support

Code copied from CM7 implementation by Steve Kondik

Change-Id: Ie8f11e9dc9e552aa7a4fe354995daaf8f0d99a11
do not install recovery on boot
Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpc

Change-Id: I022aae4a81c720a026ea6c1a41bda30acbe60224

Conflicts:
	rootdir/init.rc
Add required permissions and files for data

 - Add /data/radio
 - Set gateway property after DNS
 - Allow radio users to set properties associated with
   all rmnet interfaces. Not just rmnet0

Change-Id: Ia60fcb8f90aa73ffd40e839b93356ee50a9e5072
init: Increase maximum number of Android properties to 372

(cherry picked from commit 2af5dedb813b5f2fb1355ccf6e4a5de2378665d6)

Change-Id: Ic4b45a10196b24ba2e4798fef45a125f9f3dbf15
init: Add noexec mount option

Change-Id: Ic13d66797a86d38432e79af0c3387ce986d0a19f
Add error handling to SocketClient::sendData

Return failure and set errno if mSocket isn't valid.

Change-Id: I579114d435db46d0bb5682167ef34bebe061a8f8
libcutils: Fix aliasing violations

Fix aliasing violtations that caused a need for the
code to be compiled with -fno-strict-aliasing

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

libnetutils: Fix aliasing violations

This allows us to build it with more compiler optimizations

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

libcutils: Fix aliasing violation

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

core: Fix build in ISO C++11 mode

Fix compatibility with ISO C++11 compilers

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Change-Id: I8f9aa775b5681d4d8c5202a1a1935acb4efa4171

adb: Don't force -O2

Don't force -O2 over -O3 -- the O2 hardcode is there to force
optimizations, not to reduce them...

Change-Id: Ic75eeb767db4926f519580fba8f5f7b8e593df4f
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
toolbox: rmmod: fix module unloading

Replace "-" with "_" in module name. This would keep
rmmod compatible with module-init-tools version of rmmod

Change-Id: I4470d9a98bc2f299acd94859fca4403aee279d2b
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
camera: change camera node permissions and add certain parameters.

Change-Id: Ia68160601c2b2ba3eebde9963b3972f2a09ff84a
system/core: To enable FM add FM stream, device and driver

Change-Id: I5ac8f446c1a785d435bef78bb57a28c95e377810
system/core: Add command NATIVE_WINDOW_SET_BUFFERS_SIZE

Add native window command to set user defined buffer size.

Change-Id: Ib500e65283706d860d62cb487720008d7331ce2d
audio: Squashed set of commits for QCOM audio features

system/core: Add audio enums for QCELP/EVRC feature support

- Added required enums for QCELP/EVRC features.

Change-Id: Ib6b2297ebc9cac785fec99c3c2c80b1ad9b774f6

system/core: Added changes required for tunnel mode recording

- EVRC and QCELP format values are interchanged, due to
  this EVRC/QCELP are not recording with proper header.
- Added preproc_ctl, evrc/qcelp for tunnel mode recording.

Change-Id: I93db3170895387bec43a62214aa5d65aaab40c87

system/core: Add output flag for LPA and Tunnel

Change-Id: I621818502c273b2c8aba37f64a83539450a1aafa

audio: VOIP bringup and support for vocoders.

Setup permissions for MVS driver.

Add vocoder types.

Change-Id: Ie150be9b01137628ba3e3ea788d429096ba1f413

system/core: Add enums for voice call recording.

Add enums for voice call recording

Change-Id: Idd5cd19573c48a0a782bcd56cca38b4901391bbf

system/core: Add support for surround sound recording

- Add 5.1 input channel definitions and masks

Change-Id: I24375c0d9443cd6e8dd58114464bf9f528b97d43
Add support for wifi display

-Define AUDIO_DEVICE_OUT_PROXY and AUDIO_DEVICE_IN_PROXY

Change-Id: Ia1835f7e968c18395f70f0763f08dd8856ce8ad3
audio: Add a flag for VOIP RX

Change-Id: Iecb8c3a7b247c0a839b4b145574e2c4f35dbce64
Define TCP buffer sizes for HSPAP, HSDPA, HSUPA and EVDO

Change-Id: I2cff0f275db63e5036bf64e25794445f5c08f7ed
See: https://android-review.googlesource.com/#/c/39871/
include/system: JB upgrade for the MPQ8064

Include the flags for the MPQ8064.

Change-Id: Ic1bd11d341456a8b217d63cddbb19a9a92ee86c5
system/core: Add command NATIVE_WINDOW_UPDATE_BUFFERS_GEOMETRY

Add native window command to update buffer buffer width, height
and format before queuing the buffer.

Change-Id: Ic133f89afb762cfce5084af820af5f9bad2a4a0b