mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +01:00
ApkDecoder: moved outDir creating from setOutDir() to decode().
This commit is contained in:
parent
a955495284
commit
901035d240
@ -49,17 +49,18 @@ public class ApkDecoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setOutDir(File outDir) throws AndrolibException {
|
public void setOutDir(File outDir) throws AndrolibException {
|
||||||
try {
|
|
||||||
mOutDir = outDir;
|
mOutDir = outDir;
|
||||||
OS.rmdir(outDir);
|
|
||||||
outDir.mkdirs();
|
|
||||||
} catch (BrutException ex) {
|
|
||||||
throw new AndrolibException(ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void decode() throws AndrolibException {
|
public void decode() throws AndrolibException {
|
||||||
File outDir = getOutDir();
|
File outDir = getOutDir();
|
||||||
|
try {
|
||||||
|
OS.rmdir(outDir);
|
||||||
|
} catch (BrutException ex) {
|
||||||
|
throw new AndrolibException(ex);
|
||||||
|
}
|
||||||
|
outDir.mkdirs();
|
||||||
|
|
||||||
switch (mDecodeSources) {
|
switch (mDecodeSources) {
|
||||||
case DECODE_SOURCES_NONE:
|
case DECODE_SOURCES_NONE:
|
||||||
mAndrolib.decodeSourcesRaw(mApkFile, outDir);
|
mAndrolib.decodeSourcesRaw(mApkFile, outDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user