mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +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 {
|
try {
|
||||||
proxyClass = Class.forName(proxyClassName);
|
proxyClass = Class.forName(proxyClassName);
|
||||||
MethodHandle mainMethod = MethodHandles.publicLookup().findStatic(proxyClass, "premain", MethodType.methodType(void.class, String.class, Instrumentation.class));
|
MethodHandle mainMethod = MethodHandles.publicLookup().findStatic(proxyClass, "premain", MethodType.methodType(void.class, String.class, Instrumentation.class));
|
||||||
Object[] args = {agentArgument, instrumentation};
|
mainMethod.invoke(agentArgument, instrumentation);
|
||||||
mainMethod.invoke(null, args);
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
LogHelper.error(e);
|
LogHelper.error(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue