Use one inst hook

This commit is contained in:
LoveSy 2022-11-20 01:52:39 +08:00
parent a15d854930
commit 2b784e114f
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,10 @@ afterEvaluate {
executable = "${rootProject.buildFile.parent}/gradlew"
args = listOf(":${project.name}:$name")
}
exec {
executable = "${rootProject.buildFile.parent}/gradlew"
args = listOf(":${project.name}:cleanManagedDevices")
}
println("::endgroup::")
}
}

View File

@ -56,6 +56,9 @@ JNI_OnLoad(JavaVM* vm, void* reserved) {
return JNI_ERR;
}
SandHook::ElfImg art("libart.so");
#if !defined(__i386__)
dobby_enable_near_branch_trampoline();
#endif
lsplant::InitInfo initInfo{
.inline_hooker = InlineHooker,
.inline_unhooker = InlineUnhooker,