Coder Social home page Coder Social logo

Comments (5)

BryanGIG avatar BryanGIG commented on August 30, 2024 1

Yes, you can use LsPlant in zygisk module

You just have to init LsPlant in your native and use java hook api such as Maple or anything else to be able hook from java

I've tried it, and it works

from lsplant.

yujincheng08 avatar yujincheng08 commented on August 30, 2024 1

LSPosed is also one example.

from lsplant.

BryanGIG avatar BryanGIG commented on August 30, 2024 1

Won't that mean that I somehow have to load the dex with the java side of hooks into the process from zygisk.so?

Yes, you need to load dex into your targeted process,

That's where I'm confused, Maple and some of the similar projects creates it's own zygisk.so file so I won't be able to load the hooks defined in java in the process. Or am I? Maybe I'm just setting up my projects in the wrong way.

You just need to take the java library and register the native function to your own zygisk.so, then you can call lsplant api from it

As, @yujincheng08 said, LSPosed can be reference for this implementation

from lsplant.

nitanmarcel avatar nitanmarcel commented on August 30, 2024 1

Ah, thanks to both.

Idk why I had the idea that LSPosed doesn't use LSPatch and they are different implementations for the same thing. Anyway looking a little more carefully at the lsposed repo I got a good example on how to use it in my own project.

Thanks, I appreciate it.

from lsplant.

nitanmarcel avatar nitanmarcel commented on August 30, 2024

Yes, you can use LsPlant in zygisk module

You just have to init LsPlant in your native and use java hook api such as Maple or anything else to be able hook from java

I've tried it, and it works

Won't that mean that I somehow have to load the dex with the java side of hooks into the process from zygisk.so?

That's where I'm confused, Maple and some of the similar projects creates it's own zygisk.so file so I won't be able to load the hooks defined in java in the process. Or am I? Maybe I'm just setting up my projects in the wrong way.

from lsplant.

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.