apk重新签名
一、解压
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
其他
生成签名
keytool -genkey -v -keystore my-release-key.keystore -storepass testtest -keypass testtest -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=cName, OU=orgUnit, O=org, L=city, S=state, C=countryCode"