Categories
adb android runtime shell strace

Android: How to strace an app using ADB shell am start

I need help on stracing Android apps in the SDK emulator.

Here is my setup:

I have an Android SDK emulator running the Android API 4.03 ADB shell connected to emulator.

I am able to install an APK using the ADB install filename.apk

I am able to run the app using the 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?

(P.S. The test app is located here.