Zygisk v4 module's plt commit should not use regex

This commit is contained in:
LoveSy 2023-01-23 13:53:28 +08:00 committed by John Wu
parent 9a4458ffac
commit 220a1c84ce
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit 772a1b168cb6feaea8e8021309f1fce942e2fa49
Subproject commit 204a1636884d397617101e2bae3a78dd3febb163

View File

@ -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;