How to use terminal commands to sign android app -


i have built system allows marketing department manage our in house applications. ubuntu server uses sdk , terminal commands executed php create/build or update application, far has worked our off play store (adult) applications. looking @ launching of our new apps meet stores requirements on store.

when upload application store required signed private key, point me in right direction regards using sdk , terminal commands sign application.

while following page has plenty of information: http://developer.android.com/tools/publishing/app-signing.html

i wondering if else has done before, , can me code example instead of me banging head against wall 8 hours.

thank :d

on same page referenced in question there example command signing apk.

sign application private key

when have application package ready signed, can sign using jarsigner tool. make sure have jarsigner available on machine, described in basic setup. also, make sure keystore containing private key available.

to sign application, run jarsigner, referencing both application's apk , keystore containing private key sign apk. table below shows options use.

generate key store

$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg rsa -keysize 2048 -validity 10000 

sign apk.

$ jarsigner -verbose -sigalg sha1withrsa -digestalg sha1 -keystore my-release-key.keystore my_application.apk alias_name 

not sure more looking besides in documentation sign apk


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -