mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Фикс трансфера агента
This commit is contained in:
parent
9922479314
commit
94b2fb1424
1 changed files with 1 additions and 2 deletions
|
@ -62,8 +62,7 @@ public static void premain(String agentArgument, Instrumentation instrumentation
|
|||
try {
|
||||
proxyClass = Class.forName(proxyClassName);
|
||||
MethodHandle mainMethod = MethodHandles.publicLookup().findStatic(proxyClass, "premain", MethodType.methodType(void.class, String.class, Instrumentation.class));
|
||||
Object[] args = {agentArgument, instrumentation};
|
||||
mainMethod.invoke(null, args);
|
||||
mainMethod.invoke(agentArgument, instrumentation);
|
||||
} catch (Throwable e) {
|
||||
LogHelper.error(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue