混淆语法
混淆官网语法链接
Types in descriptors can contain the following wildcards:
- % matches any primitive type (“boolean”, “int”, etc, but not “void”).
- ? matches any single character in a class name.
- *matches any part of a class name not containing the package separator.
- ** matches any part of a class name, possibly containing any number of package separators.
- * matches any type (primitive or non-primitive, array or non-array).
- … matches any number of arguments of any type.
如果需要不混淆重载的方法:
#注意使用...来匹配任意的参数集
-keep class com.txznet.comm.remote.ServiceManager{
public ** sendInvoke*(...);
}
反编译工具:
https://ibotpeaches.github.io/Apktool/
http://jd.benow.ca/
https://sourceforge.net/projects/dex2jar/
apktools主要用户反编译和打包;
JD-GUI 主要用于对.class文件展示为源码(比如jar文件)
dex2jar 主要用于将dex文件转化为jar文件
题外话:
Android 反编译初探 应用是如何被注入广告的