System Calls in Android

1,803 views
Skip to first unread message

perumal316

unread,
Jan 5, 2010, 2:12:23 AM1/5/10
to Android Linux Kernel Development
Hi,

Is there any way I can find out the system calls invoked by Android
for specific tasks?

For example, for writing/deleting contacts or writing/deleting SMS
what are the Linux system calls invoked by Android for these tasks?

I can't find any links explaining on this.

Thanks in Advance,
Perumal

bappa mondal

unread,
Jan 5, 2010, 3:29:07 AM1/5/10
to android...@googlegroups.com
Hi,
    you can use strace to trace all system call by Android Task.

Bappa




--
"A Ship is always safe at the shore - but that is NOT what it is
built for" - Albert Einstein

perumal316

unread,
Jan 5, 2010, 4:06:55 AM1/5/10
to Android Linux Kernel Development
Hi,

Sorry, I am a bit confused. Using strace I can trace the system calls
made by applications. In Android I can do so through adb shell, but
how to I do so for contacts and Messaging because have to specify
"strace <app name>" for it to work. Any idea which command I have to
use to see the system calls made in writing/deleting contacts or
writing/deleting SMS ?

Thanks in Advance,
Perumal

On Jan 5, 4:29 pm, bappa mondal <bappamond...@gmail.com> wrote:
> Hi,
>     you can use strace to trace all system call by Android Task.
>
> Bappa
>
>
>
> On Tue, Jan 5, 2010 at 12:42 PM, perumal316 <perumal...@gmail.com> wrote:
> > Hi,
>
> > Is there any way I can find out the system calls invoked by Android
> > for specific tasks?
>
> > For example, for writing/deleting contacts or writing/deleting SMS
> > what are the Linux system calls invoked by Android for these tasks?
>
> > I can't find any links explaining on this.
>
> > Thanks in Advance,
> > Perumal
>
> > --

> > unsubscribe: android-kerne...@googlegroups.com<android-kernel%2Bunsu...@googlegroups.com>

Tim Bird

unread,
Jan 5, 2010, 4:24:47 PM1/5/10
to android...@googlegroups.com
perumal316 wrote:
> Hi,
>
> Sorry, I am a bit confused. Using strace I can trace the system calls
> made by applications. In Android I can do so through adb shell, but
> how to I do so for contacts and Messaging because have to specify
> "strace <app name>" for it to work. Any idea which command I have to
> use to see the system calls made in writing/deleting contacts or
> writing/deleting SMS ?

You still need to use strace. You only use 'strace <app name>' when
you are using strace to start an applicaiton. You can attach to an
existing (running) process, using 'strace -p <pid>'. Use 'ps' to
find the process which is managing the contacts and messaging,
and use the appropriate pid.

Off the top of my head, I'm guessing it will be the process
with name 'android.process.acore', but I don't know anything
about the top layers of software here.

You'll have to figure out which process is actually managing
the data items you are interested in. I suspect that what you'll
eventually see is file system activity from a sqlite library,
either directly from an app or from one of the system servers
on behalf of the app.
-- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================

Mahdieh Kazemipour

unread,
Apr 29, 2014, 2:52:49 PM4/29/14
to android...@googlegroups.com, tim....@am.sony.com

Hi I want to use strace but I can not
How do you do this ?
"strace" with -e or -o option not work at adb shell
and  show this at command line "-" , finaly after minutes I must to type "Ctrl+C" and exit from adb
why?

can you suggest a book or manual about "strace" or like this  sources
step by step tnx
Reply all
Reply to author
Forward
0 new messages