aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorPranav Vashi <neobuddy89@gmail.com>2022-02-26 18:53:43 +0530
committerSemavi Ulusoy <doc.divxm@gmail.com>2023-01-17 21:09:44 +0300
commit89ff9b99c5ae44282ac9186975fceeba99e0b456 (patch)
tree7227e7a26935e6eae53d60919de9cb035a1751b5 /install
parent35d6342df0dd6ffe05eb97313316b35113568984 (diff)
recovery: Only warn on SPL downgrade
* This will not completely block SPL downgrade but instead ask user whether to allow downgrade. * This is useful when switching between custom and stock ROMs when there is no option to format system partitions. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: I52be7dd950dee72c9fe01e404f74c41f2d25c8b7
Diffstat (limited to 'install')
-rw-r--r--install/install.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/install/install.cpp b/install/install.cpp
index 61bab17b..dab919b2 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -379,8 +379,7 @@ static InstallResult TryUpdateBinary(Package* package, bool* wipe_cache,
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;
+ LOG(WARNING) << "This is SPL downgrade";
}
if (package_is_ab) {