Commit Graph
301 Commits
Author SHA1 Message Date
xiaozhou233 092110672a Fix: avoid running agent/loader logic on plain System.load 2026-08-16 15:32:23 +08:00
xiaozhou233 c5acf2aba0 Docs: add examples markdown docs (EN/CN) and index 2026-08-15 22:15:13 +08:00
xiaozhou233 316735cfef Version 4.0.1 Build 2 v4.0.1_b2 2026-08-15 22:01:28 +08:00
xiaozhou233 a1b0eb8b84 Feat: add inject-via-java-api example with JNI refactor
- Rename JNI class from InjectorNative to Injector in libinject.c

- Add JNI header for cn.xiaozhou233.juiceagent.injector.Injector

- Add inject-via-java-api example with HowToUse.txt and 如何使用.txt
2026-08-15 21:51:48 +08:00
xiaozhou233 32e9199d4a Docs: add community links and examples reference to READMEs 2026-08-15 16:10:01 +08:00
xiaozhou233 56ebafd48d Docs: add examples link to Quick Start section 2026-08-15 15:59:08 +08:00
xiaozhou233 d304ededd5 Docs: sync README with current project structure 2026-08-15 14:20:00 +08:00
xiaozhou233 7a4d8cb101 Feat: add license 2026-08-15 14:04:43 +08:00
xiaozhou233 3303630a45 Docs: Add Chinese README and improve AV notice 2026-08-15 14:03:37 +08:00
xiaozhou233 20fd69d239 Docs: fix link and build script 2026-08-15 14:00:45 +08:00
xiaozhou233 b8a4b805c7 Docs: Add antivirus false positive notice 2026-08-15 13:58:58 +08:00
xiaozhou233 a56caffe09 Version 4.0.0 Build 1 v4.0.0_b1 2026-08-15 13:48:09 +08:00
xiaozhou233 b08656daa6 Feat: add retransform-class example with build/run scripts and docs 2026-08-15 13:41:26 +08:00
xiaozhou233 57405e810c Restore: re-add README, examples and tools 2026-08-15 13:17:50 +08:00
xiaozhou233 6e417035b6 Merge branch 'refactor' into main 2026-08-15 13:15:02 +08:00
xiaozhou233 1d3755952f Feat: migrate libagent from JuiceAgent and port to spdlog 2026-08-15 13:13:55 +08:00
xiaozhou233 bcc1ecbf0e Refactor: simplify injector/libinject/loader code
- libinject: drop debug cruft, dedup JNI overloads into jni_inject, const-correct inject()
- loader: reuse Utils::call_java_impl for JNI bootstrap
- JvmAttach: collapse acquire_jvm/env/jvmti retry loops into one template
- injector: remove redundant copy_arg wrapper
- DllMain: remove no-op DLL_THREAD cases, merge attach logs
- libagent: guard add_library so empty source dir does not break configure
2026-08-15 12:55:27 +08:00
xiaozhou233 a251b8996e Feat: add libagent CMakeLists.txt 2026-08-15 12:48:23 +08:00
xiaozhou233 1931072b96 Fix: harden injector/libinject/loader against UB, format bugs and leaks 2026-08-15 12:30:49 +08:00
xiaozhou233 ce08b19170 Feat: add Config/Utils headers and Loader module, wire entrypoint into DllMain 2026-08-15 12:26:12 +08:00
xiaozhou233 998f4d139e Fix: switch Logger to truncating file sink with flush-on-trace 2026-08-15 11:42:15 +08:00
xiaozhou233 5023ecf90c Feat: add reflective DLL injection library, JVM headers and libinject JNI module 2026-08-15 11:37:15 +08:00
xiaozhou233 6479966472 Test: add java-loop demo with build and run scripts, ignore class artifacts 2026-08-15 11:31:21 +08:00
xiaozhou233 841c0e5c2f Refactor: add injector CLI with PID/DLL args, jps listing and keep-alive prompt 2026-08-15 11:26:47 +08:00
xiaozhou233 01f966c5f2 Refactor: add spdlog vendored headers, Logger wrapper and libloader module skeleton 2026-08-15 11:20:36 +08:00
xiaozhou233 d711838948 Build: add CMake project skeleton with release/debug presets and .gitignore 2026-08-15 10:31:54 +08:00
xiaozhou233 fe64308942 DELETE: all code 2026-08-15 10:23:15 +08:00
xiaozhou233 56b6ab7e98 Refactor: remove x86_64-w64-mingw32 toolchain configuration 2026-08-15 08:55:56 +08:00
xiaozhou233 5f9fb7f1b4 Refactor: rename CMake presets and remove Docker/Jenkins build pipeline 2026-08-15 08:45:45 +08:00
xiaozhou233 1dcad52e15 Revert "Perf & Fix: reduce ClassFileLoadHook overhead and fix retransform patch path"
This reverts commit bb5b215a33.
2026-08-14 23:09:40 +08:00
xiaozhou233 cadd3679e9 Docs: update Todo.md to mark issues fixed by ai branch merge 2026-08-14 22:45:34 +08:00
xiaozhou233 97b100bbbb Merge branch 'ai' into main 2026-08-14 22:32:29 +08:00
xiaozhou233 8b5ea4cf28 Docs: rewrite README to match current module structure and config 2026-08-14 17:47:02 +08:00
xiaozhou233 b17ce02ae1 Docs: record code issues found before optimization as pending fixes 2026-08-14 17:44:30 +08:00
xiaozhou233 bb5b215a33 Perf & Fix: reduce ClassFileLoadHook overhead and fix retransform patch path
- Skip mutable event dispatch when no mutable listeners exist (hot path)
- Wire retransformClass bytecode into pendingRetransform so patches are applied
- Guard pendingRetransform with its mutex; check jvmti Allocate result
- Store global refs in captured ClassFileData and release on re-capture
- Add null/exception checks in defineClass/getLoadedClasses
- Extract shared find_class_by_internal_name helper
- Use CONFIGURE_DEPENDS for CMake globs; guard InitLogger; delete leaked jArgs
2026-08-14 17:07:36 +08:00
xiaozhou233 8cf2b8330c CI: build native binaries with MinGW before packaging
The runtime binaries are no longer committed, so compile them in the
builder container (example JARs stay committed) and package both artifacts.
2026-08-12 20:59:58 +08:00
xiaozhou233 f11687481f Examples: stop tracking prebuilt runtime binaries
Ignore and untrack injector.exe and lib*.dll in load-via-injector-exe;
these are copied in by the developer and should not be committed.
2026-08-12 20:53:18 +08:00
xiaozhou233 c5889cb338 CI: package committed binaries and example into two release artifacts
Drop on-the-fly compilation; the binaries and example JARs are now
committed to the repo. Jenkinsfile packages and archives:
  - JuiceAgent-windows-x64.zip (pure binaries)
  - JuiceAgent-windows-x64-examples.zip (binaries + runnable example)
