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

Exception("Invalid type: " #41

Open
ivalimmb opened this issue Dec 14, 2017 · 4 comments
Open

Exception("Invalid type: " #41

ivalimmb opened this issue Dec 14, 2017 · 4 comments

Comments

@ivalimmb
Copy link

ivalimmb commented Dec 14, 2017

作者你好! 我按下面的写法传参数,但总会在HookMain类的parseSignature方法抛出Exception("Invalid type: "
请问我这样写有什么错误吗?

public static String methodSig = "(Lcom/iqing/hh/tools/notification/b;Ljava/lang/String;Ljava/lang/String;I;I;Z)V";

第一个参数是自定义类?是否跟这个有关呢?

@rk700
Copy link
Member

rk700 commented Dec 15, 2017

I的类型是整数,后面没有分号

@ivalimmb
Copy link
Author

你好 上面的问题解决了 但是不会执行到hook方法 因为第一个参数是自定义类 那hook方法的参数怎么传呢? 是需要反射得到这个自定义类吗? 像我下面这样写 不会执行到hook方法体 请指教
public static void hook(Object thiz, Object t, String s, String s2, int i1, int i2, boolean is){
}

@rk700
Copy link
Member

rk700 commented Dec 20, 2017

看下日志,如果方法hook完成会有相关信息

@netstu
Copy link

netstu commented Jan 1, 2018

如果不会,直接打开smail文件copy一下

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

3 participants