legend
legend copied to clipboard
method hooked success, but it just does NOT work
` @Hook("org.apache.http.client.HttpClient::[email protected]")
public static void HttpClient_execute(HttpUriRequest request) {
Log.d("XXXX", "HttpClient_execute method is " + request.getMethod());
HookManager.getDefault().callSuper(request);
} `
Log显示execute被hook成功;执行以下代码:
` String url = "https://www.baidu.com/img/bd_logo1.png";
HttpClient client = new DefaultHttpClient(getParams());
HttpGet get = new HttpGet(url);
try {
HttpResponse httpResponse = client.execute(get);
} catch (IOException e) {
e.printStackTrace();
} `
执行后网络请求返回状态码200,但是没调用到hook函数