Skip to content

Commit c4ca18a

Browse files
committed
format deploy.yml
1 parent b6b6e40 commit c4ca18a

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

src/androidSystemLibrary/libart/jni_watch.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
// from https://github.com/Areizen/JNI-Frida-Hook
44

55
import { hook_dlopen } from '../libdl/dlope.js';
6-
import {
7-
hook_get_string_region,
8-
hook_get_string_utf_region,
9-
hook_register_natives,
10-
} from './utils.js';
6+
import { hook_GetStringUTFRegion, hook_RegisterNatives } from './utils.js';
117

128
/**
139
* class created from struct JNINativeInterface:https://android.googlesource.com/platform/libnativehelper/+/master/include_jni/jni.h#129
@@ -297,13 +293,13 @@ function watch_jni(library_name: string, function_name: string) {
297293
/**
298294
* Either you hook the one you want by precising what to do with it
299295
*/
300-
301-
hook_get_string_region(getJNIFunctionAdress(jnienv_addr, 'GetStringRegion'));
302-
// hook_get_string_utf_(getJNIFunctionAdress(jnienv_addr, "GetStringRegion"));
303-
hook_get_string_utf_region(getJNIFunctionAdress(jnienv_addr, 'GetStringUTFRegion'));
296+
// hook_get_string_region,
297+
// hook_get_string_utf_region,
298+
// hook_register_natives,
299+
hook_GetStringUTFRegion(getJNIFunctionAdress(jnienv_addr, 'GetStringRegion'));
304300

305301
if (register_flag) {
306-
hook_register_natives(getJNIFunctionAdress(jnienv_addr, 'RegisterNatives'));
302+
hook_RegisterNatives(getJNIFunctionAdress(jnienv_addr, 'RegisterNatives'));
307303
}
308304

309305
},

0 commit comments

Comments
 (0)