How to find the source code of a Java function call

On Android, there is a class called BinderProxy inside android.os.Binder.java. This class has the following function declaration:

public native boolean transact(int code, Parcel data, Parcel reply, int flags) throws RemoteException; 

I want to know what code is executed when this function is called.

How do i do this?

+6
source share
2 answers

Look here , this is the source code of Binder.cpp that includes this feature.

+4
source

In this case, a method called onTransact corresponding Stub class is called. Based on code it switches to the corresponding execution brunch.

0
source

Source: https://habr.com/ru/post/910925/


All Articles