From 25a164dd10e2e7b0300295e860b7c2772314ba0f Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Fri, 6 Apr 2018 14:02:41 -0400 Subject: [PATCH] fix: Applications with implicit sdk versioning lose that information - This is a temporary hack to keep application building, but will not work due to missing nearly all resources. - refs: #1761 --- .../apktool-lib/src/main/java/brut/androlib/Androlib.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java index ccf2cdb4..651434a6 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java @@ -691,6 +691,10 @@ public class Androlib { if (inputFile.isDirectory()) { continue; } + if (! inputFile.isFile()) { + LOGGER.warning(String.format("File could not be located: %s", normalizedPath)); + continue; + } LOGGER.fine(String.format("Copying uncompressed asset: %s", normalizedPath)); ZipEntry newEntry = getStoredZipEntry(normalizedPath, inputFile);