Commit c9217a41 authored by topjohnwu's avatar topjohnwu

Fix crashing when zip not signed

parent cb1df521
...@@ -136,7 +136,9 @@ public class ZipUtils { ...@@ -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 { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment