Signing an application for Android

  Android package name as a unique identifier, when the same name in the same packet using two mobile phone installation, installed after the application will overwrite the previous application (in the case the same signature).

  Signature has two main functions:

    1. Determine the publisher's identity. Since the application developer can replace the program has been installed by using the same package name, so use this situation signature avoided.

    2. Ensure the integrity of the application. Each signature file will be processed in the application package to ensure the package file will not be replaced.

  ** In the development, debugging stage, AS will automatically generate debug certificate is signed. When the application release, application must be signed using the appropriate digital certificate.

⒈ use Android applications on the AS signature

  1. Click AS main menu Build => "Generate Signed Bundle / APK"

  2. The system prompts you to generate "Android App Bundel", or generate "APK", which when Android App Bundel Google's new dynamic publishing solutions, App publishing option is smaller, faster installation, but the largest support for Google Play (Google App store) issue only when domestic reasons "Google service is not to force" often 404, so we choose "APK".

  3. Select an existing or new, we choose New, "Create new"

  After selecting "OK" 4. Select the digital certificate filled out just created in a new window.

  5. Click the "Next" button, select the storage path APK installation package and signed version in a new dialog box, V1 version only JAR package signatures, V2 version of the entire APK signature, recommended to choose the V2 version.

  6. Select "Finish" to complete after signature.

Guess you like

Origin www.cnblogs.com/fanqisoft/p/11005245.html