recovery: Disable SPL downgrade check

Change-Id: I06888fd8ec698c86664ace13dd36a6a42ed46848
This commit is contained in:
jhenrique09 2021-10-10 15:50:09 -03:00 committed by zlewchan
parent b52803f855
commit 426398f75b

View file

@ -409,11 +409,11 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache,
bool ab_device_supports_nonab = true;
bool device_only_supports_ab = device_supports_ab && !ab_device_supports_nonab;
const auto current_spl = android::base::GetProperty("ro.build.version.security_patch", "");
/*const auto current_spl = android::base::GetProperty("ro.build.version.security_patch", "");
if (ViolatesSPLDowngrade(zip, current_spl)) {
LOG(ERROR) << "Denying OTA because it's SPL downgrade";
return INSTALL_ERROR;
}
}*/
if (package_is_ab) {
CHECK(package->GetType() == PackageType::kFile);