legend icon indicating copy to clipboard operation
legend copied to clipboard

method hooked success, but it just does NOT work

Open e-snail opened this issue 8 years ago • 0 comments

` @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函数

e-snail avatar Jul 04 '16 07:07 e-snail