regression: fix decoding a jar file.

This commit is contained in:
Connor Tumbleson 2013-06-14 13:44:48 -05:00
parent edb1aa709f
commit 65be443e05

View File

@ -65,7 +65,6 @@ public class ApkDecoder {
public void decode() throws AndrolibException, IOException { public void decode() throws AndrolibException, IOException {
File outDir = getOutDir(); File outDir = getOutDir();
setAnalysisMode(mAnalysisMode, true);
if (!mForceDelete && outDir.exists()) { if (!mForceDelete && outDir.exists()) {
throw new OutDirExistsException(); throw new OutDirExistsException();
@ -97,6 +96,7 @@ public class ApkDecoder {
} }
if (hasResources()) { if (hasResources()) {
setAnalysisMode(mAnalysisMode, true);
// read the resources.arsc checking for STORED vs DEFLATE // read the resources.arsc checking for STORED vs DEFLATE
// compression // compression
// this will determine whether we compress on rebuild or not. // this will determine whether we compress on rebuild or not.