views:

139

answers:

3

Is there a way to trace through function calls at the lowest levels of the Android system? Right now when I debug in Eclipse, it goes through the source files that are located inside the frameworks folder, but is it possible to go even lower? For example show what functions are being called from the libcore folder. I am also interested to find how it communicates with the linux kernel at the bottom of the layers. Is there a way to do this? Thanks

A: 

I guess the easy way would be compiling your own version of android from http://android.git.kernel.org/ and making it debuggable.

Macarse
+1  A: 

http://android.opensourceror.org/2010/01/18/android-source/

Try this :)

YaW
This will not go lower than the JNI, which is what the posted was asking for
Ricardo Villamil
Yes, I have already done this, and it does not go lower as he said.
L4N0
+1  A: 

The lowest level you can go with eclipse debugger if you add all framework source folders is up to JNI calls (the layer that interfaces with native code).

If you want to go lower you need to use gnu gdb debugger, here you will find a guide on how to use it.

Lucas S.
This looks promising. I'll try it.
L4N0