summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaelle Nassiet <gaellex.nassiet@intel.com>2015-05-27 10:39:29 +0200
committerGaelle Nassiet <gaellex.nassiet@intel.com>2015-05-27 15:47:44 +0200
commite5ce2a5a10076e6f939a3736f570b48aa9a7cd24 (patch)
tree446b87889b56486f0cf387760a10dc06750fa9dc
parentMerge "Stop using libstdc++." (diff)
downloadandroid_bootable_recovery-e5ce2a5a10076e6f939a3736f570b48aa9a7cd24.tar
android_bootable_recovery-e5ce2a5a10076e6f939a3736f570b48aa9a7cd24.tar.gz
android_bootable_recovery-e5ce2a5a10076e6f939a3736f570b48aa9a7cd24.tar.bz2
android_bootable_recovery-e5ce2a5a10076e6f939a3736f570b48aa9a7cd24.tar.lz
android_bootable_recovery-e5ce2a5a10076e6f939a3736f570b48aa9a7cd24.tar.xz
android_bootable_recovery-e5ce2a5a10076e6f939a3736f570b48aa9a7cd24.tar.zst
android_bootable_recovery-e5ce2a5a10076e6f939a3736f570b48aa9a7cd24.zip
-rw-r--r--ui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui.cpp b/ui.cpp
index 1a0b079cc..d88cbfeba 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -28,6 +28,7 @@
#include <time.h>
#include <unistd.h>
+#include <cutils/properties.h>
#include <cutils/android_reboot.h>
#include "common.h"
@@ -174,7 +175,8 @@ void RecoveryUI::ProcessKey(int key_code, int updown) {
case RecoveryUI::REBOOT:
if (reboot_enabled) {
- android_reboot(ANDROID_RB_RESTART, 0, 0);
+ property_set(ANDROID_RB_PROPERTY, "reboot,");
+ while(1) { pause(); }
}
break;