[lk]: Add support for SSD implementation of image upgrade

Recovery sets bootloader messages in MISC partition as part of SSD
process.For NAND target, we set cookie in FOTA partition. For eMMC
target, recovery creates cookie file. We read the SSD update status
from the early boot chain and send it to recovery to finish up the
process.

Change-Id: I5d0d2dbe06bf1773fe9daaf6904f8e59a4c30ad4
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 2bf9be4..e997d74 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -869,10 +869,13 @@
 		boot_into_recovery = 1;
 	if (keys_get_state(KEY_VOLUMEUP) != 0)
 		boot_into_recovery = 1;
-	if (keys_get_state(KEY_BACK) != 0)
-		goto fastboot;
-	if (keys_get_state(KEY_VOLUMEDOWN) != 0)
-		goto fastboot;
+	if(!boot_into_recovery)
+	{
+		if (keys_get_state(KEY_BACK) != 0)
+			goto fastboot;
+		if (keys_get_state(KEY_VOLUMEDOWN) != 0)
+			goto fastboot;
+	}
 
 	#if NO_KEYPAD_DRIVER
 	/* With no keypad implementation, check the status of USB connection. */
@@ -892,6 +895,8 @@
 
 	if (target_is_emmc_boot())
 	{
+		if(emmc_recovery_init())
+			dprintf(ALWAYS,"error in emmc_recovery_init\n");
 		boot_linux_from_mmc();
 	}
 	else