Skip to content

Commit

Permalink
clear boot_message after recovery init , For fixing bug that adb rebo…
Browse files Browse the repository at this point in the history
…ot does not reboot to system, like opper finder
  • Loading branch information
yanhao committed Oct 25, 2012
1 parent cd1b1b0 commit 73acac7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/recovery.c
Expand Up @@ -543,6 +543,7 @@ main(int argc, char **argv) {
#ifndef DEBUG
unlink(TEMPORARY_LOG_FILE);
#endif

freopen(TEMPORARY_LOG_FILE, "a", stdout); setbuf(stdout, NULL);
freopen(TEMPORARY_LOG_FILE, "a", stderr); setbuf(stderr, NULL);
printf("Starting recovery on %s", ctime(&start));
Expand All @@ -565,6 +566,10 @@ main(int argc, char **argv) {
load_volume_table();
get_args(&argc, &argv);

struct bootloader_message boot;
memset(&boot, 0, sizeof(boot));
set_bootloader_message(&boot);

int previous_runs = 0;
const char *send_intent = NULL;
const char *update_package = NULL;
Expand Down

0 comments on commit 73acac7

Please sign in to comment.