From 426398f75bb8447a6c762157d5671e58faf380a4 Mon Sep 17 00:00:00 2001 From: jhenrique09 Date: Sun, 10 Oct 2021 15:50:09 -0300 Subject: [PATCH] recovery: Disable SPL downgrade check Change-Id: I06888fd8ec698c86664ace13dd36a6a42ed46848 --- install/install.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.cpp b/install/install.cpp index 5c3c5328..59a40b8e 100644 --- a/install/install.cpp +++ b/install/install.cpp @@ -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);