repack: move sbin to /system ramdisk and update repacking
for android-10 This will support updating the ramdisk to a different compression format and co-exist with magisk. We are also cleaning up and removing non android-10 api makefile actions. 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
This commit is contained in:
+2
-2
@@ -1487,7 +1487,7 @@ unsigned long long twrpTar::uncompressedSize(string filename) {
|
||||
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
|
||||
@@ -1512,7 +1512,7 @@ unsigned long long twrpTar::uncompressedSize(string filename) {
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user