Hide "mount USB storage" option from mount menu when the board has a virtual sdcard

Change-Id: I4e59768e9f34f0fb33d88ad382feaa2515d70bc4
Always run adbd as root in recovery.

At present, invoking "adb shell" while in recovery results in:

- exec '/system/bin/sh' failed: No such file or directory (2) -

"adb shell" should invoke /sbin/sh, but cannot as /sbin and /sbin/recovery
lack other-user execute permission.  Invoking "adb root" to restart adbd as
root _does_ work, however this behavior may not be intuitive to users who
encounter the above error.

The solution implemented here is to always run adbd as root in recovery, so
it has permission to run /sbin/sh.  Furthemore, user shells in recovery are
not particularly useful and "su" doesn't exist, thus "adb root" is likely
to be invoked anyways.

Change-Id: Iaaa25090e85d970e9a076fef068f5fae8202ab0b
Who approves this stuff... use get_volume_for_path('/sdcard') and check for null...

Revert "Hide "mount USB storage" option from mount menu when the board has a virtual sdcard"

This reverts commit e510810c71b5d4eb4d779c0db2d131d2b1b556af.
remove hacky board define around usb storage mounting on /data/media devices.

Change-Id: I2d382762271a2cfc6d83454160ed127b7457c88c
Big Font Mod and Roboto Fonts (XHDPI, HDPI, and MDPI)

- lets xhdpi devices (Galaxy Nexus, Xoom, etc) have a bigger font size (15x24)
- port Google's Roboto font into recovery for both XHDPI, HDPI, and MDPI font size, make them optional (LDPI is too small!)

(credits to gweedo767 for big font)

Change-Id: I621dbc7c8ac30a8f16039ce64720512e3e63881a
Misc tweaks / bug fixes

- readd "power off" to the main menu
- fix bug where stdout overflows into menu text
- remove +++++Go Back+++++ from main menu as there is nothing to go back to (detects menu depth)

Change-Id: Icb84ac86e55712412d07add0ab76955d7902f07c
remove power off. not useful in the main menu.

Change-Id: I8923d1e878994c3516798118961b4cdaa82ddc88
Respect volume length when formatting ext4 when restoring

This is needed for device encryption to work properly (there must
be space for a 16 KB footer at the end of the partition, which is
usually specified by the length option).

And yes, the old signature of make_ext4fs was wrong, but worked
anyway because the related header was not included and the compiler
let it pass an as implicit delcaration.

Change-Id: Ied7ec70bebc120cc2917771f59eeaeb7ea76bf8d
Recovery : Show menu if in non user initiated mode and error occurred

When using rom manager and applying a zip, if one encounters an error in recovery,
they're left on a screen with no visible controls (Forcing to hard reset phone).

Change-Id: Ia9b2f396fc95c7972a5a5580e1a50adf4af26060
reversed the logic

Change-Id: I62c104ee0c9218f929c10eda31f4bf5828b0de22
Fix up the mess around fonts and defines.

Change-Id: I3df3dae482ac6f8e9ddcbe2946dba43428bf46b1
derp

Change-Id: I5ffece3af80c0c328c61975d46f4de4cb22f2282
Various fixes to fix rendering of text. There will always be 3 lines of log shown. The menu can have long items in it now, rather than being truncated. The log text will be bottom aligned.

Change-Id: I09289e053c8ab673814318da55302efaab0404de

derp

Change-Id: I3fc31f5ea311c73c0ec999aa77d3fa0d01238001
fix build

Change-Id: Iac099f5a275b9633ed30d9e4a84acb99a57c4434
more derpage

Change-Id: I878386195a408d2a98137816515f5eaaa52ccf79
Merge "Always run adbd as root in recovery." into ics
fix up key value parsing

Change-Id: I05e821cd1215c44be780694644e568676fd67565
use source built e2fsprogs! thanks cvpcs!

Change-Id: Id3067d4da53643ae1af0b9f15445262afda7b197
Fix ui menu bug for long menus.

Change-Id: If009dee6b7597daeec62dd65baa7ad35e1adec5d

Conflicts:

	ui.c
Remove random offset message during installation

Change-Id: I2281a571e37ba9fac2b99806ce9c63e591b4d39f