本帖最后由 dytfy666 于 2020-3-10 22:08 编辑
- 工具以及版本
dex-tools-2.1-SNAPSHOT - Java JDK
java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) Client VM (build 25.231-b11, mixed mode)
报错如下:
C:\Users\hellworld\Downloads\Compressed\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT>d2j-smali.bat classes-out
smali classes-out -> out.dex
java.lang.RuntimeException: not support
at com.googlecode.d2j.dex.writer.ev.EncodedValue.wrap(EncodedValue.java:124)
at com.googlecode.d2j.dex.writer.AnnotationWriter$EncodedArrayAnnWriter.visit(AnnotationWriter.java:106)
at com.googlecode.d2j.smali.AntlrSmaliUtil.acceptAnnotation(AntlrSmaliUtil.java:740)
at com.googlecode.d2j.smali.AntlrSmaliUtil.acceptAnnotation(AntlrSmaliUtil.java:731)
at com.googlecode.d2j.smali.AntlrSmaliUtil.acceptAnnotations(AntlrSmaliUtil.java:697)
at com.googlecode.d2j.smali.AntlrSmaliUtil.acceptFile(AntlrSmaliUtil.java:46)
at com.googlecode.d2j.smali.Smali.smali0(Smali.java:78)
at com.googlecode.d2j.smali.Smali.smaliFile(Smali.java:42)
at com.googlecode.d2j.smali.Smali$1.visitFile(Smali.java:103)
at com.googlecode.d2j.smali.Smali$1.visitFile(Smali.java:91)
at java.nio.file.Files.walkFileTree(Unknown Source)
at java.nio.file.Files.walkFileTree(Unknown Source)
at com.googlecode.d2j.smali.Smali.smali(Smali.java:91)
at com.googlecode.d2j.smali.SmaliCmd.doCommandLine(SmaliCmd.java:68)
at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:290)
at com.googlecode.d2j.smali.SmaliCmd.main(SmaliCmd.java:26)
- 自己摸索:
百度了很久,使用了baksmali-2.4.0.jar,smali-2.4.0.jar
[Shell] 纯文本查看 复制代码 java -jar smali-2.4.0.jar a classes-out :: classes-out是反编译.dex的文件夹,包含.smali文件
这个可以反编译,也可以回编。
但是dex2jar工具就会报错,会不会是我缺少什么包,有大佬能看一哈么,随便能不能给个关键词怎么查看自己缺少什么包,新手一枚,一个小尝试耽误两天了:'(weeqw:'(weeqw |