Under the source code development /tools/ directory, there is a make_key script that can be used to generate certificates.
Step 1: CD to Development/Tools/Directory
Step 2: Run the make_key script: sudo. /make _ key platform '/c = cn/ST = your province/l = your location/o = your organization/ou = youorganizationalunit/cn = your name '
Note: testkey is the generated file name, followed by the contents of the certificate.
Step 3: Enter a custom password.
At this time: platform.x509.pem and platform.pk8 will be generated.
At this point, you can use the signapk.jar package in the out/host/linux-x86/framework/ directory to sign the apk.
If the native certificate is used, the directory can find the file platform.pk8 platform.x509.pem in/build/target/product/security/,or it has our generated files on it.
Put the apk, certificate and signapk.jar to be packaged in a directory.
To sign an application automatically using Android Studio, you need to generate. Jks, which contains a certificate and a private key, is usually password protected.
If there is a pem format certificate without a password, generate. Jks files are as follows:
How to generate. Jks file in pem certificate with password:
Suppose the password is c6a04bdc7236f5d18c75840f50dee 482b36ad4cc.
Generating. Jks file, imported as, when compiling the project, according to the input nickname and password generated above, choose to generate signature package or APK to complete the project signature.