removing register and class path overrides

This commit is contained in:
Connor Tumbleson 2013-02-16 06:47:17 -06:00
parent e82c0754de
commit 881bb56b4d
2 changed files with 1 additions and 9 deletions

View File

@ -54,9 +54,6 @@ public class Androlib {
public void decodeSourcesRaw(ExtFile apkFile, File outDir, boolean debug)
throws AndrolibException {
try {
if (debug) {
LOGGER.warning("Debug mode not available.");
}
Directory apk = apkFile.getDirectory();
LOGGER.info("Copying raw classes.dex file...");
apkFile.getDirectory().copyToDir(outDir, "classes.dex");

View File

@ -20,8 +20,6 @@ import brut.androlib.AndrolibException;
import java.io.File;
import java.io.IOException;
import org.jf.baksmali.baksmali;
import org.jf.baksmali.main;
import org.jf.dexlib.Code.Analysis.ClassPath;
import org.jf.dexlib.DexFile;
/**
@ -43,14 +41,11 @@ public class SmaliDecoder {
}
private void decode() throws AndrolibException {
if (mDebug) {
ClassPath.dontLoadClassPath = true;
}
try {
baksmali.disassembleDexFile(mApkFile.getAbsolutePath(),
new DexFile(mApkFile), false, mOutDir.getAbsolutePath(),
null, null, null, false, true, true, mBakDeb, false, false,
mDebug ? main.DIFFPRE : 0, false, false, null, false);
0, false, false, null, false);
} catch (IOException ex) {
throw new AndrolibException(ex);
}