mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-07 18:45:58 +01:00
[SmaliDecoder] force 1 job if debug mode
This commit is contained in:
parent
652757cd36
commit
a4ac131479
@ -17,7 +17,6 @@
|
|||||||
package brut.androlib.src;
|
package brut.androlib.src;
|
||||||
|
|
||||||
import brut.androlib.AndrolibException;
|
import brut.androlib.AndrolibException;
|
||||||
import com.google.common.collect.Lists;
|
|
||||||
import org.jf.baksmali.baksmali;
|
import org.jf.baksmali.baksmali;
|
||||||
import org.jf.baksmali.baksmaliOptions;
|
import org.jf.baksmali.baksmaliOptions;
|
||||||
import org.jf.dexlib2.DexFileFactory;
|
import org.jf.dexlib2.DexFileFactory;
|
||||||
@ -36,7 +35,6 @@ import java.nio.file.Files;
|
|||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.SimpleFileVisitor;
|
import java.nio.file.SimpleFileVisitor;
|
||||||
import java.nio.file.attribute.BasicFileAttributes;
|
import java.nio.file.attribute.BasicFileAttributes;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||||
@ -81,9 +79,13 @@ public class SmaliDecoder {
|
|||||||
|
|
||||||
// set jobs automatically
|
// set jobs automatically
|
||||||
if (options.jobs <= 0) {
|
if (options.jobs <= 0) {
|
||||||
options.jobs = Runtime.getRuntime().availableProcessors();
|
if (mDebug) {
|
||||||
if (options.jobs > 6) {
|
options.jobs = 1;
|
||||||
options.jobs = 6;
|
} else {
|
||||||
|
options.jobs = Runtime.getRuntime().availableProcessors();
|
||||||
|
if (options.jobs > 6) {
|
||||||
|
options.jobs = 6;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user