How to sign update.zip

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to sign update.zip

跳至解决方案
4,362 次查看
lqll
Contributor III

Hello

My environment is i.MX6Q,Android 4.4.2.

I want to add uboot to update.zip,and I follow Android_Frequently_Asked_Questions.pdf 's section:How do I customize the update script to update uboot,and I get make_update_zip.sh from here,Updating Bootloader in OTA for imx6

But,I found ​ make_update_zip.sh did't resign my update.zip,it just make a update.zip from android source path,then resign that update.zip,not mine!

So I copy this code "java -jar ${ANDROID_BUILD_TOP}/out/host/linux-x86/framework/signapk.jar ${ANDROID_BUILD_TOP}/build/target/product/security/testkey.x509.pem ${ANDROID_BUILD_TOP}/build/target/product/security/testkey.pk8 update.zip update-signed.zip " from make_update_zip.sh then resign my own update.zip,but during recovery,it failed,said invalid signature.

Please help me sign update.zip contained uboot.

Thank You

Qiulong Li

标签 (4)
0 项奖励
回复
1 解答
3,254 次查看
wwggg
Contributor I

java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w device/fsl/common/security/testkey.x509.pem device/fsl/common/security/testkey.pk8 update.zip out/target/product/sabresd_6dq/update-signed.zip

在原帖中查看解决方案

1 回复
3,255 次查看
wwggg
Contributor I

java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w device/fsl/common/security/testkey.x509.pem device/fsl/common/security/testkey.pk8 update.zip out/target/product/sabresd_6dq/update-signed.zip