Remove (un)mount option for datamedia partitions

When /sdcard is /data/media, it can be formatted but it cannot be
mounted/unmounted independently of /data (aside from creating or
destrying the symlink). This removes /sdcard from the mountable
volumes list, but leaves it as a formattable partition.

Change-Id: If59e4516a12da4589ffb0dbd19702f219260370e
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
move "install zip from sideload" to installation submenu

* Also includes the below commit:

fix installation from internal sdcard

bug introduced in previous commit

Change-Id: If41d409801e9a58df9515ac783bf503f80909d3e

* I've done some minor changes to the original commit,
  which includes but is not limited to moving the
  "install zip from sideload" above "/sdcard/update.zip".

Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
Change-Id: I27a763a0d41085719a6c7d9c3b8a20fbcae4b072
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

Change-Id: Iab3290adca1602a23fc407d2b3f50b9aeac60389
Fix usage of stat vs statfs

Change-Id: Id59b79f079c587630f5f6ed0418a45f2b8cd99ff

Conflicts:
	nandroid.c
Update for zlib changes

Depends on http://review.cyanogenmod.org/#/c/37912/

Change-Id: I7d541813f520c3a3187f6c193e47b201cd220957
Add sdparted option to partition in ext4 fstype

Taken from PhilZ Touch recovery

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

Change-Id: I079617fc32f8ad0aea754a60898cd4f9cc482524
Update wipe data option confirmation

This commit allows the wipe data/factory reset option to recognize the
.one_confirm or .no_confirm files in the clockworkmod folder.

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

Change-Id: Ib0f82b4448e3b9df95a5e59a49428f3e9da58578
Add power off & reboot to bootloader mode in advanced menu

Also:
Cleanup leftovers from previous poweroff option
Always ensure a clean reboot (Thanks to PhilZ for his implementation)

Bootloader option defaults to "bootloader" (fastboot mode), it can be overriden
by defining "ro.bootloader.mode=download" prop for samsung download mode
We leave reboot to bootloader option always enabled, that way we can
override the get_filtered_menu_selection bug that breaks the order
of the options when NULLifying menu options.

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

Change-Id: I6d674b37ab41ab342b105993719277360b4707e4

Conflicts:

	extendedcommands.c
Fixes for Superuser

Change-Id: I86a280088ee8767e02ba51b72f4d011cf4658f6f
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
unset immutable bit on install-recovery.sh

Change-Id: Ie7e8bfea57bed207c3c2d57bf3cd23daf6cd4c20
Fix issue where android device manager, etc, dont actually wipe data.

--wipe_data issues via /cache/recovery/command will now completely format data.

All other manual wipe commands will preserve data on /data/media.
There is another mounts/storage option that will do a true data format.

Change-Id: Ie8ecd2b0e14c3bb1d8a404ea868cdf703455d2ab

Conflicts:

	Android.mk
Remove unsupported partitioning options
Just to make sure as they might be dangerous

Change-Id: I89965909d9a79fabaaa0cbdbedf16a127565c373
Version 6.0.3.7

Change-Id: Ib1c3ea7629a2a9db10b6f0e19e738ab94709801b