Cd version/target/product/security/
Among them, platform.pk8 is the file needed for system signature.
1 In this directory, execute.
OpenSSL pkcs 8-inform DER-nocrypt-in platform . pk8-out platform . PEM
Generate temporary file platform.pem
Then execute the following command, and the platform.p 12 file will be generated in the directory, which should be a digital certificate in essence.
OpenSSL pkcs 12-export-in platform . x509 . PEM-out platform . p 12-in key platform . PEM-password pass:Android-name androiddebugkey
3, and then do the following,
keytool-import keystore-deststorepass Android-destkeystore。 /platform.jks -srckeystore。 /platform . p 12-srcstoretype pkcs 12-srcstorepass Android
The name can be changed to debug.keystore, and the suffix doesn't matter. eclipse and AS recognize platform.jks.
The following message appears, indicating that platform.jks has been successfully generated.
Then choose the platform.jks file when packaging apk, and use adb command to install apk directly into the machine.
Adb installs xxxx