From 3de632f04c0502999519c77e4a3c8b18bd6d9f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Wed, 8 Sep 2010 14:24:04 +0200 Subject: [PATCH] Added more info messages during decoding. --- src/brut/androlib/Androlib.java | 1 - src/brut/androlib/res/AndrolibResources.java | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/brut/androlib/Androlib.java b/src/brut/androlib/Androlib.java index d7d403c3..084c1744 100644 --- a/src/brut/androlib/Androlib.java +++ b/src/brut/androlib/Androlib.java @@ -91,7 +91,6 @@ public class Androlib { public void decodeResourcesFull(ExtFile apkFile, File outDir, ResTable resTable) throws AndrolibException { - LOGGER.info("Decoding resources..."); mAndRes.decode(resTable, apkFile, outDir); } diff --git a/src/brut/androlib/res/AndrolibResources.java b/src/brut/androlib/res/AndrolibResources.java index 91e1aec6..17e3b945 100644 --- a/src/brut/androlib/res/AndrolibResources.java +++ b/src/brut/androlib/res/AndrolibResources.java @@ -71,6 +71,7 @@ final public class AndrolibResources { } resTable.addPackage(pkg, true); + LOGGER.info("Loaded."); return pkg; } @@ -94,6 +95,7 @@ final public class AndrolibResources { } resTable.addPackage(pkg, false); + LOGGER.info("Loaded."); return pkg; } @@ -126,13 +128,18 @@ final public class AndrolibResources { ExtMXSerializer xmlSerializer = getResXmlSerializer(); for (ResPackage pkg : resTable.listMainPackages()) { attrDecoder.setCurrentPackage(pkg); + + LOGGER.info("Decoding file-resources..."); for (ResResource res : pkg.listFiles()) { fileDecoder.decode(res, in, out); } + + LOGGER.info("Decoding values*/* XMLs..."); for (ResValuesFile valuesFile : pkg.listValuesFiles()) { generateValuesFile(valuesFile, out, xmlSerializer); } generatePublicXml(pkg, out, xmlSerializer); + LOGGER.info("Done."); } AndrolibException decodeError = duo.m2.getFirstError();