OTA和apk包签名

java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 unsigned-update.zip signed-update.zip

签名工具要根据项目配置来决定,需和recovery所用保持一致。

见build/tools/releasetools/common.py  SignFile()函数


apk签名

java -jar out/host/linux-x86/framework/signapk.jar build/target/product/security/platform.x509.pem build/target/product/security/platform.pk8 ~/tmp/NetworkLocation.apk ~/tmp/NetworkLocation-sign.apk


查看apk签名信息:
jarsigner -verify -verbose -certs your_application.apk



你可能感兴趣的:(java,工具)