[Java] 纯文本查看 复制代码 @Override
public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
if (!lpparam.packageName.equals("com.taobao.taobao")) return;
try {
XposedHelpers.findAndHookMethod(ClassLoader.class, "loadClass", String.class, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
super.afterHookedMethod(param);
if (param.hasThrowable()) return;
Class<?> clazz = (Class<?>) param.getResult();
//判断类名
if (clazz.getName().equals("com.taobao.tao.welcome.Welcome")) {
XposedHelpers.findAndHookMethod(clazz, "onResume", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
super.afterHookedMethod(param);
XposedBridge.log("hook-------------------------------------->"+"成功");
}
});
}
}
});
... |