Do full update use SystemUpdaterSample succeed.
But when i do incremental update use SystemUpdaterSample, SystemUpdaterSample error.
the error code is kDownloadPayloadVerificationError. Do i Use the error system.img ?
The normal process is like this:
1.Build first aosp image as user guide, flash this image to board.
2.change some files and make second image
3.make incremental between first and second image.
Do you make incremental packages like this?
Can you share your android log about this failure?
1.Build first aosp image as user guide, flash this image to board.
flash to board use image in this location out/target/product/evk_8mq, flash succeed.
2.change some files and make second image
# make ota
make target-files-package -j16
cp out/target/product/evk_8mq/obj/PACKAGING/target_files_intermediates/evk_8mq-target_files-eng.frank.zip ~/ota/nxp/evk_8mq-target_files-eng-A.frank.zip
# change some files
make target-files-package -j16
cp out/target/product/evk_8mq/obj/PACKAGING/target_files_intermediates/evk_8mq-target_files-eng.frank.zip ~/ota/nxp/evk_8mq-target_files-eng-B.frank.zip
3.make incremental between first and second image.
./build/tools/releasetools/ota_from_target_files -i ~/ota/nxp/evk_8mq-target_files-eng-A.frank.zip ~/ota/nxp/evk_8mq-target_files-eng-B.frank.zip ~/ota/nxp/update.zip
Error info:
update_engine: [0913/085233.421711:ERROR:delta_performer.cc(1140)] Expected: sha256|hex = 685B998E4308F20FEA83D97E60222121FFE27983F013AED5C203709E139AE9DB
update_engine: [0913/085233.421760:ERROR:delta_performer.cc(1143)] Calculated: sha256|hex = B1025634138BF2B5378196E364350E1E5FCA126DEE0990A592290CEBFADC3F8B
Did i change the system.img ?
I have fixed this issue.
This issue may caused by such processs:
1.You flash images in out/
2.Then you make incremental-ota.zip to do ota
But this process is not correct.The hash value of system.img in out/ is different from PREVIOUS-target_files.zip.
You need make otapackage to do full update, this make sure that system.img's hash on board is same as PREVIOUS-target_files.zip.
Then do incremental update will always success.
I can reproduce same issue