From a4e69792d53be722dfb83f8ae6ef255f395a69c9 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 9 Feb 2021 15:57:18 +0800 Subject: [PATCH] [core] Quick fix for bootloop in some devices (#107) --- core/src/main/cpp/main/src/riru_hook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/cpp/main/src/riru_hook.cpp b/core/src/main/cpp/main/src/riru_hook.cpp index 7c10bcde..6ef32120 100644 --- a/core/src/main/cpp/main/src/riru_hook.cpp +++ b/core/src/main/cpp/main/src/riru_hook.cpp @@ -112,7 +112,7 @@ namespace lspd { LOGE("Failed to get symbol of __system_property_get"); return; } - hook_func(sym, reinterpret_cast(decltype(__system_property_get)::replace), + HookFunction(hook_func, sym, reinterpret_cast(decltype(__system_property_get)::replace), reinterpret_cast(&decltype(__system_property_get)::backup)); if (GetAndroidApiLevel() >= __ANDROID_API_P__) { @@ -122,7 +122,7 @@ namespace lspd { LOGE("Failed to get symbol of _ZN7android4base11GetPropertyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_"); return; } - hook_func(sym, reinterpret_cast(decltype(GetProperty)::replace), + HookFunction(hook_func, sym, reinterpret_cast(decltype(GetProperty)::replace), reinterpret_cast(&decltype(GetProperty)::backup)); }