Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e92ba40 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Revert "recovery: change the way of rebooting when using power key combo"

code doesn't compile:

  bootable/recovery/ui.cpp: In member function 'void RecoveryUI::ProcessKey(int, int)':
  bootable/recovery/ui.cpp:177:60: error: 'property_set' was not declared in this scope
                   property_set(ANDROID_RB_PROPERTY, "reboot,");
                                                            ^
  make: ***   [out/target/product/generic/obj/EXECUTABLES/recovery_intermediates/ui.o] Error 1

This reverts commit 074c1c23.

Change-Id: I3e0a24279e202df29308ce41eaacc86bfde89e5a
parent 074c1c23
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -174,8 +174,7 @@ void RecoveryUI::ProcessKey(int key_code, int updown) {

          case RecoveryUI::REBOOT:
            if (reboot_enabled) {
                property_set(ANDROID_RB_PROPERTY, "reboot,");
                while(1) { pause(); }
                android_reboot(ANDROID_RB_RESTART, 0, 0);
            }
            break;