APK Ubuntu under digital signature

Source: Internet
Author: User

Android requires that each Android application must be digitally signed to install into the system, which means that an Android application is not digitally signed and is not installed in the system!Android uses digital signatures to identify the author of an application and to establish a trust relationship between applications, not to determine which applications the user can install finally.This digital signature is completed by the application's author and does not require an authoritative digital certificate signing Authority authentication, it is simply used to make the application package self-certified
If you change one of the files in the APK, or add a new file to the APK, you need to sign the APK again, in the Ubuntu process, such as the following: 2 commands are required for Keytool and Jarsigner, these 2 commands are in the JDK

1: I want to add in apk? A new file, open apk is one of the following

2: Add 1 new files log, delete meta-inf (do not delete sometimes after signing can not install), for example to
3: Use command to get key command: Keytool-genkey-v-keystore android.keystore-alias android-keyalg rsa-validity 20000
Explain:keytool-genkey-v-keystore (generated key name)-alias (key alias)-keyalg rsa-validity (valid)
Android Market enforces that all application digital certificates are valid until October 22, 2033

Need to set up password, can be casually written, but in the signature to use, the following is my random fill

4: Start signing command: Jarsigner-verbose-keystore Android.keystore-signedjar ~/desktop/playerproject.apkplayerproject.apkAndroid
Explain:Jarsigner-verbose-keystore (key name generated above)-signedjar (apk path after signing) (APK path before signature) (alias of key Android.keystore )

This will require the password set above

5: Installation Test



APK Ubuntu under digital signature

Related Article

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.