Code Monkey home page Code Monkey logo

Comments (6)

fankes avatar fankes commented on May 27, 2024

这个功能是实验性的,所以可能无法在所有应用中工作,一些应用有反 Hook 功能,可能无法注入 Instrument,所以这是导致可能会失败的原因,如果你想获取一个存在的 context 你可以使用 systemContext 并直接开始 Hook,请记住 onAppLifecycle 并不是每次都能注入成功。
另外请把你的文字排版调整一下,提供最小复现 demo 链接和被 Hook 的宿主。

from yukihookapi.

StarYuhen avatar StarYuhen commented on May 27, 2024

这个功能是实验性的,所以可能无法在所有应用程序中工作,一些应用程序有反Hook功能,可能无法注入仪器,所以这导致可能会失败的原因,如果你想获取一个存在的你可以使用 contextsystemContext直接开始 Hook,请记住onAppLifecycle不要每次注入成功。 另外请把你的文字排版调整一下,提供最小复现演示链接并被 Hook 的动作。

文本排版调整好了,复现代码和hook的方法,等到明天发zip给你

from yukihookapi.

fankes avatar fankes commented on May 27, 2024

好的

from yukihookapi.

StarYuhen avatar StarYuhen commented on May 27, 2024

好的

但有一些疑惑点,根据hook的反应,registerModuleAppActivities是已经将我所写的activity注入进去了的,Resources也是注入了的,为什么onCreate函数并未初始化,hook的反应也是正常跳转接替的宿主app的活动,模块的没有将其覆盖。

yuki框架的简易方法,如....toclass()....hook().after{},这样在部分反hook的app上能找到挂载点,但是无法注入hook的after之类的代码。
但一旦使用YukiXposedEvent.events 的原生onHandleLoadPackage,是能够正常使用的。

请问像这种情况,一般是什么问题导致的

from yukihookapi.

StarYuhen avatar StarYuhen commented on May 27, 2024

经过几天的学习和实战,大部分问题已经绕过解决了,唯有挂载activity失败,可能是也是经验问题,因此关闭

from yukihookapi.

fankes avatar fankes commented on May 27, 2024

好吧,有问题随时联系

from yukihookapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.