mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-04 22:47:38 +00:00
Fix crashing when zip not signed
This commit is contained in:
parent
cb1df5217e
commit
c9217a419a
@ -136,7 +136,9 @@ public class ZipUtils {
|
|||||||
Enumeration e = zipfile.entries();
|
Enumeration e = zipfile.entries();
|
||||||
while(e.hasMoreElements()) {
|
while(e.hasMoreElements()) {
|
||||||
entry = (JarEntry) e.nextElement();
|
entry = (JarEntry) e.nextElement();
|
||||||
if (!entry.getName().contains(path)) {
|
if (!entry.getName().contains(path)
|
||||||
|
|| entry.getName().charAt(entry.getName().length() - 1) == '/') {
|
||||||
|
// Ignore directories, only create files
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Logger.dev("ZipUtils: Extracting: " + entry);
|
Logger.dev("ZipUtils: Extracting: " + entry);
|
||||||
|
@ -6,7 +6,7 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.2.2'
|
classpath 'com.android.tools.build:gradle:2.2.3'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user