Recovery: swap XY on swipe controls

Devices such as the note 8 have a rotated screen and
need X and Y swapped to function right with swipe controls
shell pipe: set exit code to error if any pipe element fails

  * this was causing backup state to be reported good while tar command failed

Change-Id: Iaa9728213bbe44a8a8622e2c0ef1ad9548ccabb7
cwm: Remove hardcoded paths

Change-Id: I1874f0bbbaa81e0eea507e9d9444307191eeb753
cwm: Honor recovery variant
Keep 'show log' on screen until user dismisses it

Also increase log output to 24 lines

Change-Id: I11381e347c2238f2058ea97f9143476ec3a80cf6
dedupe: backup & restore selinux contexts.

- patch set 2: remove the comment line, adjust freecon.

Change-Id: Ib691146f5e4d33014aac2b540aefc06657818eb4
create /data/media directory after internal storage is wiped

This will prevent denial to read/write from internal storage under some circumstances

Change-Id: I10ee3dcdbe4ce7063f534f59a5e09c2ec33c1b7a
format non vold extra storage to ext4 when no selinux context is defined

Change-Id: I810d071c53d570ff0c53ea3a69e4225b4df81db1
do not include dead code

This code has not been used for over 3yrs. Developers interested in its
origins, reference commit 4196e0fa5e0c6b2a27ee5626f4cfa22375ac6ea1 .

Change-Id: I588fa2fe4b92fa1508699a904d2be18b83b471c6
cleanup unused code

reset_ext4fs_info() is always called by make_ext4fs()

Change-Id: I48e75a7c55d21e4386bffa15d81aaeb702477df7
fix null struct exception

Change-Id: I9bf32849598c0725e2ce9a8a441bc41c6119c2bf
cleanup preserve data/media workaround

Change-Id: I634c9229368c6c8ea20cafb47c8c0403cae2be6c
Fix 'media' exception:

In CWM, a bug was preventing any path/file named media from being backed up
This patch will exclude only /data/media path and not other media files/folders

Change-Id: I8d998eca35d36e9877339182e8152d6cee0fde23
Support selinux context inside tar archive

New busybox update supports -p option to store selinux context inside tar

Change-Id: I38e2a194235e6b10d6ae040b6c93497136528186
f2fs: fix nandroid restore to f2fs partitions

Change-Id: I7bf243045748949766e0128662e66dfc04378d06
Remove obsolete check on device_flash_type() before trying to read args from BCB

get_bootloader_args() has handled the case where the misc partition
doesn't exist or is an unknown type since 7501798f... ("Fix nullpointer
when recovery.fstab does not define a "misc" partition") all the way
back in 2010, and we use set_bootloader_args() below unconditionally
anyway.  Remove this obsolete check.

Change-Id: Ie25083a6d24cf918f72cc1cc13b181292c61d160
Match AOSP get/set_bootloader_message() layouts

No change in behavior, just matching AOSP's code layout. LOGE has been
changed to LOGI for "Cannot load volume /misc!" since many devices do
not define a /misc partition in fstab.

Change-Id: I53c440f820fd4614b0af79e9283baa8c48453373
Version 6.0.4.9

This version marks the introduction of backup/restore support of
selinux contexts in dedupe and tar.