content: package com.dexposedart.newhook.TestHook;
  
  
  import com.taobao.android.dexposed.HookArt.utils.HookLog;
  import com.taobao.android.dexposed.XC_MethodHook;
  import com.taobao.android.dexposed.annotations.Hook;
  
  
  /**
   * 作者：zhangzhongping on 17/4/3 23:29
   * 邮箱：android_dy@163.com
   * extends XC_MethodReplacement 是用来兼容dalvik虚拟机hook 实现方法是直接替换原方法的
   * extends XC_MethodHook 也是用来兼容dalvik虚拟机hook  两个实现方法是 一个是被hook方法执行前执行  一个是被hook方法执行后执行
   */
  @Hook(Class = "com.dexposedart.newhook.MainActivity", Name = "test41", returnVal = void.class, isStatic = true)
  public class TestProxy41 extends XC_MethodHook {
  
      @Override
      public MethodHookParam beforeHookedMethod(MethodHookParam param) throws Throwable {
          HookLog.e("test41 beforeHookedMethod");
          return param;
      }
  
      @Override
      public MethodHookParam afterHookedMethod(MethodHookParam param) throws Throwable {
          HookLog.e("test41 afterHookedMethod");
          return param;
      }
  }
  