Impl: Attach JavaVM

This commit is contained in:
xiaozhou233 committed 2026-03-30 13:28:32 +08:00
1 parent 3ce1bccf02
commit 3e3f9d1c14
2 files changed
+130

No files matched your search

+8
View File
@@ -1,6 +1,7 @@
#include <JuiceAgent/Logger.hpp>
#include <libloader.hpp>
#include <config.hpp>
#include <jvm.hpp>
namespace libloader
{
@@ -12,5 +13,12 @@ namespace libloader
InjectionInfo info = cfg.get_injection_info();
config::print_injection_info(info);
jvm::Jvm jvm;
if (!jvm.attach()) {
PLOGE << "Attach failed";
return;
}
}
} // namespace libloader