apk签名文件keystore制作工具

博主:秋蝉秋蝉 3年前 (2021) 2.29 K 0条评论

201809301538315879853285.png

此源码已将-keypass 和-storepass 设置为相同密码 

keystore.rar

用到的模块:取DOS执行结果
' 签名方法:在jdk1.8下有效,
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore MyACP.keystore  -storepass android -keypass android -signedjarrelease.apk debug.apk android

说明:
-keystore MyACP.keystore :签名秘钥文件(要求绝对路径)
-storepass android :秘钥密码
-keypass android :秘钥库密码
-signedjar release.apk debug.apk android :签名的apk保存文件名(要求绝对路径)、未签名的apk文件(要求绝对路径)、秘钥别名


如果jdk1.6签名无效,去除-sigalg SHA1withRSA 

需要jdk的支持(已配置环境),否则自己在源码中设置jdk信息


秋蝉博客www.100msh.net
The End

发布于:2021-02-04,除非注明,否则均为秋蝉'sblog原创文章,转载请注明出处。