summaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-03-08 08:37:27 +0100
committerKen Sumrall <ksumrall@android.com>2011-03-11 04:30:13 +0100
commit6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40 (patch)
tree2cffd23c946b1d84de4ebe06b3114507c933dd21 /recovery.c
parentdon't reboot for inactivity if USB is connected (diff)
downloadandroid_bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar
android_bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar.gz
android_bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar.bz2
android_bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar.lz
android_bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar.xz
android_bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.tar.zst
android_bootable_recovery-6e4472abbd3c7be9cd31d98a03df1e3b6fa92f40.zip
Diffstat (limited to 'recovery.c')
-rw-r--r--recovery.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/recovery.c b/recovery.c
index 14fc905c2..fd7ce42f1 100644
--- a/recovery.c
+++ b/recovery.c
@@ -23,7 +23,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/reboot.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
@@ -33,6 +32,7 @@
#include "bootloader.h"
#include "common.h"
#include "cutils/properties.h"
+#include "cutils/android_reboot.h"
#include "install.h"
#include "minui/minui.h"
#include "minzip/DirUtil.h"
@@ -768,7 +768,6 @@ main(int argc, char **argv) {
// Otherwise, get ready to boot the main system...
finish_recovery(send_intent);
ui_print("Rebooting...\n");
- sync();
- reboot(RB_AUTOBOOT);
+ android_reboot(ANDROID_RB_RESTART, 0, 0);
return EXIT_SUCCESS;
}