About the development of modules #1528
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@yujincheng08 帮我看一下呗🥺🙏 |
Beta Was this translation helpful? Give feedback.
-
You should hook the class and not inject a new class. If you extend "a certain class of the system" how should the system use the new class? Only with injection of new class, but xposed/lsposed don't inject class but hook methods. |
Beta Was this translation helpful? Give feedback.
-
模块的类加载器不是注入应用的类加载器,所以你继承注入应用的类提示找不到父类很正常。如果硬要继承,那就在该子类初始化前(第一次使用前)替换其类加载器的父加载器为注入应用的类加载器。 |
Beta Was this translation helpful? Give feedback.
模块的类加载器不是注入应用的类加载器,所以你继承注入应用的类提示找不到父类很正常。如果硬要继承,那就在该子类初始化前(第一次使用前)替换其类加载器的父加载器为注入应用的类加载器。