diff options
author | Yifan Hong <elsk@google.com> | 2021-04-16 13:21:20 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2021-04-16 16:04:00 -0700 |
commit | 3a1293a41d71330d542c9f7e11bf7fab926dcfb9 (patch) | |
tree | 87cf0ab2523bbece0ebd31303924204940d32dc4 /scripts/update_device.py | |
parent | ffd2144ccd4378a76bc797a113f4eb36ca275634 (diff) |
CheckSuperPartitionAllocatableSpace: based on device prop
Check allocatable space in super based on whether VAB is
enabled on the device, instead of basing on whether snapshot
is used for this update.
On VAB devices where snapshot is not used, e.g. secondary
update, we don't want to divide allocatable space by half.
The logic changes from:
if (!retrofit DAP && ! update uses snapshot && !sideload)
allocatable_space /= 2
to
if (!retrofit DAP && ! VAB enabled)
allocatable_space /= 2
All other changes are cosmetic.
Test: pass
Bug: 185552745
Change-Id: If182da4fdbc4b39160347205ccfa50642afc5511
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions