Signapk.jar is a signature tool in the Android source package.
The code is located in: Android source directory, Signapk.jar can compile build/tools/signapk/get.
Signature files are required when using Signapk.jar signature, we can use testkey.pk8 with Testkey.x509.pemprovided in Android source code, they are located in Android source code build/ Target/product/security directory.
Use the Android-powered signature tool Signapk.jar and the source testkey.x509.pem,testkey.pk8 to re-sign the APK.
Execution:java-jar signapk.jar testkey.x509.pem testkey.pk8 old.apk new.apk is executed after new.apk is the signed file.
(Note: When executing a command, all files are placed in the same directory , if not in the same directory, modify the path).
Meaning: by Signapk.jar This executable jar package, TESTKEY.X509.PEM this public key file and testkey.pk8 this private key file to the OLD.APK signature, the signed file is saved as old.apk.
Use the Signapk.jar tool to sign the APK file