mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
don't break BC, store classes.dex in /smali
This commit is contained in:
parent
b2b5eb5f01
commit
56c953cd16
@ -71,7 +71,12 @@ public class Androlib {
|
|||||||
public void decodeSourcesSmali(File apkFile, File outDir, String filename, boolean debug, String debugLinePrefix,
|
public void decodeSourcesSmali(File apkFile, File outDir, String filename, boolean debug, String debugLinePrefix,
|
||||||
boolean bakdeb, int api) throws AndrolibException {
|
boolean bakdeb, int api) throws AndrolibException {
|
||||||
try {
|
try {
|
||||||
File smaliDir = new File(outDir, SMALI_DIRNAME + "_" + filename.substring(0, filename.indexOf(".")));
|
File smaliDir;
|
||||||
|
if (filename.equalsIgnoreCase("classes.dex")) {
|
||||||
|
smaliDir = new File(outDir, SMALI_DIRNAME);
|
||||||
|
} else {
|
||||||
|
smaliDir = new File(outDir, SMALI_DIRNAME + "_" + filename.substring(0, filename.indexOf(".")));
|
||||||
|
}
|
||||||
OS.rmdir(smaliDir);
|
OS.rmdir(smaliDir);
|
||||||
smaliDir.mkdirs();
|
smaliDir.mkdirs();
|
||||||
LOGGER.info("Baksmaling " + filename + "...");
|
LOGGER.info("Baksmaling " + filename + "...");
|
||||||
|
Loading…
Reference in New Issue
Block a user