diff options
author | Tao Bao <tbao@google.com> | 2015-05-27 21:28:20 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-05-27 21:28:21 +0200 |
commit | 73151b5101c132091d5853dd635b3fc941f242dc (patch) | |
tree | 446b87889b56486f0cf387760a10dc06750fa9dc /ui.cpp | |
parent | Merge "Revert "recovery: change the way of rebooting when using power key combo"" (diff) | |
parent | recovery: change the way of rebooting when using power key combo (diff) | |
download | android_bootable_recovery-73151b5101c132091d5853dd635b3fc941f242dc.tar android_bootable_recovery-73151b5101c132091d5853dd635b3fc941f242dc.tar.gz android_bootable_recovery-73151b5101c132091d5853dd635b3fc941f242dc.tar.bz2 android_bootable_recovery-73151b5101c132091d5853dd635b3fc941f242dc.tar.lz android_bootable_recovery-73151b5101c132091d5853dd635b3fc941f242dc.tar.xz android_bootable_recovery-73151b5101c132091d5853dd635b3fc941f242dc.tar.zst android_bootable_recovery-73151b5101c132091d5853dd635b3fc941f242dc.zip |
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |