From aebdf7a51975f9a10523fbcf8e4f82e683735047 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sun, 6 Jan 2013 09:57:44 -0600 Subject: [PATCH] only show -aapt info in verbose mode --- CHANGES | 1 + .../src/main/java/brut/androlib/res/AndrolibResources.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 2a5148b4..ef039269 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ v1.5.2 (TBA) -Fixed (issue #299) - output smali filename errors to screen during rebuild instead of filestream +-Only show the --aapt / -a info in verbose mode. v1.5.1 PR3 (Released December 23 - 2012) Codename: Pre Release 3 -Reverted "Prevents removal of on decompile, but then throws warning on rebuild (issue #366)" diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java index 41816186..e8a02c83 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java @@ -276,7 +276,10 @@ final public class AndrolibResources { if (aaptFile.canRead() && aaptFile.exists()) { aaptFile.setExecutable(true); cmd.add(aaptFile.getPath()); - LOGGER.info(aaptFile.getPath() + " being used as aapt location."); + + if (flags.get("verbose")) { + LOGGER.info(aaptFile.getPath() + " being used as aapt location."); + } } else { LOGGER.warning("aapt location could not be found. Defaulting back to default"); cmd.add("aapt");