diff options
author | Vojtech Bocek <vbocek@gmail.com> | 2013-09-11 08:11:56 +0200 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2013-09-12 17:36:40 +0200 |
commit | 05534209f104a435d91042fd4b816aaaae7b7b54 (patch) | |
tree | 64da042d36402180f30518f14ad460a1e970166b /openrecoveryscript.cpp | |
parent | Make fixing su perms automatic (diff) | |
download | android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.gz android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.bz2 android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.lz android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.xz android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.tar.zst android_bootable_recovery-05534209f104a435d91042fd4b816aaaae7b7b54.zip |
Diffstat (limited to 'openrecoveryscript.cpp')
-rw-r--r-- | openrecoveryscript.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index 88b382974..fee6fe9a4 100644 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp @@ -314,8 +314,7 @@ int OpenRecoveryScript::run_script_file(void) { } else if (strcmp(command, "cmd") == 0) { DataManager::SetValue("tw_action_text2", "Running Command"); if (cindex != 0) { - string status; - TWFunc::Exec_Cmd(value, status); + TWFunc::Exec_Cmd(value); } else { LOGERR("No value given for cmd\n"); } @@ -364,14 +363,13 @@ int OpenRecoveryScript::run_script_file(void) { return 1; } if (install_cmd && DataManager::GetIntValue(TW_HAS_INJECTTWRP) == 1 && DataManager::GetIntValue(TW_INJECT_AFTER_ZIP) == 1) { - string status; gui_print("Injecting TWRP into boot image...\n"); TWPartition* Boot = PartitionManager.Find_Partition_By_Path("/boot"); if (Boot == NULL || Boot->Current_File_System != "emmc") - TWFunc::Exec_Cmd("injecttwrp --dump /tmp/backup_recovery_ramdisk.img /tmp/injected_boot.img --flash", status); + TWFunc::Exec_Cmd("injecttwrp --dump /tmp/backup_recovery_ramdisk.img /tmp/injected_boot.img --flash"); else { string injectcmd = "injecttwrp --dump /tmp/backup_recovery_ramdisk.img /tmp/injected_boot.img --flash bd=" + Boot->Actual_Block_Device; - TWFunc::Exec_Cmd(injectcmd.c_str(), status); + TWFunc::Exec_Cmd(injectcmd.c_str()); } gui_print("TWRP injection complete.\n"); } |