How Xposed Hook has a variable parameter method

When hooking with Xposed, I encountered the following method

public void x(String str1, String str2, Object... obj){...}

Correct writing: Object[].class

 

There is another case, that is, generic parameters, as follows

A(List<class>,bool b);

Correct writing: directly use List.class, and then use toString() method to install and replace

Guess you like

Origin blog.csdn.net/THMAIL/article/details/112061617