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

YAHFA如何去除demoApp对library的编译时依赖 #120

Open
domi-fa opened this issue Dec 22, 2019 · 1 comment
Open

YAHFA如何去除demoApp对library的编译时依赖 #120

domi-fa opened this issue Dec 22, 2019 · 1 comment

Comments

@domi-fa
Copy link

domi-fa commented Dec 22, 2019

android10定制源码,意图在frameworks/base/core/java/android/app/Instrumentation.java的newApplication方法中添加YAHFA对所有apk进程的hook。

但如demoApp,需要在被注入的apk中编译时引入对library的依赖,这样无法做到不改变被注入的apk代码实现hook。请问有什么可行的办法能够让library动态注入进去吗?

@IamHuskar
Copy link

直接动态loadso。关闭selinux.把so释放到tmp目录什么的。我就是这么搞的

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