Skip to content

About use the backup method to call the original method #1028

Answered by yujincheng08
buffcow asked this question in Q&A
Discussion options

You must be logged in to vote

If the original method is static, then backup should be invoked by invoke(null, args).
If the original method is non-static, then the backup should be invoked by invoke(thisObject, args).

For Xposed interface, thisObject is always null (unless some modules set it) for static methods. So both invokes can be merged to invoke(thisObject, args)

Replies: 1 comment 21 replies

Comment options

You must be logged in to vote
21 replies
@yujincheng08
Comment options

@buffcow
Comment options

@buffcow
Comment options

@yujincheng08
Comment options

@buffcow
Comment options

Answer selected by buffcow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants