greedy .dex finder is finding dex files in unknown folders

- which android can't load unless its in /root of apk
This commit is contained in:
Connor Tumbleson 2015-10-15 08:57:20 -05:00
parent e7c1bcefe8
commit 76a940628f

View File

@ -251,7 +251,7 @@ public class ApkDecoder {
public boolean hasMultipleSources() throws AndrolibException { public boolean hasMultipleSources() throws AndrolibException {
try { try {
Set<String> files = mApkFile.getDirectory().getFiles(true); Set<String> files = mApkFile.getDirectory().getFiles(false);
for (String file : files) { for (String file : files) {
if (file.endsWith(".dex")) { if (file.endsWith(".dex")) {
if (! file.equalsIgnoreCase("classes.dex")) { if (! file.equalsIgnoreCase("classes.dex")) {