Commit c4fe9150 authored by YASME-Tim's avatar YASME-Tim

Added support for files ending in .zip.

parent ffc64204
...@@ -40,7 +40,7 @@ public class InputFile { ...@@ -40,7 +40,7 @@ public class InputFile {
if (fileName.endsWith(".class")) { if (fileName.endsWith(".class")) {
return loadFromClassFile(file); return loadFromClassFile(file);
} }
if (fileName.endsWith(".apk")) { if (fileName.endsWith(".apk") || fileName.endsWith(".zip")) {
Dex dex = loadFromZip(file); Dex dex = loadFromZip(file);
if (dex == null) { if (dex == null) {
throw new IOException("File 'classes.dex' not found in file: " + file); throw new IOException("File 'classes.dex' not found in file: " + file);
......
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