How to sign apk using the platform key
- 2020-06-01 11:01:35
1. Enter the < Android_Source_Path > / build/target/product/security, find and platform. pk8 】 【 【 platform. x509. pem 】 system key.
2. Enter the < Android_Source_Path > /build/tools/signapk find SignApk.java, run javac and compile to SignApk.class
3. Perform commands java com. android. signapk. SignApk platform. x509. pem platform. pk8 input. apk output. apk
OK, you have signed input.apk, and the output file is output.apk.
. In addition, the command java com android. signapk. SignApk platform. x509. pem platform. pk8 input. apk output. apk
Not only can apk files be re-signed, but all zip files can be re-signed, including ROM files.