Keep libart.so cache after HookBridge

The previous commit 5da38f60a2 is not
complete since `GetArt(true)` will destroy the static SandHook::ElfImg
object.

Since in the previous two commits we have postponed the initialization
of LSPlant, we can now keep the symbol cache of `libart` for the
InitArtHooker call in method `OnNativeForkSystemServerPost`. Symbol
cache works because we are using local static object in the function
`GetArt`, whose life-cycle is not constraint by the function block.
This commit is contained in:
JingMatrix 2024-12-02 17:11:28 +01:00
parent 3c020a9cd7
commit 46cdc126bd
1 changed files with 0 additions and 1 deletions

View File

@ -248,7 +248,6 @@ namespace lspd {
auto &binder = lspd::GetLibBinder(false);
IPCThreadState::Init(binder.get());
lspd::GetLibBinder(true);
lspd::GetArt(true);
LOGD("Done InitService");
}