iqiyi / xHook

🔥 A PLT hook library for Android native ELF.
Other
4.07k stars 759 forks source link

__system_property_get no work in xiaomi android 10 #99

Open zp2521 opened 2 years ago

zp2521 commented 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);

}