官网:https://code.google.com/p/smali/
2015-01-20 v2.0.5 is out! It fixes a multi-threading issue in baksmali in 2.0.4, and it switches the default for implicit references to no-implicit-references, for better backwards compatibility. 2015-01-20 The v2.0.4 release is faulty. The download has been removed, and a fixed v2.0.5 will be released shortly. 2015-01-20 v2.0.4 is out - Added optional functionality to add the resource name as a comment to likely resource accesses. See the help for the new -i/--resource-id-files option (credit: Jeff Smith/whydoubt)
- Added comments for constants that are likely an encoded float/double (credit: Jeff Smith/whydoubt)
- Added support for implicit method/field references within a class, which allows you to leave off the class name when referencing a field/method within the current class.
- Changed short option for --check-package-private-access to -k (from -K) (thanks to yyjdelete for noticing/reporting a problem with an interim change related to this)
- Added the ability to disassemble a file other than classes.dex within an apk (credit: Connor Tumbleson/iBotPeaches)
- other misc bugfixes, etc.
反编译用法:
java -jar baksmali-2.0.5.jar -o c:\classout/ c:\classes.dex
把c:\classes.dex反编译为smali,输出到c:\classout目录
编译用法:
java -jar smali-2.0.5.jar c:\classout/ -o c:\classes.dex
把c:\classout目录下的smali文件编译为c:\classes.dex |