如何使用的jarsigner签署的APK? [英] How to use jarsigner for signing an apk?
问题描述
我有很少的编程knowledge.I是能够通过命令提示符,然后我得到不同的罐子签名者的选择,我不知道如何使用them.Can打开罐子签名谁能解释我该怎么键入命令提示为了签署应用程序?
I have very little programming knowledge.I am able to open jar signer through the command prompt then I get various jar signer options,which i do not know how to use them.Can anyone explain me what should i type in the command prompt in order to sign the app?
推荐答案
您可以找到所有你需要有关d.android.com这一主题的信息:<一href="http://developer.android.com/tools/publishing/app-signing.html#signapp">http://developer.android.com/tools/publishing/app-signing.html#signapp
You can find all the information you need about this topic on d.android.com: http://developer.android.com/tools/publishing/app-signing.html#signapp
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore
my_application.apk alias_name
有一件事情,我花了几个小时了,但在官方文件中也提到:
One thing that cost me a few hours already, but is also mentioned in the official documentation:
从JDK 7中,默认签名algorithim发生了变化,需要你指定的签名和消化algorithims(-sigalg和-digestalg)当你签署一个APK
As of JDK 7, the default signing algorithim has changed, requiring you to specify the signature and digest algorithims (-sigalg and -digestalg) when you sign an APK
这篇关于如何使用的jarsigner签署的APK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!