mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-07 10:35:52 +01:00
removing register and class path overrides
This commit is contained in:
parent
e82c0754de
commit
881bb56b4d
@ -54,9 +54,6 @@ public class Androlib {
|
|||||||
public void decodeSourcesRaw(ExtFile apkFile, File outDir, boolean debug)
|
public void decodeSourcesRaw(ExtFile apkFile, File outDir, boolean debug)
|
||||||
throws AndrolibException {
|
throws AndrolibException {
|
||||||
try {
|
try {
|
||||||
if (debug) {
|
|
||||||
LOGGER.warning("Debug mode not available.");
|
|
||||||
}
|
|
||||||
Directory apk = apkFile.getDirectory();
|
Directory apk = apkFile.getDirectory();
|
||||||
LOGGER.info("Copying raw classes.dex file...");
|
LOGGER.info("Copying raw classes.dex file...");
|
||||||
apkFile.getDirectory().copyToDir(outDir, "classes.dex");
|
apkFile.getDirectory().copyToDir(outDir, "classes.dex");
|
||||||
|
@ -20,8 +20,6 @@ import brut.androlib.AndrolibException;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.jf.baksmali.baksmali;
|
import org.jf.baksmali.baksmali;
|
||||||
import org.jf.baksmali.main;
|
|
||||||
import org.jf.dexlib.Code.Analysis.ClassPath;
|
|
||||||
import org.jf.dexlib.DexFile;
|
import org.jf.dexlib.DexFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,14 +41,11 @@ public class SmaliDecoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void decode() throws AndrolibException {
|
private void decode() throws AndrolibException {
|
||||||
if (mDebug) {
|
|
||||||
ClassPath.dontLoadClassPath = true;
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
baksmali.disassembleDexFile(mApkFile.getAbsolutePath(),
|
baksmali.disassembleDexFile(mApkFile.getAbsolutePath(),
|
||||||
new DexFile(mApkFile), false, mOutDir.getAbsolutePath(),
|
new DexFile(mApkFile), false, mOutDir.getAbsolutePath(),
|
||||||
null, null, null, false, true, true, mBakDeb, false, false,
|
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) {
|
} catch (IOException ex) {
|
||||||
throw new AndrolibException(ex);
|
throw new AndrolibException(ex);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user