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

@ -23,6 +23,7 @@ v2.0.0 (TBA)
-Fixed (issue #496) - Fixes Windows builds caused by java.nio problems
-Fixed (issue #510) - Any error output is sent stderr instead of stdout
-Fixed (issue #426) - Filename too long (JesusFreke)
-Added output to list Apktool version to help debugging.
-Updated known bytes for configurations to 38 (from addition of layout direction)
-Fixed NPE when handling odex apks even with --no-src specified. (Thanks Rodrigo Chiossi)

View File

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

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;