IDA restores JNI Function Method Name, idajni Function

Source: Internet
Author: User

IDA restores JNI Function Method Name, idajni Function

In android debugging, you will often see this type of function:

First, add a number to a pointer, such as v3 + 676. Then, the address is used as a method pointer to call the method, and the first parameter is the pointer itself, for example (v3 + 676) (v3 ...). This is actually the JNIEnv method that we often use in JNI. Ida does not automatically identify these methods, so when we debug the so file, we often see but cannot figure out what the function is doing, this function is too abstract. The solution is very simple. You only need to perform a type conversion on the JNIEnv pointer. For example, if the v3 pointer is mentioned above, press the "y" key and declare the type as "JNIEnv *".

Then IDA will automatically find the corresponding method and display it:

Is it much clearer in an instant? In addition, some people (seemingly on the snow Forum) also summarized the numbers, addresses, and method declarations corresponding to all JNIEnv methods:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.