1. unzip apk包
2. remove old signature directory: META-INF
3. 手动替换一些需要替换的文件.(文件可能还需要加密等操作)
4.压缩成apk包
5.用jarsigner工具,用指定的证书签名
sign apk file: jarsigner -keystore test.keystore -storepass password -verbose TestApp-unsigned.apk name_alias
6 .zip align: zipalign -v 4 TestApp-unsigned.apk aligned.apk
阅读(3881) | 评论(0) | 转发(0) |