Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义添加拦截内容 #5

Closed
Chuckkk opened this issue Jan 14, 2022 · 2 comments
Closed

自定义添加拦截内容 #5

Chuckkk opened this issue Jan 14, 2022 · 2 comments

Comments

@Chuckkk
Copy link

Chuckkk commented Jan 14, 2022

请问自定义添加拦截内容,是否只需要改动 base 模块下的 HookMethodManager 类所持有的 resultList 成员变量?
比如我想检测移动安全联盟SDK获取OAID等参数,是否在此类中添加以下代码:

`resultList.add(

HookMethodItem(

    "com/bun/miitmdid/interfaces/IdSupplier",

    "getOAID",

    "()Ljava/lang/String;",

    "移动安全联盟-getOAID"

)

)`
其对应的java代码为以下,我只 hook 回调中的 idSupplier.getOAID() :

`MdidSdkHelper.InitSdk(context, true, new IIdentifierListener() {

@Override

public void OnSupport(boolean isSupport, IdSupplier idSupplier) {

    Log.d(TAG, "getOAID = " + idSupplier.getOAID());

}

});`

@allenymt
Copy link
Owner

下个版本马上会发布,支持外部注解的方式注入拦截函数和方法

@allenymt
Copy link
Owner

主分支已更新,支持自定义配置拦截

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants