mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-25 22:07:24 +00:00
xhook_clear after xhook_refresh
This commit is contained in:
parent
ad47dba064
commit
87c2f6ad14
@ -301,7 +301,7 @@ bool ZygiskModule::RegisterModule(ApiTable *table, long *module) {
|
|||||||
table->v1.pltHookExclude = [](const char *path, const char *symbol) {
|
table->v1.pltHookExclude = [](const char *path, const char *symbol) {
|
||||||
xhook_ignore(path, symbol);
|
xhook_ignore(path, symbol);
|
||||||
};
|
};
|
||||||
table->v1.pltHookCommit = []() { return xhook_refresh(0) == 0; };
|
table->v1.pltHookCommit = []{ bool r = xhook_refresh(0) == 0; xhook_clear(); return r; };
|
||||||
table->v1.connectCompanion = [](ZygiskModule *m) { return m->connectCompanion(); };
|
table->v1.connectCompanion = [](ZygiskModule *m) { return m->connectCompanion(); };
|
||||||
table->v1.setOption = [](ZygiskModule *m, auto opt) { m->setOption(opt); };
|
table->v1.setOption = [](ZygiskModule *m, auto opt) { m->setOption(opt); };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user