Xposed Hook 替换类
XposedHelpers.findAndHookMethod(ClassLoader.class,
"loadClass", String.class,
new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
if ("com.example.MainActivity".equals(param.args[0])) {
param.setResult(getClass().getClassLoader()
.loadClass("com.example.TargetActivity"));
}
}
});
感谢分享 赞一个
感谢分享
你的才华让人惊叹,你是我的榜样。http://www.lytdgy.com