开发者

How to make silent sign programatically for apk

I want to make silent programatically sign for apk using Java desktop application, I am using this code to sign it manually

E:\Programing\java\Android\keytools>jarsigner -verbose -keystore keys/mahmoud-release-key.keystore image_slider.apk -keypass 123456 -storepass 123456

Although I put the password on a command, the jarsigner ask me again to type the password

What the best way to make sile开发者_JS百科nt sign programatically ?

Thanks a lot


If you are using(or willing to) Maven, there is a jarsigner plugin called "maven-jarsigner-plugin"-generally used for signing java files. You can store your keystore credentials on your maven settings and viola! Everytime you build your app, your apk gets signed. Check this link for further details. i hope this helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