From e9a49efe75918183a32164fea91ddddf65ce7964 Mon Sep 17 00:00:00 2001 From: mauronofrio Date: Wed, 3 Oct 2018 13:38:16 +0200 Subject: Adding Edl button in reboot menu Edl mode is available only on qualcomm devices and it used to fully restore the bricked devices. I made the button available only if TW_HAS_EDL_MODE := true like the download button. I set the edl button to the right of the download button, so devices can support edl button and download button. I also added the translation for all languages. Change-Id: I69d1058b8c050b722395c7b3da6dce1ccfbe7a91 --- openrecoveryscript.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openrecoveryscript.cpp') diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index d4d4da514..9478cd751 100755 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp @@ -343,6 +343,8 @@ int OpenRecoveryScript::run_script_file(void) { TWFunc::tw_reboot(rb_bootloader); else if (strlen(value) && strcmp(value, "download") == 0) TWFunc::tw_reboot(rb_download); + else if (strlen(value) && strcmp(value, "edl") == 0) + TWFunc::tw_reboot(rb_edl); else TWFunc::tw_reboot(rb_system); } else if (strcmp(command, "cmd") == 0) { -- cgit v1.2.3