API call Interception in Android

51 views
Skip to first unread message

Ruhi Sharma

unread,
Mar 16, 2014, 12:48:37 PM3/16/14
to android...@googlegroups.com
I have a .apk file and I want to log all the API calls made by this application while running in the Emulator. I want to log the API calls into a file while this application is running in the emulator. Note that I can't access the code of the application. Is writing some kernel module in emulator kernel(goldfish) is of any use? I have complied the goldfish kernel and wrote a simple "Hello World" module in it.

If anybody knows the way to start it please help me.

Earlence

unread,
Mar 31, 2014, 11:53:57 AM3/31/14
to android...@googlegroups.com
you need to define what you mean by API calls.
If you mean highlevel framework API calls, then you may have to instrument the framework API calls in the android source directly to log these accesses.
If you mean system calls, then just use strace.
Reply all
Reply to author
Forward
0 new messages