commit | 3feb3237c08ddbead42ef0b05ec0193297d3fcf4 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Mon Sep 28 15:24:59 2020 -0700 |
committer | David Anderson <dvander@google.com> | Wed Oct 14 21:42:03 2020 -0700 |
tree | 94b0ab765f0e5de4f4fc306f9155aee86ac078de | |
parent | 767f3f7216737045d5f282258ffcf00e59fc91e5 [diff] |
libsnapshot: Add a source_partition parameter to OpenSnapshotWriter. Reading from the base device is incorrect, because if the partition shrinks, we may still have copy operations from the removed area in the original partition. Ask the caller to explicitly name the source device for AddCopy() operations. Bug: 168554689 Test: vts_libsnapshot_test Test: full OTA with update_device.py Test: incremental OTA with update_device.py Change-Id: If388e37c2a2f9288a43d2849312c921bf59d4918