mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
[Refactor] Delete java/
This commit is contained in:
1 parent
2eef3c5e4f
commit
d4e9890cbe
5 files changed
-64
No files matched your search
Binary file not shown.
@@ -1,15 +0,0 @@
|
||||
package cn.xiaozhou233.juiceagent.injector;
|
||||
|
||||
public class InjectorNative {
|
||||
/*
|
||||
* @param pid target process id
|
||||
*/
|
||||
public native boolean inject(int pid, String path);
|
||||
|
||||
/*
|
||||
* @param pid target process id
|
||||
* @param path injection dll path
|
||||
* @param configPath config file path
|
||||
*/
|
||||
public native boolean inject(int pid, String path, String configPath);
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class cn_xiaozhou233_juiceagent_injector_InjectorNative */
|
||||
|
||||
#ifndef _Included_cn_xiaozhou233_juiceagent_injector_InjectorNative
|
||||
#define _Included_cn_xiaozhou233_juiceagent_injector_InjectorNative
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: cn_xiaozhou233_juiceagent_injector_InjectorNative
|
||||
* Method: inject
|
||||
* Signature: (ILjava/lang/String;)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_cn_xiaozhou233_juiceagent_injector_InjectorNative_inject__ILjava_lang_String_2
|
||||
(JNIEnv *, jobject, jint, jstring);
|
||||
|
||||
/*
|
||||
* Class: cn_xiaozhou233_juiceagent_injector_InjectorNative
|
||||
* Method: inject
|
||||
* Signature: (ILjava/lang/String;Ljava/lang/String;)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_cn_xiaozhou233_juiceagent_injector_InjectorNative_inject__ILjava_lang_String_2Ljava_lang_String_2
|
||||
(JNIEnv *, jobject, jint, jstring, jstring);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Binary file not shown.
@@ -1,20 +0,0 @@
|
||||
public class loop {
|
||||
public static void main(String[] args) throws Exception {
|
||||
try {
|
||||
while (true) {
|
||||
try{
|
||||
Class clz = Class.forName("cn.xiaozhou233.Test");
|
||||
//invoke printTest()
|
||||
clz.getMethod("printTest").invoke(null);
|
||||
} catch (ClassNotFoundException e) {
|
||||
System.out.println("Class not found");
|
||||
}
|
||||
System.out.println("Hello World");
|
||||
Thread.sleep(2000);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user