How to use jarsigner for signing an apk?

后端 未结 3 1655
一整个雨季
一整个雨季 2020-12-29 04:50

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.Ca

相关标签:
3条回答
  • 2020-12-29 05:28

    For -tsa option enter the next one:

    jarsigner -verbose **-tsa http://timestamp.comodoca.com/rfc3161** -sigalg SHA1withRSA -digestalg SHA1 -keystore your_keystor_name.keystore YourAPK.apk youralias_key
    
    0 讨论(0)
  • 2020-12-29 05:30

    Use the jarsigner as below:

    jarsigner -keystore <keystore_file> -storepass <storepassword> <filenameTosigned> <alias>
    
    0 讨论(0)
  • 2020-12-29 05:43

    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:

    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

    0 讨论(0)
提交回复
热议问题