recovery : add minadbd and sideload from AOSP

-- enable "adb sideload <zip>" command
recovery: make dedupe gc interruptable

The current gc approach is moving valid files into another directory,
which will corrupt the backup if the gc is ever interrupted.

Rewritten so that the list is compared in memory and only unused
files are removed, leaving the used files in place.

Change-Id: Ib10c40405eaaaa8141d1a6307bc2506789725439

Signed-off-by: stratosk <stratosk@semaphore.gr>
touch up the pictures, remove the leftover

Change-Id: Iaa68abc7ee2971456cc6f61b0549b5a68176fbd9

Signed-off-by: stratosk <stratosk@semaphore.gr>
mtdutils: fix crash on large erase block

allocate heap instead of stack for verify[]. otherwise it crashes on large erase block size e.g. 8MiB.

Change-Id: Ifaeb1e381af2b4bbdbeb7337848818299d7f441b

Signed-off-by: stratosk <stratosk@semaphore.gr>
6.0.1.5
recovery: fix build on x86

Recovery fails to build for x86 targets without these

Change-Id: Ib40d61a15ef8c3e23c6f667c0d13f744213b34fa

Signed-off-by: stratosk <stratosk@semaphore.gr>
Change menu descriptions to 'internal'
Android 4.2 migration fixes. If /data/media/0 exists after a data wipe, place the .layout_version file into /data to prevent Android 4.2 from running the data migration. This fixes the bug where multiple migrations end up with the following dirs: /sdcard/0/0/0/0. One /0 per each wipe.

Change-Id: I0adea3840c4ad6abcdead4c488ac5012b3744429

Signed-off-by: stratosk <stratosk@semaphore.gr>
6.0.1.6
More logging around backup completeion.

Change-Id: Ic9dcb1745f4172919da9d33fa6961bee3bef3b15

Signed-off-by: stratosk <stratosk@semaphore.gr>
import init.recovery.hardware.rc

Change-Id: I794a092942ece6928963343a06cc866534a1f34e

Signed-off-by: stratosk <stratosk@semaphore.gr>
graphics: add support for "single buffering"

When we don't have enough video memory for double buffering we
fallback to "single buffering".

Change-Id: I8bfab6d8cd6b54f0cc6c67edc41a4c37d8fbd4ba
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Signed-off-by: stratosk <stratosk@semaphore.gr>
minui: fix screen update issue

yres_virtual value is set incorrectly, causing serveral images to be skipped.
Change this value according to the number of buffers to fix this issue.

from: codeaurora.org
minui: Display the battery charging image correctly
commit: 581a4dead6b96579a13ff22e2454c1f329731679

Change-Id: I10f5d1c6cc37705f0287c7dd517082de2e11d264
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: stratosk <stratosk@semaphore.gr>
Fix bug in mako. Stack overflow/corruption caused by too small of a menu array. Need to put in a better fix that allocates the menu dynamically.
6.0.1.8
fix for backup completion log
revert mako hack fix. apparently that was not the problem.
6.0.1.9
Add larger Roboto font (23x41) for 1080p+ screens (ie Nexus 10)

Change-Id: I1b0f9b093c7bcafc356d34db4c1aa2436eecbdba

Signed-off-by: stratosk <stratosk@semaphore.gr>
Fix menu bug reported by sk8erwitskil: https://github.com/CyanogenMod/android_bootable_recovery/commit/014d02059c8533f7e1b2ff3f1e8fdb5464098c59#commitcomment-2185643

Change-Id: I790bcc13cd8fe6bf2f0d8c0511f7d50b50873ac8

Signed-off-by: stratosk <stratosk@semaphore.gr>