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

what is the use of art_quick_dexposed_invoke_handler? #13

Closed
Juude opened this issue Jul 16, 2015 · 6 comments
Closed

what is the use of art_quick_dexposed_invoke_handler? #13

Juude opened this issue Jul 16, 2015 · 6 comments

Comments

@Juude
Copy link

Juude commented Jul 16, 2015

Hello, I just read the source code and want to know what art_quick_dexposed_invoke_handler does.
And how do hook ArtMethod ?

@pcqpcq
Copy link

pcqpcq commented Jul 17, 2015

Talk is cheap, read the code youself.

btw, is this an issue? i don't think so.

@Juude
Copy link
Author

Juude commented Jul 17, 2015

  • I don't think code can replace documents, which can give you a general understanding and read codes quickly.It would be very appreciate to have your explanation of how it works.
  • sorry for giving the issue here, but cannot find another place to ask this question.

@pcqpcq
Copy link

pcqpcq commented Jul 17, 2015

I don't think code can replace documents

i agree with this, this repo is lack of documents for now. maybe they will complete it later.

@hwjump
Copy link
Contributor

hwjump commented Jul 17, 2015

You can read the ART source code, how it do with Java Method invoke. art_quick_dexposed_invoke_handler is same as art_quick_invoke_stub in quick_entrypoints_arm.S.
It was just a bridge between C and Assembly. Almost all artmethod invoke need this process, because Art use specail protocol stack between C and Assembly.
Thank you!

@hwjump
Copy link
Contributor

hwjump commented Jul 17, 2015

how it hook ArtMethod you can read https://github.com/alibaba/dexposed/blob/master/dexposed/dexposed_art/dexposed.cpp#L238

we use SetEntryPointFromQuickCompiledCode to change the ArtMethod entry.

@Juude
Copy link
Author

Juude commented Jul 17, 2015

very informative, thanks!

@Juude Juude closed this as completed Jul 17, 2015
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

3 participants