summaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-01-21 01:34:10 +0100
committerDoug Zongker <dougz@android.com>2010-01-21 21:50:04 +0100
commit687bc12ccfbda26ad134b27d09d1d70a2b8705a6 (patch)
tree83d313c1cb3e9a3a6795faeceb832cfd1f423870 /recovery.c
parentam 4e9332cb: am 22d79a5c: make offsets in firmware update header not point to bad blocks (diff)
downloadandroid_bootable_recovery-687bc12ccfbda26ad134b27d09d1d70a2b8705a6.tar
android_bootable_recovery-687bc12ccfbda26ad134b27d09d1d70a2b8705a6.tar.gz
android_bootable_recovery-687bc12ccfbda26ad134b27d09d1d70a2b8705a6.tar.bz2
android_bootable_recovery-687bc12ccfbda26ad134b27d09d1d70a2b8705a6.tar.lz
android_bootable_recovery-687bc12ccfbda26ad134b27d09d1d70a2b8705a6.tar.xz
android_bootable_recovery-687bc12ccfbda26ad134b27d09d1d70a2b8705a6.tar.zst
android_bootable_recovery-687bc12ccfbda26ad134b27d09d1d70a2b8705a6.zip
Diffstat (limited to '')
-rw-r--r--recovery.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/recovery.c b/recovery.c
index 58c84ef2f..1a885602d 100644
--- a/recovery.c
+++ b/recovery.c
@@ -46,6 +46,7 @@ static const struct option OPTIONS[] = {
{ "wipe_cache", no_argument, NULL, 'c' },
// TODO{oam}: implement improved command line passing key, egnot to review.
{ "set_encrypted_filesystem", required_argument, NULL, 'e' },
+ { "recover_log", no_argument, NULL, 'g' },
{ NULL, 0, NULL, 0 },
};
@@ -491,6 +492,7 @@ main(int argc, char **argv) {
case 'w': wipe_data = wipe_cache = 1; break;
case 'c': wipe_cache = 1; break;
case 'e': efs_mode = optarg; toggle_efs = 1; break;
+ case 'g': recover_firmware_update_log(); break;
case '?':
LOGE("Invalid command argument\n");
continue;
@@ -562,7 +564,7 @@ main(int argc, char **argv) {
if (status != INSTALL_SUCCESS || ui_text_visible()) prompt_and_wait();
// If there is a radio image pending, reboot now to install it.
- maybe_install_firmware_update(send_intent);
+ maybe_install_firmware_update(send_intent, TEMPORARY_LOG_FILE);
// Otherwise, get ready to boot the main system...
finish_recovery(send_intent);