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.