From efa1bab94c332892abe7306cc963edaed709f651 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Mon, 1 Feb 2010 15:59:12 -0800 Subject: change log recovery to generic device_recovery_start function Remove (or at least stop calling) the HTC-specific mechanism for preserving the recovery log from before a radio or hboot update. Replace it with a generic device_recovery_start() function which each device's code can implement to do whatever it wants on recovery startup. Change-Id: If3cca4b498c0b1cf0565236404ecf56a1fc46123 --- recovery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'recovery.c') diff --git a/recovery.c b/recovery.c index 1a885602d..73a54a23e 100644 --- a/recovery.c +++ b/recovery.c @@ -44,9 +44,8 @@ static const struct option OPTIONS[] = { { "update_package", required_argument, NULL, 'u' }, { "wipe_data", no_argument, NULL, 'w' }, { "wipe_cache", no_argument, NULL, 'c' }, - // TODO{oam}: implement improved command line passing key, egnot to review. + // TODO{oam}: implement improved command line passing key, egnor to review. { "set_encrypted_filesystem", required_argument, NULL, 'e' }, - { "recover_log", no_argument, NULL, 'g' }, { NULL, 0, NULL, 0 }, }; @@ -492,13 +491,14 @@ 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; } } + device_recovery_start(); + fprintf(stderr, "Command:"); for (arg = 0; arg < argc; arg++) { fprintf(stderr, " \"%s\"", argv[arg]); -- cgit v1.2.3