allow sideload to be triggered via /cache/recovery command for eat

Change-Id: I36996ceea831160830815c1b267328f307bbd906
recovery: fix sideload cancel

Change-Id: I76fcea55cc38edc713211742890b00acf8de4117
Reverse kang Wil Wheaton Recovery enhancements.

Change-Id: Ia9eace0ff0826801515b335ac6543c1271948612
CWM version bump
Delete sideloaded file once installed

If not deleted, it will be unexpectedly re-installed in case
the user starts and then cancels adb sideload.

Change-Id: Idfea3b5d5c95ab29fd946cd404d1255105105ce3
Rename prebuilt recovery su to su.recovery, so it does not interfere with devices that have a shared recovery/boot.

Change-Id: Id542215a31c4617e230474b65ecf54bbc8117d4e
Fix compiler warning: redefinition in extendedcommands.c

ITEM_APPLY_SDCARD is already defined in recovery_ui.h, fortunately
also as 1.

This suggestion comes from Phil3759.

Change-Id: I9ac370ca9640d61b6b96f60954d35f7aa458d75b
Remove (un)mount option for datamedia partitions.

https://github.com/CyanogenMod/android_bootable_recovery/commit/9de39c14dc5d45e87b627f26853c98e595ddcd74
Fix the potential segmentation fault

Extral newline can trigger recovery segmentation fault
Test case:
host$ adb shell 'echo -en "--update_package=ota_update.zip\n--show_text\n\n" > /cache/recovery/command'
host$ adb reboot recovery

Change-Id: If1781c1f5ad94a273f1cb122b67cedd9fb562433
Signed-off-by: Jin Feng <jin88.feng@gmail.com>
recovery: use just the mount point instead of the full path

When resorting to using mount because a block device uses 'auto'
filesystem, we should use the mount point and not the full path.
This fixes an issue with nandroid to external sd on yuga.

Change-Id: Idbff944ea6d5af9112644c2ed46e23ea0a33e5ee
Fix stat usage.

https://github.com/CyanogenMod/android_bootable_recovery/commit/593b54c8f46d40f31bc47504fba3a0b9c2cdc573
Fix usage of stat vs statfs

Change-Id: Id59b79f079c587630f5f6ed0418a45f2b8cd99ff
Fixes for Superuser

Change-Id: I86a280088ee8767e02ba51b72f4d011cf4658f6f
SELinux: don't suppress the "no file_contexts" message on the UI

Change-Id: I1456e7e2d2a1f3e143c084e1410dd31c505793ad
add --headless mode

Change-Id: I6338ed1d093a8db20250bd060cf97896db268976
more headless fixes

Change-Id: I25243f67b8bcbef41867497b442d1b7f38f638dd
Remove "fix permissions" option

Original discussion here: http://review.cyanogenmod.org/45559

Patchset 2: really remove the option
Patchset 3: fix options that I broke on ps2

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I54877a24444c24a296c8c044efd977f30cc66de4
su installation and detection updates for 4.3

Change-Id: Idce9a6d4ca18ddc9b49029024c26bc114f6d3c15
add su daemon runner

Change-Id: Ibb9be9e764d0ccb842a26a0795a0bb6cb6113b58
4.3 detection fix

Change-Id: Ib5e3df51fa7a383f3699968e899e06d579480564