|
|
@ -112,9 +112,9 @@ void UnixFileSystemHook::init(JNIEnv *env) { |
|
|
|
const char *className = "java/io/UnixFileSystem"; |
|
|
|
const char *className = "java/io/UnixFileSystem"; |
|
|
|
JniHook::HookJniFun(env, className, "canonicalize0", "(Ljava/lang/String;)Ljava/lang/String;", |
|
|
|
JniHook::HookJniFun(env, className, "canonicalize0", "(Ljava/lang/String;)Ljava/lang/String;", |
|
|
|
(void *) new_canonicalize0, (void **) (&orig_canonicalize0), false); |
|
|
|
(void *) new_canonicalize0, (void **) (&orig_canonicalize0), false); |
|
|
|
JniHook::HookJniFun(env, className, "getBooleanAttributes0", "(Ljava/lang/String;)I", |
|
|
|
// JniHook::HookJniFun(env, className, "getBooleanAttributes0", "(Ljava/lang/String;)I",
|
|
|
|
(void *) new_getBooleanAttributes0, |
|
|
|
// (void *) new_getBooleanAttributes0,
|
|
|
|
(void **) (&orig_getBooleanAttributes0), false); |
|
|
|
// (void **) (&orig_getBooleanAttributes0), false);
|
|
|
|
JniHook::HookJniFun(env, className, "getLastModifiedTime0", "(Ljava/io/File;)J", |
|
|
|
JniHook::HookJniFun(env, className, "getLastModifiedTime0", "(Ljava/io/File;)J", |
|
|
|
(void *) new_getLastModifiedTime0, (void **) (&orig_getLastModifiedTime0), |
|
|
|
(void *) new_getLastModifiedTime0, (void **) (&orig_getLastModifiedTime0), |
|
|
|
false); |
|
|
|
false); |
|
|
|