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:
parent
38496aee2c
commit
857d228103
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue