Files
xiaozhou233 51bcfbd549 Refactor: rebuild libagent with simplified lifecycle
- 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)
2026-08-16 21:14:44 +08:00

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:

  1. Inject libloader into the target process.
  2. Load JuiceAgent-API and execute its initialization entry point.
  3. Invoke the JarLoader from 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>