Update dex2jar

This provides a better solution to #348
This commit is contained in:
Nico Mexis 2021-08-27 01:16:52 +02:00
parent e6b2576b57
commit 79403f320f
No known key found for this signature in database
GPG Key ID: 27D6E17CE092AB78
3 changed files with 5 additions and 5 deletions

View File

@ -237,7 +237,7 @@
<dependency> <dependency>
<groupId>com.github.ThexXTURBOXx</groupId> <groupId>com.github.ThexXTURBOXx</groupId>
<artifactId>dex2jar</artifactId> <artifactId>dex2jar</artifactId>
<version>v23</version> <version>v24</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.weisj</groupId> <groupId>com.github.weisj</groupId>

View File

@ -62,8 +62,8 @@ public class SmaliAssembler extends InternalCompiler
} }
try { try {
com.googlecode.d2j.smali.SmaliCmd.main(new String[]{tempSmaliFolder.getAbsolutePath(), com.googlecode.d2j.smali.SmaliCmd.main(tempSmaliFolder.getAbsolutePath(),
"-o", tempDex.getAbsolutePath()}); "-o", tempDex.getAbsolutePath());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
//BytecodeViewer.handleException(e); //BytecodeViewer.handleException(e);

View File

@ -73,8 +73,8 @@ public class SmaliDisassembler extends InternalDecompiler
Dex2Jar.saveAsDex(tempClass, tempDex, true); Dex2Jar.saveAsDex(tempClass, tempDex, true);
try { try {
com.googlecode.d2j.smali.BaksmaliCmd.main(new String[]{tempDex.getAbsolutePath(), com.googlecode.d2j.smali.BaksmaliCmd.main(tempDex.getAbsolutePath(),
"-o", tempDexOut.getAbsolutePath()}); "-o", tempDexOut.getAbsolutePath());
} catch (Exception e) { } catch (Exception e) {
StringWriter sw = new StringWriter(); StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw)); e.printStackTrace(new PrintWriter(sw));