Skip to content

native线程hook不到 #2

Description

@oboolean

9.0Android下,Java线程hook到了,很好.
但是我在jni代码中创建的native线程hook不到,代码如下:
`
pthread_t pthread;//线程对象

void *threadDoThings(void *data)
{
ALOG("jni thread do things");
pthread_exit(&pthread);
}

extern "C"
JNIEXPORT void JNICALL
Java_com_dodola_thread_ThreadHook_createNativeThread(JNIEnv *env, jclass type) {

pthread_create(&pthread, NULL, threadDoThings, NULL);

}
`
请问有啥办法能hook到native线程的创建吗 并且能拿到bakctrace最好.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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