Digital signature in APK ubuntu, apkubuntu

Source: Internet
Author: User

Digital signature in APK ubuntu, apkubuntu
The Android system requires that each Android application be installed in the system only by digital signature. That is to say, if an Android application is not digitally signed, it cannot be installed in the system! Android uses a digital signature to identify the author of an application and establish a trust relationship between the application. It is not used to determine which applications can be installed by the end user. This digital signature is completed by the author of the application and does not need to be authenticated by an authoritative Digital Certificate Signing Authority. It is only used to enable the application package to authenticate itself.
If you have modified a file in the APK or added a new file to the APK, you need to re-sign the APK. In ubuntu, perform the following steps: The keytool and jarsigner commands are required, the two commands are in jdk.

1: I want to add a new file to the APK. Open the APK as follows:

2: Add a new file log, delete the META-INF (do not delete sometimes the signature is not installed), such
3: Use the command to obtain the key. Command: keytool-genkey-v-keystore android. keystore-alias android-keyalg RSA-validity 20000
Explanation: keytool-genkey-v-keystore (generated key name)-alias (Key alias)-keyalg RSA-validity (validity period)
Android Market requires that all application digital certificates be valid until October 22, 2033

If you need to set a password, you can write it at will, but you need to use it when signing the code. The following content is all set by me.

4: start signing command: jarsigner-verbose-keystore android. keystore-signedjar ~ /Desktop/PlayerProject.apk android
Explanation: jarsigner-verbose-keystore (the key name generated above)-signedjar (the signed APK path) (the APK path before the signature) (the alias of the key android. keystore)

The above password is required.

5. installation and testing




The mobile phone installation software prompts that the apk file does not have a digital signature certificate.

You don't have to worry about installing without limits.


[Help] What if the APK file does not have a digital signature certificate?

Download and install the jave environment on your computer. Use the next signing tool to install the software.
 

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.