Fix wrong hooker

This commit is contained in:
solohsu 2019-06-13 18:16:14 +08:00
parent 8e3afb0362
commit dfa8e94e1d
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package com.elderdrivers.riru.edxp.sandhook.hooker;
import android.app.ActivityThread;
import com.elderdrivers.riru.common.KeepMembers;
import com.elderdrivers.riru.edxp._hooker.impl.OneplusWorkaround;
import com.elderdrivers.riru.edxp._hooker.impl.SystemMain;
import com.swift.sandhook.SandHook;
import com.swift.sandhook.annotation.HookClass;
import com.swift.sandhook.annotation.HookMethod;
@ -30,7 +30,7 @@ public class SystemMainHooker implements KeepMembers {
@HookMethod("systemMain")
public static ActivityThread hook() throws Throwable {
final XC_MethodHook methodHook = new OneplusWorkaround();
final XC_MethodHook methodHook = new SystemMain();
final XC_MethodHook.MethodHookParam param = new XC_MethodHook.MethodHookParam();
param.thisObject = null;
param.args = new Object[]{};