Skip to content

__system_property_get no work in xiaomi android 10 #99

@zp2521

Description

@zp2521

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

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions