mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
597 B
597 B
Inject Method
Method A: Use injector.exe
Run injector.exe from YourDir.
<jps output>
Input PID:
Enter the PID of the target JVM process and press Enter.
Method B: Use JNI to call inject
Download the JuiceAgent-JavaInjector-x.x-xxxx.jar from here.
Add JuiceAgent-JavaInjector-x.x-xxxx.jar to your classpath.
Example:
import cn.xiaozhou233.juiceagent.injector.Injector;
System.load("<path-to-libinject>");
Injector.inject(<pid>, "<path-to-libloader>", "<path-to-config-directory>");