12/12/2014

Google Play, How to publish an APK

A Cookbook for how to take an unsigned Android APK, sign then align, upload, create a mini-store site and publish.

1.        Download the unsigned APK
2.        Install JDK 1.70 release 67
3.        Use the keytool to create a new keypair of RSA, with 2048 bits and good for 10000 days
4.        Use the jarsigner to sign the unsigned APK
5.        Install Android Studio with sdk 21
6.        Use the zipalign to byte align the package
7.        Create and fund a Google Developer account
8.        All Applications - Add a new application
9.        Title – Upload APK – Prepare Store Listing (required)
·       Title
·       Short Description
·       Full Description
·       Graphic Assets – Phone shot – HiRes icon, Feature Graphic
·       Application type
·       Category
·       Content rating
·       Website
·       Email
·       Phone
·       Privacy Policy
10.    Publish – takes approx. about 2-3 hours to appear via Link, 6 hours for Google Play Store Search Index to be updated.

Example:
C:\> cd '.\Program Files\Java\jdk1.7.0_67\bin'

C:\Program Files\Java\jdk1.7.0_67\bin> .\keytool.exe -genkey -v -keystore release.keystore -alias keyalias -keyalg RSA -keysize 2048 -validity 10000

mkdir c:\vault
cp release.keystore c:\vault
cp MyApp-release-unsigned.apk c:\vault

C:\Program Files\Java\jdk1.7.0_67\bin> .\jarsigner.exe -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore C:\vault\release.keystore C:\vault\MyApp-release-unsigned.apk keyalias

Install the Android Studio with an SDK 21
https://developer.android.com/sdk/index.html
C:\> cd '.\Users\my.name\AppData\Local\Android\sdk\build-tools\21.1.1'
C:\Users\my.name\AppData\Local\Android\sdk\build-tools\21.1.1> .\zipalign -v 4 C:\vault\MyApp-release-unsigned.apk C:\vault\MyApp-release.apk
Go to the Developer Console, upload and build out mini-site, publish:
https://play.google.com/apps/publish/signup