From 7d1652af055eb8aa818c81ac963acd100c1f33c6 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 8 Mar 2021 01:07:42 +0800 Subject: [PATCH] [core] Prevent bootloop when rirud is dead (#286) closes #285 --- core/src/main/cpp/main/src/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/cpp/main/src/service.cpp b/core/src/main/cpp/main/src/service.cpp index cfe7e5a0..55ac34b8 100644 --- a/core/src/main/cpp/main/src/service.cpp +++ b/core/src/main/cpp/main/src/service.cpp @@ -199,7 +199,7 @@ namespace lspd { } jobject Service::RequestBinderForSystemServer(JNIEnv *env) { - if (UNLIKELY(!initialized_)) { + if (UNLIKELY(!initialized_ || !bridge_service_class_)) { LOGE("Service not initialized"); return nullptr; }