On Mon, Dec 14, 2009 at 3:31 PM, perumal316 <[email protected]> wrote:

> Hi,
>
> I want to trace the system calls (using strace) made by Android
> Applications. I can do it using terminal emulator or adb shell.
>
> I wrote a simple Hello World app in C and the Cross-Compile it and adb
> push it into /data and I could use strace.
>
> But how to use strace on the Android Applications installed in the
> menu? Must I write a module or an app to do it?
>
> Thanks in Advance,
> Perumal
>
>
strace uses the ptrace API, and it is only useful if you want to trace all
system calls.  that also usually means C program compiled with Android NDK.


Java program runs in its own VM call DalvikVM, and you use logcat to see
the tracing of all java API executed in this way.  If you use strace, it is
meaningless as you are actually tracing both the DalvikVM and is
intepretation of the Java bytecodes.





-- 
Regards,
Peter Teoh

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to