I have a class MyObject
and an app which main activity implements a Method test(ArrayList<MyObject> x)
public class MyObject {
private String x;
MyObject(String x) {
this.x = x;
}
public String getX() {
return x;
}
}
Now i need to hook the method test
with xposed to get the parameter x
. How can i access and iterate through the ArrayList and call the getX
method? My first approach was to pass this as argument for the findAndHookMethod
method:
final Class<?> myObject = XposedHelpers.findClass(
"com.xposed.packagehook.MyObject", lpparam.classLoader);`
But i don't know how to wrap this into an ArrayList.