Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__system_property_get no work in xiaomi android 10 #99

Open
zp2521 opened this issue Jul 26, 2022 · 0 comments
Open

__system_property_get no work in xiaomi android 10 #99

zp2521 opened this issue Jul 26, 2022 · 0 comments

Comments

@zp2521
Copy link

zp2521 commented Jul 26, 2022

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

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant