0
0
mirror of https://github.com/ponces/treble_aosp.git synced 2025-05-04 14:11:38 +00:00
Files
treble_aosp/patches/trebledroid/platform_bootable_recovery/0001-Don-t-reboot-if-we-couldn-t-get-bootctrl.patch

27 lines
896 B
Diff
Raw Permalink Normal View History

From 72b4e6f0628ca492ecf5e84bfd160a4cc0c0467f Mon Sep 17 00:00:00 2001
2022-08-25 14:02:43 +01:00
From: Pierre-Hugues Husson <phh@phh.me>
Date: Thu, 12 Sep 2019 20:31:07 +0200
Subject: [PATCH] Don't reboot if we couldn't get bootctrl
Change-Id: Id1793660bd1c97ab369607f58a772ca3512ec1af
---
update_verifier/update_verifier.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/update_verifier/update_verifier.cpp b/update_verifier/update_verifier.cpp
index a0160e2f..24d6ccab 100644
2022-08-25 14:02:43 +01:00
--- a/update_verifier/update_verifier.cpp
+++ b/update_verifier/update_verifier.cpp
2023-09-02 09:39:48 +01:00
@@ -324,7 +324,7 @@ int update_verifier(int argc, char** argv) {
const auto module = android::hal::BootControlClient::WaitForService();
2022-08-25 14:02:43 +01:00
if (module == nullptr) {
LOG(ERROR) << "Error getting bootctrl module.";
- return reboot_device();
+ return 0;
}
2023-09-02 09:39:48 +01:00
uint32_t current_slot = module->GetCurrentSlot();
2022-08-25 14:02:43 +01:00
--
2.43.0
2022-08-25 14:02:43 +01:00