aboutsummaryrefslogtreecommitdiffstats
path: root/ui.c
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-03-07 23:37:27 -0800
committerKen Sumrall <ksumrall@android.com>2011-03-10 19:30:13 -0800
commit6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40 (patch)
tree2cffd23c946b1d84de4ebe06b3114507c933dd21 /ui.c
parent6ce4a326efae4abb108e19899f4d7776abc362da (diff)
downloadbootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.zip
bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar.gz
bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar.bz2
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
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 179eb2a..0744da4 100644
--- a/ui.c
+++ b/ui.c
@@ -22,7 +22,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/reboot.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -30,6 +29,7 @@
#include <unistd.h>
#include "common.h"
+#include <cutils/android_reboot.h>
#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;