diff --git a/adapter/ohos/Compressor.java b/adapter/ohos/Compressor.java index 15fe2d8ffb77fd51465d98ce29f312552acd15b4..912f086988dc221d6fcc9e2c2c12c501f2e1ed4d 100644 --- a/adapter/ohos/Compressor.java +++ b/adapter/ohos/Compressor.java @@ -48,6 +48,7 @@ import java.util.regex.Pattern; import java.util.UUID; import java.util.zip.CRC32; import java.util.zip.CheckedOutputStream; +import java.util.zip.Deflater; import java.util.zip.ZipInputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -335,6 +336,7 @@ public class Compressor { fileOut = new FileOutputStream(destFile); checkedOut = new CheckedOutputStream(fileOut, new CRC32()); zipOut = new ZipOutputStream(checkedOut); + zipOut.setLevel(Deflater.BEST_SPEED); compressExcute(utility); } catch (FileNotFoundException exception) { compressResult = false;