Add apktool version to output during decode/rebuild

This commit is contained in:
Connor Tumbleson
2013-09-17 21:52:09 -05:00
parent 27922bdb81
commit 02ac674551
3 changed files with 10 additions and 1 deletions

View File

@ -262,7 +262,9 @@ public class Androlib {
HashMap<String, Boolean> flags, String aaptPath)
throws BrutException {
mAaptPath = aaptPath;
LOGGER.info("Using Apktool " + Androlib.getVersion() + " on " + appDir.getName());
mAaptPath = aaptPath;
Map<String, Object> meta = readMetaFile(appDir);
Object t1 = meta.get("isFrameworkApk");
flags.put("framework", t1 == null ? false : (Boolean) t1);

View File

@ -31,6 +31,7 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.logging.Logger;
import java.util.zip.ZipEntry;
/**
@ -81,6 +82,8 @@ public class ApkDecoder {
}
outDir.mkdirs();
LOGGER.info("Using Apktool " + Androlib.getVersion() + " on " + mApkFile.getName());
if (hasResources()) {
setAnalysisMode(mAnalysisMode, true);
// read the resources.arsc checking for STORED vs DEFLATE
@ -342,6 +345,9 @@ public class ApkDecoder {
private final Androlib mAndrolib;
private final static Logger LOGGER = Logger.getLogger(Androlib.class
.getName());
private ExtFile mApkFile;
private File mOutDir;
private ResTable mResTable;