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

如何得到lab.galaxy.yahfa.HookInfo所在的app的context #37

Closed
netstu opened this issue Oct 27, 2017 · 4 comments
Closed

如何得到lab.galaxy.yahfa.HookInfo所在的app的context #37

netstu opened this issue Oct 27, 2017 · 4 comments

Comments

@netstu
Copy link

netstu commented Oct 27, 2017

我想写个配置界面,保存于sharedprefences,在hook()中如何读取得到?

@rk700
Copy link
Member

rk700 commented Oct 31, 2017

可在Application.onCreate()处下hook

@rk700
Copy link
Member

rk700 commented Oct 31, 2017

如果注入点在Application创建之后,可以在某个Activity.onCreate()处下hook

@svengong
Copy link

也可以在Application的attachBaseContext处hook,看个人喜好

@netstu
Copy link
Author

netstu commented Nov 2, 2017

谢谢 @rk700 @svengong 我试试吧,可能你们的模式和我说的不是一个意思。

比如我要hook的app为Aapp,我自己写的插件为Bapp,那么我为Bapp写一个界面,想在hook()中获取Bapp的context。

我现在用了另一个办法,直接写json文件

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