diff options
author | Tao Bao <tbao@google.com> | 2015-05-27 22:25:45 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-27 22:25:45 +0200 |
commit | 7b126d77e85fce7f34f3888bfa34081d7d347b02 (patch) | |
tree | 446b87889b56486f0cf387760a10dc06750fa9dc | |
parent | am 41928ce6: Merge "Revert "recovery: change the way of rebooting when using power key combo"" (diff) | |
parent | Merge "recovery: change the way of rebooting when using power key combo" (diff) | |
download | android_bootable_recovery-7b126d77e85fce7f34f3888bfa34081d7d347b02.tar android_bootable_recovery-7b126d77e85fce7f34f3888bfa34081d7d347b02.tar.gz android_bootable_recovery-7b126d77e85fce7f34f3888bfa34081d7d347b02.tar.bz2 android_bootable_recovery-7b126d77e85fce7f34f3888bfa34081d7d347b02.tar.lz android_bootable_recovery-7b126d77e85fce7f34f3888bfa34081d7d347b02.tar.xz android_bootable_recovery-7b126d77e85fce7f34f3888bfa34081d7d347b02.tar.zst android_bootable_recovery-7b126d77e85fce7f34f3888bfa34081d7d347b02.zip |
-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; |