mirror of
https://github.com/LSPosed/LSPlt.git
synced 2025-05-07 05:56:34 +08:00
Fix perm when invalidate cache
This commit is contained in:
parent
5e1c3b1a9e
commit
229adbe159
@ -164,9 +164,11 @@ public:
|
|||||||
info.hooks.clear();
|
info.hooks.clear();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
mprotect(reinterpret_cast<void *>(info.start), len, PROT_WRITE);
|
||||||
for (auto &[addr, backup] : info.hooks) {
|
for (auto &[addr, backup] : info.hooks) {
|
||||||
*reinterpret_cast<uintptr_t *>(addr) = backup;
|
*reinterpret_cast<uintptr_t *>(addr) = backup;
|
||||||
}
|
}
|
||||||
|
mprotect(reinterpret_cast<void *>(info.start), len, info.perm);
|
||||||
info.hooks.clear();
|
info.hooks.clear();
|
||||||
info.backup = 0;
|
info.backup = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user