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 --- data.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data.cpp') diff --git a/data.cpp b/data.cpp index 0ece4e793..cf9dd2476 100755 --- a/data.cpp +++ b/data.cpp @@ -722,6 +722,10 @@ void DataManager::SetDefaultValues() printf("TW_HAS_DOWNLOAD_MODE := true\n"); mConst.SetValue(TW_DOWNLOAD_MODE, "1"); #endif +#ifdef TW_HAS_EDL_MODE + printf("TW_HAS_EDL_MODE := true\n"); + mConst.SetValue(TW_EDL_MODE, "1"); +#endif #ifdef TW_INCLUDE_CRYPTO mConst.SetValue(TW_HAS_CRYPTO, "1"); printf("TW_INCLUDE_CRYPTO := true\n"); -- cgit v1.2.3