recovery: Disable SPL downgrade check
Change-Id: I06888fd8ec698c86664ace13dd36a6a42ed46848
This commit is contained in:
parent
b52803f855
commit
426398f75b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue