summaryrefslogtreecommitdiffstats
path: root/ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-05-28 01:36:45 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-05-28 01:36:45 +0200
commitf505e7035c225284a6af71466ea56f5151f8c0e1 (patch)
tree446b87889b56486f0cf387760a10dc06750fa9dc /ui.cpp
parentam 8af11cff: am 6f6e5bb8: am 41928ce6: Merge "Revert "recovery: change the way of rebooting when using power key combo"" (diff)
parentam 7b126d77: am 73151b51: Merge "recovery: change the way of rebooting when using power key combo" (diff)
downloadandroid_bootable_recovery-f505e7035c225284a6af71466ea56f5151f8c0e1.tar
android_bootable_recovery-f505e7035c225284a6af71466ea56f5151f8c0e1.tar.gz
android_bootable_recovery-f505e7035c225284a6af71466ea56f5151f8c0e1.tar.bz2
android_bootable_recovery-f505e7035c225284a6af71466ea56f5151f8c0e1.tar.lz
android_bootable_recovery-f505e7035c225284a6af71466ea56f5151f8c0e1.tar.xz
android_bootable_recovery-f505e7035c225284a6af71466ea56f5151f8c0e1.tar.zst
android_bootable_recovery-f505e7035c225284a6af71466ea56f5151f8c0e1.zip
Diffstat (limited to 'ui.cpp')
-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;