[core] Quick fix for bootloop in some devices (#107)
This commit is contained in:
parent
3e11c276c6
commit
a4e69792d5
|
|
@ -112,7 +112,7 @@ namespace lspd {
|
||||||
LOGE("Failed to get symbol of __system_property_get");
|
LOGE("Failed to get symbol of __system_property_get");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
hook_func(sym, reinterpret_cast<void *>(decltype(__system_property_get)::replace),
|
HookFunction(hook_func, sym, reinterpret_cast<void *>(decltype(__system_property_get)::replace),
|
||||||
reinterpret_cast<void **>(&decltype(__system_property_get)::backup));
|
reinterpret_cast<void **>(&decltype(__system_property_get)::backup));
|
||||||
|
|
||||||
if (GetAndroidApiLevel() >= __ANDROID_API_P__) {
|
if (GetAndroidApiLevel() >= __ANDROID_API_P__) {
|
||||||
|
|
@ -122,7 +122,7 @@ namespace lspd {
|
||||||
LOGE("Failed to get symbol of _ZN7android4base11GetPropertyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_");
|
LOGE("Failed to get symbol of _ZN7android4base11GetPropertyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
hook_func(sym, reinterpret_cast<void *>(decltype(GetProperty)::replace),
|
HookFunction(hook_func, sym, reinterpret_cast<void *>(decltype(GetProperty)::replace),
|
||||||
reinterpret_cast<void **>(&decltype(GetProperty)::backup));
|
reinterpret_cast<void **>(&decltype(GetProperty)::backup));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue