Skip to content

Any suggestion about how to print java stack in c++(native) when calling a java method? #377

Description

@Qownquiat

I intercepted the java call at entry_point_from_quick_compiled_code_in_ArtMethod, from here I can call JNI methods like GetMethodID, GetStringUTFChars and so on, however, when calling methods like FindClass, NewObject, CallObjectMethod at here, it will crash app, it seems I can only get data here but can't call a java method;
What I really want here is to print the java stack here, any suggestion about how to implement this feature at this hook point like:

  1. how should I successfully call a java method here?
  2. or any method that I can call/hook the art functions that can give me the stack trace?
    Thanks

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