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

后端 未结 7 1233
予麋鹿
予麋鹿 2020-12-13 11:37

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 t

7条回答
  •  旧巷少年郎
    2020-12-13 12:07

    I would recommend prior to starting your app start strace on zygote process and follow forks. Zygote process is the main process from which every new process forks in Android, including your app. Then you might want to filter the log based on PIDs you are interested in. Example:

    ps zygote

    get the zygote PID, then

    strace -f -p < zygote_PID >

提交回复
热议问题