How to sign update.zip

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to sign update.zip

Jump to solution
2,656 Views
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

Labels (4)
0 Kudos
1 Solution
1,548 Views
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

View solution in original post

1 Reply
1,549 Views
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