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 On Tuesday, January 5, 2010 1:24:47 PM UTC-8, Tim Bird wrote: > > 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 > ============================= > > -- -- 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.
