diff options
| author | Elliott Hughes <enh@google.com> | 2018-03-28 08:20:00 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2018-03-28 12:43:53 -0700 |
| commit | 5620d224b605f7401b283fcbb456cca791762af3 (patch) | |
| tree | f973b354d42e474dfb5d2b902f3d54a1b96c08a5 /base/errors_unix.cpp | |
| parent | 387319307a857fd02ff60fa87275c0587ecc7c88 (diff) | |
Add "require partition-exists=" support.
The Pixel 2 system images release was a bit of a disaster because anyone
using an old version of fastboot would blindly flash too few partitions,
potentially bricking their device. This change lets us add a line to
the android-info.txt file for a device with a new partition.
Also error out sooner in such cases by checking the requirements
immediately, rather than optimistically unpacking everything first.
Switch Action over to C++ to fix memory issues.
Bug: http://b/77158188 (partition checking)
Bug: http://b/74444116 (error out sooner)
Test: manual testing with a modified android-info.txt
Change-Id: I58b426cad410107e368f35f5725216d07281dd97
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
