Open zp2521 opened 2 years ago
xhook_register("/data/.*\.so$", "__system_property_get",new_system_property_get,(void**)(&old_system_property_get));
in other project in .so called func system,but found new_system_property_get not be called,i don't know why,can you help me?thanks more~
extern "C" JNIEXPORT jstring JNICALL Java_xxx_system(JNIEnv *env) {
char value[PROP_VALUE_MAX] = {0};
__system_property_get("ro.product.board", value); return env->NewStringUTF(value);
}
xhook_register("/data/.*\.so$", "__system_property_get",new_system_property_get,(void**)(&old_system_property_get));
in other project in .so called func system,but found new_system_property_get not be called,i don't know why,can you help me?thanks more~
extern "C" JNIEXPORT jstring JNICALL Java_xxx_system(JNIEnv *env) {
__system_property_get("ro.product.board", value); return env->NewStringUTF(value);
}