Android App signing
Android requires that every Android app must be digitally signed to be able to Android to the system. Android uses digital signatures to identify the author of an application and establish a trust relationship between applications, which is done by the author of the application and does not require an authoritative digital certificate signing authority, which is used to authenticate the application itself.
Impact of Android app signing
With the same signing certificate, applications with different signatures cannot overwrite the generated application, even if the package name is the same, so the primary signature affects the following two points:
1, application upgrade. Upgrading software that uses the same signature can gracefully overwrite the installation of older versions of the software, otherwise the new version of the app installation will not be allowed when the system discovers that the signing certificate is inconsistent.
2, the application of modular. Android allows apps with the same signature to run in the same process, and updates can be upgraded separately.
Android Studio App signing steps:
1. Open Android Studio and select the project you want to publish.
2, choose Build-generate signed APK.
3. Create a new key file and fill in the signature parameters. The specific parameters are as follows:
Key Store Path: Signature file storage paths
Password: password
Alias: Aliases
Validity (years): Years of Certification
First and last name: personal name
Organizational Unit: organizational unit
Organization: Organization
City or Locality: cities or regions
State or province: States or Provinces
Country code (XX): Country codes
4, follow the prompts step by step to build the APK.
5, after signing, with zipalign optimization apk file, command: zipalign-v 4 demo.apk f.apk
This article is from the "Small Ant" blog, please make sure to keep this source http://16410743.blog.51cto.com/10657793/1691314
Android App signing