mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
- Replace eventbus/services with Agent preload/init lifecycle - Move JNI header to shared includes; add jni_common.hpp umbrella header - Reduce ClassFileLoadHook to a stub for later implementation - Add eventpp dependency - Document custom API JAR workflow (WIP)
775 B
775 B
Advanced
Load Custom API / Directly Load Jar
WARN: This feature didn't implement yet.
Describe
JuiceAgent loads custom JARs through the following workflow:
- Inject
libloaderinto the target process. - Load JuiceAgent-API and execute its initialization entry point.
- Invoke the
JarLoaderfrom JuiceAgent-API to load the specified JAR into the JVM.
The second step is fully customizable. You can replace JuiceAgent-API with your own JAR and call any class method you specify.
Configuration
Set the following environment variables before launching libloader:
set JUICEAGENT_API_ENABLED=true
set JUICEAGENT_API_JAR=<path-to-your-jar>
set JUICEAGENT_API_CLASS=<target-class-name>
set JUICEAGENT_API_METHOD=<target-method-name>