From 881bb56b4dead850bddcebb477a6f769bd5cf422 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sat, 16 Feb 2013 06:47:17 -0600 Subject: [PATCH] removing register and class path overrides --- .../apktool-lib/src/main/java/brut/androlib/Androlib.java | 3 --- .../src/main/java/brut/androlib/src/SmaliDecoder.java | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java index 77b48143..5dcc40d2 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java @@ -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"); diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java index ee882a6d..248e0dc3 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/SmaliDecoder.java @@ -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); }