Skip to content

Hook 失败 #1

@easternHong

Description

@easternHong
模拟器: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);
}

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