summaryrefslogtreecommitdiffstats
path: root/updater/target_files.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Check for overflow before allocating memory fore decompression.Kelvin Zhang2020-09-181-0/+7
| | | | | | | | On 32bit devices, an ZipEntry64 may have size > 2^32, we should check for such cases before attempting to allocate memory. Test: mm -j Change-Id: I0f916ef4b2a692f167719a74bd6ff2e887c6c2ce
* Switch to zip64 in recoveryKelvin Zhang2020-09-161-3/+3
| | | | | | | | | There's already library support for zip64 in libziparchive. We just need to start using the new APIs. Bug: 167951876 Test: Sideload a large ota package in recovery Change-Id: I652741965f28de079d873c6822317ee9fa855201
* Change the symlink to system_extJustin Yun2019-07-101-1/+1
| | | | | | | | | As system_ext partition will be linked to system/system_ext, update the path to system/system_ext. Bug: 134359158 Test: build Change-Id: I5a49adfe7e045e24bf6dfbf6990a965b8a5e1ce1
* Merge "Add unit tests for simulator"Tianjie Xu2019-06-281-0/+5
|\
| * Add unit tests for simulatorTianjie Xu2019-06-281-0/+5
| | | | | | | | | | | | | | | | | | Make sure the simulator succeeds executing common non-A/B update functions. Bug: 131911365 Test: run unit tests Change-Id: I520ce6a8827539b88a9e36f9e67eec30d8b586d4
* | Rename product_services to system_extJustin Yun2019-06-281-2/+2
|/ | | | | | Bug: 134359158 Test: build and boot Change-Id: I2ea21a0e528bdbab7d2479b48c73e7f2274ecca5
* Implement the TargetFile and BuildInfoTianjie Xu2019-06-011-5/+261
| | | | | | | | | | | The TargetFile class parses a target-file and provides functions to read its contents. And the BuildInfo tries to simulate the device with files on host. Some work it does includes parsing the build properties, and extracting the image files for partitions specified in the fstab. Bug: 131911365 Test: unit tests pass, run simulator with cuttlefish, wear devices and from extracted TF. Change-Id: Iefe4a96d619d2e4b3d038e31480f11a0f9a70afa
* Implement an update simulator to verify BB OTA packages on hostTianjie Xu2019-05-291-0/+26
Implement the simulator runtime and build the updater simulator as a host executable. The code to parse the target-files and mocks the block devices will be submitted in the follow-up. Bug: 131911365 Test: unit tests pass Change-Id: Ib1ba939aec8333ca68a45139514d772ad7a27ad8