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

把issue全看了,还是没能搞明白origin和hook的作用 #32

Closed
netstu opened this issue Oct 18, 2017 · 1 comment
Closed

把issue全看了,还是没能搞明白origin和hook的作用 #32

netstu opened this issue Oct 18, 2017 · 1 comment

Comments

@netstu
Copy link

netstu commented Oct 18, 2017

1.有一个issue中说到 origin 和 hook可以做到 xposed中的before和after,但具体如何做?

  1. origin具体是干嘛的?为什么有的例子中有,有的没有?

  2. origin的返回值是随便写都没有关系吗?

  3. origin 和 hook 都必须定义为 static ,那么返回值呢?是不是不能随便定义?

  4. 如果实现xposed中的 param.getResult和param.setResult的功能?

麻烦了,谢谢

@svengong
Copy link

2 origin是调用原函数用的
3 origin的返回值,按你的需要写,只要不出错

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