vold: don't crash when formatting card with no filesystem

Change-Id: I69c805e94e7ba217d99b6e7cd35e23649961001d
Allow symlinks to be used in vold managed fstab entries

With device-tree kernels the sysfs path for SD cards varies depending on
device-tree layout and the actual card used. It is therefore impossible
to specify the sysfs path for the device in fstab.

However, there exists a symlink to the device which is created under a
generic path like '/sys/block/mmcblk0/device'. To use such a path with
vold we need to convert the symlinked path to the real path, which this
patch does.

Change-Id: I68e693772e70b758dab22fcd5f0eb4b9e84a2443
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Port symlinked paths patch to Android 4.4

Change-Id: Ic514f994e970e3f5de64dd8e20eefd30ff9ec1e2
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Revert "Port symlinked paths patch to Android 4.4"

This reverts commit f8af6daa9aff029d49895410fc54ef2ca233adb6.
Revert "Allow symlinks to be used in vold managed fstab entries"

This reverts commit 8083c1c8121313bd2ab8b85f7e4b6b00a6dd286c.
Allow symlinks to be used in vold managed fstab entries

With device-tree kernels the sysfs path for SD cards varies depending on
device-tree layout and the actual card used. It is therefore impossible
to specify the sysfs path for the device in fstab.

However, there exists a symlink to the device which is created under a
generic path like '/sys/block/mmcblk0/device'. To use such a path with
vold we need to convert the symlinked path to the real path, which this
patch does.

Change-Id: I68e693772e70b758dab22fcd5f0eb4b9e84a2443
Signed-off-by: Jon Medhurst <tixy@linaro.org>
segfault THIS.

Change-Id: Id09d97c0f52d79c7695f8839406302b83d0da0fd
Revert "Build minivold for recovery"

This reverts commit 5ba43d0c70871da49c0b55187e916563eb4b175b.

Conflicts:
	.Android.mk.swp
	Android.mk
Revert "minivold: adjustments for vold in recovery"

This reverts commit 163ae386bda11c737bd6a8df683a8df666ce4c30.
Fix libselinux incompatibility.

CM's version has some extra stuff. selinux_android_restorecon(const char *file) for them points to selinux_android_restorecon_flags(const char *file, unsigned int flags), defaulting flags to 0, so since this call has 0 in there already there shouldn't be any issues just removing it.
Fix another derp in reverting MiniVold.
Aaaand fix another derp.
Ext4: SD card write access fix

chown everything to media_rw on ext4 forated sdcard

Change-Id: I01a5a82b24feb3e52849664e02c5acaed85fc2e3
Fix build.