release ElfImg(libart.so) after InitHooks (#66)

LSPosed/LSPosed#1956
ElfImg(libart.so) is hold by kArtImg in symbol_cache.cpp,
it maps an extra segment of libart.so in /proc/self/maps,
which cause some app fail to detect the base address of libart.so,
force relese it.
This commit is contained in:
Bob Pan 2022-05-27 18:25:38 +08:00 committed by vvb2060
parent 38496aee2c
commit 857d228103
No known key found for this signature in database
GPG Key ID: 59B2BF15A79E26FA
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ namespace lspd {
LoadDex(env, std::move(dex)); LoadDex(env, std::move(dex));
InitHooks(env, initInfo); InitHooks(env, initInfo);
GetArt(true);
SetupEntryClass(env); SetupEntryClass(env);
FindAndCall(env, "onLoad", "()V"); FindAndCall(env, "onLoad", "()V");
} }