diff options
author | Gaelle Nassiet <gaellex.nassiet@intel.com> | 2015-05-27 10:39:29 +0200 |
---|---|---|
committer | Gaelle Nassiet <gaellex.nassiet@intel.com> | 2015-05-27 15:47:44 +0200 |
commit | e5ce2a5a10076e6f939a3736f570b48aa9a7cd24 (patch) | |
tree | 446b87889b56486f0cf387760a10dc06750fa9dc /ui.cpp | |
parent | Merge "Stop using libstdc++." (diff) | |
download | android_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 |
Diffstat (limited to '')
-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; |