-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1c0883
commit 87ef722
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
balckHook | ||
简介 | ||
BlackHook 是一个编译时插桩插件,基于ASM+Tranfrom实现,理论上可以hook任意一个java方法或者kotlin方法,只要代码对应的字节码可以在编译阶段被Tranfrom扫描到,就可以使用ASM在代码对应的字节码处插入特定字节码,从而hook该方法 | ||
优点 | ||
1. 用DSL(领域特定语言)使用该插件,使用简单,配置灵活,而且插入的字节码可以使用 | ||
ASM Bytecode Viewer Support Kotlin 插件自动生成,上手难度低 | ||
2. 理论上可以hook任意一个java方法,只要代码对应的字节码可以在编译阶段被Tranfrom扫描到 | ||
3. 基于ASM+Tranfrom实现,在编译阶段直接修改字节码,效率高,兼容性问题少 |