toolbox: new applet restart

- stop + start
- for the lazy.

Change-Id: Ie0ef0e27f5b7819a5575ece6b82c5813f4e38420
init: Bring back support for arbitrary chargermode cmdlines

This was accidentally removed while debugging the init breakage
fixed in change I8ef5c932efcd5e7f8d6f6fce0915683d84c3ee11. Put
it back

Change-Id: If35b9d5db281f8aab6de26f2bb63717d28b2db30
libion: Support for old ION API

 * Kernel 3.0 doesn't have heap_mask or SYNC ioctl, so add a board flag
   so that proprietary code that uses the old kernel API directly still
   works.

Change-Id: I4227c79a5de46c60eeebd2e16ca88dd6d580916a
rootdir: Add mediaserver to qcom_diag group

 * QCOM audio drivers need this.

Change-Id: I3cba0356e2995951208fee5e180e56b1afbc7158
Fixed improper size displaying in 'df' utility

'df' command used to display filesystem usage statistics as integer
values, in most cases rounding the actual value down. Because of
that 'df' tended to display faulty size values.
This fix to 'df' utility calculates the fractional part of the size,
then it rounds it when needed to the nearest one-digit integer value
and displays after decimal dot.

Change-Id: I9bc52635d45d3e55ce61b3b1c6b80d1267516e75
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
liblog: add required function

Some Motorola proprietaries require a function named __android_log_loggable. This
change adds the function and solves problems with radio and other
binaries on qualcomm based Motorola phones. This code is activated with
TARGET_USES_MOTOROLA_LOG:=true

Change-Id: I722b42d34198c027f265c3cf9f220d9798814915
Revert "init: Never allow two same-service processes to exist simultaneously."

This reverts commit abe57d0b4e994e31eb31ec98dfa6d4b74e29502e.

Revert "Restart oneshot services when manually restarted."

This reverts commit e889a4746b6f3cd1c6749312c255b14eedc5f778.

Revert "Safely restart services to avoid race conditions."

This reverts commit 9d1a567eb0d6ac8d0040228e7c41668c8e3eb37e.
camera: Remove histogram commands

Change-Id: Ice4012922936ee1d0f9005797f72f9f2b38b951c
camera: Add new commands to compatibility block

Change-Id: I2952963661abf17f55eca811a8d4e8fc87933df0
libnetutils: Fix up the dhcp request arguments

The interface/config-file arguments passed to the dhcpcd invocation
when a hostname isn't provided were swapped, causing requests to be made
for interface <config-file-name> instead of <interface-name>, and
failing all calls to start dhcpcd through netutils with the following error:

E/DhcpStateMachine( 3214): DHCP failed on wlan0: Timed out waiting for dhcpcd to start

because...

<3>[  582.717015] init: no such service 'dhcpcd_/system/etc/dhcpcd/dhcpcd.conf:-f wlan0 wlan0'

Change-Id: Ic2e026ae8ebebdc9a27f5d7a6274e1c5c8a2f95e
Set ANDROID_PROPERTY_WORKSPACE in exec.

Change-Id: Ib827bf14b4463ca6277b79256bcc4cd70f63fc31
audio: Fix input enums for pre-4.2 audio blobs

Change-Id: Iec9f8d915d069168664d2cd873574db7fe5cddc7
audio: add QCOM supported audio devices

- Add ANC headset, FM, and proxy devices

Change-Id: Ib7b7495ed69ca3ab072c5512e9286da8d3538682
(cherry picked from commit fd629294bcaaa2cb70befc631f7596439d6cbe70)

audio: add support for QCOM audio formats

- Add support for EVRC, QCELP, and WMA formats

Change-Id: Id5f7845ff7bc609e947f93d8647ad3f3e57babfb
(cherry picked from commit 8b3476f14882afa74e9c3b778d9ccbd97ee329f0)

audio: add QCOM supported audio channels

Change-Id: Id29cb6949e137be8fb71d8d45e8e12bc47795f40
(cherry picked from commit 2fe37a40228c97e6f3b0575d94d4ec50b4dde1d6)

system/core: Add Qcom specific audio flags

- Support for Tunnel Mode Playback
- Reserve the LPA and VOIP_RX flags

Change-Id: Ifcbeb2a28feb86b030f48010a8a4e9cda8629e5b

Add ifdefs for QCOM enhanced features

Change-Id: Idefa831ecb4fdb881c990ba02ab4ab0ab7871986
audio: fix build break for non QCOM

Output:
error: 'AUDIO_DEVICE_IN_ANC_HEADSET' was not declared in this scope
error: 'AUDIO_DEVICE_IN_FM_RX' was not declared in this scope
error: 'AUDIO_DEVICE_IN_FM_RX_A2DP' was not declared in this scope
error: 'AUDIO_DEVICE_IN_PROXY' was not declared in this scope

Change-Id: Ie18c623303b944544b68eecca6208607d54b1c9a
init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes

Mount a tmpfs as /storage in order to create a mountpoint, so that Dalvik
can later mark /storage as slave in zygotes.  Must use tmpfs as rootfs
can't be bind mounted (otherwise "mount rootfs /storage /storage bind"
would work as an alternative).
unpackbootimg: remove host LOCAL_MODULE_TAG

Change-Id: I199d680dc5ab8bf50f5be65c29095bf3adade695
Merge "unpackbootimg: remove host LOCAL_MODULE_TAG" into cm-10.1
Revert "init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes"

This reverts commit 36454361efaa4d30a6c8c2cca49121e35ef74f7e, since the tmpfs is clobbering mountpoints created by init.hardware.rc. Most (all?) devices with non-emulated SDs are currently b0rked.

Change-Id: Ib34660e2d45473775757e94800fc4ec57f6c8d77
Merge "Revert "init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes"" into cm-10.1
FM Radio: Add support for FM Radio in Android

Creating interface and framework for using FM Radio
RX and TX from different vendors.

Change-Id: I1a71aed01bfffdddfabf1cdfbfa3707cb1ed016b
Signed-off-by: Benn Porscke <benn.porscke@stericsson.com>

Conflicts:
	include/system/audio.h