一、解压
apktool d example.apk
二、添加修改代码
三、生成未签名的APK
apktool b folder
apk在[folder]/dist/ 目录下
四、签名
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore example.keystore -signedjar example-signed.apk example.apk alias
debug:
jarsigner -verbose -keystore debug.keystore -signedjar example-signed.apk example.apk androiddebugkey //password:android
五、zipalign
zipalign.exe -v 4 source.apk dest.apk