diff options
author | Shashikant Baviskar <shashikant.baviskar@sony.com> | 2018-04-12 12:37:21 +0900 |
---|---|---|
committer | Satoshi Futenma <Satoshi.Futenma@sony.com> | 2018-08-21 22:15:27 +0900 |
commit | b1a9e080b446f09788d73645c42e2e78ae6f2d15 (patch) | |
tree | b15de4bf8e7b1c689a4e0d469e1568c4381afa5e /common/error_code_utils.cc | |
parent | 2a0ea6321578d30be3caa806a65149bffd09672a (diff) |
A/B update: Replace the zip FileHeader mechanism for update package
When the update package gets larger than 2 GiB, payload.bin offset
mentioned in metadata file for ota-streaming-property-files gets
shifted (CrAU of payload.bin) because ZipInfo FileHeader() returns
incorrect value. To solve the issue, offset is re-calculated from
fixed bytes of central directory file header, filename length and
extra length.
Test: manually create an A/B update package and run it using
update_device.py
Bug: 111198589
Change-Id: Iadb2e8bbff478d9b006bb155d57fea35968d84b7
Diffstat (limited to 'common/error_code_utils.cc')
0 files changed, 0 insertions, 0 deletions