fastboot: add the support of the second stage image

The AOSP bootimage format allows the use of a second stage image
however the fastboot boot and flash:row commands do not allow the
"secondstage" optional argument.  This patch adds the support of this
argument for both commands.

Change-Id: I00403a95d7460a00233841ba0fe0e8a69d78c7b4
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Do not suppress maps dump when si_addr<PAGE_SIZE

  Also remove alignment of si_addr.

Change-Id: Ie5445bf8a5baa49e04e37c643c25ebd0f1dc9d22
Merge "Do not suppress maps dump when si_addr<PAGE_SIZE"
Add EndIteration method to free memory allocated

in StartIteration. This method should always be called when the
iteration is over to make sure that we don't leak memory.

Change-Id: I5205c754dfafbab9bb5f06003c3663d2ec4e8a35
Merge "Add EndIteration method to free memory allocated"
libusbhost: Fix IOCTL call during usb_request_cancel

USBDEVFS_DISCARDURB IOCTL call expects a pointer to the
the urb structure to be passed from userspace. LibusbHost
instead sends usbdevfs_urb**. Change this to usbdevfs_urb*.

Fixes Issue: https://code.google.com/p/android/issues/detail?id=74530

Change-Id: Ifb8a13857e1a9f62536f2a07c0965e9c419b7d4c
Make a copy of a prefix param in StartIteration

and delete it in EndIteration.

Change-Id: I4de4167700a9dba3119fde22fcd45725742f3731
Merge "Make a copy of a prefix param in StartIteration"
logd: persistent reader threads

(cherry picked from commit c113c5813ebd620e0bc60ece9a32ea14c08ea237)

Bug: 16822776
Change-Id: I5bea468a41089b51108880044f32e2b2df1278e7
Merge "logd: persistent reader threads"
Merge "libusbhost: Fix IOCTL call during usb_request_cancel"
Merge "Make sure that names of all entries have the same encoding."
Make sure that names of all entries have the same encoding.

Add new public method to allow checkisc if an archive has entry names encoded in
UTF-8. If not then they will be encoded in IBM PC character encoding.

Bug: 16162465
Change-Id: I4468d76accca8a9b0b31cae8d43399ffc22cad42
Revert "Make sure that names of all entries have the same encoding."

This reverts commit 6a7f4bb79dde575d30af562af916b572b80ff9c3.

Change-Id: Id4f5b601ff0b9d82ce2c9beeb9162eba9594b3a7
Merge "Revert "Make sure that names of all entries have the same encoding.""
Fix 64-bit host build.

Bug: 13751317
Change-Id: Ibf62935b7d12a55ffc57242a26a2581b52796847
Merge "Fix 64-bit host build."
Move native bridge library in system/core

Bug: 16884833

Change-Id: I73aab8e212860ba5aee9444d801806d3da326a41
Merge "Move native bridge library in system/core"
Replace char* with ZipEntryName in ziparchive API.

It's important because entry names can be encoded in UTF-8 and can have \0
character in the middle.
Use vector instead of char* for prefix in IterationHandle.

Bug: 16162465
Change-Id: Ie34c8d7c6231cc258530c22bdde5542895213649