文件名称:代码优化与混淆实现脚本-Android_开发培训教材
文件大小:4.13MB
文件格式:PPT
更新时间:2024-05-13 05:51:44
Android_开发培训教材.ppt
代码优化与混淆:实现脚本 aapt package -f -m -J gen \ -M AndroidManifest.xml \ -S res -A assets -I path/to/android.jar \ -F bin/resources.ap_ javac -d bin/classes \ -classpath bin/classes:xxx.jar \ -sourcepath src:gen -target 1.5 \ -bootclasspath path/to/android.jar \ "gen/xxx/R.java src/xxx/*.java ..." #替换jar cvfm bin/xxx.jar manifest.mf bin/classes java -jar proguard.jar -injars bin/classes \ -outjar bin/xxx.jar \ -libraryjars path/to/android.jar @proguard.txt dx --dex --output=bin/classes.dex bin/xxx.jar apkbuilder bin/xxx_unalign.apk -u -z bin/resources.ap_ \ -f bin/classes.dex jarsigner -keystore path/to/keystore \ -storepass '存储密码' -keypass '密码' bin/xxx-unalign.apk zipalign -f 4 bin/xxx-unalign.apk bin/xxx.apk