资源混淆
下载地址:https://github.com/shwenzhang/AndResGuard
1.1.AndResGuard-master目录中,找到tool_output目录
1.2.将apk放到tool_output目录下
1.3.修改config.xml文件
示例:
<resproguard>
<issue id="sign" isactive="true">
<!--the signature file path, in window use \, in linux use /, and the default path is the running location-->
<path value="itheima.keystore"/>
<!--storepass-->
<storepass value="123456"/>
<!--keypass-->
<keypass value="123456"/>
<!--alias-->
<alias value="itheima"/>
</issue>
</resproguard>
命令行生成签名
keytool -genkeypair -alias itheima -keyalg RSA -validity 3650 -keypass 123456 -storepass 123456 -keystore itheima.keystore
1.4.将SevenZip\executable目录下找到7za-windows_x86_64.exe拷贝到工程的tool_output目录下
1.5.执行命令
H:\Program\Java\jdk7\jdk1.7.0_79\bin\java.exe -jar AndResGuard-cli-1.1.4.jar app.apk -7zip 7za-windows_x86_64.exe