summaryrefslogtreecommitdiffstats
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index c8f08cdd1..8e5b0f0e0 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -28,7 +28,9 @@
#include <time.h>
#include <unistd.h>
+#ifdef ANDROID_RB_RESTART
#include <cutils/android_reboot.h>
+#endif
#include "common.h"
#include "roots.h"
@@ -154,9 +156,11 @@ void RecoveryUI::process_key(int key_code, int updown) {
break;
case RecoveryUI::REBOOT:
+#ifdef ANDROID_RB_RESTART
if (reboot_enabled) {
android_reboot(ANDROID_RB_RESTART, 0, 0);
}
+#endif
break;
case RecoveryUI::ENQUEUE: