libxposed / api

Apache License 2.0
127 stars 47 forks source link

Please provide invoke-special or CallNonVirutualXXXMethod() like API #2

Closed superguo closed 1 year ago

superguo commented 1 year ago

Sometimes we need to call the super class' method for the hooking method, and currently we can only do that by introducing a native .so library and dynamatically load it and call CallNonvirtualXXXMethod(). So if would be very nice if there is such an LSPosed API. You can talk to me in Chinese in private anyway.

yujincheng08 commented 1 year ago

Any example modules? We need to verify and determine the interface.

superguo commented 1 year ago

I will make a public one later.

yujincheng08 commented 1 year ago

Please see if this meets your requirement: https://github.com/LSPosed/LSPosed/commit/c50bc2d1cf81145cf762acba2e4a20493d6d5612

superguo commented 1 year ago

Please see if this meets your requirement: LSPosed/LSPosed@c50bc2d

Yes, that's exactly what I need. Thank you so much.