mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Zygisk v4 module's plt commit should not use regex
This commit is contained in:
parent
9a4458ffac
commit
220a1c84ce
2
native/src/external/lsplt
vendored
2
native/src/external/lsplt
vendored
@ -1 +1 @@
|
||||
Subproject commit 772a1b168cb6feaea8e8021309f1fce942e2fa49
|
||||
Subproject commit 204a1636884d397617101e2bae3a78dd3febb163
|
@ -368,6 +368,7 @@ bool ZygiskModule::RegisterModuleImpl(ApiTable *api, long *module) {
|
||||
api->v2.getFlags = [](auto) { return ZygiskModule::getFlags(); };
|
||||
}
|
||||
if (api_version >= 4) {
|
||||
api->v4.pltHookCommit = lsplt::CommitHook;
|
||||
api->v4.pltHookRegister = [](dev_t dev, ino_t inode, const char *symbol, void *fn, void **backup) {
|
||||
if (dev == 0 || inode == 0 || symbol == nullptr || fn == nullptr)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user