//HooK Call传入一个抽象回调类,实现onResponse
public abstract class Fox{
public abstract onResponse(Response response)
public Fox(Context context){
}
public Fox(){}
}
Class<?> cls = classLoader.load("com.xxxx.Fox");
//Proxy.newProxyInstance只能动态代理接口类,抽象类有什么好的办法动态代理呢
Object foxCallback = Proxy.newProxyInstance(classLoader, new Class[]{cls}, h);
XposedHelpers.callMethod(module,"call",foxCallback);