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

想将android.content.res.TypedArray#getDrawable hook住,但是编译报错 #1329

Open
duxiyao opened this issue May 31, 2024 · 2 comments

Comments

@duxiyao
Copy link

duxiyao commented May 31, 2024

请教下,我最开始hook的是 public Drawable getDrawableForDensity(@StyleableRes int index, int density) ,报错说找不到,我发现有hide注解,然后我看getDrawable没有hide注解,想转调下,但是也报错找不到,想问下,这个能被hook吗

11

@shifujun
Copy link
Collaborator

没有代码,就先有一个问题:什么叫被hook呀?

你fork一下项目,然后在sample里写个用例演示一下就清楚了。

@duxiyao
Copy link
Author

duxiyao commented Jun 4, 2024

没有代码,就先有一个问题:什么叫被hook呀?

你fork一下项目,然后在sample里写个用例演示一下就清楚了。

不好意思,我没说清楚,我仿照着写了个Transform,想把这个方法调用转调出去.。改了下现在是可以编译过去了,但是没起作用,是因为这是系统的类吗?
1

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