阻止或者替换某个方法业务逻辑
XposedBridge.hookAllMethods(XposedHelpers.findClass( "com.android.xx.transaction.xx$h", lpparam.classLoader),"handleMessage",new XC_MethodReplacement() { @Override protected Object replaceHookedMethod(MethodHookParam param) throws Throwable { return null; } });
360 数字加固。某60 xposed hook 入口点
XposedHelpers.findAndHookMethod("com.stub.StubApp", loadPackageParam.classLoader, "attachBaseContext", Context.class, new XC_MethodHook() { @Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { super.afterHookedMethod(param); //获取到Context对象,通过这个对象来获取classloader Context context = (Context) param.args[0]; //获取classloader,之后hook加固后的就使用这个classloader ClassLoader classLoader = context.getClassLoader(); //已经绕过360加固取得classloader } });
标签:常用,Xposed,classloader,param,xx,Context,加固,classLoader From: https://www.cnblogs.com/afublog/p/18249245