summaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
authorJared Suttles <jared.suttles@motorola.com>2009-08-04 22:19:46 +0200
committerDoug Zongker <dougz@android.com>2009-08-18 02:39:54 +0200
commitc2d666bd4f6eb5f7a9f17b10435c161cb105b7c5 (patch)
tree4b49e234a927329adfe8e59de8446a26303119a9 /recovery.c
parentam 54e2e86c: (-s ours) do not merge: cherry-picked 60151a295ccf726238dc47456d80b427db6d6a38 from master branch (diff)
downloadandroid_bootable_recovery-c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5.tar
android_bootable_recovery-c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5.tar.gz
android_bootable_recovery-c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5.tar.bz2
android_bootable_recovery-c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5.tar.lz
android_bootable_recovery-c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5.tar.xz
android_bootable_recovery-c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5.tar.zst
android_bootable_recovery-c2d666bd4f6eb5f7a9f17b10435c161cb105b7c5.zip
Diffstat (limited to '')
-rw-r--r--recovery.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/recovery.c b/recovery.c
index ed6a9c888..f812e741b 100644
--- a/recovery.c
+++ b/recovery.c
@@ -208,6 +208,15 @@ get_args(int *argc, char ***argv) {
set_bootloader_message(&boot);
}
+static void
+set_sdcard_update_bootloader_message()
+{
+ struct bootloader_message boot;
+ memset(&boot, 0, sizeof(boot));
+ strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
+ strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
+ set_bootloader_message(&boot);
+}
// clear the recovery command and prepare to boot a (hopefully working) system,
// copy our log file to cache as well (for the system to read), and
@@ -352,6 +361,7 @@ prompt_and_wait()
case ITEM_APPLY_SDCARD:
ui_print("\n-- Install from sdcard...\n");
+ set_sdcard_update_bootloader_message();
int status = install_package(SDCARD_PACKAGE_FILE);
if (status != INSTALL_SUCCESS) {
ui_set_background(BACKGROUND_ICON_ERROR);