Set ANDROID_PROPERTY_WORKSPACE in exec.

Change-Id: Ib827bf14b4463ca6277b79256bcc4cd70f63fc31
Auditd initial commit

Initial commit for an audit daemon that
writes kernel audit messages to a log
file. The daemon runs in uid "audit" or
AID_AUDIT.

The log files are located at /data/misc/audit/
The daemon maintains two files at this location:
audit.log and optionally audit.old. On boot (
if the file is non-zero in size), or
when a fixed threshold is hit, the daemon rotates
audit.log to audit.old.

Optionally, if passed the -k option, the daemon polls
dmesg for all lines that contain "audit" and writes
them into the log. After that it continues to operate
as normal, receiving the messages from the netlink
socket.

Change-Id: I5b5037a5a8b39a054213848249afb7808f8b0ffa

Sync with master auditd.

sys/capability.h does not exist in the 4.2 bionic.

Reserve AID_AUDIT

AID_AUDIT will be used for an audit daemon for gathering
and controlling the Linux audit subsystem.

Change-Id: I95d597524b5547a60f3a59f692b4b0a6df0a9645
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
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.

Conflicts:
init/init.c
Change-Id: I7623a0d59b18f9ec8e3623958e2f7ccd72b877bf
init: Allow target-specific platform device base to be specified.

Add optional build-time flag, TARGET_PLATFORM_DEVICE_BASE,
to specify the base sysfs path (without the /sys prefix)
where the platform device resides.  This provides support for
targets where platform devices are all under a master level
platform device (e.g. soc-bus).
Change-Id: I1196fddaddbd03bd472db95ed4d67f818e3af0cb
Camera: Add enum to specify the frame type

-Added enum to specify the frame type of either fd/data buffer

CRs-fixed: 654901
Change-Id: I1c0b1a2c6a1425cdb6650cdfc20ca65835a1b81f
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

Change-Id: I0bf3c5903dd854c605740861733c44dc299ec70a
Bluetooth: Introduce new property type and permission

Introduce new property type and allow system and bluetooth
processes to set these properties so that transport layer of ANT
and BT stack can set these properties for chip initialization part

Change-Id: I7735d4743d8b43ea935584901d5aa330df965868
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
init: Change vendor-specific initialization hooks loaded order.

To read the vendor-specific initialization hooks after loading properties
from default system properties and before loading override properties.

Change-Id: Ic2bf6974c9752f49059fd3126ae8fb550dc1fa6b
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
ueventd.rc: Change owner of graphics drivers to system

iWifi Display service needs permission to open these drivers.

Change-Id: I862660a4924671b5d420eda20155a964238ce280
ueventd.rc: Change owner of graphics drivers to system

iWifi Display service needs permission to open these drivers.

Change-Id: I1d9e4ae372f09ecf4104888a9910d09903d892d1
audio: add support for incall music

- Define AUDIO_STREAM_INCALL_MUSIC to support
  incall music

Change-Id: I11319f3120a4243803ec2f8b8fc024f696a8a7da
Add optional target-specific LD_PRELOAD to environment

Append additional libraries defined in TARGET_LDPRELOAD to the
LD_PRELOAD environment if it is defined.

Conflicts:
        rootdir/Android.mk
        rootdir/init.environ.rc.in

Change-Id: I6bbf35caa71e80f635214259668a13d6efae9cce
Copy the ETB dumps and maps file to /data/core

On enabling the persist.debug.trace, ETB maps and dumps will be
copied to /data/core only for the first crash.

Change-Id: I521ee02e30ce1b4ebaca2c6b398c828286a5115d
audio: add support for extended audio features

- Add extended enums for audio stream, audio
  source, audio format, audio channel, audio
  device, and audio flag.
- Update audio API's to support extended features.
- Add new API's for compress offload playback,
  capture, and VOIP features.

Change-Id: I8dfd64ac39ee392993e2b977907cd8280952460f
audio: update enum for AUDIO_FORMAT_DTS

- update enum for AUDIO_FORMAT_DTS

Change-Id: Id8173c43090f514b673264f0b42c3bb65c051c50
Adding use_small_bufs boolean

-apq8084 HAL expects use_small_bufs to be present

-variable is not being assigned to anything as this
  is needed for fix compilation

Change-Id: I59430dffe84e20ed965cb8053cfe7f03626171d8