Update examples/.gitignore to track prebuilt artifacts.
2026-08-12 20:50:43 +08:00
xiaozhou233 1f80df0af0 Examples: replace loop demo with load-via-injector-exe demo
Add a complete load-via-injector-exe example with injection/target sources,
build scripts, config and bilingual docs. Remove the old loop example and
config_empty.toml. Add examples-specific .gitignore for build artifacts.
2026-08-12 20:45:49 +08:00
xiaozhou233 2d1492f3e4 CI: Add zip package and archive artifacts as single zip file 2026-08-12 15:04:58 +08:00
xiaozhou233 b8e2ace91c CI: Use plain docker CLI, drop docker-workflow plugin dependency 2026-08-12 14:55:18 +08:00
xiaozhou233 4fde6477c6 CI: Add Jenkins pipeline building image and archiving artifacts 2026-08-12 14:53:04 +08:00
xiaozhou233 9ecd2e4e03 Build: Use MinGW posix thread variant for std::mutex support
The gcc/g++-mingw-w64-x86-64 metapackages pull in both posix and win32
variants, and update-alternatives defaults to win32 whose libstdc++ lacks
std::mutex. Install only the posix variants and add an apt retry loop for
flaky mirrors.
2026-08-12 14:49:33 +08:00
xiaozhou233 3842585777 Build: Add MinGW cross-compilation support 2026-08-12 09:49:34 +08:00
xiaozhou233 18726e59f4 Update: Link JVM lib from local lib directory 2026-08-12 09:43:05 +08:00
xiaozhou233 02c0583b34 Feat: Add Example Loop Jar 2026-06-13 11:50:18 +08:00
xiaozhou233 9ed7df8476 Feat: Add example loop 2026-06-13 11:40:00 +08:00
xiaozhou233 f49ac4dff7 Docs: Remove Dumper 2026-05-07 20:43:54 +08:00
xiaozhou233 16a36ef22a Update: Version 3.4.0 Build 1 v3.4.0_b1 2026-05-07 20:41:04 +08:00
xiaozhou233 4305000bf7 Feat: entrypoint_with_env 2026-05-07 15:54:02 +08:00