rovo89 / XposedBridge

The Java part of the Xposed framework.
3.91k stars 1.1k forks source link

Xposed on Xposed 2 #131

Closed netstu closed 7 years ago

netstu commented 8 years ago

i readed the page https://github.com/rovo89/XposedBridge/issues/41

but i don't know,

  1. right classloader ? what classloader is right classloader?

  2. suitable time ?

i try to hook the other xposed module, but output errors, not fuond the class

rovo89 commented 8 years ago
  1. The ClassLoader that XposedBridge used to load the module.
  2. After the other module has loaded, but before the function you want to hook has been executed.

As mentioned in the other issue, that's pretty hard to do. There's no API to retrieve the ClassLoader, you would have to use reflection APIs to get them and hope that the internal implementation of Xposed doesn't change. There's no way to say that your module should be loaded after another one.

In short: Don't do it. Talk to the developer of the other module. In the worst case, fork it and add your own logic.

netstu commented 8 years ago

thanks

i can't fork the source code, that xposed module is not open source