Add JNI hooks to critical methods

This commit is contained in:
topjohnwu
2021-01-08 05:25:44 -08:00
parent a30d510eb1
commit 9ed110c91b
5 changed files with 700 additions and 5 deletions
+1
View File
@@ -42,6 +42,7 @@ static void inject_cleanup() {
}
void self_unload() {
LOGD("hook: Request to self unload\n");
// If unhook failed, do not unload or else it will cause SIGSEGV
if (!unhook_functions())
return;