File tree Expand file tree Collapse file tree
src/androidSystemLibrary/libart Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33// from https://github.com/Areizen/JNI-Frida-Hook
44
55import { 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 } ,
You can’t perform that action at this time.
0 commit comments