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
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

Change-Id: I7fd28c162ea711cecb3ef75db6a1cb5cbcef453a
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