summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2016-08-19 23:43:45 +0200
committerEthan Yonker <dees_troy@teamw.in>2017-06-17 14:05:45 +0200
commit56cf56465857e79e814b1e2d50f13e176170fcb3 (patch)
tree33b1ed63aa4e51f6e49fda5bd6ccb204e1e8fdab /openrecoveryscript.cpp
parentMerge "Fix minui issues for some build trees" into android-7.1 (diff)
downloadandroid_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.gz
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.bz2
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.lz
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.xz
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.zst
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.zip
Diffstat (limited to 'openrecoveryscript.cpp')
-rw-r--r--openrecoveryscript.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index faa0f9ca1..1cbf800ef 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -194,7 +194,7 @@ int OpenRecoveryScript::run_script_file(void) {
// Restore
DataManager::SetValue("tw_action_text2", gui_parse_text("{@restore}"));
PartitionManager.Mount_All_Storage();
- DataManager::SetValue(TW_SKIP_MD5_CHECK_VAR, 0);
+ DataManager::SetValue(TW_SKIP_DIGEST_CHECK_VAR, 0);
char folder_path[512], partitions[512];
string val = value, restore_folder, restore_partitions;
@@ -277,8 +277,8 @@ int OpenRecoveryScript::run_script_file(void) {
Restore_List += "/sd-ext;";
gui_msg("sdext=SD-EXT");
} else if (value2[i] == 'M' || value2[i] == 'm') {
- DataManager::SetValue(TW_SKIP_MD5_CHECK_VAR, 1);
- gui_msg("md5_check_skip=MD5 check skip is on");
+ DataManager::SetValue(TW_SKIP_DIGEST_CHECK_VAR, 1);
+ gui_msg("digest_check_skip=Digest check skip is on");
}
}
@@ -520,7 +520,7 @@ int OpenRecoveryScript::Backup_ADB_Command(std::string Options) {
args = TWFunc::Split_String(Options, " ");
DataManager::SetValue(TW_USE_COMPRESSION_VAR, 0);
- DataManager::SetValue(TW_SKIP_MD5_GENERATE_VAR, 0);
+ DataManager::SetValue(TW_SKIP_DIGEST_GENERATE_VAR, 0);
if (args[1].compare("--twrp") != 0) {
gui_err("twrp_adbbu_option=--twrp option is required to enable twrp adb backup");
@@ -608,7 +608,7 @@ int OpenRecoveryScript::Backup_Command(string Options) {
strcpy(value1, Options.c_str());
DataManager::SetValue(TW_USE_COMPRESSION_VAR, 0);
- DataManager::SetValue(TW_SKIP_MD5_GENERATE_VAR, 0);
+ DataManager::SetValue(TW_SKIP_DIGEST_GENERATE_VAR, 0);
gui_msg("select_backup_opt=Setting backup options:");
line_len = Options.size();
@@ -644,8 +644,8 @@ int OpenRecoveryScript::Backup_Command(string Options) {
DataManager::SetValue(TW_USE_COMPRESSION_VAR, 1);
gui_msg("compression_on=Compression is on");
} else if (Options.substr(i, 1) == "M" || Options.substr(i, 1) == "m") {
- DataManager::SetValue(TW_SKIP_MD5_GENERATE_VAR, 1);
- gui_msg("md5_off=MD5 Generation is off");
+ DataManager::SetValue(TW_SKIP_DIGEST_GENERATE_VAR, 1);
+ gui_msg("digest_off=Digest Generation is off");
}
}
DataManager::SetValue("tw_backup_list", Backup_List);
@@ -756,7 +756,7 @@ int OpenRecoveryScript::Restore_ADB_Backup(void) {
part_settings.total_restore_size = 0;
PartitionManager.Mount_All_Storage();
- DataManager::SetValue(TW_SKIP_MD5_CHECK_VAR, 0);
+ DataManager::SetValue(TW_SKIP_DIGEST_CHECK_VAR, 0);
LOGINFO("opening TW_ADB_BU_CONTROL\n");
adb_control_bu_fd = open(TW_ADB_BU_CONTROL, O_WRONLY | O_NONBLOCK);