android-Application signing and publishing
one ready to publish
1, remove log, set version number and name
2, signature, via ADT tool
3, the final test for the release terminal
4, Update release resources
5, prepare the remote server that the application relies on
Such as
Collect resources-Set up applications-compile-sign-remote server-test
two publishing to users
1,apk Propagation
2, download the website
3,ota Server
4, put it on the market and download it.
three automatic version upgrade feature
Mechanisms are TCP/IP
Method 1:
1, provide HTTP address, provide APK and detect the latest version of APK WebService
2, the program starts when the call webservice, if the server has a newer version, pop up the upgrade dialog box
3, users choose to upgrade, access to the APK URL can be
4, download process: Open a Web browser, using download download, manually click on the downloaded file, will pop up the notification message
Method 2: Write your own program to download, then install
Method 3: Put it directly on the market and use the convenient market protocol to upgrade
Two program signing mechanism
Symmetric encryption:
The process of encrypting and decrypting is symmetric and the keys used are the same
Asymmetric encryption (more secure):
Asymmetric public and private keys
Digital Signature: The program is encrypted
three-Program version management
In the manifest file, add:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.chengzhi.androidbroadcastreceiver" android:versionCode="1" android:versionName="1.0" >
After you update the version, change the number above to overwrite the previous version installation
four signing with Eclipse and ADT
Right-click Project Android Tools->export signed application
Such as:
1, confirm the project
2, enter the password
3, no key created by itself
4, fill in the appropriate release information
5,finish Signature Complete
five-side questions
Talk about the Android signature mechanism:
1 Follow the digital signature mechanism, asymmetric encryption, using the Keytool and Jarsigner two signature tools
2 Keytool generates the private key (the number of bits encrypted at its discretion),
3 Jarsigner Package The signature into the APK based on the private key
4 when it was released, Android was officially verified by public key.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
android-Application signing and publishing