repack: update repacking
This will support updating the ramdisk to a different
compression format and co-exist with magisk.
We are also moving twrp repacking to its own class. We
check the new ramdisk format and if it's different
we have magisk compress using the new ramdisk format.
Change-Id: I770030aae7797e75817178b2f0fccd9f39dc23af
diff --git a/twrpTar.cpp b/twrpTar.cpp
index b2d0ea6..94667a5 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -1471,7 +1471,7 @@
Command = "pigz -l '" + filename + "'";
/* if we set Command = "pigz -l " + tarfn + " | sed '1d' | cut -f5 -d' '";
we get the uncompressed size at once. */
- TWFunc::Exec_Cmd(Command, result);
+ TWFunc::Exec_Cmd(Command, result, false);
if (!result.empty()) {
/* Expected output:
compressed original reduced name
@@ -1496,7 +1496,7 @@
Command = "openaes dec --key \"" + password + "\" --in '" + filename + "' | pigz -l";
/* if we set Command = "pigz -l " + tarfn + " | sed '1d' | cut -f5 -d' '";
we get the uncompressed size at once. */
- TWFunc::Exec_Cmd(Command, result);
+ TWFunc::Exec_Cmd(Command, result, false);
if (!result.empty()) {
LOGINFO("result was: '%s'\n", result.c_str());
/* Expected output: