Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move parse_range() and range_overlaps() into RangeSet. | Tao Bao | 2017-03-31 | 1 | -0/+95 |
| | | | | | | | | | | | | | | | Also move RangeSet into a header file to make it testable, and add unit tests. In RangeSet::Parse() (the former parse_range()), use libbase logging to do assertions. This has the same effect as the previous exit(EXIT_FAILURE) to terminate the updater process and abort an update. The difference lies in the exit status code (i.e. WEXITSTATUS(status) in install.cpp), which changes from 1 (i.e. EXIT_FAILURE) to 0. Test: recovery_unit_test Test: Apply an incremental update with the new updater. Change-Id: Ie8393c78b0d8ae0fd5f0ca0646d871308d71fff0 | ||||
* | Replace minzip with libziparchive | Tianjie Xu | 2016-10-18 | 1 | -2/+2 |
| | | | | | | | | | | | Clean up the duplicated codes that handle the zip files in bootable/recovery; and rename the library of the remaining utility functions to libotautil. Test: Update package installed successfully on angler. Bug: 19472796 Change-Id: Iea8962fcf3004473cb0322b6bb3a9ea3ca7f679e | ||||
* | Refactor libupdater into a seperate module. | Tao Bao | 2016-10-11 | 3 | -0/+85 |
So that we can write native tests for updater functions. This CL adds a testcase for getprop() function. Test: mmma bootable/recovery; Run recovery_component_test on device. Change-Id: Iff4c1ff63c5c71aded2f9686fed6b71cc298c228 |