Android Chinese API: How to securely sign the APK?

Source: Internet
Author: User

--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------

do the most intentions of Android technology sharing, public account" yard farm move Brick ", My choice.

--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------

Note : It is not a safe practice to use a compiled file that contains passwords and KeyStore. Alternatively, you can configure the build file to retrieve the password from the environment variable or during compilation.

1. Get the password from environment variables

 storepassword  System. getenv ("kstorepwd")  keypassword  System. getenv ("keypwd") 


2. Get the password from the command line

storePassword  system   . console   ().  readline   ( " \ Nkeystore Password: " )   keypassword  System. Console (). ReadLine ("\nkey password:") 

At the end of the process, you can describe and publish your app.

Warning: When you are sure that your keystore and private key are in a reliable, secure environment, you should be sure you have a backup of these files. If you publish an app, but you forget or lose the key, then you won't be able to post and update the APK, because you have to use a key to sign all versions of your app.


author has words: If you need android Chinese Api, concerned about the public account" code farm move Brick " , do the technology, we are intentions.


Android Chinese API: How to securely sign the APK?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.