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
This commit is contained in:
mauronofrio
2018-10-03 13:38:16 +02:00
committed by Ethan Yonker
parent 08f91e84e0
commit e9a49efe75
31 changed files with 97 additions and 0 deletions
+2
View File
@@ -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) {