summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauronofrio Matarrese <poronofrio@gmail.com>2019-04-04 23:39:12 +0200
committerMauronofrio Matarrese <poronofrio@gmail.com>2019-04-04 23:40:19 +0200
commit82a2f45eb728339b72889f8417bcbfadcafa1794 (patch)
tree14250aa532415ced96f900a61758409b4a1fdd1f
parentFix recovery-twrp in some old CM trees (diff)
downloadandroid_bootable_recovery-82a2f45eb728339b72889f8417bcbfadcafa1794.tar
android_bootable_recovery-82a2f45eb728339b72889f8417bcbfadcafa1794.tar.gz
android_bootable_recovery-82a2f45eb728339b72889f8417bcbfadcafa1794.tar.bz2
android_bootable_recovery-82a2f45eb728339b72889f8417bcbfadcafa1794.tar.lz
android_bootable_recovery-82a2f45eb728339b72889f8417bcbfadcafa1794.tar.xz
android_bootable_recovery-82a2f45eb728339b72889f8417bcbfadcafa1794.tar.zst
android_bootable_recovery-82a2f45eb728339b72889f8417bcbfadcafa1794.zip
-rwxr-xr-xpartitionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 79068f79d..31e909878 100755
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -3088,7 +3088,7 @@ bool TWPartitionManager::Prepare_Repack(const std::string& Source_Path, const st
if (TWFunc::copy_file(Source_Path, destination, 0644))
return false;
}
- std::string command = "cd " + Temp_Folder_Destination + " && /sbin/magiskboot --unpack -h " + Source_Path;
+ std::string command = "cd " + Temp_Folder_Destination + " && /sbin/magiskboot --unpack -h '" + Source_Path +"'";
if (TWFunc::Exec_Cmd(command) != 0) {
LOGINFO("Error unpacking %s!\n", Source_Path.c_str());
gui_msg(Msg(msg::kError, "unpack_error=Error unpacking image."));