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

Hook 失败 #1

Open
easternHong opened this issue Apr 7, 2019 · 0 comments
Open

Hook 失败 #1

easternHong opened this issue Apr 7, 2019 · 0 comments

Comments

@easternHong
Copy link

模拟器:AS创建的模拟器。 API 28 Android 9

enableThreadHook后,

void *task(void *args) {
    char *msg;
    msg = (char *) args;
    ALOG("new thread .....%s ", msg);
    return NULL;
}

void test_multi_thread() {
    pthread_t t_thread1;
    //此pthread_create无法被hook。
    int i = pthread_create(&t_thread1, NULL, task, (void *) "good");
    ALOG(" create_thread:%d", i);
    pthread_join(t_thread1, NULL);
}
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