-
-
未解决 [求助]Xposed遇到的问题:beforeHookedMethod有效,afterHookedMethod无效
-
发表于: 2019-11-14 20:08 3443
-
beforeHookedMethod可以打印出日志,afterHookedMethod却无法打印,求大神指导下。
if (lpparam.packageName.equals("com.example.demo")) { XposedHelpers.findAndHookMethod("s.h.e.l.l.S", lpparam.classLoader, "attachBaseContext", Context.class, new XC_MethodHook() { @Override protected void beforeHookedMethod(MethodHookParam param) throws Throwable { super.beforeHookedMethod(param); Log.d("HookDebug", "beforeHookedMethod: " + param.method + ": " + Arrays.toString(param.args)); } @Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { Log.d("HookDebug", "afterHookedMethod: " + param.method + ": " + Arrays.toString(param.args)); // ... } }); }
打印结果
beforeHookedMethod: protected void s.h.e.l.l.S.attachBaseContext(android.content.Context): [android.app.ContextImpl@13799e7] beforeHookedMethod: protected void s.h.e.l.l.S.attachBaseContext(android.content.Context): [android.app.ContextImpl@13799e7] beforeHookedMethod: protected void s.h.e.l.l.S.attachBaseContext(android.content.Context): [android.app.ContextImpl@13799e7]
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
最后于 2019-11-14 20:53
被justkidding编辑
,原因:
赞赏
看原图
赞赏
雪币:
留言: