diff --git a/build.gradle b/build.gradle index 5b3085db1..cc146e724 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.topjohnwu.magisk" minSdkVersion 21 targetSdkVersion 27 - versionCode 84 - versionName "5.5.2" + versionCode 86 + versionName "5.5.3" ndk { moduleName 'zipadjust' abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' diff --git a/src/main/assets/changelog.md b/src/main/assets/changelog.md index f36b5da93..540194bcf 100644 --- a/src/main/assets/changelog.md +++ b/src/main/assets/changelog.md @@ -1,4 +1,4 @@ -### v5.5.2 -- Support sorting online repos with last update -- Fix issue that advanced installation settings won't stick -- Prevent sudb crashing Magisk Manager +### v5.5.3 +- Update translations +- Update internal scripts +- Minor bug fixes diff --git a/src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java b/src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java index 485b59b83..bdece8192 100644 --- a/src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java +++ b/src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java @@ -11,8 +11,8 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; -import java.util.jar.JarEntry; -import java.util.jar.JarInputStream; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; public class ZipUtils { @@ -30,9 +30,9 @@ public class ZipUtils { public static void unzip(InputStream zip, File folder, String path, boolean junkPath) throws Exception { try { - JarInputStream zipfile = new JarInputStream(zip); - JarEntry entry; - while ((entry = zipfile.getNextJarEntry()) != null) { + ZipInputStream zipfile = new ZipInputStream(zip); + ZipEntry entry; + while ((entry = zipfile.getNextEntry()) != null) { if (!entry.getName().startsWith(path) || entry.isDirectory()){ // Ignore directories, only create files continue;