diff --git a/src/brut/androlib/Androlib.java b/src/brut/androlib/Androlib.java index 2e1cc4d2..4c35170f 100644 --- a/src/brut/androlib/Androlib.java +++ b/src/brut/androlib/Androlib.java @@ -196,6 +196,9 @@ public class Androlib { public boolean buildResourcesFull(File appDir, boolean forceBuildAll, boolean framework) throws AndrolibException { try { + if (! new File(appDir, "res").exists()) { + return false; + } if (! forceBuildAll) { LOGGER.info("Checking whether resources has changed..."); } diff --git a/src/brut/androlib/res/AndrolibResources.java b/src/brut/androlib/res/AndrolibResources.java index d7114d4e..9583a2df 100644 --- a/src/brut/androlib/res/AndrolibResources.java +++ b/src/brut/androlib/res/AndrolibResources.java @@ -132,6 +132,11 @@ final public class AndrolibResources { public boolean detectWhetherAppIsFramework(File appDir) throws AndrolibException { + File publicXml = new File(appDir, "res/values/public.xml"); + if (! publicXml.exists()) { + return false; + } + Iterator it; try { it = IOUtils.lineIterator(