Code Monkey home page Code Monkey logo

Comments (7)

fankes avatar fankes commented on May 27, 2024 1

这是后期计划了,等它正式发布后再适配,现在还未发布正式版。

from yukihookapi.

fankes avatar fankes commented on May 27, 2024 1

现在可以这样用,因为目前的 Class 是只要存在即可,所以可以随便写一个,然后自己实现成员的传递:

PlaceholderClass.hook {
    injectMember {
        members(method { ... }.give())
        afterHook {
            // ...
        }
    }
}

from yukihookapi.

buffcow avatar buffcow commented on May 27, 2024 1

哈哈,代码没有最好只有更好,期待更新😀

from yukihookapi.

buffcow avatar buffcow commented on May 27, 2024

ok,再问一下,yukihook 是不是不支持 对某个对象hook,原生 Xposed 的 XposedBridge 类有个API

public static XC_MethodHook.Unhook hookMethod(Member hookMethod, XC_MethodHook callback){}

可以单独对某个对象的 Member hook。

找遍 yuki 的文档了,好像都没有

from yukihookapi.

fankes avatar fankes commented on May 27, 2024

请参考项目计划里的内容 New Hook Code Style

from yukihookapi.

buffcow avatar buffcow commented on May 27, 2024

原来可以用 members ,搞定了 谢谢哈

from yukihookapi.

fankes avatar fankes commented on May 27, 2024

原来可以用 members ,搞定了 谢谢哈

members 也可以同时传递多个,因为它是 vararg,因为这个 Hook 方案很不好用,所以我才会计划修改它。

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.