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

Change-Id: I0ee83f9a97f523182dd81a2a349ae5e05ca34fcf
Prohibit mounting/formatting swap partitions in recovery

You can't mount a swap partition, and the recovery doesn't support
formatting one at the moment.  Therefore, ensure that swap partitions
don't appear as useless, confusingly-named entries in the mounts menu.

Change-Id: Iefc33e6b0b09deb9effd2e8a93fb825af4a338a3
Fix verify_root_and_recovery menu selections

Because of the way default_recovery_keys.c is setup, hiding the back
button causes the POWER and SEARCH keys to no longer work as selection
keys.

- Remove old legacy unused code
- Keep the device_reboot_now API if one needs to use it
- Hide the Go Back button from confirm menu

Change-Id: I517690a7b9f85ccc778f2bb6acbf967c1416d1fc
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
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
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
cwm: Remove hardcoded paths

Change-Id: I1874f0bbbaa81e0eea507e9d9444307191eeb753
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
cwm: Honor recovery variant

Change-Id: I7fd28c162ea711cecb3ef75db6a1cb5cbcef453a
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
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
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
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
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
format non vold extra storage to ext4 when no selinux context is defined

Change-Id: I810d071c53d570ff0c53ea3a69e4225b4df81db1
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
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