summaryrefslogtreecommitdiffstats
path: root/updater/updater_runtime_dynamic_partitions.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-20Add slot suffix to DAP opsYifan Hong1-57/+70
If device supports both A/B and non-A/B, when applying a non-A/B package, add current slot suffix and apply the update to the partition at current slot. This includes: - (un)map_partition in edify script. For example, map_partition("system") will automatically append slot suffix to "system" before calling CreateLogicalPartition. - All operations in dynamic_partitions_op_list. For example, add foo group_foo will automatically append slot suffix to foo and group_foo before editing the super partition metadata. Test: apply update Bug: 153581609 Change-Id: Idbd0bfea142529a33dddb4d2debfc74513290730 (cherry picked from commit bc7e1db2118feba14d2efe19651d40df7cf202be) Merged-In: Idbd0bfea142529a33dddb4d2debfc74513290730
2019-08-14updater: Fix build for new CreateLogicalPartition signature.David Anderson1-2/+9
Bug: 135752105 Test: mm libupdater_device Change-Id: I9dc6dc1e9112177ee5c0a96b8969dc3dc02d95f2
2019-06-24Fix build for API change to DestroyLogicalPartition().David Anderson1-1/+1
This method no longer contains a timeout parameter; it has been removed in favor of changes to libdm. Bug: 135771280 Test: builds Change-Id: Id8c0f17c2787412bc4588af5a1bc49cc8e6edd51
2019-06-24Implement updater runtime for dynamic partitionsTianjie Xu1-113/+14
The simulator skips executing the operations for dynamic partitions, and will use the logical images under target_files/IMAGES directly. (Similar to the targets without DAP enabled) Bug: 131911365 Test: run update on cuttlefish, run simulator Change-Id: Id318d97ece4560df9f20dc5cabeb8b2e261bdf9c
2019-01-14updater: add functions to modify dynamic partition metadataYifan Hong1-0/+435
Test: sideload full OTA on cuttlefish Test: sideload incremental OTA on cuttlefish (that grows system, shrinks vendor, and move vendor to group foo) Test: verify that /cache/recovery/cc46ebfd04058569d0c6c1431c6af6c1328458e4 exists (sha1sum of "system") Bug: 111801737 Change-Id: Ibdf6565bc1b60f3665c01739b4c95a85f0261ae5