From 6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40 Mon Sep 17 00:00:00 2001 From: Ken Sumrall Date: Mon, 7 Mar 2011 23:37:27 -0800 Subject: Have recovery reboot using the new android_reboot() function. The new android_reboot() function is a nicer way to reboot the system. I can optionally sync() and remount read-only writable filesystems. This fixes bug 3350709. Change-Id: Ic4c8676debd642e57bce3107b99dd810d90b6f82 --- ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 179eb2ae6..0744da4d9 100644 --- a/ui.c +++ b/ui.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -30,6 +29,7 @@ #include #include "common.h" +#include #include "minui/minui.h" #include "recovery_ui.h" @@ -358,7 +358,7 @@ static void *input_thread(void *cookie) } if (ev.value > 0 && device_reboot_now(key_pressed, ev.code)) { - reboot(RB_AUTOBOOT); + android_reboot(ANDROID_RB_RESTART, 0, 0); } } return NULL; -- cgit v1.2.3