recovery: only use vold format for exact path match

Otherwise when formatting /sdcard/.android_secure, it will be
matched to /sdcard and vold will format the entire /sdcard.

Change-Id: Ifc26121f982b391b4ccf582b6162ab76feb72cae
recovery: don't overallocate for get_android_secure_path

We simply need the space to fill both strings and a final null.

a char pointer is a lot larger than a char ;)

Change-Id: I3472e1a9978fb2f6d439d4af9c072a98cec0cd19
recovery: fix --update_package using legacy path

When using legacy path, recovery will not be able to mount the
correct device. Fix by resolving the symlink before installing.

Change-Id: Ibb268908458c49de09204a1a0ba3143e83ccc0c4
Revert "recovery: fix --update_package using legacy path"

Backing this out for now to prevent a tragic recovery loop
where it'll keep restarting to flash from /cache/recovery/command
and crash from signature verification bug. The loop can only
be ended by removing the command file via adb.

This reverts commit ca028615e43fe09c3dcceeb47ca8cf3ceb08c2b4.

Change-Id: Iea29ee04871e136c680df699f5d19570aba44113
recovery: Don't link with minivold

 * There are issues with conflicting symbols in OpenSSL that cause some
   nasty problems. Let's just build minivold as a standalone binary so
   we avoid anything like this in the future as well.

Change-Id: I691a403bb377171989cba4ff74a515050862be40
Revert "Revert "recovery: fix --update_package using legacy path""

This reverts commit ea09a67a552e58835f82382cc76b59b892535468.

Change-Id: I172ec887dd52e373d249d61b22eccaaae03dfb75