libsparse: Fix null pointer issue

Fix the issue that "out" pointer is dereferenced without checking.

Change-Id: I76a57ad7309841218231346f4807ef2be8628737
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
init: Fix potential null pointer issue

With the old strdup() mechanism, it may return NULL if insufficient memory was
available. So we check the return value or do not use strdup to avoid null
pointer issue.

Change-Id: Id684948d6cb6c2f06327f29a2ba692f9542fce80
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
Revert "ADB Logcat colored output."

This reverts commit 076aeff4ec56b246e31ffa2c1ddf919d2c10817f.
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: I8f6da4cf20e6d42094280672b0ab41a97b7ca797
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
liblog: Move log messages from Diag_Lib to radio log

 * This is incredibly spammy and QC specifc. Move to radio log.

Change-Id: I775ea9d0fbe1b7d32da3f0e8faef28149f0001ac
libnetutils: add ifc_set_mtu

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

 * Waits for connected device to enter sideload mode

Change-Id: I65b4ad86456c13a3bbc48880e12ab7a034707b88
Merge pull request #13 from CyanogenMod/cm-10.1

Cm 10.1
Merge branch 'jb2' of github.com:CarbonDev/android_system_core into jb2pa