partitionmanager: magisk update sytnax as per new binaries

Change-Id: I51994b991472cf103de067b9856ff3df1bf35a90
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
(cherry picked from commit 5738e760646d67791e938954a8873da41209d58c)
This commit is contained in:
Mohd Faraz
2020-05-10 04:18:30 +05:30
committed by bigbiff
parent fb62b1806e
commit b98b4f7b96
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -3126,7 +3126,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."));
@@ -3178,7 +3178,7 @@ bool TWPartitionManager::Repack_Images(const std::string& Target_Image, const st
LOGERR("Disabling verity is not implemented yet\n");
if (Repack_Options.Disable_Force_Encrypt)
LOGERR("Disabling force encrypt is not implemented yet\n");
std::string command = "cd " + path + " && /sbin/magiskboot --repack " + path + "boot.img";
std::string command = "cd " + path + " && /sbin/magiskboot repack " + path + "boot.img";
if (TWFunc::Exec_Cmd(command) != 0) {
gui_msg(Msg(msg::kError, "repack_error=Error repacking image."));
return false;
@@ -3207,7 +3207,7 @@ bool TWPartitionManager::Repack_Images(const std::string& Target_Image, const st
return false;
}
path = REPACK_ORIG_DIR;
command = "cd " + path + " && /sbin/magiskboot --repack " + path + "boot.img";
command = "cd " + path + " && /sbin/magiskboot repack " + path + "boot.img";
if (TWFunc::Exec_Cmd(command) != 0) {
gui_msg(Msg(msg::kError, "repack_error=Error repacking image."));
return false;