diff options
Diffstat (limited to 'odrefresh/odr_common.h')
-rw-r--r-- | odrefresh/odr_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/odrefresh/odr_common.h b/odrefresh/odr_common.h index 7aad354d79..c7680e2612 100644 --- a/odrefresh/odr_common.h +++ b/odrefresh/odr_common.h @@ -30,6 +30,11 @@ std::string Concatenate(std::initializer_list<std::string_view> args); // Quotes a path with single quotes ('). std::string QuotePath(std::string_view path); +// Returns true if there is no need to load existing artifacts that are already up-to-date and write +// them back. See `OnDeviceRefresh::RefreshExistingArtifacts` for more details. Takes a string from +// `ro.build.version.sdk`, which represents the SDK version. +bool ShouldDisableRefresh(const std::string& sdk_version_str); + } // namespace odrefresh } // namespace art |