Android APK签名(针对jdk1.7)

生成秘钥

keytool -genkey -v -keyalg DSA -keysize 1024 -sigalg SHA1withDSA  -validity 20000  -keystore MyDevel.keystore -alias devel   -keypass MyDevel -storepass MyDevel


带密码的签名

jarsigner  -verbose -sigalg SHA1withDSA -digestalg SHA1  -keystore myDevel.keystore -storepass MyDevel test.apk devel


验证签名是否正确

jarsigner -verbose -verify  jifenqiang_signed.apk 

你可能感兴趣的:(Android APK签名(针对jdk1.7))