audio: Add APIs for supported compress formats

-Add APIs for supported compress capture & compress voip formats.
-Add default bytes per sample as 1.

Change-Id: If63a50f02389475855f2f0729b03b6049d44fb29
core: add QCOM_HARDWARE ifdefs

Change-Id: I5fb1420d5ce99a86cd8bc42556be5616ff89229b
Merge "audio: Add APIs for supported compress formats" into android-4.4
Merge "core: add QCOM_HARDWARE ifdefs" into android-4.4
Add unpackbootimg.

Change-Id: I9e3e279e2b48b3fdf5b64a7e9a28fa54e91ccace
unpackbootimg: Add support for device trees

Change-Id: I340eed99d2274a2f4cbaf5a9f27726ff3a9302e5
Fixes for legacy audio

Conflicts:

	include/system/audio.h
do not change umask of forked processes to 077
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

Conflicts:

	init/builtins.c
init: Check for symlinks with lstat() not open()

Using open() with an O_NOFOLLOW flag will result in a file falsely
being determined to be a symlink if the open fails for another
reason.

For example, a character device that isn't ready due to the
underlying hardware not being initialized yet will fail to open()

An example of this are any CG2900 device files prior to
execution of ste-cg29xx_ctrl

This uses lstat() instead of open() with O_NOFOLLOW to check
whether a file is a symlink or not.

Change-Id: Ie0d8d94b426c84c29b1b04d41a4cc15536cb307c
core: Add some static libraries

 * Add static versions of libdiskconfig and libsysutils for MiniVold

Change-Id: I9ea9498dcff3f094bbcbb1e05e6d10bc9b83ac74
Add libminshacrypt static lib

This is a sha-only version of libmincrypt, to provide the new
SHA_hash implementation to binaries that require libcrypto_static
remove libion
New fix for 4.3 gralloc
Improve exec command processing

- Make exec print out an error if execve() failed for some reason
- Pass init's environment, created by the export keywords, to the exec'd
  command, which is helpful when running shell scripts (for PATH) and/or
  am (for BOOTCLASSPATH) from an exec statement.

Conflicts:
	init/builtins.c

Conflicts:

	init/builtins.c

Conflicts:

	init/builtins.c
Revert "Fixes for legacy audio"

This reverts commit acefdebb45abb6ed239648bdf5b27a8fbce81f7b.
Fixes for legacy audio

Conflicts:

	include/system/audio.h
do not install recovery on boot
Use RECOVERY_PRE_COMMAND before calling __reboot() recovery

For the Power menu,
frameworks/base/core/jni/android_os_Power.cpp#L180
already uses RECOVERY_PRE_COMMAND if
TARGET_RECOVERY_PRE_COMMAND is defined in the
BoardConfig.mk for a device to make a system() call before
calling __reboot() for recovery. This commit adds
the same thing to the other places that we know we are
getting into recovery using __reboot(), namely,
adb reboot recovery, the reboot binary and init
in the case of errors.

Change-Id: If0a9c7f22de2aa187c921b60ad5edd77b49e095d
add missing string.h include needed for memset

Change-Id: Ieeb9e95919d1bea183f01da9fbab0c5c8c8d1925