summaryrefslogtreecommitdiff
path: root/update_manager/api_restricted_downloads_policy_impl.cc
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-04-16 13:21:20 -0700
committerSemavi Ulusoy <doc.divxm@gmail.com>2021-07-06 00:35:15 +0300
commit1770e0b949324ceaaec81c84a53e800a0fa34c56 (patch)
tree9c396fab178acbadf4f31e9639280ed741e9a4e5 /update_manager/api_restricted_downloads_policy_impl.cc
parent3280c52cabf526c403e13b44d94510650d13fe3a (diff)
CheckSuperPartitionAllocatableSpace: based on device propHEADr11.1
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 'update_manager/api_restricted_downloads_policy_impl.cc')
0 files changed, 0 insertions, 0 deletions