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 /twrp.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 '')
-rw-r--r-- | twrp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -187,13 +187,12 @@ int main(int argc, char **argv) { #ifdef TW_INCLUDE_INJECTTWRP // Back up TWRP Ramdisk if needed: TWPartition* Boot = PartitionManager.Find_Partition_By_Path("/boot"); - string result; LOGINFO("Backing up TWRP ramdisk...\n"); if (Boot == NULL || Boot->Current_File_System != "emmc") - TWFunc::Exec_Cmd("injecttwrp --backup /tmp/backup_recovery_ramdisk.img", result); + TWFunc::Exec_Cmd("injecttwrp --backup /tmp/backup_recovery_ramdisk.img"); else { string injectcmd = "injecttwrp --backup /tmp/backup_recovery_ramdisk.img bd=" + Boot->Actual_Block_Device; - TWFunc::Exec_Cmd(injectcmd, result); + TWFunc::Exec_Cmd(injectcmd); } LOGINFO("Backup of TWRP ramdisk done.\n"); #endif |