AnsweredAssumed Answered

How to unzip&zip the OTA

Question asked by Qiulong Li on Dec 3, 2015
Latest reply on Dec 13, 2015 by Qiulong Li


My environment is i.MX6Q,Android 4.4.2.

I want to customise OTA,as Android_Frequently_Asked_Questions.pdf 's section How do I customize the reference OTA application said.
I generate by this command:

make dist -j4

and this can update my device system well in recovery.But when I unzip this then zip again without doing any modify,I found the file size changed and I can't do update,

My unzip and zip command is below:

unzip -d update

zip -r update

Then I signed the by the command below:

java -Xmx2048m -jar ~/android-4.4.2_sdi_in/out/host/linux-x86/framework/signapk.jar -w ~/android-4.4.2_sdi_in/device/fsl/common/security/testkey.x509.pem ~/android-4.4.2_sdi_in/device/fsl/common/security/testkey.pk8

This still not has the same size compare to,and still can't pass recovery to update system.

So my question is how to unzip&zip correctly?

Thank You

Qiulong Li