mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
Impl: Attach JavaVM
This commit is contained in:
1 parent
3ce1bccf02
commit
3e3f9d1c14
2 files changed
+130
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user