init.rc: Disable flash_recovery.

Change-Id: I8bc9142cd41902ef9a528a5aa177fca237b76b8e
init.rc: Disable flash_recovery.

Change-Id: I8bc9142cd41902ef9a528a5aa177fca237b76b8e
adb: Add "wait-for-sideload" command

 * Waits for connected device to enter sideload mode

Change-Id: I65b4ad86456c13a3bbc48880e12ab7a034707b88
adb: Add a few more wait-for commands

 * wait-for-recovery is obvious.
 * wait-for-online will wait for recovery || device

Change-Id: I70f747bcd201a4157b988d7ed49bcc8e5ff4c85f
ADB Logcat colored output.

This patch adds a new '-C' option to logcat so that the output is
colored with colors similar to the ones in DDMS.
Simply type "adb logcat -C" to use it.
Works well with bash in gnome-terminal.

Change-Id: Iba2061c1bf9a83661f22eb616e0b8163b0a33672
core: Add some static libraries

 * Add static versions of libdiskconfig and libsysutils for MiniVold

Change-Id: I9ea9498dcff3f094bbcbb1e05e6d10bc9b83ac74
Add support for exec command in init scripts.

Change-Id: Iee523fd75410718f0bd090f5fdcba50825a698c4
init: Add support for properties expansion in exec command

Add Android properties expansion to 'exec' arguments.
E.g.  exec /system/bin/log ${sys.usb.config}

CRs-Fixed: 390942
Change-Id: Ie520396d951e578bd9f591734a45d2f460b8f51d
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