diff options
author | David Anderson <dvander@google.com> | 2019-11-19 17:31:54 -0800 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2019-11-19 17:39:55 -0800 |
commit | 2780d0abb289bf85f463fcbb0935f3218118ae67 (patch) | |
tree | a8b4cea0b90e8956e1eedee8ed383d692383520a /trusty/coverage/coverage.cpp | |
parent | 4300572de3f3e44505fb0dd9c770eccca04ddddd (diff) |
liblp: Allow "flashing" files on the host.
UpdatePartitionTable expects to be run on a device, which is a
reasonable assumption. However to implement lpadd (offline modification
of super images), it's useful to be able to run these methods, and
IPartitionOpener allows us to masquerade a flie as a block device.
The only catch is that we can't query partition information on the host.
Since this logic is a protection mechanism, just surround it with
an ifdef for __ANDROID__.
Bug: 144468779
Test: lpadd
Change-Id: I3c50e5677fa1dd59f2d4216038d3d4fbfb6edcc0
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions