3

I need to lean on you for some help on stracing android apps in the sdk emulator

here is my setup

android sdk emulator running android api 4.03 adb shell connected to emulator.

I am able to install an apk usng adb install filename.apk

I am able to run the app using adb shell am start -a android.intent.action.Main -n com.akproduction.notepad/com.akproduction.notepad.NoteList

I try to strace using (adb shell) strace am start -a android.intent.action.Main -n com.akproduction.notepad/com.akproduction.notepad.NoteList but I get nothing!

how do you trace the runtime behavior of android apps and their installation ?

thanks,

Jose.

p.s. the test app is located here: http://www.appbrain.com/app/ak-notepad/com.akproduction.notepad

4

1 回答 1

1

am是一个批处理文件,不能用于strace.

你需要像这样运行它:

strace -v -fF -tt -s 65535 -o /data/local/tmp/opengl.strace /system/bin/app_process /system/bin com.android.commands.am.Am start -a android.intent.action.MAIN -n demo.opengl.android/.OpenGLDemo

顺便说一句,不要使用strace可从以下位置下载的静态编译二进制文件:

http://benno.id.au/blog/2007/11/18/android-runtime-strace

它不会输出任何东西。

而是使用 ROM 附带的那个。

于 2012-09-06T10:47:59.277 回答