mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 12:17:38 +00:00
Fix unzip issues
This commit is contained in:
parent
4d8d79372a
commit
b4d948886c
@ -91,11 +91,11 @@ public class InstallMagisk extends ParallelTask<Void, Void, Boolean> {
|
||||
if (in == null) throw new FileNotFoundException();
|
||||
BufferedInputStream buf = new BufferedInputStream(in);
|
||||
buf.mark(Integer.MAX_VALUE);
|
||||
ZipUtils.unzip(buf, install, arch, true);
|
||||
ZipUtils.unzip(buf, install, arch + "/", true);
|
||||
buf.reset();
|
||||
ZipUtils.unzip(buf, install, "common", true);
|
||||
ZipUtils.unzip(buf, install, "common/", true);
|
||||
buf.reset();
|
||||
ZipUtils.unzip(buf, install, "chromeos", false);
|
||||
ZipUtils.unzip(buf, install, "chromeos/", false);
|
||||
buf.reset();
|
||||
ZipUtils.unzip(buf, install, "META-INF/com/google/android/update-binary", true);
|
||||
} catch (FileNotFoundException e) {
|
||||
|
@ -139,7 +139,7 @@ public class ZipUtils {
|
||||
continue;
|
||||
}
|
||||
// Don't include placeholder
|
||||
if (path.contains("system/placeholder")) {
|
||||
if (path.equals("system/placeholder")) {
|
||||
continue;
|
||||
}
|
||||
dest.putNextEntry(new JarEntry(path));
|
||||
|
Loading…
x
Reference in New Issue
Block a user